Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local plyr = game.Players.LocalPlayer
  2. local button = script.TriggerButton.Value
  3.  
  4. function onClick(activator)
  5. if activator == plyr and not plyr.PlayerGui:FindFirstChild("FlashGUI") then
  6. button.FlashGUI:Clone().Parent = plyr.PlayerGui
  7. end
  8. end
  9.  
  10. button.ClickDetector.MouseClick:Connect(onClick)
  11.  
  12.  
  13. -- either change button to the path of the brick or, so you can move it around without worrying about changing your script, create an -- ObjectValue as a child of the script and set its value to the brick with the picker tool and change its name to TriggerButton
  14. -- as for the script, put it in game.StarterPlayer.StarterPlayerScripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement