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

How do i copy of player's character to a local camera?

How do i make a script that creates other players on another team as a local part? i know about putting them into the local camera but i dont know about the getting the player's character and detecting the player's team

1 answer

If you want to get the character in a local script:


repeat wait() until game.Players.LocalPlayer.Character --Just to check if the Character is added

local Player = game.Players.LocalPlayer
local Character = Player.Character --Now we have the Character

If you want to get the team of the player: (Not too sure tbh, if someone can help me, thanks) I would look on the wiki but at school.


repeat wait() until game.Players.LocalPlayer.Character --Just to check if the Character is added

local Player = game.Players.LocalPlayer
local Character = Player.Character --Now we have the Character

Player.TeamColor = BrickColor.new('White') --White is the team name.

1 comment

0

I don't want to get a copy of the local player I wanted it to kind of cycle through all of the players and if the player is on a certain team it will make a copy of their character with a green neon Color

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