Run it
Copy the script and paste it into your executor.
using UnityEngine;
[()]
public class NoclipController :
{
public float moveSpeed = f;
public float boostMultiplier = f;
public float mouseSensitivity = f;
public bool lockCursor = ;
float yaw = f;
float pitch = f;
void ()
{
angles = transform.eulerAngles;
yaw = angles.y;
pitch = angles.x;
(lockCursor) Cursor.lockState = CursorLockMode.Locked;
}
void ()
{
// Rotação com mouse
float mx = Input.() * mouseSensitivity;
float my = -Input.() * mouseSensitivity;
yaw += mx;
pitch += my;
pitch = Mathf.(pitch, -f, f);
transform.rotation = Quaternion.(pitch, yaw, f);
// Movimento
input = new (Input.(), , Input.());
// (subir/descer)
(Input.(KeyCode.E)) input.y += f;
(Input.(KeyCode.Q)) input.y -= f;
float speed = moveSpeed;
(Input.(KeyCode.LeftShift) || Input.(KeyCode.RightShift)) speed *= boostMultiplier;
movement = transform.(input) * speed * Time.deltaTime;
transform.position += movement;
}
}extends Spatial
export var speed :=
export var boost :=
export var sensitivity :=
var yaw :=
var pitch :=
func ():
Input.(Input.MOUSE_MODE_CAPTURED)
func (event):
event is InputEventMouseMotion:
yaw -= event.relative.x * sensitivity *
pitch -= event.relative.y * sensitivity *
pitch = (pitch, -, )
rotation = (pitch, yaw, )
func (delta):
var dir = .ZERO
Input.(): dir -= transform.basis.z
Input.(): dir += transform.basis.z
Input.(): dir -= transform.basis.x
Input.(): dir += transform.basis.x
Input.(): dir += transform.basis.y
Input.(): dir -= transform.basis.y
var s = speed
Input.(): s *= boost
dir != .ZERO:
translation += dir.() * s * deltaimport pygame, sys
pygame.()
w,h = ,
screen = pygame.display.((w,h))
clock = pygame.time.()
x,y = w//, h//
speed =
True:
dt = clock.()/
e pygame.event.():
e.type == pygame.QUIT:
pygame.(); sys.()
keys = pygame.key.()
dx = (keys[pygame.K_d] - keys[pygame.K_a]) * speed * dt
dy = (keys[pygame.K_s] - keys[pygame.K_w]) * speed * dt
keys[pygame.K_LSHIFT]: dx *= ; dy *=
x += dx
y += dy
screen.((,,))
# só como referência — não há colisão
pygame.draw.(screen, (,,), (,,,))
pygame.draw.(screen, (,,), (,,,))
pygame.draw.(screen, (,,), ((x),(y)), )
pygame.display.()
ReplicatedStorage = :()
Players = :()
adminEvent = ReplicatedStorage:()
adminEvent
adminEvent = .()
adminEvent.Name =
adminEvent.Parent = ReplicatedStorage
ADMINS = {
[] = ,
[] = ,
}
(player)
player
ADMINS[player.UserId] ==
adminEvent.OnServerEvent:((player, action, params)
(player)
(player.Name .. .. (action))
action ==
adminEvent:(player, , {})
action ==
target = params params.targetPlayer
(target) == target:() target.Character
target:()
action ==
target = params params.targetPlayer
pos = params params.position
(target) == target:() target.Character (pos) ==
hrp = target.Character:()
hrp hrp.CFrame = .(pos)
( .. (action))
)
Players = :()
ReplicatedStorage = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
adminEvent = ReplicatedStorage:()
isAdmin =
adminEvent:()
adminEvent.OnClientEvent:((action, data)
action ==
isAdmin =
()
)
flying =
flySpeed =
bodyVelocity =
bodyGyro =
noclip =
connections = {}
()
player.Character
noclip =
_, part (player.Character:())
part:()
part.CanCollide =
Players = :()
ReplicatedStorage = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
adminEvent = ReplicatedStorage:()
isAdmin =
adminEvent:()
adminEvent.OnClientEvent:((action, data)
action ==
isAdmin =
()
)
flying =
flySpeed =
bodyVelocity =
bodyGyro =
noclip =
connections = {}
()
player.Character
noclip =
_, part (player.Character:())
part:()
part.CanCollide =
Eo eo

Universal