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 » Scripting Helpers
Home Search
 

I need help Tank.

Previous Thread :: Next Thread 
kirby882 is not online. kirby882
Joined: 30 Sep 2008
Total Posts: 2399
23 Aug 2013 10:30 PM
Ok the Gun system I use only require one person to operate. The problem with this gun system is that if you make the Barrel too long, it glitches the tank into Oblivion(Just a white screen). What do you think the problem could be. I know it's something to do with this because I was working with IFV's where the Barrel is short.
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
23 Aug 2013 10:33 PM
post the script
Report Abuse
kirby882 is not online. kirby882
Joined: 30 Sep 2008
Total Posts: 2399
23 Aug 2013 10:34 PM
model = script.Parent.Parent.Parent
backup = model:clone()
local debounce = false

function onTouch(part)
if (part.Name == "Safe") and (debounce == false) and (script.Parent.Count.Value == 0) then
debounce = true
wait(2)
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
script.Parent.Count.Value = 1
debounce = false
end
end
script.Parent.Touched:connect(onTouch)
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
24 Aug 2013 06:06 PM
model = script.Parent.Parent.Parent
backup = model:Clone()
debounce = false

script.Parent.Touched:connect(function(hit)
if hit.Name == "Safe" and not debounce and script.Parent.CountValue == 0 then
debounce = true
backup.Parent = workspace
backup:MakeJoints() --Capitalization matters
wait(2)
debounce = false
end
end)
Report Abuse
kirby882 is not online. kirby882
Joined: 30 Sep 2008
Total Posts: 2399
24 Aug 2013 08:21 PM
Thank you but I just mesh edited the Barrel. I'll try this any ways.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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