hello i iz back
So I have a Part called purple. When a player touches it, the player gets a two tools. The problem is neither of the tools are entering the player's Backpack.
The Script:
local storage = game:WaitForChild("ReplicatedStorage")
local cancollecttools = true
local shank = storage:WaitForChild("PurpleShank")
local power = storage:WaitForChild("Gyroball")
local teams = game:WaitForChild("Teams")
local green = teams:WaitForChild('Purple')
script.Parent.Touched:connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player ~= nil and cancollectsword == true then
player.TeamColor = green.TeamColor
shank:Clone().Parent = player.Backpack
power:Clone().Parent = player.Backpack
cancollecttools = false
end
end)
The output says nothing. Help?

1 comment
Could you use the model from this video instead? Just change the giver block to look like the purple one, and use it to give you your tools. It should work: https://www.youtube.com/watch?v=EiZJAcFg-iU https://www.roblox.com/library/93174228/Masterkunfu-Giver-pack