Hi! I have this proximity prompt and I want it to give a player a key. Problem: nothing happens.
script.Parent.ProximityWall.ProximityPrompt.Triggered:Connect(function(player)
game.ReplicatedStorage.Tools:WaitForChild("Key"):Clone().Parent = player:WaitForChild("Backpack")
end)
Can you help me fix this?
1 Like
Does it print any errors? And you’re not using a local script, right?
1 Like
It’s in a regular script and no, there are no errors.
1 Like
Can I see a screenshot of where the tool and script is located?
1 Like
Never mind, I found the problem: I had RequiresLineOfSight disabled (I turned it off so I wouldn’t have to go around the object). Sorry for wasting your time.
1 Like
Ah ok. It’s a common mistake, no worries.
2 Likes