local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local LocalPlayer = Players.LocalPlayer
local success, result = pcall(function()
return loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua"))()
end)
local WindUI = success and result or nil
local useFallback = not WindUI
local function notify(title, text)
if WindUI and not useFallback then
pcall(function()
WindUI:Notify({ Title = title, Content = text, Duration = 2 })
end)
else
warn(title .. " : " .. text)
end
end
local function getRoot(char)
return char:FindFirstChild("HumanoidRootPart")
or char:FindFirstChildWhichIsA("BasePart")
end
local function fireTouchIY(targetName)
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local root = getRoot(char)
if not root then
notify("Error", "no root part")
return
end
local found = false
for _, obj in ipairs(Workspace:GetDescendants()) do
if obj:IsA("TouchTransmitter") then
local part = obj.Parent
if part and (not targetName or part.Name == targetName) then
found = true
task.spawn(function()
for i = 1, 6 do
firetouchinterest(root, part, 0)
task.wait(0.03)
firetouchinterest(root, part, 1)
task.wait(0.03)
end
end)
end
end
end
if found then
notify("Success", "touch sent ✔")
else
notify("Error", "TouchTransmitter not found")
end
end
if not useFallback then
local Window = WindUI:CreateWindow({
Title = "Touch IY Script",
Size = UDim2.new(0, 500, 0, 400)
})
local Tab = Window:Tab({ Title = "Touch" })
Tab:Button({
Title = "Touch TouchPart",
Callback = function()
fireTouchIY("TouchPart")
end
})
else
local gui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 220, 0, 140)
frame.Position = UDim2.new(0.5, -110, 0.5, -70)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.Active = true
frame.Draggable = true
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 30)
title.Text = "Touch IY"
title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
title.TextColor3 = Color3.new(1, 1, 1)
local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(1, -20, 0, 40)
btn.Position = UDim2.new(0, 10, 0, 40)
btn.Text = "Touch TouchPart"
btn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
btn.MouseButton1Click:Connect(function()
fireTouchIY("TouchPart")
end)
end
print("Script ready")
Comments
No comments yet
Be the first to share your thoughts!