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

Will you help me, please?

Asked by 9 years ago

I'm not sure how to add in a new Part, PointLight, or any other object with scripting. Can you please give me a link to the page where I can find out more information on that? I need it to be InstanceNew("Part") or something like that. I also need to know how to make it go into another part so that the part is it's parent. I need to learn that so that I make a script that adds a PointLight to all players' torsos.

1 answer

Log in to vote
2
Answered by
HexC3D 830 Moderation Voter
9 years ago
wait(5) -- Waits 5 seconds until script starts
for i,v in pairs (game.Players:GetPlayers()) do
Instance.new("PointLight").Parent = v.Character.Torso
end

Put this script in Workspace this adds a PointLight to the torso of all the player's at one time.

+1 if this helped!

0
Thanks! But I also wanted the script to have the line where it sets the properties of the PointLight too, because I'm not sure how to do that either. But I think I remember how so I'll try. flamenathan327 20 — 9y
Ad

Answer this question