|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 May 2015 05:29 PM |
| use userinputservice fr00b then ill help |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 12 May 2015 05:31 PM |
| Theres an example of it in my models. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 12 May 2015 05:33 PM |
Oh wait i mean TheNewChicken's models
keep fotgetting my main is banned for 3 days.. |
|
|
| Report Abuse |
|
|
|
| 12 May 2015 05:36 PM |
| And his user isn't found because he's banned. Why does this have to happen ;-; |
|
|
| Report Abuse |
|
|
|
| 12 May 2015 05:41 PM |
| why can't it be editable??? FOR GODS SAKE |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 12 May 2015 05:57 PM |
| Even after CFraming it GripForward refuses to change. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|