so i want make a part if it touched a gui appears and i want to make so if a part touched the part transparency set to 0 but it didn't work
the Gui appears local script :
script.Parent.Touched:Connect(function(hit)
local char = hit.Parent
if char then
local player = game.Players:GetPlayerFromCharacter(char)
if player then
script.Parent.ROBUX:Play()
local Endings = player.StarterGui:WaitForChild("Endings")
Endings:WaitForChild("RobuxEnding").Visible = true
wait(1)
Endings:WaitForChild("RobuxEnding").TextButton.Visible = true
end
end
end)
the transparency local script :
script.Parent.Touched:Connect(function(hit)
local char = hit.Parent
if char then
script.Parent.Transparency = 0
end
end)

2 comments
i use that before in my other games it works but just in this game
I don’t see any errors