I don't know why; no errors are being produced. Here is my code:
print("Script Active!")
script.Parent.MouseButton1Click:connect(function()
print("Button1 Clicked")
workspace.PrisonCell.Door.Bar1.Anchored = false
workspace.PrisonCell.Door.Bar2.Anchored = false
workspace.PrisonCell.Door.Bar3.Anchored = false
workspace.PrisonCell.Door.Bar4.Anchored = false
workspace.PrisonCell.Door.Bar5.Anchored = false
workspace.PrisonCell.Door.Bar6.Anchored = false
workspace.PrisonCell.Door.Main.Disabled = true
end)
There are no errors, or things being printed. it is in a starter Gui and is a normal script(not local). Is It my code? Or Is it roblox(I have tried Mousebutton1Down That Doesn't Work) Let me know if you need more info.

1 comment
well as you said its a server script so it wont work, it gotta be a local script