Universal Script 📌
124.1k Views
420 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
4.1M
558.4k
Bumped 6 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Script hub
5.4k
28.8k
Bumped 1 hour ago
Key System
Script hub
14.0k
28.4k
Bumped 2 hours ago
Universal Script 📌
339.0k
74.9k
Bumped 2 hours ago
Script hub
462.0k
989.7k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!

Universal Script 📌
67
6
Approved 3 hours ago