Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make a part destroy on a local script?

Ive tried using

local stagenumber = script.Parent local function hit() wait(3) stagenumber:Destroy() end stagenumber.Touched:Connect(hit)

I don't think I could use Instance.new either

1 comment

0

I fixed it instead of using stage.value = stage.value + 1 you just do stage.value = 1

1 answer

✓ Accepted answer

I am not sure if you are using a local script to purposely destroy a part for a single client, but if you want to destroy a part for every player you need to do it from a module script of from a server script. You could use a remote event to connect between the scripts.

4 comments

0

I am trying to make it destroy for only one player

0

Im trying to make an obby stage counter that shows your stage and it keeps going up every time they touch it so I want to make it destroy for only one player so the other players can get the stage counter without it destroying for everyone

0

Sorry, you could try having the part parented to the camera so only one player could see it.

0

Do you know how obbys show their players stages on the leaderboard

This discussion is preserved as it was. New answers, comments, and votes are closed.