**THIS SCRIPT IS SUPPOSED TO RUN WHEN A PART HITS IT, NOT A PLAYER. ITS SUPPOSED TO SHOW A GUI ON THE PLAYER'S SCREEN WHEN A PART HITS ANOTHER PART**
This script won't work; I know why. I just dont know how to fix it.
function onTouched(hit)
hit:Destroy()
game.Workspace.Winner.Disabled = false
game.StarterGui.ScreenGui.YouBeatTheLevel.Visible = true
end
script.Parent.Touched:connect(onTouched)
The issue is on Line 4. I am going to the StarterGUI rather than the PlayerGUI. Please note that there will only be one player in this game at one time. If you could fix this, I would very much appreciate it. Thank you!

2 comments
Wouldn't you use GetPlayers(), rather than GetChildren()?
Both would work but I've always used :GetChildren()