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 » Scripting Helpers
Home Search
 

Re: Can you make this script

Previous Thread :: Next Thread 
coolmike0174 is not online. coolmike0174
Joined: 22 Jul 2012
Total Posts: 2715
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 is not online. 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
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
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
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
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
coolmike0174 is not online. coolmike0174
Joined: 22 Jul 2012
Total Posts: 2715
30 Dec 2013 12:16 PM
Im trying to do this in game with kohls admin it says mistake near "end"
Report Abuse
broccoli7040 is not online. broccoli7040
Joined: 30 Jul 2009
Total Posts: 22
30 Dec 2013 12:23 PM
@TheRobloxian909

he forgot an end for the last function
Report Abuse
coolmike0174 is not online. coolmike0174
Joined: 22 Jul 2012
Total Posts: 2715
30 Dec 2013 12:27 PM
Bump
Report Abuse
Grove537 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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