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

how do you find a player's torso?

Asked by 9 years ago

i want to add several instances of Sparkles to the torso of every player that enters my game and i', extremely new at scripting so can you help me please?

2 answers

Log in to vote
0
Answered by 9 years ago

Or you could do it when the enter the game immediately.

game.Players.PlayerAdded:connect(function(sparkles)
wait(4) --Gives enough time for player to load, or you could wait for the character using a function.
local torso = sparkles.LocalPlayer.Torso
local spark = Instance.new("Sparkles", torso)
spark.Name = "Sparkles"
--Just copy the local spark thing but rename spark to spark2 or spark3 or spark4 etc..
end)
Ad
Log in to vote
-2
Answered by
Spooce 78
9 years ago

Here's how you find a Player's Torso in a LocalScript.

local Player = game.Players.LocalPlayer
Torso = Player.Character.Torso

Answer this question