View previous topic :: View next topic |
Author |
Message |
Maxanmum Avid Poster
Joined: 06 Feb 2008 Posts: 113 Location: In a grocery bag NEAR YOU!
|
Posted: Fri Aug 29, 2008 2:52 am Post subject: How to 'break' a model? |
|
|
Basically it's a script that breaks a model apart. It's like the one in briguy's point and click place, except you have to use a tool for the model to break.
Needed Objects: I think you could use 'breakjoints'. _________________ There was a time when there was time, when time was now upon a time.
O RLY? |
|
Back to top |
|
|
chess123mate Beginner Poster
Joined: 06 Feb 2008 Posts: 40 Location: Canada
|
Posted: Wed Jan 28, 2009 8:13 pm Post subject: |
|
|
Put the following in a hopperbin; I think it works. However, it doesn't unanchor things, which may be a problem.
function onClick(mouse)
if mouse.Target==nil then return end
m=mouse.Target.Parent
if m~=workspace then m:BreakJoints() end
end
function onSelect(mouse)
mouse.Button1Down:connect(function() onClick(mouse) end)
end
script.Parent.Selected:connect(onSelect) |
|
Back to top |
|
|
|