Error: 14:14:51.507 Players.CMB1048.PlayerScripts.LocalScript:22: Expected 'end' (to close 'then' at line 13), got ; did you forget to close 'then' at line 18? - Studio - LocalScript:22 btw sorry i had to repeat this
UserInputService = game:GetService("UserInputService")
local players = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
UserInputService.InputBegan:Connect(function(input,gameProcessed)
--if not gameProcessed then
if input.KeyCode == Enum.KeyCode.LeftShift then
if players:FindFirstChild("Humanoid") then
players.Humanoid.CharacterWalkSpeed = 90
UserInputService.InputEnded:Connect(function(input,gameProcessed)
if input.KeyCode == Enum.KeyCode.LeftShift then
if players:FindFirstChild("Humanoid") then
players.Humanoid.CharacterWalkSpeed = 16
end
end
end)

2 comments
Did not work
wait it workes sorry