Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help Me On This Script muahahsdhhaha?

I Tried TO DO THIS SCRIPT BUT NOOO IT NOOO WORKZ D: HALP ME PLEAZZZ

LA = script.Parent:FindFirstChild("Left Arm")
RA = script.Parent:FindFirstChild("Right Arm")
LL = script.Parent:FindFirstChild("Left Leg")
RL = script.Parent:FindFirstChild("Right Leg")

LA.Rotation = BrickRotation.new(96.2, -4.595, 163.317)

The Rotation Is Broken ;o

1 answer

Rotation is actually done through CoordinateFrame or through the Rotation property of the part.

LA = script.Parent:FindFirstChild("Left Arm");
RA = script.Parent:FindFirstChild("Right Arm");
LL = script.Parent:FindFirstChild("Left Leg");
RL = script.Parent:FindFirstChild("Right Leg");

LA.CFrame = LA.CFrame*CFrame.Angles(math.rad(96.2), math.rad(-4.595), math.rad(163.317));

or, if you wish to apply it to all those parts.

local parts = {
script.Parent:FindFirstChild("Left Arm");
script.Parent:FindFirstChild("Right Arm");
script.Parent:FindFirstChild("Left Leg");
script.Parent:FindFirstChild("Right Leg")
};
for _,__ in next,parts do
__.CFrame = __.CFrame*CFrame.Angles(math.rad(96.2), math.rad(-4.595), math.rad(163.317));
end;

1 comment

2

Remember; the Rotation properties work in degrees and CFrame works in radians. Use math.rad(deg) to convert degrees to radians.

This discussion is preserved as it was. New answers, comments, and votes are closed.