Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Click and hold for mass destruction
- -- Game Link : https://www.roblox.com/games/2248408710/CODE-Destruction-Simulator
- local RS = game:GetService('ReplicatedStorage')
- local plr = game:GetService('Players').LocalPlayer
- local mouse = plr:GetMouse()
- local ch = plr.Character
- local active = false
- workspace.Walls:Remove()
- mouse.Button1Down:connect(function()
- active = true
- end)
- mouse.Button1Up:connect(function()
- active = false
- end)
- mouse.Move:connect(function()
- if active then
- if ch:FindFirstChild('Launcher') then
- RS.Remotes.explodeRocket:FireServer(0,ch.Launcher.Stats, Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z), ch.Launcher.Assets.Rocket.Boom)
- 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)
- end
- end
- wait()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement