Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local re = game.ReplicatedStorage:WaitForChild("SquidGameRE")
- local mouse = game.Players.LocalPlayer:GetMouse()
- local mouseDown = false
- mouse.Button1Down:Connect(function()
- mouseDown = true
- end)
- mouse.Button1Up:Connect(function()
- mouseDown = false
- end)
- re.OnClientEvent:Connect(function(instruction, value, colour)
- if instruction == "status" then
- script.Parent.Status.Text = value
- script.Parent.Status.TextColor3 = colour
- elseif instruction == "timer" then
- script.Parent.TimerLabel.Text = value
- elseif instruction == "barrier" then
- wait(2)
- value.CanCollide = true
- elseif instruction == "honeycomb" then
- workspace.SquidGame.RedLightGreenLight.EndGameBarrier.CanCollide = false
- wait(1)
- workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
- value:SetPrimaryPartCFrame(workspace.CurrentCamera.CFrame * CFrame.new(0, 0, -2) * CFrame.Angles(0, math.rad(90), 0))
- elseif instruction == "honeycombEnd" then
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- end
- end)
- while wait(0.1) do
- re:FireServer(mouseDown, mouse.Target)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement