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!