Advertisement
Vzurxy

Untitled

Sep 19th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. -- Click and hold for mass destruction
  2. -- Game Link : https://www.roblox.com/games/2248408710/CODE-Destruction-Simulator
  3. local RS = game:GetService('ReplicatedStorage')
  4. local plr = game:GetService('Players').LocalPlayer
  5. local mouse = plr:GetMouse()
  6. local ch = plr.Character
  7. local active = false
  8. workspace.Walls:Remove()
  9.  
  10. mouse.Button1Down:connect(function()
  11. active = true
  12. end)
  13.  
  14. mouse.Button1Up:connect(function()
  15. active = false
  16. end)
  17.  
  18. mouse.Move:connect(function()
  19. if active then
  20. if ch:FindFirstChild('Launcher') then
  21. RS.Remotes.explodeRocket:FireServer(0,ch.Launcher.Stats, Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z), ch.Launcher.Assets.Rocket.Boom)
  22. else RS.Remotes.explodeRocket:FireServer(0,plr.Backpack.Launcher.Stats, Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z), plr.Backpack.Launcher.Assets.Rocket.Boom)
  23. end
  24. end
  25. wait()
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement