0% found this document useful (0 votes)
14 views3 pages

BNH 1 ADw

Uploaded by

dosrussian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

BNH 1 ADw

Uploaded by

dosrussian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

local Button = Tab:CreateButton({

Name = "Crash",
Callback = function()
for i = 1, 50 do
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local camera = workspace.Camera
local playerName = game:GetService("Players").LocalPlayer.Name
local isFiring = false

local function fireQuickLagRocket()


local fireRocketVector = camera.CFrame.LookVector
local fireRocketPosition = camera.CFrame.Position

game:GetService("ReplicatedStorage").RocketSystem.Events.FireRocket:InvokeServer(
fireRocketVector, workspace[playerName].RPG,
workspace[playerName].RPG, fireRocketPosition
)

local fireRocketClientTable = {
["expShake"] = {["fadeInTime"] = 0.05, ["magnitude"] = 3,
["rotInfluence"] = {0.4, 0, 0.4}, ["fadeOutTime"] = 0.5, ["posInfluence"] = {1, 1,
0}, ["roughness"] = 3},
["gravity"] = Vector3.new(0, 0, 0),
["HelicopterDamage"] = 450,
["FireRate"] = 9999999999,
["VehicleDamage"] = 350,
["ExpName"] = "RPG",
["RocketAmount"] = 333,
["ExpRadius"] = 12,
["BoatDamage"] = 300,
["TankDamage"] = 300,
["Acceleration"] = 8,
["ShieldDamage"] = 11170,
["Distance"] = 99999,
["PlaneDamage"] = 500,
["GunshipDamage"] = 170,
["velocity"] = 99999999999999,
["ExplosionDamage"] = 120
}

local fireRocketClientInstance1 =
game:GetService("ReplicatedStorage").RocketSystem.Rockets["RPG Rocket"]
local fireRocketClientInstance2 = workspace[playerName].RPG
local fireRocketClientInstance3 = workspace[playerName].RPG

game:GetService("ReplicatedStorage").RocketSystem.Events.FireRocketClient:Fire(
camera.CFrame.Position,
camera.CFrame.LookVector,
fireRocketClientTable,
fireRocketClientInstance1,
fireRocketClientInstance2,
fireRocketClientInstance3,
game:GetService("Players").LocalPlayer,
nil,
{ [1] = camera:FindFirstChild("RPG") }
)
end

local function startFiring()


for i = 1, 10 do
isFiring = true
task.spawn(function()
while isFiring do
task.spawn(fireQuickLagRocket)
task.wait(0.0000000000000000000001)
end
end)
end
end

local function stopFiring()


isFiring = false
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.G and not gameProcessed then
for i = 1, 10 do
task.spawn(startFiring)
end

end
end)

UserInputService.InputEnded:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.G and not gameProcessed then
task.spawn(stopFiring)
end
end)
end

local function fireRocket()

local Weapon =
game:GetService("Players").LocalPlayer.Character:FindFirstChild(getgenv().Weapon)
or game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(getgenv().Weapon)
local Mouse = game.Players.LocalPlayer:GetMouse()

if Weapon then
local args = {
[1] = Vector3.new(0, 0, 0),
[2] = Weapon,
[3] = Weapon,
[4] = Mouse.Hit.Position
}

Weapon.Parent = game.Players.LocalPlayer.Character
local RN =
tostring(game:GetService("ReplicatedStorage"):WaitForChild("RocketSystem"):WaitForC
hild("Events"):WaitForChild("FireRocket"):InvokeServer(unpack(args)))

Weapon.Parent = game.Players.LocalPlayer.Backpack

if Mouse.Target then
local args = {
[1] = Mouse.Hit.Position,
[2] = Vector3.new(0, 0, 0),
[3] = Weapon,
[4] = Weapon,
[5] = Mouse.Target,
[7] = game.Players.LocalPlayer.Name.."Rocket"..RN
}

game:GetService("ReplicatedStorage"):WaitForChild("RocketSystem"):WaitForChild("Eve
nts"):WaitForChild("RocketHit"):FireServer(unpack(args))
end
end
end
end,
})

You might also like