Trouble w scripting

Oh yes it is, but the gui isn’t, should it be the other way around?

If you set the screen gui enabled to true and use this will it show up?


local Player = game.Players.LocalPlayer

local function OnTouch()

Player.PlayerGui:FindFirstChild("Interactive").TextLable.Visible = true 

wait(5)

Player.PlayerGui:FindFirstChild("Interactive").TextLable.Visible = false
end

game.Workspace:FindFirstChild(“touchpart”).Touched:Connect(OnTouch)

oh yeah i tried it a while ago, but it didn’t work, mb for being so late

So in studio you can see this text label and when you run the game it won’t appear?