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

Why can't others see the clothing change?

Asked by 9 years ago

I've made a GUI and tested to see if the clothing is changed. This works and I see the change, yet my friend told me that he cannot see my clothing change when I can. Is this only changing for a Client not the Server? My Filtering Enable is off. If it's needed, here's the LocalScript (This is a LocalScript, maybe that's why?) :

Plr = game:GetService("Players").LocalPlayer
UniTop = "rbxassetid://227007415"
UniBottom = "rbxassetid://227007712"


script.Parent.MouseButton1Click:connect(function()
print("Clicked")
    if Plr.Character:FindFirstChild("Shirt") then
        Plr.Character.Shirt.ShirtTemplate = UniTop
        print("Shirt Found and Changed")
        script.Parent.Parent:Destroy()
    else
        print("No Shirt, Adding Now")
        local S = Instance.new("Shirt", Plr.Character)
        S.ShirtTemplate = UniTop
        script.Parent.Parent:Destroy()
    end
    if Plr.Character:FindFirstChild("Pants") then
        Plr.Character.Pants.PantsTemplate = UniBottom
        print("Pants Found and Changed")
    else
        print("No Pants, Adding Now")
        local P = Instance.new("Pants",Plr.Character)
        P.PantsTemplate = UniBottom
    end
end)

1 answer

Log in to vote
0
Answered by 9 years ago

Because it's a local script. LOCAL script.

Ad

Answer this question