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

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

Asked by
AyeJude 41
6 years ago

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

0
you could name the model after the player's name like Model.Name = player.Name.."gun" Vulkarin 581 — 6y
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. AyeJude 41 — 6y
0
you can get every character in the game by going through the players and getting there character using Player.character 22ron 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

local char = game.Players.LocalPlayer.Character
Ad

Answer this question