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
 

Re: NOOB robloxian script help

Previous Thread :: Next Thread 
tootoo123456 is not online. tootoo123456
Joined: 23 Apr 2010
Total Posts: 310
14 Oct 2015 02:19 PM
whats wrong with this script?
function script.Parent.Touched:connect(hit)
if hit.Parent.findFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
Report Abuse
iara56 is not online. iara56
Joined: 23 Nov 2012
Total Posts: 1032
14 Oct 2015 02:20 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent.findFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
Report Abuse
jumpykilldestroy is not online. jumpykilldestroy
Joined: 15 Jul 2012
Total Posts: 12319
14 Oct 2015 02:24 PM
whats it for

ill try to make you a new script
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
14 Oct 2015 02:30 PM
function script.Parent.Touched:connect(hit)
if hit.Parent.FindFirstChild("Humanoid") then --Case fail. Its not findFirstChil..
hit.Parent.Humanoid.Health = 0
end
end


- "I say no because yes is overrated"
Report Abuse
jumpykilldestroy is not online. jumpykilldestroy
Joined: 15 Jul 2012
Total Posts: 12319
14 Oct 2015 02:30 PM
wait nvm i fixed it

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
hit.Parent.Humanoid.Health = 0
end
end)
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
14 Oct 2015 02:34 PM
Yeah, i forgot the;

end)


- "I say no because yes is overrated"
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
14 Oct 2015 02:34 PM
And you misplaced function
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
14 Oct 2015 02:39 PM
lol, how tf did i not notice that........
Here is the correct one:

script.Parent.Touched:connect(function(hit)
if hit.Parent.FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end)

-- Error1; Case on FindFirstChild
--Error2; Misplaced function
--Error3; end, instead of anonymous 'end)'


- "I say no because yes is overrated"
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
14 Oct 2015 02:57 PM
there's a lot of stupidity here

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end)


Red Blossoms
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
14 Oct 2015 02:59 PM
What? Fite me.


- "I say no because yes is overrated"
Report Abuse
LimitedHex is not online. LimitedHex
Joined: 11 Aug 2015
Total Posts: 204
14 Oct 2015 03:04 PM
Faisal, FindFirstChild is a method, and methods are called using : and not .
Properties are accessed using "."
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
14 Oct 2015 03:14 PM
findFirstChild is also a legal method


Red Blossoms
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
14 Oct 2015 03:16 PM
I know it's:, and not ., I'm tired, cut me a slack ;(
@rayk And, that i legally didn't know. Pun not intended.


- "I say no because yes is overrated"
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