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: Help with Welds

Previous Thread :: Next Thread 
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 03:30 PM
I made animations for my game, and when I went on it with my friends the person who had the sword was doing the regular animations. However, for the other players the animation looked messed up. Please help!!
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 03:34 PM
bump
Report Abuse
agrotrona is not online. agrotrona
Joined: 21 Sep 2009
Total Posts: 129
02 Dec 2013 03:35 PM
I am not really confortable with roblox animation's system but I can maybe help you if you give me more precisions.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 03:39 PM
I meant motor6d's sorry. Anyway, my game has its own animations made with me. It also doesn't use the tool system. It equips the tool and all fine, but my animation looks different for each person.It basically just changes the C0 properties and then puts them back.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 03:48 PM
bump
Report Abuse
agrotrona is not online. agrotrona
Joined: 21 Sep 2009
Total Posts: 129
02 Dec 2013 03:53 PM
I don't understand your problem? Your code is just wrong I think...
Report Abuse
rjniscool1 is not online. rjniscool1
Joined: 28 Sep 2008
Total Posts: 123
02 Dec 2013 04:07 PM
You're going to have to post your code for us to do anything.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 04:19 PM
Okay here is my animations. Its in a local script... And this is called throughout swords and stuff I have.
_G.Slash=function()
coroutine.resume(coroutine.create(function()
if _G.AnimationDebounce==true then return end
_G.AnimationDebounce=true

_G.RightArmActive=false
_G.Character.Torso["Right Shoulder"].DesiredAngle=math.pi/2
_G.Character.Torso["Right Shoulder"].MaxVelocity=.3

for i = 1,7 do
_G.Character.Torso["Right Shoulder"].C0=_G.Character.Torso["Right Shoulder"].C0*CFrame.Angles(math.rad(5),0,math.rad(3))
wait()
end
wait(.2)

_G.Character.Torso["Right Shoulder"].DesiredAngle=0

for i = 1,5 do
_G.Character.HumanoidRootPart.RootJoint.C0=_G.Character.HumanoidRootPart.RootJoint.C0*CFrame.Angles(0,0,math.rad(8))
wait()
end


for i = 1,7 do
_G.Character.Torso["Right Shoulder"].C0=_G.Character.Torso["Right Shoulder"].C0*CFrame.Angles(-math.rad(5),0,-math.rad(3))
wait()
end

for i = 1,10 do
_G.Character.HumanoidRootPart.RootJoint.C0=_G.Character.HumanoidRootPart.RootJoint.C0*CFrame.Angles(0,0,-math.rad(4))
wait()
end

_G.RightArmActive=true
_G.Character.Torso["Right Shoulder"].MaxVelocity=.1
_G.Character.Torso["Right Shoulder"].C0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
_G.AnimationDebounce=false
end))
end
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 04:27 PM
bump
Report Abuse
rjniscool1 is not online. rjniscool1
Joined: 28 Sep 2008
Total Posts: 123
02 Dec 2013 04:27 PM
Im about as thumped as you are on this, but mastrj is one of the masters of animations, i'd recommend looking at his scripts on his dragonball game.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 04:29 PM
Do you think it has to do with it being a local script?
Report Abuse
rjniscool1 is not online. rjniscool1
Joined: 28 Sep 2008
Total Posts: 123
02 Dec 2013 04:31 PM
What is the local script even for, anywho?
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
02 Dec 2013 04:33 PM
When I create animations, I don't use motors. I just create new welds. For example:

part0= --the part
part1= --the part
weld=Instance.new("Weld",parent)
weld.C0= --cframe values
weld.C1= --cframe values


Then you can just change them like that. I've honestly never even messed with Motors before.
Report Abuse
rjniscool1 is not online. rjniscool1
Joined: 28 Sep 2008
Total Posts: 123
02 Dec 2013 04:35 PM
^I just remembered that. And you beat me to it x_x
But yeah, welding is the way to go.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
02 Dec 2013 04:37 PM
Well mine uses DesiredAngle qq
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
02 Dec 2013 04:38 PM
I would help you however I can't because, like I said, I've never used motors before.
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