Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does it say that it expected a identifier?

Asked by 4 years ago

UIS.InputBegan:Connect(function(input, gameProcessedEvent) then if Input.KeyCode == Enum.KeyCode.LeftShift player.Character.Huamnoid.WalkSpeed = 250

(It gives me an error for then for some reason someone please help me.

1 answer

Log in to vote
0
Answered by 4 years ago

You forgot then next to the conditional statement. so it should look like like

if Input.KeyCode == Enum.KeyCode.LeftShift then
 *your code here* 
end
Ad

Answer this question