Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
ReplicatedStorage = :()
Workspace = :()
UserInputService = :()
player = Players.LocalPlayer
camera = Workspace.CurrentCamera
Event = ReplicatedStorage:():()
targetPart = .()
targetPart.Name =
targetPart.Shape = .PartType.Ball
targetPart.Size = .(, , )
targetPart.Material = .Material.Neon
targetPart.Color = .(, , )
targetPart.CanCollide =
targetPart.Anchored =
targetPart.Parent = Workspace
RunService.RenderStepped:(()
character = player.Character
character character:()
camCFrame = camera.CFrame
lookVector = camCFrame.LookVector
pitch = .(lookVector.Y)
alpha = .((-pitch) / (.pi / ), , )
fixedOffset = - + (alpha * (- - (-)))
finalPosition = camCFrame.Position + (lookVector * fixedOffset)
targetPart.Position = finalPosition
)
pg = player:()
gui = .(, pg)
gui.Name =
gui.ResetOnSpawn =
gui.IgnoreGuiInset =
btn = .(, gui)
btn.Size = .(, , , )
btn.Position = .(, , , )
btn.BackgroundColor3 = .(, , )
btn.Text =
btn.TextColor3 = .(, , )
btn.TextSize =
btn.Font = .Font.SourceSansBold
btn.Active =
btn.Draggable =
c = .(, btn)
c.CornerRadius = .(, )
s = .(, btn)
s.Color = .(, , )
s.Thickness =
dragging, dInput, dStart, sPos, moved = , , , ,
btn.InputBegan:((io)
moved (io.UserInputType == .UserInputType.MouseButton1 io.UserInputType == .UserInputType.Touch)
dragging =
dStart = io.Position
sPos = btn.Position
io.Changed:(()
io.UserInputState == .UserInputState.End dragging
dragging =
moved =
)
)
btn.InputChanged:((io)
moved (io.UserInputType == .UserInputType.MouseMovement io.UserInputType == .UserInputType.Touch)
dInput = io
)
UserInputService.InputChanged:((io)
moved dragging io == dInput
delta = io.Position - dStart
btn.Position = .(sPos.X.Scale, sPos.X.Offset + delta.X, sPos.Y.Scale, sPos.Y.Offset + delta.Y)
)
btn.MouseButton1Down:(()
dragging
btn.BackgroundColor3 = .(, , )
)
btn.MouseButton1Up:(()
btn.BackgroundColor3 = .(, , )
)
btn.MouseButton1Click:(()
dragging
character = player.Character
character
.(()
RunService.Heartbeat:()
spawnPosition = targetPart.Position
camCFrame = camera.CFrame
_, yaw, _ = camCFrame:()
newCFrame = camCFrame.Rotation + spawnPosition
rotationVector = .(, .(yaw), )
(()
Event:(
,
newCFrame,
rotationVector
)
)
)
)A helpful script for respawn the pallet so fast as your ping helps with fightes and you can move the button just for one time

Universal