About this script: If someone touches this part then a GUI will pop up(visible = true), but in this case in doesn't pop up. Can anyone please help? Thanks!
workspace.mayorTrigger.Touched:connect(function() print ("touched") script.Parent.Parent.Parent.StarterGui.buttonInteract.buttonFrameMayor.Visible = true end)
The script for onTouched shouldn't be in a LocalScript. Instead you should put a script in a part and make the line something such as :
script.Parent.Touched:connect(function(Hit) local Player = game.Players:GetPlayerFromCharacter(Hit.Parent) if Player then Player.PlayerGui.buttonInteract.buttonFrameMayor.Visislbe = true end end)