
124.0k Views
358 Executions
clickDetectors and touchInterest
Universal Script 📌
UnnesscaryInventions1M views
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Fires all the touchinterest and clickdetectors in a game Made by ChatGPT 4.0
Updates
Script edited: Create script
local player = game.Players.LocalPlayer
local character = player.Character
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local function simulateTouch(part)
if part and part:IsA("BasePart") then
firetouchinterest(humanoidRootPart, part, 0)
wait(0.1)
firetouchinterest(humanoidRootPart, part, 1)
end
end
local function simulateClick(clickDetector)
if clickDetector and clickDetector:IsA("ClickDetector") then
clickDetector:FireServer()
end
end
for _, instance in pairs(game:GetDescendants()) do
if instance:IsA("BasePart") then
if instance:FindFirstChildOfClass("TouchTransmitter") then
simulateTouch(instance)
end
local clickDetector = instance:FindFirstChildOfClass("ClickDetector")
if clickDetector then
simulateClick(clickDetector)
end
end
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







