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
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)