4zx16

Tool Pad (Whitelist)

Dec 25th, 2021 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || TOOL PAD (WHITELIST)
  3. ]]
  4. local Allowed = {}
  5. local WinningSmile = false
  6.  
  7. local function onTouched(hit)
  8.     local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  9.  
  10.     for _, v in pairs(Allowed) do
  11.         if player ~= nil and player.Name == v then
  12.             if WinningSmile == false then
  13.                 WinningSmile = true
  14.                 game.ReplicatedStorage.Name:Clone().Parent = player:WaitForChild("Backpack")
  15.                 wait(1)
  16.                 WinningSmile = false
  17.             end
  18.         end
  19.     end
  20. end
  21. script.Parent.Touched:Connect(onTouched)
Add Comment
Please, Sign In to add comment