So, recently i had a issue making a GUI popup on touch of a brick. Got that figured out. But, i'm having a issue making it show a frame after you press a button on the first frame.
Part Touch Script
local Part = script.Parent
local Frame = game.StarterGui.IntelC1
Part.Touched:connect(function(HIT)
local H = HIT.Parent:FindFirstChild("Humanoid")
if H then
local Player = game.Players:GetPlayerFromCharacter(HIT.Parent)
Frame.Parent = Player.PlayerGui
Player.PlayerGui.IntelC1.CHFrame.Visible = true
end end)
Local Script for a button to go to the next frame
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
script.Parent.CHFrame.Visible = false
script.Parent.Parent.Parent.CHFrame2.Visible = true
end)
and then that local script is the same for the other ones. Except for the closing frame which is
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
script.Parent.CHFrame.Visible = false
end)
I get the first frame popping up. But, when i click the button to go to the next frame, it doesn't show. Could anyone help? Thanks in advance! :D
