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: Why can't I change the GripForward

Previous Thread :: Next Thread 
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:22 PM
So as I am trying to code an ironsight all of the below works except the changing of gripforward which places the gun directly ahead of the player. How would I be able to change GripForward?

mouse.KeyDown:connect(function(Key)
if Key == "q" and Aiming == false then
Aiming = true
--cam.FieldOfView = 40
tool.GripForward = Vector3.new(-0.3,0,-1)
tool.GripPos = Vector3.new(0.5,0,0)
tool.GripRight = Vector3.new(1,0,0)
tool.GripUp = Vector3.new(0,1,0)
elseif Key == "q" and Aiming == true then
Aiming = false
tool.GripForward = Vector3.new(0,0,-1)
tool.GripPos = Vector3.new(0,0,0)
tool.GripRight = Vector3.new(1,0,0)
tool.GripUp = Vector3.new(0,1,0)
end
end)
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:28 PM
It isn't a read only value so I don't understand why the game wont move it ;-;
Report Abuse
Crousant02 is not online. Crousant02
Joined: 15 Feb 2013
Total Posts: 292
12 May 2015 05:29 PM
use userinputservice fr00b then ill help
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:30 PM
The hell is that? GripForward works puts the tool in this right position but it won't stay there :/
Report Abuse
Crousant02 is not online. Crousant02
Joined: 15 Feb 2013
Total Posts: 292
12 May 2015 05:31 PM
Theres an example of it in my models.
Report Abuse
hdtv13 is not online. hdtv13
Joined: 18 Sep 2012
Total Posts: 1628
12 May 2015 05:32 PM
lol http://wiki.roblox.com/index.php?title=API:Class/UserInputService

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
Crousant02 is not online. Crousant02
Joined: 15 Feb 2013
Total Posts: 292
12 May 2015 05:33 PM
Oh wait i mean TheNewChicken's models

keep fotgetting my main is banned for 3 days..
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:36 PM
And his user isn't found because he's banned. Why does this have to happen ;-;
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:41 PM
why can't it be editable??? FOR GODS SAKE
Report Abuse
hdtv13 is not online. hdtv13
Joined: 18 Sep 2012
Total Posts: 1628
12 May 2015 05:46 PM
CFrame it.

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:57 PM
Even after CFraming it GripForward refuses to change.
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 05:58 PM
Template I used

CFrame.new(
-- Position
GripPos.x, GripPos.y, GripPos.z,
-- Rotation matrix
GripRight.x, GripUp.x, -GripForward.x,
GripRight.y, GripUp.y, -GripForward.y,
GripRight.z, GripUp.z, -GripForward.z
)

What it looks like

tool.Grip = CFrame.new(
-- Position
0.7, 0, 0,
-- Rotation matrix
1, 0, .3,
0, 1, 0,
0, 0, 1
)

What it Get

GripForward = 0, 0, -1
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 06:00 PM
The X argument of grip forward is the culprit and honestly I don't know how to change it.
Report Abuse
97neko is not online. 97neko
Joined: 14 Sep 2014
Total Posts: 16159
12 May 2015 06:04 PM
if you can barely script, you shouldn't be trying to make an FPS gun lol

無料の魂
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 06:05 PM
Well I did, and I will god dammit. Now what the hell is with this argument? Is there any way possible to work around it?
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
12 May 2015 06:22 PM
FPS guns have been made before. How did they get past this? I'm stumped. If I can't figure it out soon I might just not include scopes in my game.
Report Abuse
97neko is not online. 97neko
Joined: 14 Sep 2014
Total Posts: 16159
12 May 2015 06:31 PM
http://www.roblox.com/games/240952645/EA-Development-of-Global-Weaponry

?

無料の魂
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