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

Xbox if then else?

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago

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
Ad

Answer this question