So I have this code:
script.Parent.MouseButton1Click:Connect(function() print("Clicked") end)
but when I click that button no output no nothing. why is this happening this has always worked for me
edit: this isn't a local script but its always worked in a regular script so idk
Put that script inside a local script. Thats the only way it will work these days. If you want a server event to happen, use remote events.
I moved everything to my local script and added what I actually want the button to do in:
local player = script.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:Connect(function() print("Clicked") player.skinValue.Value = "cowboy" player.Character.Head:Remove() end)
it looks like its doing everything and killing the player but my skin manager doesn't change the skin for some reason