|
| 12 Mar 2016 06:10 AM |
I've been making a nuke script and have been reading sdfgw's guides (following pighead10's ideas) and i'm making a nuke. I'm not sure how to make a breakjoints function though
here is my current script that WORKS for a growing nuke
nuke = script.Parent pos = nuke.CFrame
while true do repeat wait() nuke.Size = nuke.Size + Vector3.new(0.1,0.1,0.1) nuke.CFrame = pos until nuke.Size.X>= 100 if nuke.Size.X>= 100 then nuke:Destroy() end end
Can you please help me or link me to a wiki page that can explain it to me?
Sorry to bother you guys. Thanks though.
- Keep moving forward - |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 06:51 AM |
player.Character.Humanoid:BreakJoints()
|
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Mar 2016 10:00 AM |
I've been messing around with what @lualogical has given me and no where does it fit. Here is what i've tried to put together and it isn't working
nuke = script.Parent pos = nuke.CFrame
while true do repeat wait() nuke.Size = nuke.Size + Vector3.new(0.1,0.1,0.1) nuke.CFrame = pos until nuke.Size.X>= 250 if nuke.Size.X>= 250 then nuke:Destroy() end end
function touch() local player = nuke:findFirstChild("Humanoid") if player~= nil then wait() player:breakjoints() end end
nuke.Touched:connect(touch)
Can someone help me? I'm confused why this doesnt work, as nothing is being underlined as incorrect and there are no output errors
- Keep moving forward - |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 12:06 PM |
bump
- Keep moving forward - |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 12:16 PM |
I did it... Hooray!
What next...
- Keep moving forward - |
|
|
| Report Abuse |
|
|
| |
|