Hello! I'm trying to make GUI appear when I touch block. I did this script below but it doesn't works, also I don't have any errors, any ideas what should I change? (script is in local script)
local Player = game.Players.LocalPlayer
local function change(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
Player.PlayerGui.UniformGui.Frame.Visible=true
end
end
script.Parent.Touched:Connect(change)
