generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Nuke script

Previous Thread :: Next Thread 
robonhaaad is not online. robonhaaad
Joined: 09 Jul 2011
Total Posts: 103
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
Lualogical is not online. Lualogical
Joined: 26 Aug 2012
Total Posts: 112
12 Mar 2016 06:51 AM
player.Character.Humanoid:BreakJoints()


Report Abuse
robonhaaad is not online. robonhaaad
Joined: 09 Jul 2011
Total Posts: 103
12 Mar 2016 08:27 AM
Thanks dude
Report Abuse
robonhaaad is not online. robonhaaad
Joined: 09 Jul 2011
Total Posts: 103
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
robonhaaad is not online. robonhaaad
Joined: 09 Jul 2011
Total Posts: 103
12 Mar 2016 12:06 PM
bump



- Keep moving forward -
Report Abuse
robonhaaad is not online. robonhaaad
Joined: 09 Jul 2011
Total Posts: 103
12 Mar 2016 12:16 PM
I did it... Hooray!


What next...



- Keep moving forward -
Report Abuse
iQuit_ROBLOX is not online. iQuit_ROBLOX
Joined: 12 Mar 2016
Total Posts: 248
12 Mar 2016 12:27 PM
test



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image