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 1 year 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 1 year ago

Use the command Destroy Example:

Door:Destroy()
Ad
Log in to vote
0
Answered by 1 year ago
Edited 1 year 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 — 1y
0
I put the local script in starterplayerscripts sixfirez 33 — 1y
0
Good happy to help theking66hayday 841 — 1y

Answer this question