
Key RequiredUniversal

-- Original credits goes to ItsKittyGD
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
RequestCommand:InvokeServer(";music 108598153096177 ;pitch 0.11 ;volume inf")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local tool
for i, v in player:GetDescendants() do
if v.Name == "SyncAPI" then
tool = v.Parent
end
end
for i, v in game.ReplicatedStorage:GetDescendants() do
if v.Name == "SyncAPI" then
tool = v.Parent
end
end
local remote = tool.SyncAPI.ServerEndpoint
local RunService = game:GetService("RunService")
function _(args)
remote:InvokeServer(unpack(args))
end
function CreatePart(cf, parent)
local args = {
[1] = "CreatePart",
[2] = "Normal",
[3] = cf,
[4] = parent
}
_(args)
end
function SetAnchor(part, boolean)
local args = {
[1] = "SyncAnchor",
[2] = {
[1] = {
["Part"] = part,
["Anchored"] = boolean
}
}
}
_(args)
end
function AddMesh(part)
local args = {
[1] = "CreateMeshes",
[2] = {
[1] = {
["Part"] = part
}
}
}
_(args)
end
function SetMesh(part, meshid)
local args = {
[1] = "SyncMesh",
[2] = {
[1] = {
["Part"] = part,
["MeshId"] = "rbxassetid://" .. meshid
}
}
}
_(args)
end
function SetTexture(part, texid)
local args = {
[1] = "SyncMesh",
[2] = {
[1] = {
["Part"] = part,
["TextureId"] = texid
}
}
}
_(args)
end
function MeshResize(part, size)
local args = {
[1] = "SyncMesh",
[2] = {
[1] = {
["Part"] = part,
["Scale"] = size
}
}
}
_(args)
end
function SetTransparency(part, value)
local args = {
[1] = "SyncTransparency",
[2] = {
[1] = {
["Part"] = part,
["Transparency"] = value
}
}
}
_(args)
end
function SetVertexColor(part, vertexColor)
local args = {
[1] = "SyncMesh",
[2] = {
[1] = {
["Part"] = part,
["VertexColor"] = vertexColor
}
}
}
_(args)
end
function DestroyPart(part)
local args = {
[1] = "Remove",
[2] = {
[1] = part
}
}
_(args)
end
local images = {
"http://www.roblox.com/asset/?id=169585459",
"http://www.roblox.com/asset/?id=169585475",
"http://www.roblox.com/asset/?id=169585485",
"http://www.roblox.com/asset/?id=169585502",
"http://www.roblox.com/asset/?id=169585515",
"http://www.roblox.com/asset/?id=169585502",
"http://www.roblox.com/asset/?id=169585485",
"http://www.roblox.com/asset/?id=169585475"
}
local skyPart
local skyLoop
local frameTime = 0.15
local lastUpdate = 0
function CreateSky()
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local cf = hrp.CFrame
CreatePart(CFrame.new(cf.Position + Vector3.new(0, 6, 0)), workspace)
for _, v in workspace:GetDescendants() do
if v:IsA("BasePart") and (v.CFrame.Position - (cf.Position + Vector3.new(0, 6, 0))).Magnitude < 0.1 then
skyPart = v
SetAnchor(skyPart, true)
AddMesh(skyPart)
SetMesh(skyPart, "111891702759441")
MeshResize(skyPart, Vector3.new(99999, 99999, 99999))
SetTransparency(skyPart, 1)
SetVertexColor(skyPart, Vector3.new(6,6,6))
local index = 1
skyLoop = RunService.Heartbeat:Connect(function(deltaTime)
lastUpdate = lastUpdate + deltaTime
if lastUpdate >= frameTime then
lastUpdate = 0
if not skyPart then
skyLoop:Disconnect()
return
end
SetTransparency(skyPart, 0)
SetTexture(skyPart, images[index])
index = index % #images + 1
end
end)
end
end
end
function ResetSky()
if skyPart then
DestroyPart(skyPart)
skyPart = nil
end
if skyLoop then
skyLoop:Disconnect()
skyLoop = nil
end
CreateSky()
end
player.CharacterAdded:Connect(function(newChar)
char = newChar
ResetSky()
end)
if char and char:FindFirstChild("Humanoid") then
char:WaitForChild("Humanoid").Died:Connect(function()
ResetSky()
end)
end
CreateSky()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
RequestCommand:InvokeServer(";time ;fogcolor black")



I'm like
THE SPOOKY SCARY SKELETONS (: