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

Is there anyway to create something at the players hand without a tool?

Asked by 5 years ago

I am trying to make a script that clones something and sets the CFrame for it on the right hand. The problem is from what iv'e seen the right hand does not have a CFrame and i'm getting the error "CFrame is not a valid member of Model" is there anyway to do this?

0
that errors because Model doesn’t have a cframe property User#19524 175 — 5y
0
set the PrimaryPart of a mode to some part in your mode and use Model:SetPrimaryPartCFrame() User#19524 175 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

Hi Waffle,

What do you mean the Right Hand doesn't have a CFrame? It sure as heck does! Here, this is how you can make a part appear at the right hand:

local part = Instance.new("Part");
part.CanCollide = false;
part.Anchored = true;
-- Properties 
part.Parent = workspace;
part.CFrame = workspace.KingLoneCat.RightHand.CFrame;

As you can see, that sets the part's CFrame to the Character's RightHand's CFrame.

Hope I helped and have a wonderful day/night.

Thanks,

Best regards,

~~ KingLoneCat

0
what's with the semi collins? the8bitdude11 358 — 5y
0
Thanks so much its finally working Waffle_Blox 3 — 5y
0
The semicolons are a habit that I've developed because other languages use it. No problem, glad to help Waffle. KingLoneCat 2642 — 5y
Ad

Answer this question