Going back to original position. (Model)

  1. What do you want to achieve? If player press 2nd time it will go back to original position

  2. What is the issue? I dont know how to make that.

  3. What solutions have you tried so far? Yes. But nothing.

local Button = script.Parent
local Model = script.Parent.Parent.Parent.Party
rotation = CFrame.Angles(0, math.rad(90), 0)
modelCFrame = Model:GetPivot()

Button.MouseClick:Connect(function(plr)
	if plr:GetRankInGroup(GROUPID) >= GROUPRANK then
	Model:PivotTo(modelCFrame * rotation)
		Model:MoveTo(Vector3.new(-81.226, 5.85, 333.25))
		end
end)

Simply store the original position, and then get it back when you’re needing to teleport them back. Otherwise, since it’s a model, you can just find the original position manually and teleport it there.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.