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 » Scripters
Home Search
 

Re: I'm trying to make this tank turret rotate, need help

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:33 PM
local tw = t.Chassis.Swivel.Weld
tw.C0=(CFrame.new(
t.Chassis.Swivel.Position,
Vector3.new(
mouse.X,
t.Chassis.Swivel.Position.y,
mouse.Y)
))


this is in a function thats called by a mouse.move event, but the y stay's the same (i've printed it). Why is that?

yes it's in a local script

I'll swear, but standards won't let me
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
19 Jul 2015 05:34 PM
i told you why earlier

you rotated the y angle but printed the y position

those are 2 different things
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:35 PM
learn cframe before you say that again please:

CFrame.new(Vector3 position, Vector3 point)

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:37 PM
b

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:40 PM
2

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:42 PM
3

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 05:43 PM
4

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Jul 2015 07:25 PM
5

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Jul 2015 06:12 AM
6

I'll swear, but standards won't let me
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Jul 2015 06:56 AM
apparently this is too big of a job for scripters.

I'll swear, but standards won't let me
Report Abuse
MINEBLOX106 is not online. MINEBLOX106
Joined: 28 Feb 2012
Total Posts: 308
20 Jul 2015 07:01 AM
Clearly, I mean, why can't we just post all of our code and ask everyone to fix it for us? That's not too much to ask, is it?


print('ayy lmao')
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Jul 2015 07:02 AM
"Clearly, I mean, why can't we just post all of our code and ask everyone to fix it for us? That's not too much to ask, is it?"

how do you know this is ALL of my code? I've given you all the information I can gather.

I'll swear, but standards won't let me
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
20 Jul 2015 07:58 AM
, but the y stay's the same (i've printed it). Why is that?

cause = that's what you told it to do.
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Jul 2015 09:02 AM
"cause = that's what you told it to do."

i've told the thing to point towards the mouse everytime it moves

it doesn't move

I'll swear, but standards won't let me
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
20 Jul 2015 09:10 AM
tw.C0=(CFrame.new(
t.Chassis.Swivel.Position,
Vector3.new(



mouse.X,











t.Chassis.Swivel.Position.y,










mouse.Y)
))
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Jul 2015 09:11 AM
yes, what about it.

I'll swear, but standards won't let me
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
20 Jul 2015 09:34 AM
It's the answer to this question:

but the y stay's the same (i've printed it). Why is that?

But then positions don't have a property called y, so you should be getting an error, but you say you've printed it, so...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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