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

How would i go about making parts visible to all players except local?

Asked by 8 years ago

So basically i understand one way to do it, but that's "performance" heavy, Im using filtering enabled so that can be another problem, so i was thinking if there was another way, and if not, would mine work?

My idea was to do so:

Insert a global table (_G.Guns = {}), Use that table to announce the current gun each player is using, by using the player name, then gun in the table, Then making a script * have to request to server, then to client* so SERVER > CLIENT* saying: Weld this gun to this players head, then put in the local players camera. Which could actually cause problems but would this work? or is there a easy'er way.

4
Can you please be a little more clear with your problem? M39a9am3R 3210 — 8y
5
Make the parts on the server and delete them on the chosen player's client? nicemike40 486 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Best way I see is to make all guns local to each player. So all enemy guns would be made locally and attached to characters and local player's gun would be local as well. You do not have to place the guns in player's camera to make them local, with filtering enabled they already will be, no matter where you place them.

So you'd probably want server to anounce all players that one player decided to switch guns.

0
Thanks, i ended up solving it, My point was for one player not to see their own gun, but other's to do so, it ended up being as simple as putting the gun in the character :) Abstract_Life 65 — 8y
Ad

Answer this question