Advertisement
HowToRoblox

GameClient

Aug 29th, 2021
1,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local re = game.ReplicatedStorage:WaitForChild("RemoteEvent")
  2.  
  3.  
  4. re.OnClientEvent:Connect(function(instruction, value)
  5.    
  6.    
  7.     if instruction == "status" then
  8.        
  9.         script.Parent.Text = value
  10.        
  11.        
  12.     elseif instruction == "chat" then
  13.        
  14.         game.StarterGui:SetCore("ChatMakeSystemMessage",
  15.             {
  16.                 Text = value,
  17.                 Color = Color3.fromRGB(5, 255, 63),
  18.                 Font = Enum.Font.SourceSansBold,
  19.                 TextSize = 18,
  20.             })
  21.        
  22.        
  23.     elseif instruction == "finished" then
  24.        
  25.        
  26.         wait(1)
  27.        
  28.         value.CanCollide = true
  29.     end
  30. end)
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement