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

tool equiped gun viewmodel visible only for player that equiped the gun?

Asked by 5 years ago

so i want that if you equip a tool and then it would show the that gun viewmodel only for the only that player who is equipped that gun. i found one tutorial at Guides in this site. so i can show what i need im not asking for scripts i just need sites,tutorials Wiki's? to learn how to make [ that if you equip a tool and then it would show the that gun viewmodel only for the only that player who is equipped that gun] https://imgur.com/a/5oDYVTw

** Don't take it down im not asking for scripts! Thank You.**

0
So instead of requesting a script, you requested a tutorial of someone making a script? DinozCreates 1070 — 5y
0
i think so? i think in the Wiki's would be more information than in the tutorials. User#21499 0 — 5y
0
Then go check the wiki. DinozCreates 1070 — 5y
0
the problem is that i can't find it. User#21499 0 — 5y

1 answer

Log in to vote
0
Answered by
BenSBk 781 Moderation Voter
5 years ago

For certain Instances to exist only on the client, you need to create those Instances locally. Doing this is simple; you just use a LocalScript to create the Instances. Likewise, you'll need to create and handle your Tool model on the client.

As an example, here's a simple script that will create an anchored blue Part and parent it to Workspace on the client:

local part = Instance.new("Part")
part.BrickColor = BrickColor.Blue()
part.Anchored = true
part.Parent = workspace

Only the local player will be able to interact with this Part. To other clients, it will seem as if their character is floating in thin air when they stand on it. (This is why exploiters can walk on what seem to be invisible Parts; they only exist on their client, but the client owns the physics of their character).

I hope that this answered your question!

0
well that works ill try to do the gun's by myself. User#21499 0 — 5y
Ad

Answer this question