squidingtin

Tower Battles Pro Viewer

Jul 15th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local Stats = player.PlayerGui.Stats
  3. --Stats.Corner.Return:Destroy()
  4.  
  5. Stats.BuyEnemies.Visible = false
  6. Stats.EnemyArrow.Visible = false
  7. Stats.BlueLives.Wave.bar.Selectable = false
  8. Stats.BlueLives.Wave.label.Selectable = false
  9. Stats.BlueLives.Wave.red.Selectable = false
  10. Stats.RedLives.Wave.bar.Selectable = false
  11. Stats.RedLives.Wave.label.Selectable = false
  12. Stats.RedLives.Wave.red.Selectable = false
  13.  
  14. local b1 = Instance.new("TextButton")
  15. b1.Size = UDim2.new(0, 60,0, 60)
  16. b1.BackgroundTransparency = 0.4
  17. b1.BackgroundColor3 = Color3.new(0, 0, 0)
  18. b1.Text = "Camera Reset"
  19. b1.TextWrapped = true
  20. b1.Name = "Return"
  21. b1.Parent = Stats.Corner
  22. Stats.Corner.BackgroundTransparency = 1
  23.  
  24. game.Lighting.Buildings.DJ.Tower.Torso.Music.MaxDistance = 500
  25. game.Lighting.Buildings.DJ4.Tower.Torso.Music.MaxDistance = 500
  26. game.Lighting.Buildings.DJ5.Tower.Torso.Music.MaxDistance = 500
  27.  
  28. function RedLives()
  29.     game.Workspace.Camera.CameraType = Enum.CameraType.Attach
  30.     game.Workspace.Camera.CameraSubject = workspace.red
  31. end
  32.  
  33. function BlueLives()
  34.     game.Workspace.Camera.CameraType = Enum.CameraType.Attach
  35.     game.Workspace.Camera.CameraSubject = workspace.blue
  36. end
  37.  
  38. function Return()
  39.     game.Workspace.Camera.CameraType = Enum.CameraType.Follow
  40.     game.Workspace.Camera.CameraSubject = player.Character.Humanoid
  41. end
  42.  
  43. Stats.Corner.Return.MouseButton1Click:Connect(Return)
  44. Stats.BlueLives.Wave.MouseButton1Click:Connect(BlueLives)
  45. Stats.RedLives.Wave.MouseButton1Click:Connect(RedLives)
Add Comment
Please, Sign In to add comment