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

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

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

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

2 comments

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

0

This should make it stick on the player that did it, maybe you meant to add CFrame instead of multiply them?

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