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
 

Why does this script keep killing the player?

Previous Thread :: Next Thread 
VanSchyndel is not online. VanSchyndel
Joined: 18 Aug 2008
Total Posts: 1232
01 May 2016 08:49 PM
I'm sorry if I'm not allowed to ask, but it should take you expert scripters a second to figure out. Here's the script;


function OnTouch(part)
local human = part.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
local check = game.Players:findFirstChild(part.Parent.Name)
game.Lighting.spook:clone().Parent = game.Workspace
end
end

script.Parent.Touched:connect(OnTouch)





It clones in something from the lighting when you touch it. But why does it kill the player who touches it?
Report Abuse
VanSchyndel is not online. VanSchyndel
Joined: 18 Aug 2008
Total Posts: 1232
01 May 2016 08:50 PM
btw, im new to scripting
Report Abuse
Cyprus_Alexander is not online. Cyprus_Alexander
Joined: 09 Apr 2016
Total Posts: 725
01 May 2016 08:51 PM

function OnTouch(part)
local human = part.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
local check = game.Players:findFirstChild(W0T IS THIS)
game.Lighting.spook:clone().Parent = game.Workspace
end
end

script.Parent.Touched:connect(OnTouch)
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
01 May 2016 08:57 PM
ignore the troll


Report Abuse
Cyprus_Alexander is not online. Cyprus_Alexander
Joined: 09 Apr 2016
Total Posts: 725
01 May 2016 08:58 PM
;c Nu, don't ignore the troll!!
Report Abuse
GodSlayerCole is not online. GodSlayerCole
Joined: 08 Feb 2011
Total Posts: 22
01 May 2016 09:37 PM
it has literally no reason to kill the player, do you have another script on the brick or anything?
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