4zx16

Gui Pad (Whitelisted)

Sep 11th, 2021 (edited)
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || GUI PAD (WHITELISTED) || ONLY CHANGE PAD ENABLED AND STORAGE AND LIST.
  3. ]]
  4. local PadEnabled = true
  5. local Storage = script.Name
  6.  
  7. local List = {"ur name"}
  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.         for i, v in pairs(List) do
  16.             if player.Name == v then
  17.                 print("Giving Gui to ".. player.Name.. " now...")
  18.                 wait(1)
  19.                 Storage:Clone().Parent = player.PlayerGui
  20.                 PadEnabled = true
  21.             end
  22.         end
  23.     end
  24. end
  25. script.Parent.Touched:Connect(HitPad)
Advertisement
Add Comment
Please, Sign In to add comment