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

Is there an easier way to do CFramed welds?

So I'm working on this project where I apply cframed welds to accomplish things such as welding a player's arms so that they grip the weapon, the problem is, i make changes, have to press play solo, and then make more changes. It is taking a lot of time, I was wondering if there was an easier way to do it, or even record the CFrame I want. I have a piece of example code below.

--This code is from inside the function called when the tool is equipped
--RArm is the localplayer's right arm
--Character is the localplayer's character in workspace
--HumRootPart is the HumanoidRootPart of Character
--Should I use CFrame.fromEulerAnglesXYZ or CFrame.Angles? Difference?

local RArmWeld = Instance.new("Weld")
RArmWeld.Parent = Character
RArmWeld.Part0 = RArm
RArmWeld.Part1 = HumRootPart
RArmWeld.C0 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)

3 comments

1

CFrame.Agnles is the same as CFrame.fromEulerAnglesXYZ, just shorter to type out. What you can do is hit play solo and edit the welds in the command bar.. then when you get what you like copy and paste it into the code. If that's what you're asking.

0

Thanks!

0

I did edit the welds but they did not change once in play solo mode...

1 answer

You could make your changes in a test server, and then keep your script changes.

Play solo Test Make Changes Double-Toggle the script's disabled property Test Repeat as needed Exit Play Solo Mode

1 comment

0

ok, but goulstem answered my ques already, thanks anyways!

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