I'm trying to move a part to different positions that are out into the string value. Basically on click, the parts position is taken from the string value and will make the part move.
Here's the script:
local location = script.Parent.Parent.Parent.Parent.Parent.TardisScreen.Screen.SurfaceGui.LocationFrame.Location local function click() local startCFrame = CFrame.new(location.Value) local model = game.Workspace.DefaultExterior model.PrimaryPart = game.Workspace.DefaultExterior.BasePart wait(0.1) model:SetPrimaryPartCFrame(startCFrame) end script.Parent.Lever.Use.MouseClick:Connect(click)
Any help is appreciated :)
I think you need to mark the position where you want the part to move.