drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 20 Oct 2013 12:00 PM |
I'm trying to animate the arm, blah blah blah, and it seems when I hit R (the set key for then animation to trigger) nothing happens. trigger (local) script: local Player = Game.Players.LocalPlayer local character; repeat wait() character = Player.Character until character local mouse = Player:GetMouse() local function onKeyDown(Key) local debounce = false if not Player then return end if Key:byte() == 114 then script.Parent.Value = true Player.Character.Humanoid.WalkSpeed = 14.5 wait(1.4) Player.Character.Humanoid.WalkSpeed = 16 script.Parent.Value = false end end mouse.KeyDown:connect(onKeyDown) animation (local) script local player = game.Players.LocalPlayer local RightShoulder = player.Character["Right Arm"] local LeftShoulder = player.Character["Left Arm"] function Reload() repeat wait() until script.Parent.Value == true if script.Parent.Parent.Clips.Value == 0 then script.Parent.Value = false Reload() else if script.Parent.Value == true then LeftShoulder.Rotation = Cframe.Angles(0, 0, 0) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(20, -0, 10) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(48.481, 9.847, 17.495) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(67.132, 18.438, 22.887) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(69.57, 15.884, 51.87) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(83.842, 31.061, 46.11) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(76.291, 23.635, 49.59) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(69.57, 15.884, 51.87) wait(0.1) LeftShoulder.Rotation = Cframe.Angles(63.355, 7.941, 53.157) drop = script.Parent.Parent.Clip:clone() drop.Parent = game.Workspace wait(0.1) LeftShoulder.Rotation = Cfrane.Angles(69.57, 15.884, 51.87) wait(0.1) LeftShoulder.Rotation = Cfrane.Angles(76.291, 23.635, 49.59) wait(0.1) LeftShoulder.Rotation = Cfrane.Angles(83.842, 31.061, 46.11) wait(0.1) LeftShoulder.Rotation = Cfrane.Angles(69.57, 15.884, 51.87) wait(0.1) LeftShoulder.Rotation = Cfrane.Angles(0, 0, 0) script.Parent.Parent.Clips.Value = (script.Parent.Parent.Clips.Value - 1) script.Parent.Parent.Clip.Value = 8 Reload() end end end anyone know whats wrong??
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 20 Oct 2013 12:13 PM |
bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
| 20 Oct 2013 12:14 PM |
"CFrane.Angles"
wat
Also, set the position of the weld, because CFrame.Angles by itself will just make the C0 0,0,0*Angles |
|
|
| Report Abuse |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 20 Oct 2013 12:17 PM |
errrr..... I suck with welds... I don't really understand them.
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 20 Oct 2013 01:10 PM |
I read over the weld wiki, I'm even more confused now. =D
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|