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

What's wrong with this script?

Asked by
Avectus 120
9 years ago

I've put the code below in a LocalScript and inside StarterGui to test how CFrame works.

local Player = game.Players.LocalPlayer
local RArm = Player.Character["Right Arm"]

RArm.C1 = CFrame.new(5, 4, 2) * CFrame.fromEulerAnglesXYZ(1,5,2)

When I play the game nothing happens, why?

0
I thing its called "Right Arm".. Do you have an output error? fahmisack123 385 — 9y
0
Oh, I changed it to Right Arm with a space and now it says 'C1 is not a valid member of Part'. Avectus 120 — 9y

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

C1 is a property of Welds, not Parts. Try using the CFrame property instead.

Ad

Answer this question