Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 02 Aug 2013 03:28 PM |
--I don't want this in a tool, so it's in starterpack.
plyr = script.Parent.Parent.Parent mouse = plyr:GetMouse() function onKeyDown(key) Key = key:lower() if key == "z" then RightShoulder = plyr.Character.Torso["Right Shoulder"] LeftShoulder = plyr.Character.Torso["Left Shoulder"] RightHip = plyr.Character.Torso["Right Hip"] LeftHip = plyr.Character.Torso["Left Hip"] RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(1, 0, 0) LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(-1, 0, 0) end end mouse.KeyDown:connect(onKeyDown) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 02 Aug 2013 03:32 PM |
| Um, that didn't change the output. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 02 Aug 2013 03:33 PM |
Then it should be .Parent.Parent, because:
-Player PARENT --StarterGear PARENT ---Script
-.- Or, in a local script (only way the getmouse will work): Game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 02 Aug 2013 03:36 PM |
wait() plyr = game.Players.LocalPlayer while plyr == nil do wait() end Character = plyr.Character while character == nil do wait() end wait() mouse = plyr:GetMouse()
function onKeyDown(key) Key = key:lower() if key == "z" then RightShoulder = Character.Torso["Right Shoulder"] LeftShoulder = Character.Torso["Left Shoulder"] RightHip = Character.Torso["Right Hip"] LeftHip = Character.Torso["Left Hip"] RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(1, 0, 0) LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(-1, 0, 0) end end mouse.KeyDown:connect(onKeyDown)
local script |
|
|
| Report Abuse |
|
|