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

How Would I Set CFrame Properties The Same As HumanoidRootPart"s On Server Script?

Asked by 3 years ago

I Just realized today that most of my scripts are useless since they are local scripts. But How would Get HumanoidRootPart's CFrame. I Gave My local script So you can get an Idea of what i want

THANKS!!!

Q.OnServerEvent:Connect(function(player)

    local QClone = QSkill:Clone()
    QClone.Parent = game.Workspace
    Q.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,-2.7,0)
end)

1 answer

Log in to vote
0
Answered by 3 years ago

You did it correctly but you have to define what char is. I assume you mean character so you can just insert this on line 2

local char = player.Character
0
Im Trying to Do it on a Server Script and I Only  Want the Clone To stick to the Person That Did it, I already Have all The Variables Set Like char FilthyMonsterPlays 8 — 3y
0
This should make it stick on the player that did it, maybe you meant to add CFrame instead of multiply them? JustinWe12 723 — 3y
Ad

Answer this question