Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does it say that it expected a identifier?

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

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.