Run it
Copy the script and paste it into your executor.
Players = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
player.CharacterAdded:((c)
character = c
)
currentModel =
guiVisible =
()
parts = {}
_,v (:())
v:()
.(parts,v)
spawnPart =
_,v (:())
v:() .(.(v.Name),)
spawnPart = v
spawnPos = spawnPart spawnPart.Position .zero
center = .zero
#parts >
_,p (parts)
center += p.Position
center = center / #parts
mid = (spawnPos + center) /
safeOffset = .(
.(,),
.(,),
.(,)
)
mid + safeOffset
()
()
(container)
parts = {}
_,v (container:())
v:()
.(parts,v)
parts
(container)
parts = (container)
#parts ==
total = .zero
_,p (parts)
total += p.Position
center = total / #parts
closest = parts[]
dist = (closest.Position - center).Magnitude
_,p (parts)
d = (p.Position - center).Magnitude
d < dist
closest = p
dist = d
closest
(container)
_,v (container:())
v:() .(.(v.Name),)
v
(part)
character character:() part
character.HumanoidRootPart.CFrame = part.CFrame + .(,,)
(model, position)
_,v (model:())
v:()
v.Anchored =
v.CanCollide =
model:()
model:(.(position))
(assetId)
id = (assetId)
id
success, objects = (()
:(..id)
)
success objects #objects ==
model = objects[]
model.Parent =
(model, ())
currentModel = model
(frame, toggleBtn, contentFrame)
guiVisible = guiVisible
contentFrame.Visible = guiVisible
guiVisible
frame.Size = .(,,,)
toggleBtn.Text =
frame.Size = .(,,,)
toggleBtn.Text =
()
old = player.PlayerGui:()
old old:()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
frame = .()
frame.Size = .(,,,)
frame.Position = .(,-,,-)
frame.BackgroundColor3 = .(,,)
frame.Parent = gui
frame.Active =
frame.Draggable =
.(, frame).CornerRadius = .(,)
title = .()
title.Size = .(,,,)
title.BackgroundColor3 = .(,,)
title.Text =
title.Font = .Font.GothamBold
title.TextSize =
title.TextColor3 = .(,,)
title.Parent = frame
.(, title).CornerRadius = .(,)
toggleBtn = .()
toggleBtn.Size = .(,,,)
toggleBtn.Position = .(,,,)
toggleBtn.Text =
toggleBtn.BackgroundColor3 = .(,,)
toggleBtn.TextColor3 = .(,,)
toggleBtn.Font = .Font.GothamBold
toggleBtn.TextSize =
toggleBtn.Parent = frame
.(, toggleBtn).CornerRadius = .(,)
destroyBtn = .()
destroyBtn.Size = .(,,,)
destroyBtn.Position = .(,,,)
destroyBtn.Text =
destroyBtn.Font = .Font.GothamBold
destroyBtn.TextSize =
destroyBtn.BackgroundColor3 = .(,,)
destroyBtn.TextColor3 = .(,,)
destroyBtn.Parent = frame
.(, destroyBtn).CornerRadius = .(,)
contentFrame = .()
contentFrame.Size = .(,,,-)
contentFrame.Position = .(,,,)
contentFrame.BackgroundTransparency =
contentFrame.Parent = frame
input = .()
input.Size = .(,-,,)
input.Position = .(,,,)
input.PlaceholderText =
input.BackgroundColor3 = .(,,)
input.TextColor3 = .(,,)
input.Font = .Font.Gotham
input.TextSize =
input.Parent = contentFrame
.(, input).CornerRadius = .(,)
insertBtn = .()
insertBtn.Size = .(,-,,)
insertBtn.Position = .(,,,)
insertBtn.Text =
insertBtn.BackgroundColor3 = .(,,)
insertBtn.TextColor3 = .(,,)
insertBtn.Font = .Font.GothamBold
insertBtn.TextSize =
insertBtn.Parent = contentFrame
.(, insertBtn).CornerRadius = .(,)
tpSpawnBtn = .()
tpSpawnBtn.Size = .(,-,,)
tpSpawnBtn.Position = .(,,,)
tpSpawnBtn.Text =
tpSpawnBtn.BackgroundColor3 = .(,,)
tpSpawnBtn.TextColor3 = .(,,)
tpSpawnBtn.Font = .Font.GothamBold
tpSpawnBtn.TextSize =
tpSpawnBtn.Parent = contentFrame
.(, tpSpawnBtn).CornerRadius = .(,)
tpCenterBtn = .()
tpCenterBtn.Size = .(,-,,)
tpCenterBtn.Position = .(,,,)
tpCenterBtn.Text =
tpCenterBtn.BackgroundColor3 = .(,,)
tpCenterBtn.TextColor3 = .(,,)
tpCenterBtn.Font = .Font.GothamBold
tpCenterBtn.TextSize =
tpCenterBtn.Parent = contentFrame
.(, tpCenterBtn).CornerRadius = .(,)
confirmFrame = .()
confirmFrame.Size = .(,,,)
confirmFrame.Position = .(,-,,)
confirmFrame.BackgroundColor3 = .(,,)
confirmFrame.Visible =
confirmFrame.Parent = gui
.(, confirmFrame).CornerRadius = .(,)
confirmText = .()
confirmText.Size = .(,,,)
confirmText.BackgroundTransparency =
confirmText.Text =
confirmText.TextColor3 = .(,,)
confirmText.Font = .Font.GothamBold
confirmText.TextSize =
confirmText.Parent = confirmFrame
yesBtn = .()
yesBtn.Size = .(,-,,)
yesBtn.Position = .(,,,)
yesBtn.Text =
yesBtn.BackgroundColor3 = .(,,)
yesBtn.TextColor3 = .(,,)
yesBtn.Font = .Font.GothamBold
yesBtn.Parent = confirmFrame
.(, yesBtn).CornerRadius = .(,)
noBtn = .()
noBtn.Size = .(,-,,)
noBtn.Position = .(,,,)
noBtn.Text =
noBtn.BackgroundColor3 = .(,,)
noBtn.TextColor3 = .(,,)
noBtn.Font = .Font.GothamBold
noBtn.Parent = confirmFrame
.(, noBtn).CornerRadius = .(,)
toggleBtn.MouseButton1Click:(()
(frame, toggleBtn, contentFrame)
)
insertBtn.MouseButton1Click:(()
(input.Text)
)
destroyBtn.MouseButton1Click:(()
currentModel
confirmFrame.Visible =
)
yesBtn.MouseButton1Click:(()
currentModel
currentModel:()
currentModel =
confirmFrame.Visible =
)
noBtn.MouseButton1Click:(()
confirmFrame.Visible =
)
tpSpawnBtn.MouseButton1Click:(()
currentModel
= (currentModel)
()
)
tpCenterBtn.MouseButton1Click:(()
currentModel
center = (currentModel)
center (center)
)
()Inserter model - Clientside - Feature - -Hide gui -Show gui -Destroy/delete model -Tp center | Teleports you to the center of a part in your model -Tp spawn | Teleports you to the spawn part if it is in your model - Modify the lua if you want to make it better