-- u need to be the one that opens the door for it to work because it gives u network prriorty when u open it
game:GetService("ReplicatedStorage").GameData.LatestRoom:GetPropertyChangedSignal("Value"):Connect(function()
local room = workspace.CurrentRooms:FindFirstChild(game:GetService("ReplicatedStorage").GameData.LatestRoom.Value -1)
repeat wait() until room.Door:GetAttribute("Opened") == true
for i = 1, 500 do
task.wait()
local val = math.random(-1, 1)
room.Door:PivotTo(room.Door.PrimaryPart.CFrame * CFrame.new(val, val, val))
end
end)
Comments
No comments yet
Be the first to share your thoughts!