Universal Script 📌
2.0k Views
334 Executions

XxWallProtectionxX Legacy

Universal Script 📌
XxLemon_WolfyxX
XxLemon_WolfyxXPublished 10
5 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
Universal Script 📌
525.9k
336.7k
Bumped 39 minutes ago
Script hub
2.4k
2.2k
Bumped 2 hours ago
Key System
Universal Script 📌
152
15
Approved 2 hours ago
Script hub
2.8M
661.5k
Bumped 3 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
182
20
Approved 4 hours ago