Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me to fix this script?(fire all touch interests)

Asked by 5 years ago

i need to fix this

for i,v in next, workspace:GetDescendants() do if v:IsA'TouchTransmitter' then table.insert(Tab,v) end end local plr=game:GetService'Players'.LocalPlayer spawn(function() local UIS=game:GetService'UserInputService' UIS.InputBegan:Connect(function(Key) if Key.KeyCode==Enum.KeyCode.H and not UIS:GetFocusedTextBox() then for i,v in next,Tab do if v:IsA'TouchTransmitter' then print'Fired!' if firetouchinterest then firetouchinterest(plr.Character.HumanoidRootPart,v.Parent,0) wait() firetouchinterest(plr.Character.HumanoidRootPart,v.Parent,1) end end end end end) end) thx> >

0
Please format your code, this is unreadable. SimplifiedCode 227 — 5y
0
Edit your post and put your script in a code block by pressing the 'Lua' button Marty999 82 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

This is the code?

for i,v in next, workspace:GetDescendants() do
    if v:IsA'TouchTransmitter' then
        table.insert(Tab,v)
    end
end
local plr=game:GetService'Players'.LocalPlayer
spawn(function()
    local UIS=game:GetService'UserInputService'
    UIS.InputBegan:Connect(function(Key)
        if Key.KeyCode==Enum.KeyCode.H and not UIS:GetFocusedTextBox() then
            for i,v in next,Tab do
                if v:IsA'TouchTransmitter' then
                    print'Fired!'
                    if firetouchinterest then
                        firetouchinterest(plr.Character.HumanoidRootPart,v.Parent,0)
                        wait()
                        firetouchinterest(plr.Character.HumanoidRootPart,v.Parent,1)
                    end
                end
            end
        end
    end)
end)

Ad
Log in to vote
0
Answered by 4 years ago

This script is for an exploit. It will not work on normal Roblox.

Answer this question