local Player = game.Players:WaitForChild("MageMasterHD", 10) wait () while true do wait () script.Parent:SetPrimaryPartCFrame(Player.Character.UpperTorso.CFrame) script.Parent:SetPrimaryPartCFrame(script.Parent:GetPrimaryPartCFrame() * CFrame.fromEulerAnglesXYZ(0,0.1,0)) end
If I remove the positioning part, it will be rotated, but I want it to turn and I want it to be positioned, how do I solve this?
ok then,
change script to this maybe
local Player = game.Players:WaitForChild("MageMasterHD", 10) wait () while true do wait () script.Parent:SetPrimaryPartCFrame(Player.Character.UpperTorso.CFrame) script.Parent:SetPrimaryPartCFrame(script.Parent:GetPrimaryPartCFrame() * CFrame.fromEulerAnglesXYZ(0,0.1,0)) end
to (put this in just a script in StarterPlayer>StarterPlayerScripts) XD
Player = script.Parent.Parent--this is the player(or if you only want it to be you then check for it to be your character name): Player = script.Parent.Parent wait () if Player.Name = "MageMasterHD" then while true do wait () (model).CFrame = Player.Character.Humanoid.Torso.CFrame (model).Orientation = (orientation stuff) end end
change (model) to the model:FindPrimary stuff, hope this answers your question :)
Extra credit:
just in case you want to ever teleport a character ONLY use humanoid.Torso, its not actualy ssomething in humanoid its a property actualy that is hidden. :)
example:
character).Humanoid.Torso.CFrame = Vector3.new(x,y,z)