i want to make an gui appear when a player hits a part the code i am using is this:
local TextLabel = game.StarterGui.ScreenGui.TextLabel
local Frame = script.Parent.Parent.Frame
local plr = game.Players.LocalPlayer
Frame.Touched:Connect(function(hit)
if hit.Name == plr then
game.StarterGui.Waith.TextLabel.Visible = true
wait(1)
TextLabel.TextTransparency = 0.3
wait(1)
TextLabel.TextTransparency = 0.2
wait(1)
TextLabel.TextTransparency = 0.1
wait(1)
TextLabel.TextTransparency = 0
wait(1)
game.StarterGui.Waith.TextLabel.Visible = false
end
end)
Please Help

2 comments
If the player were to hit the part ("Frame"), shouldn't you do "hit.Parent.Name" rather than "hit.Name" (this is in line 6).
Thank you ScootVulpes