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

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

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.**

4 comments

0

So instead of requesting a script, you requested a tutorial of someone making a script?

0

i think so? i think in the Wiki's would be more information than in the tutorials.

0

Then go check the wiki.

0

the problem is that i can't find it.

1 answer

✓ Accepted answer

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!

1 comment

0

well that works ill try to do the gun's by myself.

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