Universal Script 📌
124.0k Views
358 Executions

clickDetectors and touchInterest

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

  1. Script edited: Create script

View Raw
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

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
9.7k
70.8k
Bumped 3 hours ago
Key System
Script hub
187.0k
1.9M
Bumped 4 hours ago
Key System

Script hub

#13 this week

Verified script badgeAirflow HUB

Script hub
602.2k
52.9k
Bumped 4 hours ago
Script hub
45.6k
11.1k
Bumped 6 hours ago
Key System
Paid

Script hub

#25 this month

Verified script badgeZekeHub - 58 Games, 1,300+ Features