Advertisement
saturnsolar

Visible LocalScript (Map Voting GUI) | ROBLOX Studio

Apr 24th, 2020
8,416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local rep = game:GetService("ReplicatedStorage")
  2. local booleans = rep:WaitForChild("Booleans")
  3. local votingsession = booleans:FindFirstChild("VotingSession")
  4.  
  5. if votingsession.Value == true then
  6.         script.Parent.VotingMapGui.Visible = true
  7.     else
  8.         script.Parent.VotingMapGui.Visible = false
  9.     end
  10.    
  11. votingsession:GetPropertyChangedSignal("Value"):Connect(function()
  12.     if votingsession.Value == true then
  13.         script.Parent.VotingMapGui.Visible = true
  14.     else
  15.         script.Parent.VotingMapGui.Visible = false
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement