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

Xbox if then else?

How would I put a if then else line in this

wait(8.8) game:GetService('UserInputService').InputBegan:Connect(function(input) what i want it do do

1 answer

✓ Accepted answer

Hi! If I am understanding your question, then I think you just need to add this:

wait(8.8)
if game:GetService('UserInputService').InputBegan then
 --code
else
--code
end

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