|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
| |
|
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
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 15 Feb 2014 12:44 AM |
| Where do i put this in the script im so confused |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 15 Feb 2014 12:57 AM |
| Thank you haha i'm dumb but i got it c: |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 15 Feb 2014 01:13 AM |
| There are like scripts for every part/ in every model |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 15 Feb 2014 01:18 AM |
| Well actually im almost done |
|
|
| Report Abuse |
|
|
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 |
|
|