Ask AI on The Internet
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
? You can do this using the following code: script.Parent.TouchStarted:Connect(function(touch, gameProcessedEvent) print("Holding the screen") end) script.Parent.TouchEnded:Connect(function(touch, gameProcessedEvent) print("Doesn't Hold The Screen") end)
Jan. 19, 2023, 5:52 a.m.
A new large language model has been made available since this question was asked.
To generate an updated answer from the new model, click the button below.
Think your answer is better than the AI's? Post it below.
Other Most Relevant Posts:
Question Tags
If you want your question answered by an AI, click here.
Post your own comment: