Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can someone tell me how I use proximity to equip a uniform?

Someone explain to me How can I make a uniform giver with ProximityPrompt, like as soon as the player presses the button he has asking for in proximity he will keep the clothes

1 answer

✓ Accepted answer

Hello!

To do that, you can use Triggered event from proximity prompt.

Add this script inside a part, where a proximityprompt exists as well, with default name.

Let's begin coding, first we connect to the event

script.Parent.ProximityPrompt.Triggered:Connect(function(player)

end)

Now, we change player's character clothes to something else

script.Parent.ProximityPrompt.Triggered:Connect(function(player)
       player.Character.Shirt.ShirtTemplate = "rbxassetid://1" -- change 1 to your id
       player.Character.Pants.PantsTemplate = "rbxassetid://1" -- change 1 to your id as well.
end)

ProximityPrompt.Triggered

This discussion is preserved as it was. New answers, comments, and votes are closed.