ProximityPrompt Script Is Not Working

Hello, I am trying to make a resturant game cooking system. I am trying out a new type of way to add things to your burger by using ProximityPrompts. I used a .Touched method before so I just changed the .Touched to the ProximityPrompt .Triggerd in the function. I thought it would work but it didn’t, ive tried debugging but that didn’t work.

Here’s the script:

script.Parent.ProximityPrompt.Triggered:Connect(function(Hit) -- !Hit! Call Function
	if Hit.Parent.Name == 'Cooked Beef' then
		Hit.Parent.LettuceLeaf.Transparency = 0 -- Makes the pre-loaded Lettuce Leaf appear on the burger patty.
		
		Hit.Parent.Name = 'Cooked Beef' -- Keeps the same name
	end
end)

Thanks For You Help! :slight_smile:

Proximity Prompt doesnt take “hit” as a parameter. It returns the player that triggered the prompt

2 Likes

Hit in this case will be the player that triggers the prompt

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.