I wanted to make a script where when a player touches a part a gui appears for the player who touched it but I can't I tried the script.
`script.Parent.Touched:Connect(function(hit)
if hit.parent:FindFirstChild("Humanoid") then
local blue = hit.Parent
game.StarterGui.Nice.Frame.Visible = true
end
end)
Sadly, it wont work, I searched it on the internet but none of them explained properly or I couldn't find it. Please help me make it work. Thank you if you do.

15 comments
rip u
and i am not grammar nazi
also ull have to list all the other things one is capable of ripping if u really hardcore person
Are you wanting to make it go away after the user stops touching the brick?
maybe
also if this really is not ur style u can always just change the GUI to a part or meshPart and make that transparent / not transparent when the player touches it. dont face ur problems, go around them
if you are going to do that, use the TouchEnded event
I was also trying to do that but I was focusing on making it appear on the brick first.
could be a problem with the how the roblox touch event works in the situation that its not a problem with ur script. If so make ur own touch event before continuing.
also there is typo on line 2; parent is uppercase "P"
alright just saying; says the grammar nazi
can somone please help me
Why does it say that you want to touch a script? No such thing is possible.
o yeah!
actually check the name