Run it
Copy the script and paste it into your executor.
()
.Players.LocalPlayer:():()
ScreenGui = .()
Button = .()
ScreenGui.Name =
ScreenGui.Parent = .Players.LocalPlayer:()
ScreenGui.ResetOnSpawn =
Button.Name =
Button.Parent = ScreenGui
Button.BackgroundColor3 = .(, , )
Button.Position = .(, -, , -)
Button.Size = .(, , , )
Button.Text =
Button.TextColor3 = .(, , )
Button.TextSize =
RunService = :()
player = .Players.LocalPlayer
camera = .Workspace.CurrentCamera
isFacingForward =
()
character = player.Character player.CharacterAdded:()
humanoidRootPart = character:()
currentPosition = humanoidRootPart.Position
lookVector = camera.CFrame.LookVector
flatLookVector = .(lookVector.X, , lookVector.Z).Unit
newCFrame = .(currentPosition, currentPosition + flatLookVector)
humanoidRootPart.CFrame = newCFrame
()
connection
connection = RunService.RenderStepped:(()
isFacingForward
()
connection:()
)
Button.MouseButton1Click:(()
isFacingForward = isFacingForward
isFacingForward
Button.Text =
()
Button.Text =
)
dragging, dragInput, mousePos, framePos
Button.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
mousePos = input.Position
framePos = Button.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
Button.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
Button.InputChanged:((input)
input == dragInput dragging
delta = input.Position - mousePos
Button.Position = .(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
)
()
player = .Players.LocalPlayer
player.CharacterAdded:(()
)Khen Macro

Universal