Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my CFrame on my torso when I want it to move my arms?

Asked by 5 years ago

First of all, I will tell you, yes it is a silly question,But I hope you could answer it.I put Cframe and Math.rad on my script and I just rotated my arms using CFrame.fromEulerAnglesXYZ and rotated only my character.Here is the exact script I used

wait(5)

local Client = game.Players.LocalPlayer local Character = Client.Character local Torso = Character.Torso local RightArm = Character["Right Arm"] local LeftArm = Character["Left Arm"] local LeftLeg = Character["Left Leg"] local RightLeg = Character["Right Leg"] local head = Character["Head"]

for i = 1, 10 do RightArm.CFrame = RightArm.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(.1), math.rad(0)) LeftArm.CFrame = RightArm.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(3.14/2), math.rad(0)) end

Thanks in advance

0
use codeblocks, for i, 10 is very random in this case and won't work, I have no idea what this is and any errors? greatneil80 2647 — 5y
0
Your trying to make the arm look like it's animating? Prefer using TweenService instead of for i loops. hellmatic 1523 — 5y
0
Greatneil, For I, 10 makes the script run longer in this case ScripthelpersAlt 0 — 5y
0
Unsatisfied Tween service isn't a loop its a way to modificate parts, Also, TweenService takes very long. ScripthelpersAlt 0 — 5y

Answer this question