Hello. I've been trying to make it so when this script is executed, it turns the Gui located in startergui visible. By default, I disabled the visible feature. I included a print statement after the visible code and it does print, however it doesn't show on your screen. I was wondering how can you make it so it shows on the players screen? Thanks!
Code:
pop = script.Parent.Sound
function crash(hit)
if hit.Parent.Name == "Hammer" then
wait(0.1)
game.StarterGui.bankg.b1.Visible = true
game.StarterGui.bankg.b2.Visible = true
game.StarterGui.bankg.b3.Visible = true
print("gui visible")
script.Parent.Transparency = 1
script.Parent.CanCollide = false
script.Parent.Parent.BrokenWindow["Broken Window"].Transparency = 0.7
script.Parent.Parent.BrokenWindow["Broken Window"].CanCollide = true
pop:Play()
wait(15)
script.Parent.CanCollide = true
script.Parent.Transparency = 0.5
script.Parent.Parent.BrokenWindow["Broken Window"].Transparency = 1
script.Parent.Parent.BrokenWindow["Broken Window"].CanCollide = false
wait(0.1)
game.StarterGui.bankg.b1.Visible = false
game.StarterGui.bankg.b2.Visible = false
game.StarterGui.bankg.b3.Visible = false
else
print ("Bank Working")
end
end
script.Parent.Touched:connect(crash)

1 comment
I appreciate the fast response. I inserted this code and the GUI doesnt show, but there are no error msgs