Stiwen133

The sun is a deadly laser (Roblox)

May 2nd, 2020 (edited)
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. -- Made By MrRobloxTutorialsGo
  2. -- Only Supports R6
  3.  
  4. function Lerp(a, b, t)
  5. return a + (b - a) * t
  6. end
  7. local Speed = 0.1
  8.  
  9. print("Please wait...")
  10. wait(3)
  11. print("Loading!")
  12. local Creator = "MrRobloxTutorialsGo" -- Change this to your roblox username
  13. local VoiceSound1 = Instance.new("Sound", game.Workspace)
  14. local Music = Instance.new("Sound", game.Workspace)
  15. local Sun = Instance.new("Part",game.Workspace)
  16. local PlayerModel = game.Workspace:WaitForChild(Creator)
  17. local PlayerHumanoid = PlayerModel:WaitForChild("Humanoid")
  18. local PlayerFromPlayers = game.Players:WaitForChild(PlayerModel.Name)
  19. local MouseFromPlayer = PlayerFromPlayers:GetMouse()
  20. VoiceSound1.SoundId = "rbxassetid://2878955642"
  21. Music.SoundId = "rbxassetid://4601301880"
  22. Music.Looped = true
  23. Sun.Size = Vector3.new(10,10,10)
  24. Sun.Anchored = true
  25. Sun.Material = Enum.Material.Neon
  26. Sun.BrickColor = BrickColor.new("New Yeller")
  27. Sun.Shape = "Ball"
  28. Sun.CanCollide = false
  29. Sun.CastShadow = false
  30. Music:Play()
  31. print("Succesfully loaded.")
  32. while wait() do
  33. Sun.Position = Vector3.new(Lerp(Sun.Position.X, PlayerModel:WaitForChild("Head").Position.X,Speed), Lerp(Sun.Position.Y, PlayerModel:WaitForChild("Head").Position.Y+15,Speed), Lerp(Sun.Position.Z, PlayerModel:WaitForChild("Head").Position.Z, Speed))
  34. end
Advertisement
Add Comment
Please, Sign In to add comment