So I made a button ( part ) so when you click it it makes a button visible. but its not working? I been trying to look dev forum and youtube but nothing helps. am using a script and not local script.
You cannot access LocalPlayer with a server-sided script, instead use MouseClick’s first parameter, which is the player:
local Button = script.Parent.Button
local function onClick(Player)
Player.PlayerGui.TeleportGui.SecondAreaButton2.Visible = true
end
Button.ClickDetector.MouseClick:Connect(onClick)
Besides that snippet, is there anything above the code? Maybe that stops it, if there isn’t, above the fragment write print("working"), if it doesn’t print it means that the script is destroyed or inactivated.