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: Zombie Summoner Script

Previous Thread :: Next Thread 
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 04:37 PM
Why does this not work?

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local a = game.Lighting.Zombie1:Clone()
a.Parent = game.Workspace
a:MakeJoints()
wait(300)
end
end)


I can't figure out why...
Report Abuse
tcmaxwell2 is not online. tcmaxwell2
Joined: 30 Jan 2011
Total Posts: 315
13 Mar 2012 04:40 PM
Insert service not local!!
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 04:42 PM
And how do i fix that?
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:08 PM
Show me the output.
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:09 PM
And what's actually not working?
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 05:13 PM
Its not sumoning the zombie
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:17 PM
Hmm... I tested it in studio with a simple model from Lighting. Worked fine. Is the script inside a part? Are you sure the model isn't in a bad position where it falls off the map?
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 05:19 PM
Dude i know what im doing when i tested it the zombie just diden't spawn when i placed it on the map and hit the button.,
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:25 PM
Ok, have you got the explorer window open? If not, open if via view > Explorer. Then click the plus by the workspace and tell me what you see when you run the script.
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:25 PM
*it (My typing is going downhill in acurracy today)
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 05:35 PM
Dude.. im not a baby i know how to use roblox studio im learning how to script. it works now, but the zombies spawn too fast and the Wait part does nothing...
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:42 PM
Alright, sorry for doubting you. I usually judge peoples knowledge on grammar >_>. Anyway... post the script that you've got now (That works) and i'll fix that.
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 05:47 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local a = game.Lighting.Zombie1:Clone()
a.Parent = game.Workspace
a:MakeJoints()
wait(300)
end
end)
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:49 PM
Try this:

Toggle = false

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and Toggle == false then
Toggle = true
local a = game.Lighting.Zombie1:Clone()
a.Parent = game.Workspace
a:MakeJoints()
wait(300)
Toggle = false
end
end)
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 05:53 PM
So what will that do?
Report Abuse
stroudie is not online. stroudie
Joined: 28 Nov 2008
Total Posts: 2556
13 Mar 2012 05:58 PM
That will make it only work if the toggle value is false. The toggle value is kept true until the wait has finished, therefore it acts as a debounce and stops the script activating WHENEVER you touch the brick.
Report Abuse
thunder1222 is not online. thunder1222
Joined: 07 Jul 2009
Total Posts: 13803
13 Mar 2012 06:06 PM
Sweet!
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