Universal Script 📌
16 Views
0 Executions

Magnet Boots

Universal Script 📌
cvexe
cvexeFirst script
2 days ago · Updated

Reviewed by QueueSherlockPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Standard script that anchors the character to a surface while still allowing movement across the deck, it includes smooth motion for navigating stairs and elevated areas, as well as the ability to jump safely (Universal btw, so it works for more than just Ocean Disaster)

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local localPlayer = Players.LocalPlayer
local isLocked = false
local lockedPart = nil
local relativeCFrame = nil
local localShipUp = Vector3.yAxis
local connections = {}

local isJumping = false
local verticalVelocity = 0
local jumpRequested = false

local idleTrack = nil
local walkTrack = nil
local jumpTrack = nil

local guiParent = (gethui and gethui()) or game:GetService("CoreGui")
if guiParent:FindFirstChild("SurfaceLockGUI") then
    guiParent.SurfaceLockGUI:Destroy()
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "SurfaceLockGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = guiParent

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 180, 0, 80)
mainFrame.Position = UDim2.new(0.8, 0, 0.4, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Parent = screenGui

local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 8)
uiCorner.Parent = mainFrame


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
20
0
Approved 10 minutes ago
Universal Script 📌
10
1
Approved 17 minutes ago
Universal Script 📌
15
0
Approved 18 minutes ago
Key System
Script hub
298.2k
996.4k
Bumped 28 minutes ago
Key System

Script hub

#17 this month

Verified script badgeAxon Hub | 100+ Games & 3900+ Features

Universal Script 📌
23
2
Approved 38 minutes ago
Universal Script 📌
16
1
Approved 39 minutes ago