local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if not humanoidRootPart then
warn("No HumanoidRootPart found!")
return
end
local function fireTouch(part)
if part and part:IsA("BasePart") then
firetouchinterest(humanoidRootPart, part, 0)
firetouchinterest(humanoidRootPart, part, 1)
end
end
while task.wait(0.05) do
for _, item in ipairs(workspace.Items:GetChildren()) do
if item:IsA("BasePart") and item:FindFirstChildWhichIsA("TouchTransmitter") then
fireTouch(item)
end
end
end
Comments
thanks .