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
 

Re: tank with turning cannon.Please help

Previous Thread :: Next Thread 
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 08:39 AM
I want a script to turn tank head (cannon) to left or right . please help
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Aug 2013 08:42 AM
game.Workspace.Tank.Cannon:Turn(Left)
game.Workspace.Tank.Cannon:Turn(Right)
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 08:50 AM
thank you but how to set button for this?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
07 Aug 2013 08:51 AM
Hilarious script xD
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
07 Aug 2013 08:53 AM
game.Players.MyPlayer:GetMouse().KeyDown:connect(function(key)
if key == "left arrow" then
game.Workspace.Tank.Cannon:Turn(Left)
elseif key == "right arrow" then
game.Workspace.Tank.Cannon:Turn(Right)
end
end)

there you go :)

I disabled my siggy.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Aug 2013 08:54 AM
@Trioxide:

...What?

game.ButtonService:SetKey(KeyQ, game.Workspace.Tank.Cannon:Turn(Left))
game.ButtonService:SetKey(KeyE, game.Workspace.Tank.Cannon:Turn(Right))
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
07 Aug 2013 08:54 AM
thats a way too

I disabled my siggy.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Aug 2013 09:06 AM
Do you even LAU, Trioxide?
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 09:06 AM
can you make this ?
http://www.roblox.com/Red-Tank-item?id=42168446
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 09:07 AM
can you make this with turning cannon?
http://www.roblox.com/Red-Tank-item?id=42168446
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Aug 2013 09:07 AM
Yes.
Report Abuse
Wheatlies is not online. Wheatlies
Joined: 30 Jun 2010
Total Posts: 230
07 Aug 2013 09:09 AM
Wow guys, way to help him.
They're just being mean, none of those scripts will work. To make a cannon turn left or right you would give it velocity in one direction or the other. However, this forum is for fixing scripts, not making them.
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 09:09 AM
do it then and show me
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
07 Aug 2013 09:11 AM
No, I wont.

"However, this forum is for fixing scripts, not making them."

Exactly.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
07 Aug 2013 09:27 AM
BasePart.Turn = (function(arg)
if (arg == 'Left') then
turn left
else then turn right end
end)

BasePart.Turn('Left')
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 10:21 AM
please use another button.
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 10:24 AM
please test it first
Report Abuse
marcopolo444 is not online. marcopolo444
Joined: 02 May 2010
Total Posts: 5114
07 Aug 2013 10:27 AM
i tested it, they all work fine.
i don't know what's wrong with what you're doing though calsaris.
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 02:15 PM
what I have to do?
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
07 Aug 2013 02:23 PM
explain more please
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
08 Aug 2013 07:57 PM
I Swear who Help me to Make it , I will give him 25 tix
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 Aug 2013 08:00 PM
dang 25 tix I so wanna help him
Report Abuse
Calsaris is not online. Calsaris
Joined: 02 Sep 2012
Total Posts: 23
08 Aug 2013 08:03 PM
help me then
Report Abuse
agentwaffle1234 is not online. agentwaffle1234
Joined: 18 Jul 2012
Total Posts: 50
08 Aug 2013 08:03 PM
LOL! 25 tix is cheap, i get 150 tix a day.

I could help you for free if needed, I'm not all the best scripter, but these guys are being mean.

~AgentWaffle~
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 Aug 2013 08:05 PM
im being sarcastic
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