i’m doing one thing i need a proximity prompt to appear on the character body of a player when my character approaches him only if i have a tool equiped, and if the prompt has ben trigged the tool i’m holding go to player then has the promp trigged in his body
You want the proximity prompt to be on the NPC or on your character?
NPC or in the character of the player I approach
You can parent it to HumanoidRootPart
Well then just normally have the proximity prompt in the NPC (and/or characters) and just adjust the max viewing distance thing to your likings
but I need the prompt to appear only if I have a tool equipped
but will appear to a player then have the proximity in body
Use a localscript in StarterCharacterScripts
game.Players.LocalPlayer.Character.HumanoidRootPart.ProximityPrompt.Enabled = false
this will ensure no player can see their own prompt
Then just enable the ProximityPromt while the player is equipping the tool
For that, use: (localscript)
game.StarterPack.Tool.Equipped:Connect(function()
for i,v in pairs(game.Players:GetChildren()) do
if v.Name ~= game.Players.LocalPlayer.Name then
v.Character.HumanoidRootPart.ProximityPrompt.Enabled = true
end
end
end)
this makes you see everyone’s proxprompt when you equip your tool (except your own)
how i can make when they are trigged a ui show to who have the prompt in body?