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

How would I make a part disappear locally?

Asked by
fcvrs 22
4 years ago

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

Log in to vote
3
Answered by
Leamir 3138 Moderation Voter Community Moderator
4 years ago

Destroy the part via local script, you may need to use RemoteEvents

0
A remote event will make the part disappear globally, if u want to send information from a server script to a local script u should use RemoteFunctions. super1boom 0 — 4y
0
RemoteFunctions and RemoteEvents does the same thing, however RemoteFunctions expect a response https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events Leamir 3138 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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.

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? fcvrs 22 — 4y
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. PrismaticFruits 842 — 4y

Answer this question