You can write your topic however you want, but you need to answer these questions:
Goal: Make a script that detects when a proximity prompt is Triggered then change the leaderstats value to 1.
Leaderstat value being “IsClothed”
What solutions have I tried so far: So far I’ve looked at tutorials and other examples of this code and cannot find the solution to this error. Developer forums has not been too useful either.
script.Parent.ProximityPrompt.Triggered:Connect(function(player) local player = game.Players.LocalPlayer.leaderstats if player.IsClothed.Value == 0 then player.IsClothed.Value += 1 elseif player.IsClothed.Value == 1 then player.IsClothed.Value = 1 end end)