generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

???

Previous Thread :: Next Thread 
Curosity is not online. Curosity
Joined: 18 Aug 2010
Total Posts: 1085
26 Mar 2015 06:46 PM
How would I insert a light into a players torso, and then remove it 5 seconds later? I would like it a loop, like this:

while true do

SOMEHOWINSERTLIGHTINTOEVERYPLAYERSTORSO
wait(3)
SOMELIGHT.Player.Torso:Remove()
wait(30)
end

Please help, thanks! <3

You now skeletons are common in minecra- -CONTENT DELETED-
Report Abuse
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
26 Mar 2015 06:50 PM
local script:

local player = game.Players.LocalPlayer
player.CharacterAdded:connect(function(char)
while true do
local light = Instance.new("SpotLight",char.Torso)
wait(5)
light:Destroy()
char.Humanoid.Died:connect(function() break end
wait(5)
end
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
26 Mar 2015 06:51 PM
local player = game:GetService('Players').LocalPlayer

local character = player.Character
if not character or not character.Parent then
character = player.CharacterAdded:wait()
end

while wait(30) do
game:GetService('Debris'):AddItem(Instance.new("PointLight", character.Torso), 5)
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image