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

Is it possible to make someone see something that everyone else cant? (More in bio) (Edit)

Asked by 5 years ago
Edited 5 years ago

I'm planning on making a portal tool, that a player can spawn, and its visible to all players, including the client who spawned it, and after a certain amount of time, lets say.. 5 seconds or so, the portal vanishes for everyone, but if the client that has spawned it, or anyone else enters the portal, they'll vanish with the portal, but for the client, they can still see it from the inside if that makes sense, feel free to ask any questions if this isn't clear enough, any advice appreciated, thank you in advance.

0
local scripts Lazarix9 245 — 5y

2 answers

Log in to vote
0
Answered by
stef0206 125
5 years ago

If you change the part using a local script on the client that's not supposed to see it's side it we be removed for that client only, basicly abusing the FE system.

0
Why is the abusing the FE system? ForeverBrown 356 — 5y
0
But, if the client that is not supposed to see it, how can i make them see it for a certain period of time, before vanishing? TheJacksterYT 19 — 5y
0
Well "abusing" the FE system, FE makes it so the Client can't affect the server in any other way than the game is scripted to, therefore if you remove a brick on the client it will not affect anyone else because of FE. stef0206 125 — 5y
0
To answer your question about timing, you can trigger the deletion of the brick whenever you want, if you want it to vanish for the player 3 seconds after they touched the brick you simply add a wait(3) within a Touched function then destroying the part stef0206 125 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

there are several ways of hiding/unhiding parts and models for a single client (player) for example, parenting objects or creating them inside a players current camera will make it visible to only them, this can be achieved through a local script only, if you want your portal to become invisible to the players inside, you will probably have to move the portal from workspace to inside the players camera, then after a delay or when player exits you can move it back to the workspace, all of this happening inside the client and only visible to one single player. another way is through viewport frames, they would allow all objects placed inside to be shown on top, like xRay, they will always render on top of everything in the world because its in the players gui, simply create a viewportframe inside a gui, and place all your models inside it, choose the viewports current camera to be the players current camera and you're done.

removing already existing objects to be invisible to a single client is just as easy, you simply delete them (or move them to somewhere outside of workspace, for later use) from workspace through a local script, it will become invisible and uninteractable to the single player only. hope this explains it

Answer this question