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

How can I edit the players grouped model in the workspace through a script?

I am trying to turn a certain part transparent when a weapon is toggled. I can do that, I just don't know how to get to it (Because I can't use a certain name, because if I do others won't have the same effect.)

3 comments

0

you could name the model after the player's name like Model.Name = player.Name.."gun"

0

Vulkarin, everyone has a weapon,obviously I can't know who joined the game and make a model for them.. I need a way to get to player models through script, that's all.

0

you can get every character in the game by going through the players and getting there character using Player.character

1 answer

✓ Accepted answer

Well. If I understand correctly and your using local script. Use this

local char = game.Players.LocalPlayer.Character

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