Advertisement
HowToRoblox

StatusUpdater

Feb 16th, 2023
1,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local textLabel = script.Parent:WaitForChild("StatusTextLabel")
  2.  
  3. local statusVal = game:GetService("ReplicatedStorage"):WaitForChild("GAME STATUS")
  4.  
  5.  
  6. function updateStatus()
  7.     textLabel.Text = statusVal.Value
  8. end
  9.  
  10. updateStatus()
  11. statusVal:GetPropertyChangedSignal("Value"):Connect(updateStatus)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement