Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
TweenService = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoidRootPart = character:()
speed =
enabled =
keysDown = {}
lastPos =
(char)
character = char
humanoidRootPart = character:()
lastPos = humanoidRootPart.Position
player.CharacterAdded:(setupCharacter)
ScreenGui = .(, :())
ScreenGui.Name =
Frame = .(, ScreenGui)
Frame.Size = .(, , , )
Frame.Position = .(, , , )
Frame.BackgroundColor3 = .(,,)
Title = .(, Frame)
Title.Size = .(,,,)
Title.Text =
Title.TextColor3 = .(,,)
Title.BackgroundTransparency =
Title.Font = .Font.SourceSansBold
Title.TextScaled =
ToggleButton = .(, Frame)
ToggleButton.Size = .(,,,)
ToggleButton.Position = .(,,,)
ToggleButton.Text =
ToggleButton.BackgroundColor3 = .(,,)
ToggleButton.TextScaled =
SpeedBox = .(, Frame)
SpeedBox.Size = .(,,,)
SpeedBox.Position = .(,,,)
SpeedBox.Text = (speed)
SpeedBox.PlaceholderText =
SpeedBox.BackgroundColor3 = .(,,)
SpeedBox.TextColor3 = .(,,)
SpeedBox.TextScaled =
Status = .(, Frame)
Status.Size = .(,,,)
Status.Position = .(,,,)
Status.Text =
Status.TextColor3 = .(,,)
Status.BackgroundTransparency =
Status.TextScaled =
dragToggle, dragStart, startPos
dragSpeed =
(input)
delta = input.Position - dragStart
pos = .(startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
TweenService:(Frame, TweenInfo.(dragSpeed), {Position = pos}):()
Frame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragToggle =
dragStart = input.Position
startPos = Frame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragToggle =
)
)
UserInputService.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragToggle
(input)
)
ToggleButton.MouseButton1Click:(()
enabled = enabled
enabled
ToggleButton.Text =
ToggleButton.BackgroundColor3 = .(,,)
Status.Text =
lastPos = humanoidRootPart.Position
ToggleButton.Text =
ToggleButton.BackgroundColor3 = .(,,)
Status.Text =
keysDown = {}
)
SpeedBox.FocusLost:(()
val = (SpeedBox.Text)
val
speed = val
)
UserInputService.InputBegan:((input, gp)
gp
enabled
keysDown[input.KeyCode] =
)
UserInputService.InputEnded:((input, gp)
gp
enabled
keysDown[input.KeyCode] =
)
RunService.Heartbeat:((dt)
enabled humanoidRootPart character
cam = .CurrentCamera
forward = cam.CFrame.LookVector
right = cam.CFrame.RightVector
dir = .(,,)
keysDown[.KeyCode.W]
dir = dir + .(forward.X, , forward.Z)
keysDown[.KeyCode.S]
dir = dir - .(forward.X, , forward.Z)
keysDown[.KeyCode.A]
dir = dir - .(right.X, , right.Z)
keysDown[.KeyCode.D]
dir = dir + .(right.X, , right.Z)
keysDown[.KeyCode.Space]
dir = dir + .(,,)
keysDown[.KeyCode.LeftShift]
dir = dir + .(,-,)
dir.Magnitude >
dir = dir.Unit
step = dir * speed * dt
lastPos = humanoidRootPart.Position + step
character:(.(lastPos, lastPos + cam.CFrame.LookVector))
lastPos
character:(.(lastPos, lastPos + cam.CFrame.LookVector))
)Evolve 3D [Unstable]