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

How would I make a part disappear locally?

For example, I want to destroy a certain part of the map to reduce lag but obviously not destroy that part of the map for other players. How would I go about doing this?

2 answers

Just do it in a local script. But keep in mind that local scripts do not function in workspace or server run areas etc. I would place this in StarterGUI:

local part = workspace:WaitForChild("ThePart'sNameHere")
part.Transparency = 1

You can do much more than set local transparency. All I will say to you is that everything run in a local script, is local. That is why it is called a "local" script.

I hope I helped.

2 comments

0

If i were to have a button in the workspace to destroy the area behind me to reduce lag, how would i go about with the local script then?

0

Fire a remote event to the client who touched/clicked it. Then in the local script receiving the remote event run the code there.

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