Advertisement
HowToRoblox

SquidGameClient

Oct 27th, 2021
2,206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. local re = game.ReplicatedStorage:WaitForChild("SquidGameRE")
  2.  
  3.  
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5. local mouseDown = false
  6.  
  7. mouse.Button1Down:Connect(function()
  8.     mouseDown = true
  9. end)
  10.  
  11. mouse.Button1Up:Connect(function()
  12.     mouseDown = false
  13. end)
  14.  
  15.  
  16. re.OnClientEvent:Connect(function(instruction, value, colour)
  17.    
  18.     if instruction == "status" then
  19.        
  20.         script.Parent.Status.Text = value
  21.         script.Parent.Status.TextColor3 = colour
  22.        
  23.        
  24.     elseif instruction == "timer" then
  25.        
  26.         script.Parent.TimerLabel.Text = value
  27.        
  28.        
  29.     elseif instruction == "barrier" then
  30.        
  31.         wait(2)
  32.        
  33.         value.CanCollide = true
  34.        
  35.        
  36.     elseif instruction == "honeycomb" then
  37.        
  38.         workspace.SquidGame.RedLightGreenLight.EndGameBarrier.CanCollide = false
  39.        
  40.         wait(1)
  41.        
  42.         workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  43.        
  44.         value:SetPrimaryPartCFrame(workspace.CurrentCamera.CFrame * CFrame.new(0, 0, -2) * CFrame.Angles(0, math.rad(90), 0))
  45.  
  46.        
  47.     elseif instruction == "honeycombEnd" then
  48.        
  49.         workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  50.     end
  51. end)
  52.  
  53.  
  54. while wait(0.1) do
  55.     re:FireServer(mouseDown, mouse.Target)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement