I have been stuck on getting players to go in order on a story i have in my game. currently i have a brick that players step on that open up a GUI with part of the story line in it. all i have been doing is duplicating that object and its counterpart GUI. what i want to do is the following:
-player steps on story brick GUI #1 and the message pops up as it should. -this then unlocks story brick GUI #2 -if player steps on story brick GUI #2 before stepping on story brick GUI #1, the they get an alternate message such as "huh? who are you?" instead of the intended story
If current scripts are needed to help with this problem or you need more clarification to help please let me know!! i have been stuck on this problem for ages and dont know a way around it. Thanks for any help given!!
****EDIT BELOW
here is what i have in the brick:
local Part = script.Parent
Part.Touched:connect(function(HIT)
local H = HIT.Parent:FindFirstChild("Humanoid")
if H then
local Player = game.Players:GetPlayerFromCharacter(HIT.Parent)
Player.PlayerGui.ScreenGui2.Frame.Visible = true
end
end)
i tried copy and pasting in the previous answer given, which didnt work and i tried to switch some things around from there but i dont currently know how to fix it still. Each GUI trigger brick is the exact same besides the GUI it opens. Thanks for the feedback so far!

2 comments
That's the thing. The scripts in each block cannot be the same. I have edited below and hopefully it will work.
Another thing that might be messing with this is Filtering Enabled