codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 09:57 PM |
| What I'm trying to do is. There is this trap door that opens and then a person will fall through the door. What I want is I weilded the parts together and they stay together now what is to make the person anchored after they fall through. So is there a script that I can use the make that happen. In detail a script that when you touch a button it will make those body parts anchored. Am I making scense? |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 23 Jan 2012 09:59 PM |
| you want the person to fall through the trap door, die, then there dead body parts stay anchored at the bottom or something? |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 10:02 PM |
| what I want is the body to fall through however if the parts are not anchored then the player can just touch the body and it will fall over. I don't want that. So I need a script that will keep the parts unanchored untill the body touches the floor. When he is on the floor I want the body parts to become anchored again so the player can jump on the person's head and jump through the hole in the ceiling. |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 23 Jan 2012 10:07 PM |
alright you aren't making any sense to me, sorry :/
Ø≥Ø |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 10:11 PM |
| OK I need a script. What happens is you put the script in a brick. What I touch the brick it waits about 5 seconds then the bricks that I want anchored are anchored. So it's kindof like a regen button where you put all the objects you want regened in the same model. Am I making scense now? |
|
|
| Report Abuse |
|
|
joshuaw97
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 112 |
|
|
| 23 Jan 2012 10:11 PM |
| your guy won't stand up straight if you touch him? Is everything put together right? |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 23 Jan 2012 10:12 PM |
I'm so confused it hurts.
just say what you want done >.> |
|
|
| Report Abuse |
|
|
joshuaw97
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 112 |
|
|
| 23 Jan 2012 10:14 PM |
| oh i understand, u want the guy to fall, regain his composure, and stand up straight, then you want him to get reanchored. Is this for some type of puzzle-type game? |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 10:18 PM |
Yes but what I want is a script. I'll say exactly what I want in the script.
I touch the brick wait(5) Then the arm of my person is anchored The leg of my person is anchored the torso is anchored the head is anchored(well you know where I'm going with this)
That's pretty much all I want in the script. |
|
|
| Report Abuse |
|
|
joshuaw97
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 112 |
|
|
| 23 Jan 2012 10:22 PM |
| and this is not your character but a dummy right? |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 10:25 PM |
script.Parent.Touched:connect(function(hit) for _,v in pairs(game.Workspace) v:Destroy() end end)
Simple. It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 10:26 PM |
Made a mistake :P
script.Parent.Touched:connect(function(hit) for _,v in pairs(game.Workspace:children()) v:Destroy() end end)
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
| |
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 10:49 PM |
@bikerking200 So I put this script in a brick and what that will do is unanchore all the parts I have grouped up with the brick? |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 11:09 PM |
Yes.
It's not easy being cheesy. |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 23 Jan 2012 11:58 PM |
| ok that's not working. So I set it up. It turns out what happens is after the "dumy" Falls through the trap door it falls over. I need this script so that the second it touches the ground it becomes anchored and does not fall over. |
|
|
| Report Abuse |
|
|
joshuaw97
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 112 |
|
|
| 25 Jan 2012 05:47 PM |
| my best advice, make sure everything on the dummy is put together like a normal humanoid, then add a humanoid part into it. don't forget the joints and stuff. automatically it'll right itself when it falls flat, if it falls flat at all. |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 05:53 PM |
function ontouchz(hit) If hit.Parent:findFirstChild("Humanoid") ~= nil then local a = hit.Parent:GetChildren() for i=1,#a do if a[i]:IsA("Part") then wait(5) a[i].Anchored = true end end end end script.Parent.Touched:connect(ontouchz)
hopfully this will work and what you wanted :=3 |
|
|
| Report Abuse |
|
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 25 Jan 2012 10:35 PM |
| it works. This might not be related but when I press the regen button he's dead. Why does he die when I press the regen button? |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
codylO
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 439 |
|
|
| 25 Jan 2012 10:46 PM |
| I press regen button. It regens. But he has no health. 0. Nothing. Not a single bit of health. What is happening. |
|
|
| Report Abuse |
|
|
joshuaw97
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 112 |
|
|
| 11 Feb 2012 07:56 PM |
| is there a "model:makeJoints()" line in the regen script? |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 07:59 PM |
WHen you regen the script inside the regen or what ever must have a Humanoid.Health = 0 Change that to Humanoid.Health = 100 I guess.
Man, mah brain hurts.
:'(
$RobloxNewb01 <--Name?--> RobloxScripter01$ |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 08:04 PM |
I think I got an answer to: "OK I need a script. What happens is you put the script in a brick. What I touch the brick it waits about 5 seconds then the bricks that I want anchored are anchored. So it's kindof like a regen button where you put all the objects you want regened in the same model. Am I making scense now?"
function onHit(hit) hi = hit.Parent["Right Leg"] if hi ~= nil and script.Parent ~= hi then for i,v in pairs(game.Wokrspace:getChildren() do if v then v.Transparen t/ adw IDK!
MY BRAIN HURTS! UGH!
|
|
|
| Report Abuse |
|
|