-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAntiAttach.lua
More file actions
25 lines (25 loc) · 948 Bytes
/
AntiAttach.lua
File metadata and controls
25 lines (25 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
shared.antiattach = true
local plrs = game:GetService("Players")
local function chat(msg)
plrs:Chat(msg)
end
local lp = plrs.LocalPlayer
local ws = workspace
local hi
hi = game:GetService("RunService").RenderStepped:Connect(function()
if shared.antiattach == false then hi:Disconnect() end
for a,plr in pairs(plrs:GetPlayers()) do
if plr.Name ~= lp.Name then
repeat game:GetService("RunService").RenderStepped:Wait() until ws:FindFirstChild(plr.Name)
for i,i2 in pairs(plr.Character:GetDescendants()) do
if v.Parent:IsA'Accoutrement' or v.Parent.Parent:IsA'Accoutrement' then continue end
if i2:IsA"Weld" and not i2.Name:lower():find"left" and not i2.Name:lower():find"right" and not i2.Name == "Neck" and not v.Parent.Name == "Handle" or i2:IsA"Snap" then
chat(":refresh "..i2.Parent.Parent.Name)
task.wait()
chat("refresh "..i2.Parent.Parent.Parent.Name)
end
task.wait()
end
end
end
end)