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: Tycoon obby BoolValue scripting help?

Previous Thread :: Next Thread 
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 12:28 AM
I'm new to studio and I don't know how to make it when they touch the brick they die. Does anyone have time to do this for me?
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
15 Feb 2014 12:29 AM
script.Parent.Touched:connect(function(h)
if h.Parent:findFirstChild("Humanoid") then
h:BreakJoints()
end
end)
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 12:30 AM
function Ontouched(hit)
hit.Parent:Destroy()
end
script.Parent.Touched(Ontouched)
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
15 Feb 2014 12:31 AM
Btw, this has nothing to do with BoolValue

Btw2, the script should be inside the brick that kills.
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 12:31 AM
Btw3, use shon's not mine
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
15 Feb 2014 12:32 AM
@Haz That makes their character disappear. Not only the characters, but other models/Bricks.
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
15 Feb 2014 12:32 AM
Leedle~
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 12:33 AM
^ that's why I said use urz.. :P im tired xD
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
15 Feb 2014 12:43 AM
What's this have to do with a boolvalue?

script.Parent.Touched:connect(function(h)
if h.Parent:FindFirstChild("Humanoid")~=nil then
h.Parent.Humanoid.Health = 0
end
end)
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 12:44 AM
Where do i put this in the script im so confused
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 12:45 AM
You said you wanted a brick that when you touch it it kills you. Therefore put the script in the brick!
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 12:49 AM
I know that I'm at the brick's script but i dont know where in the script to put this
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
15 Feb 2014 12:54 AM
Anywhere, outside of other functions/loops

If you still don't know, put it at the very top.
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 12:54 AM
put this into script, script should only have exactly what this says nothing more.

script.Parent.Touched:connect(function(h)
if h.Parent:FindFirstChild("Humanoid")~=nil then
h.Parent.Humanoid.Health = 0
end
end)
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 12:57 AM
Thank you haha i'm dumb but i got it c:
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 12:59 AM
I did't want to bother you with my money giving problem from 5 to 10 xD don't know how to do that either
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 01:01 AM
>_< Is the script that is in the moneygiver long? if it isn't 50+ lines post it and I'll help, otherwise just adjust your prices so that it fits to the 5 per second
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 01:07 AM
Well there is no script named Money giver so I dont know which one to go to if there was one named that I wouldn't have trouble
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 01:08 AM
What scripts does it have and what models are they under?
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 01:10 AM
Well i have the model with the factory in it and under that is all the parts and buying models for the factory
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 01:11 AM
Are there several scripts in this? Or just one master script?
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 01:13 AM
There are like scripts for every part/ in every model
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 01:17 AM
You aren't making this easy to help you. ;3

Honestly if you don't understand what scripts are for what and you also don't understand how to edit them at all then this is probably too early for you to be making this tycoon without some help (other than forums). I suggest learning some simple scripting and then you might be able to pull it off with some outside forum help.
Report Abuse
MrAmericanPie is not online. MrAmericanPie
Joined: 18 Aug 2011
Total Posts: 103
15 Feb 2014 01:18 AM
Well actually im almost done
Report Abuse
Hazania is not online. Hazania
Joined: 04 Jun 2010
Total Posts: 1344
15 Feb 2014 01:19 AM
So the only thing left you need to do is change 5 to 10?
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