4zx16

Gui Pad

Sep 11th, 2021 (edited)
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || GUI PAD || ONLY CHANGE PAD ENABLED AND STORAGE.
  3. ]]
  4. local Pad = script.Parent
  5. local PadEnabled = true
  6. local Storage = script.Name
  7.  
  8. local function HitPad(hit)
  9.     local h = hit.Parent:FindFirstChild("Humanoid")
  10.     local player = game.Players:FindFirstChild(h.Parent.Name)
  11.    
  12.     if h ~= nil and PadEnabled == true then
  13.         PadEnabled = false
  14.        
  15.         wait(1)
  16.         Storage:Clone().Parent = player.PlayerGui
  17.         PadEnabled = true
  18.     end
  19. end
  20. Pad.Touched:Connect(HitPad)
Advertisement
Add Comment
Please, Sign In to add comment