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 » Scripting Helpers
Home Search
 

Re: arm won't animate?

Previous Thread :: Next Thread 
drahsid5 is not online. 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 is not online. 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
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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