#Sprint Script

1 messages · Page 1 of 1 (latest)

magic hedge
#
-- LOCAL SCRIPT , STARTER CHARACTER SCRIPT

local ContextActionService = game:GetService("ContextActionService")
local Players = game:GetService("Players")
local Keycode = Enum.KeyCode.LeftShift
local Increment = 16
local IsIncremented = false
local Player = Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")

ContextActionService:BindAction("Sprint",function(inputname : string, inputstate : Enum.UserInputState, inputobject : InputObject)
    if inputstate == Enum.UserInputState.Begin then
        Humanoid.WalkSpeed += Increment
        IsIncremented = true
    elseif inputstate == Enum.UserInputState.End then
        Humanoid.WalkSpeed -= Increment
        IsIncremented = false
    else
        if IsIncremented then
            Humanoid.WalkSpeed -= Increment
            IsIncremented = false
        end
    end
end,false,Keycode)
fathom shard
#

I'd recommend doing it from the server

violet quartz
magic kernel
#

I'd recommend doing it client & server ;3

magic hedge
#

Stop forcing people doing on server or what ever it is, just stop.

violet quartz
rancid cobalt
#

no reason to do on server

#

only thing to do on server is sanity check

#

if player go above sprint speed

magic hedge
#

:/

#

Exploit is really easy to make, I can even do it

#

you can be Roblox developer or hacker

#

But developer are responsible for anti cheat

#

You should only worry about anti cheat IF your game slowly getting more popular.