sriyanto

StatusDisplay

Oct 11th, 2022
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local displayValues = ReplicatedStorage:WaitForChild("DisplayValues")
  3. local status = displayValues:WaitForChild("Status")
  4.  
  5. local textLabel = script.Parent
  6.  
  7. local function updateText()
  8.     textLabel.Text = status.Value
  9. end
  10.  
  11. status.Changed:Connect(updateText)
  12. updateText()
Add Comment
Please, Sign In to add comment