Giving player a tool from rs when touching a part not working?
Asked by
4 years ago Edited 4 years ago
01 | local arrow = game.ReplicatedStorage.Arrow:Clone() |
02 | local plr = game.Players.LocalPlayer |
05 | script.Parent.Touched:Connect( function () |
08 | arrow.Parent = plr.Backpack |
A tool called "Arrow" will be given to the players backpack when the player touches the part. Not sure why it is not working but i am sure that the fault is with "script.Parent.Touched:Connect(function()". Please help.
Output shows no error at all and this is a local script inside a MeshPart called "Arow"