Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keepCheck = {
- "bardyon1234567",""
- }
- function checkGiveTools(player)
- local tools = game.ServerStorage.Tools
- local tl = {}
- if player.Name == "Greatshark4" or player.Name == "" then
- table.insert(tl,tools:FindFirstChild("Sans Morph (RobotTale)"):clone())
- table.insert(tl,tools:FindFirstChild("Robotic Blasters"):clone())
- end
- for _,tll in pairs(tl) do
- local ownerTag = Instance.new("ObjectValue")
- ownerTag.Name = "Owner"
- ownerTag.Value = player
- ownerTag.Parent = tll
- tll.Parent = player.Backpack
- end
- end
- function onPlayerEntered(player)
- wait(0.2)
- checkGiveTools(player)
- local yesCheck = false
- for i = 1, #keepCheck do
- if player.Name == keepCheck[i] then
- yesCheck = true
- end
- end
- if yesCheck then
- player.CharacterAdded:connect(function(ch)
- repeat
- wait()
- until ch.Parent == workspace
- wait(0.4)
- checkGiveTools(player)
- end)
- end
- end
- game.Players.PlayerAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement