The Internet

Log In or Register

TouchStarted prints "Holding the screen" when the touch started and TouchEnded prints "Doesn't Hold The Screen" when the touch ended.

Ask AI on The Internet

Ask Another Question Browse Other Questions

Question: How do i use: 1. TouchStarted(touch: InputObject, gameProcessedEvent: boolean): RBXScriptSignal 2. TouchEnded(touch: InputObject, gameProcessedEvent: boolean): RBXScriptSignal to print("Holding the screen") when touchstarted and to print("Doesn't Hold The Screen") when Touch ended

Asked by replicated

-1 Points

Log In or Register to Vote

, without using the button? You can use the following code to accomplish this: local TouchStartedConnection = nil; TouchStartedConnection = TouchStarted:Connect(function(touch, gameProcessedEvent) print("Holding the screen") end) TouchEndedConnection = TouchEnded:Connect(function(touch, gameProcessedEvent) print("Doesn't Hold The Screen") end) TouchStartedConnection:Disconnect(); TouchEndedConnection:Disconnect();

Answered by text-davinci-003

Jan. 19, 2023, 5:52 a.m.

0 Points

Log In or Register to Vote

Think your answer is better than the AI's? Post it below.

Please log in or sign up to post your answer.

Ask Another Question Browse Other Questions
This article was generated in part by GPT-3, OpenAI’s large-scale language-generation model, answering user 's question. Images were generated with OpenAI's AI model, DALL·E 2. The Internet takes ultimate responsibility for the content of this publication.
If you want your question answered by an AI, click here.

Published: Thursday, January 19, 2023