#Running Script Help!

22 messages · Page 1 of 1 (latest)

glossy girder
#

could you send me the code as text rq?

#

like ```
example

inner ridge
glossy girder
#

put 3 of ` at the top and bottom of the script

inner ridge
#
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- Supposedly checks for the player when they get added 
local function onCharacterAdded(Character)
    local humanoid = Character:WaitForChild("Humanoid")
end

-- Supposedly checks for the player when they connect or join
player.CharacterAdded:Connect(onCharacterAdded)

-- This Gets Reference for the Players Humanoid
local humanoid = character:WaitForChild("Humanoid")

-- This gets the reference for Left Shift
local userInputService = game:GetService("UserInputService")
local leftShiftButton = Enum.KeyCode.LeftShift

-- This Checks when the Left Shift Button is Pressed
userInputService.InputBegan:Connect(function(input, gameProcessed)
    if input.KeyCode == leftShiftButton then
        humanoid.WalkSpeed = 32
    end
end)

-- This Checks when the Left Shife Button is Released
userInputService.InputEnded:Connect(function(input, gameProcessed)
    if input.KeyCode == leftShiftButton then
        humanoid.WalkSpeed = 16
    end
end)```
sleek ore
#

Because the humanoid change when you die

inner ridge
sleek ore
#

Remove the local here

#

And add a
local humanoid
at the top

flint hamlet
inner ridge
#
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

-- Supposedly checks for the player when they get added 
local function onCharacterAdded(Character)
    humanoid = Character:WaitForChild("Humanoid")
end

-- Supposedly checks for the player when they connect or join
player.CharacterAdded:Connect(onCharacterAdded)

-- This Gets Reference for the Players Humanoid
local humanoid = character:WaitForChild("Humanoid")

-- This gets the reference for Left Shift
local userInputService = game:GetService("UserInputService")
local leftShiftButton = Enum.KeyCode.LeftShift

-- This Checks when the Left Shift Button is Pressed
userInputService.InputBegan:Connect(function(input, gameProcessed)
    if input.KeyCode == leftShiftButton then
        humanoid.WalkSpeed = 32
    end
end)

-- This Checks when the Left Shife Button is Released
userInputService.InputEnded:Connect(function(input, gameProcessed)
    if input.KeyCode == leftShiftButton then
        humanoid.WalkSpeed = 16
    end
end)```
#

@sleek ore

sleek ore
#

Works ?

inner ridge
#

When I die I cannot sprint still

sleek ore
#

Try removing this local

inner ridge
#

That did it! Thank you! Its the stupid mistakes that always get you lol

#

Im learning either way

#

but thank you again

#

👍

prisma badge
#

hey

#

script somthing where the first animacon slot will be play when reaching 2 inches near an obyject (both sepreate)

#

😀 \