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

How do I destroy parts for local player?

Asked by 2 years ago

So in my game there are doors unlocked with wins: 1 win, 3 wins, 5 wins etc. I want to destroy the doors when the local player reaches 1 win, 3 wins, 5, etc. How could I do that?

2 answers

Log in to vote
1
Answered by 2 years ago

Use the command Destroy Example:

Door:Destroy()
Ad
Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

@theking66hayday

Do I just do this in a local script?:

if player.leaderstats.Wins.Value = 1 then
    Door:Destroy()
end
0
Yep, it worked sixfirez 33 — 2y
0
I put the local script in starterplayerscripts sixfirez 33 — 2y
0
Good happy to help theking66hayday 841 — 2y

Answer this question