The script is teleporting both the player and the object but it isn't turning the object
function moveobject(object,pos,ang)
local newCFrame = CFrame.new(pos)
object:SetPrimaryPartCFrame(newCFrame)
local ObjectCFrame = object:GetPrimaryPartCFrame()
local newCFrame1 = ang
ObjectCFrame = newCFrame1
end
game.ReplicatedStorage.HaveBattle.OnClientEvent:Connect(function()
script.Parent.TextButton1.Visible = true
moveobject(workspace.GUI_tester, Vector3.new(342, 64, -203.5), CFrame.Angles(0, math.rad(180), 0))
moveobject(game.Players.LocalPlayer.Character, Vector3.new(342, 64, -157.5), CFrame.Angles(0, 0, 0))
end)
