|
| 30 Dec 2013 11:52 AM |
| If a player touches me they respawn i tried but something is wrong with mine and if you could make it sort for new chat bar that would be great thanks. |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 30 Dec 2013 11:53 AM |
| This sub-forum isn't for requests, but no doubt someone will give you it anyways. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 12:11 PM |
theres 2 scripts!
SCRIPT IN WORKSPACE!
--script number 1 game.Players.PlayerAdded:connect(function(player) player.Character.CharacterAdded:connect(function(character) if player.Name == "coolmike0174" then local a = game.Lighting.Script:clone() a.Parent = game.Players.coolmike0174.Character.Torso
SCRIPT IN LIGHTING AND DO NOT RENAME SCRIPT!
--script number 2 function die() local h = game.Players.LocalPlayer.Character:findFirstChild("Humanoid") h.Health = 0 end
script.Parent.Touched:connect(die)
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 12:14 PM |
hey made a mistake here is correct
--SCRIPT IN WORKSPACE!
--script number 1 game.Players.PlayerAdded:connect(function(player) player.Character.CharacterAdded:connect(function(character) if player.Name == "coolmike0174" then local a = game.Lighting.Script:clone() a.Parent = game.Players.coolmike0174.Character.Torso elseif print("player is not coolmike0174") end) end)
SCRIPT IN LIGHTING AND DO NOT RENAME SCRIPT!
--script number 2 function die() local h = game.Players.LocalPlayer.Character:findFirstChild("Humanoid") if h then h.Health = 0 elseif print("player is not human!") end
script.Parent.Touched:connect(die)
New Post
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 12:16 PM |
| Im trying to do this in game with kohls admin it says mistake near "end" |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 12:23 PM |
@TheRobloxian909
he forgot an end for the last function |
|
|
| Report Abuse |
|
|
| |
|
Grove537
|
  |
| Joined: 05 Feb 2010 |
| Total Posts: 3478 |
|
|
| 30 Dec 2013 12:29 PM |
Start here: http://wiki.roblox.com/index.php/Beginner%27s_Guide_to_Advanced_Scripting |
|
|
| Report Abuse |
|
|