script.Parent.Touched:connect(function(Part)
if Part.Parent:FindFirstChild("Humanoid") then
local player=getPlayer(Part.Parent)
game.ReplicatedStorage.Tool:clone().Parent=player.Backpack
end
end)
I wouldn't know what to use instead of 'getPlayer' for the third line of code as it says it is an unknown. I was attempting to create a script that would clone a tool into the player's backpack on touch of a specific brick.

1 comment
Thank you so much!