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

How would you use CFrame of Player?

How would you use the players position and move a object a certain position away from player?

1 comment

0

Could you edit your post to include more information?

1 answer

If your talking about the character, then u can simply get the position like this from server script, then change a part's CFrame which has the same or similar position as the character to move away from character.

local Part=game.Workspace.Part
game.Players.PlayerAdded:connect(function(Player) --when player joins game
	local Character=Player.Character--gets character, which is physical aspect of player
	Part.CFrame=CFrame.new(Character.Position+Vector3.new(10,10,10)
end

hope this helped! I didnt test btw, may have a bug.

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