#How do I add a wait value into an item giver?
3 messages · Page 1 of 1 (latest)
try this
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not Player.Backpack:FindFirstChild("Sword") then
sword:Clone().Parent = Player.Backpack
end
end
end)
line 2 makes sure the thing touching the part is a player