Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

Log in to vote
0
Answered by
SuperPuiu 497 Moderation Voter
2 years ago

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

Ad

Answer this question