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

Will you help me, please?

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

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!

1 comment

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.

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