Hello everyone,
I have encountered an issue.
I have a detain tool, and the action is will do is cuff people etc. Simple stuff.
But recently, due to FE (filtering enabled), this only shows client-side local.
I've read the ROBLOX Wiki but I can't understand how I would make this show for everyone. If someone could give me some pointers and help and fix my script, I'd be greatful.
Script:
script.Parent.Equipped:connect(function(m)
m.Button1Down:connect(function()
if m.Target~=nil then
print(m.Target:GetFullName())
p=nil
_,p=pcall(function() return game.Players[m.Target.Parent.Name] end)
print(p)
print(m.Target.Parent.Name)
if p~=nil then
local detained=p
coroutine.wrap(function()
local c=p
while p==c do wait() pcall(function()
p.Character.Torso.Anchored,p.Character.Torso.CFrame=true,game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,0,-2.5)
end) end
print('END OF DETAIN LOOP')
pcall(function() c.Character.Torso.Anchored=false end)
end)()
else print('no p') end
end
end)
end)
I think this could be because there is no Handle part, possibly not.
Once again, help appreciated.
BunicornBoy cx
