when i reset the walkspeed changes butt… when i wanna change the walkspeed it doesnt do noTHING
THE SCRIPT:
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local h = char.Humanoid
TexasButton.MouseButton1Click:Connect(function()
if tonumber(TextBox.Text)<100 then
h.WalkSpeed = tonumber(TextBox.Text)
else
h.WalkSpeed = 16
end
end)
local myspeedbeforedeath
player.Character:WaitForChild(“Humanoid”).Died:Connect(function()
myspeedbeforedeath = player.Character.Humanoid.WalkSpeed
end)
player.CharacterAdded:Connect(function()
player.Character:WaitForChild("Humanoid").WalkSpeed = myspeedbeforedeath
end)
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.RightControl then
if Frame.Visible == false then
Frame.Visible = true
else
Frame.Visible = false
end
end
end
game:GetService(“UserInputService”).InputBegan:connect(onKeyPress)