So the script's are right and it does appear in the Roblox Studio even in play test as well. But for some reason when I join a game with the pop out GUI, it does not appear and maybe the block too. Is there a fix for this? Also this GUI is a typewriter.

Script to make it pop up when walking or standing on the block :

function touch(hit)
    if game.Players:findFirstChild(hit.Parent.Name) ~= nil then
        player = game.Players[hit.Parent.Name]
        if player.PlayerGui:findFirstChild("Info") == nil then
            gui = script.Info:clone()
            gui.Parent = player.PlayerGui
            repeat
                wait()
            until (player.Character.Torso.Position - script.Parent.Position).magnitude > 5
            gui:remove()
        end
    end
end
 
script.Parent.Touched:connect(touch)

Also to notice, this Gui is also a typewriter.

4 comments

1

Please send us your script and we'll be able to help you with it. I think I know your error, when I was a novice scripter, I came across this error a couple of times before I knew about FilteringEnabled and others. In the meantime, you can read about this: https://scriptinghelpers.org/guides/server-client-relationship-in-roblox

0

I re edited the post with the GUI script when you step on it. If you want I can also send the type writer script. Which I'll send in the next comment.

0
0

You should be using :Destroy() instead of :remove() as well.