Main Search
Delta Corp Forum Index
 
 
FAQ Members Groups Profile Private Messages

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact [email protected].
part braking script

 
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
hk1777
Beginner Poster


Joined: 26 Mar 2008
Posts: 13

PostPosted: Wed Mar 26, 2008 9:05 pm    Post subject: part braking script Reply with quote

Name: brake

Description: it brakes parts of your car/plane/whatever

Needed Objects: i think a intvalue and something like if script.Parent.brake = 0 then script.Parent:brakejoints()

Place Description: for my virus is spreading to make it like the zombies have damaged the cars thx for any help

_________________
i like the color orange and cats and what did the apple say to the banana
Back to top
View user's profile Send private message
Aeacus
Site Admin


Joined: 05 Feb 2008
Posts: 299
Location: Canada

PostPosted: Wed Mar 26, 2008 9:16 pm    Post subject: Reply with quote

One way to do this, is using :BreakJoints()

Inside your model, you could try creating a script that is something along these lines;

h = script.Parent:findFirstChild("Humanoid")

function onChanged()
if h~= nil then
if h.Health < 10 then
script.Parent:BreakJoints()
end
end
end

h.Changed:connect(onChanged)

I haven't tested it, but if your model has a humanoid, that should work Smile
_________________
If you say "Plz" because it is shorter than "Please," I will say "No" beacuse it is shorter than "Yes."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
hk1777
Beginner Poster


Joined: 26 Mar 2008
Posts: 13

PostPosted: Wed Mar 26, 2008 10:17 pm    Post subject: Reply with quote

ok ill try it
_________________
i like the color orange and cats and what did the apple say to the banana
Back to top
View user's profile Send private message
hk1777
Beginner Poster


Joined: 26 Mar 2008
Posts: 13

PostPosted: Thu Mar 27, 2008 12:22 am    Post subject: Reply with quote

doesnt work my zombies infect you not kill Razz
_________________
i like the color orange and cats and what did the apple say to the banana
Back to top
View user's profile Send private message
Aeacus
Site Admin


Joined: 05 Feb 2008
Posts: 299
Location: Canada

PostPosted: Thu Mar 27, 2008 12:24 am    Post subject: Reply with quote

In that case, simply edit the if statement to look for a different property.
_________________
If you say "Plz" because it is shorter than "Please," I will say "No" beacuse it is shorter than "Yes."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Back to Top              
Jenova Template © digital-delusion.com
Powered by phpBB © 2001, 2002 phpBB Group



For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!