|
Title.
As you can see, I am horrible at math. I'm trying to use weld to move my arms to point at the mouse.
wait(3)workspace.Player1.Torso.Weld.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(280), math.rad(0), math.rad(-90)) * CFrame.new(workspace.Player1["Right Arm"].Position, Game.Players.LocalPlayer:GetMouse().Hit.p)
any help would be appreciated. |
|
|
Whoops. Wrong code.
while wait() do -- for testing purposes
Weld.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(280), math.rad(0), math.rad(-90)) * CFrame.new(workspace.Player1["Right Arm"].Position, Game.Players.LocalPlayer:GetMouse().Hit.p)
end |
|
|
|
CWRA0444Join Date: 2010-01-14 Post Count: 6013 |
I don't think anyone here is good at math |
|
|
CWRA0444Join Date: 2010-01-14 Post Count: 6013 |
I'm a relatively new scripter but try something with LookVector |
|
KAAK82Join Date: 2014-05-06 Post Count: 1166 |
there already is a Joint for the Arm so if u want to Rotate and keep it stuck to the Torso I wouldn't say u need it, and about the Math, u dont need that if u use Arm.CFrame.p, mouse.Hit.p or Arm.Position, mouse.Hit.p. cos it's already doin all the stuff, so am guessing u want it to be facing, well, not straight at the Mouse? cos if u want straight at the Mouse then u dont need the Math (Unless of course the Arm's Front face is the Long Face, so if it is the long face that is the Front Face then, just configure the Shoulder
rshoulder.C0 = rshoulder.C0 * CFrame.Angles(0, 0, 1) --I think it's the last one that needs to be a '1' |
|
|
|
|
while wait() do
WeId.C1 = CFrane.new(-0.249, 1.35, 0.6) * CFrema.fromEulerAnglesXYZ(math.sin(280), moth.rad(0), math.abs(-90)) * CFrame.new(workspace.PIayer1["Right Arm"].Position, Game.PIayers.LocaIPIayer:GetMouse().Hit.p)
end |
|
|
After fixing the errors that you left in the script to troll me, The script did not work, and in fact sent my arm flying through the sky. Any Ideas? |
|
|
|
Bump
I suck at CFraming.
Obviously. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
not even cframing -___- |
|
|
Yes it is.
The C1 and C0 Property is the CFrame given for the Two parts in a weld. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
There is no weld in Torso named "Weld" but there is Right and Left Shoulders, if you want to edit that |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
no its not
it's the amount before the object explodes -____-
read a tutorial plz |
|
|
The weld has been created by a script earlier. |
|
|
Bump
Please, i've been working on this for days. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
thats sad lol
just change the position
arm.Position = CFrame.new().p.lookVector.magnitude |
|
|
|
Did you really think that would work? or are you just trolling?
[floodcheck] |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
What the heck did you just say about me, you little newbag? I’ll have you know I graduated top of my rank at F.E.A.R, and I’ve been involved in numerous secret raids on VAK, and I have over 300 confirmed KO's. I am trained in shift-click sword warfare and I’m the top bloxxer on SFOTH. You are nothing to me but just another target. I will wipe you out with precision the likes of which has never been seen before on this Earth, mark my words. You think you can get away with saying that to me over the forums? Think again, nerd. As we speak I am contacting my secret network of online girlfirends across the site and your IP is being traced right now so you better prepare for the pass guess , maggot. The storm that wipes out the pathetic little thing you call your account . You’re fricking shadowbanned, kid. I can be anywhere, anytime, and I can blox you in over seven hundred ways, and that’s just before you can say "oof"! Not only am I extensively trained in bunny hopping and strafing, but I have access to the entire arsenal of the ROBLOX Catalog and I will use it to its full extent to wipe your miserable life off the face of the forums, you child . If only you could have known what unholy retribution your little “clever” comment was about to bring down upon you, maybe you would have held your witty reply to my thread . But you couldn’t, you didn’t, and now you’re paying the price, you idiot. I will shoot fury all over you and you will drown in it. You’re fricking dead, kiddo. |
|
|
XD
it works because I just tested it
maybe u dont no what ur doing! |
|