just doing some recodes and roblox studio tells me i have something wrong in my script and it only has the ")" highlighted
heres the code
UserInputService.InputEnded:Connect(function(input)
print("WalkSpeed: " .. tonumber(Humanoid.WalkSpeed))
print("Moving?: " .. tostring(AmMoving))
print("Running: " .. tostring(AmRunning))
print("Stamina: " .. tonumber(MyStamina) .. " / ".. tonumber(MyMaxStamina))
if input.KeyCode == Enum.KeyCode.W then
Is_W = false
end
if input.KeyCode == Enum.KeyCode.A then
Is_A = false
end
if input.KeyCode == Enum.KeyCode.S then
Is_S = false
end
if input.KeyCode == Enum.KeyCode.D then
Is_D = false
end
if Is_W == false then
AmMoving = false
else
if Is_A == false then
AmMoving = false
else
if Is_S == false then
AmMoving = false
else
if Is_D == false then
AmMoving = false
end
end
end
if input.KeyCode == Enum.KeyCode.LeftShift then
AmRunning = false
Humanoid.WalkSpeed = MyWalkspeed
end
while AmRunning == false do
print("WalkSpeed: " .. tonumber(Humanoid.WalkSpeed))
print("Moving?: " .. tostring(AmMoving))
print("Running: " .. tostring(AmRunning))
print("Stamina: " .. tonumber(MyStamina) .. " / ".. tonumber(MyMaxStamina))
if MyStamina < MyMaxStamina then
MyStamina = MyStamina + 1
end
task.wait(0.1)
end
end) -- The highlighted ")" is in this line
