1 | --AmountOfOrbs is a NumberValue in workspace-- |
2 |
3 | script.Parent.Touched:Connect( function (hit) |
4 | game.Workspace.AmountOfOrbs.Value + = 1 |
5 | game.StarterGui.ScreenGui.TextLabel.Text = = game.Workspace.AmountOfOrbs.Value |
6 | script.Parent:Destroy() |
7 | end ) |
1 | script.Parent.Touched:Connect( function (hit) |
2 | game.Workspace.AmountOfOrbs.Value + = 1 |
3 | game.StarterGui.ScreenGui.TextLabel.Text = game.Workspace.AmountOfOrbs.Value |
4 | print ( "Bruh" ) |
5 | script.Parent:Destroy() |
6 | end ) |