So I’m trying to create a prompt that when if a player finishes the prompt and has a item, it’ll start the function. however i don’t see anything that can let me script that. How would i do this?
1 Like
You could utilize the TriggerEnded
event which allows you to reference the player who activated it when connected to a function.
Example:
local ProximityPrompt = script.Parent
ProximityPrompt.TriggerEnded:Connect(function(player)
--[[ Since you have a reference to the player, you can now check
through their Backpack/Character/etc. for a specific item --]]
end)
proximityPrompt.Triggered:Connect(function(player)
print(player)
end)
1 Like
Your comment and StrongBigeMan9s comment are solutions, but i cannot select multiple solutions. Thank you!
2 Likes
Your comment and Rynappels comment are solutions, but i cannot select multiple solutions. Thank you!
2 Likes
Flag the first one as a solution. Its better than nothing;
1 Like