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 |
|
|
|
| 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
|
  |
| 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 |
|
|