Universal Script 📌
2.0k Views
448 Executions

XxWallProtectionxX Legacy

Universal Script 📌
XxLemon_WolfyxX
XxLemon_WolfyxX100K executions
6 months ago
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

WELCOME to teh new script! This one is entirely made for fun, and require no keybinds. - - - Instructions: Just click some player to protect their back from W+S (BACKSHOTS) Click that same player or someone else to stop following and protecting.

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

local localPlayer = Players.LocalPlayer
local mouse = localPlayer:GetMouse()

local targetPlayer = nil
local connection = nil

local FOLLOW_DISTANCE = 1.0     -- How close do you want to be to the back of the player..
local STOP_DISTANCE = 0.6 -- Stop where exactly it is.
local MAX_SPEED = 16 -- how fast can you follow to the player

local function stopFollowing()
    targetPlayer = nil
    if connection then
        connection:Disconnect()
        connection = nil
    end
    
    local char = localPlayer.Character
    if char then
        local hum = char:FindFirstChild("Humanoid")
        local root = char:FindFirstChild("HumanoidRootPart")
        if hum then
            hum.PlatformStand = false
            hum.WalkSpeed = 16
        end
        if root then
            root.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
        end
    end
end

local function startFollowing(target)
    targetPlayer = target
    if connection then connection:Disconnect() end
    
    connection = RunService.Heartbeat:Connect(function()


Comments

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

More universal scripts

See all
Script hub
376
1.7k
Bumped 23 minutes ago
Key System
Script hub
78
18
Approved 3 hours ago

Script hub

Blythe

Universal Script 📌
122
289
Approved 4 hours ago
Universal Script 📌
139
605
Approved 4 hours ago
Universal Script 📌
1.9k
7.2k
Bumped 6 hours ago
Universal Script 📌
7.9k
13.3k
Bumped 7 hours ago