#Proximity prompts
2 messages · Page 1 of 1 (latest)
function Triggered(Player)
code here
end
Prompt.Triggered:Connect(Triggered)``` I would much more reccomend this way of doing it. But your way would work. you just need a `:Connect`
2 messages · Page 1 of 1 (latest)
script.Parent.Triggered(function(player)
script.Parent.Enabled = false
print("activated")
print(player)
end)
Why is this code not working? When i activate (hold E) on the prox. prompt, the script does not activate. This is a local script inside of the proximity prompt
function Triggered(Player)
code here
end
Prompt.Triggered:Connect(Triggered)``` I would much more reccomend this way of doing it. But your way would work. you just need a `:Connect`