-
What do you want to achieve?
I want the Proximity prompt to appear and then give the tool to the player. It only appears at the spawn… not when you’re next to the object? -
What is the issue?
-
What solutions have you tried so far?
I haven’t been able to find a similar post about this issue I’m having… I’ve disabled “RequiresLineofSight” and the proximity prompt is enabled.
local prp = script.Parent
local pizza = game.ServerStorage["Cheese Pizza"]
prp.Triggered:Connect(function(player)
pizza:Clone()
pizza.Parent = player.Backpack
game.StarterPlayer["Cheese Pizza"].Value = true
prp.Enabled = false
end)
Here’s the script within the “Dummy”: (if that may be related to the issue I’m having)
local pizzatool = game.ServerStorage["Cheese Pizza"]
local pizza = game.Workspace.CheesePizza
local prp = script.Parent
local customer = prp.Parent
script.Parent.Triggered:Connect(function(player)
if game.StarterPlayer["Cheese Pizza"].Value == true then
player.leaderstats.Money.Value = player.leaderstats.Money.Value + 25
game.StarterPlayer["Cheese Pizza"].Value = false
pizzatool.Parent = game.ServerStorage
wait(15)
game.Workspace.CheesePizza.ProximityPrompt.Enabled = true
end
end)
Is there something wrong with my script(s)? The “Dummy” proximity prompt works fine & everything works… but the proximity prompt is just appearing very strange!
Thank you