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

How can I fix this GUI that removes accesories on ROBLOX?

Asked by 7 years ago

I tried to create a script that can remove accesories on a player when the server is filtered enabled and this script won't work, I'm not sure why since I just started to script with RemoteEvents ~~~~~~~~~~~~~~~~~

local Event = game:GetService('ReplicatedStorage'):WaitForChild('HatRemover')

script.Parent.MouseButton1Down:connect(function()
    game.ReplicatedStorage.HatRemover:FireServer(script.Parent.Text)
end)

function MouseButton1Click(hit) 
    local d = hit.Parent:GetChildren() 
    for i=1, #d do 
        if (d[i].className == "Accessory") then 
            d[i]:remove() 
        end 
    end
end 

Event.Touched:connect(function()
)~~~~~~~~~~~~~~~~~

0
Hmm why dont you remove da player instead xD joking EDLLT 146 — 7y
0
I'm a banana. bestrindberg 2 — 7y

Answer this question