So I'm making this game and at the end I put this huge brick and when you touch the brick it makes a message saying: "[player] has finished the game!" but I don't know how to fill in [player] with the player's name that touched it! ...Help?...
Here's the script you want. It needs to be inside a brick.
local m = Instance.new("Message") function onTouch(hit) name = hit.Parent.Name m.Parent = game.Workspace m.Text = ""..name.." has won the game!" wait(3) m:remove() end script.Parent.Touched:connect(onTouch)