Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------- script ---------------------------------
- local Tool = script.Parent
- local Cooldown = false
- local CDTime = 8
- local Speed = 80
- local Damage = 35
- Tool.RemoteEvent.OnServerEvent:Connect(function(Player, Mouse)
- if Cooldown then return end
- spawn(function()
- Cooldown = true
- wait(CDTime)
- Cooldown = false
- end)
- Tool.Roar:Play()
- local char = Player.Character
- local root = char.HumanoidRootPart
- local ball = game.ReplicatedStorage.WaterDragon:Clone()
- local siz = 3
- local colors = {"Medium blue", "Pastel Blue", "Bright blue","Fossil","Steel blue"}
- spawn(function()
- for i=1,60 do
- wait()
- siz = siz + 0.35
- local p = game.ReplicatedStorage.DragonPart:Clone()
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(0.3,0.3,0.3)
- local offset = CFrame.new(math.sin(math.rad(i*20))*siz,math.cos(math.rad(i*20))*siz,0)
- p.Size = p.Size + Vector3.new(0.3*i,0.3*i,0.3*i)
- p.CFrame = ((CFrame.new(root.CFrame.p,Mouse.p) * offset) + CFrame.new(root.CFrame.p,Mouse.p).lookVector * (i*3.5)) * CFrame.Angles(math.rad(math.random(0,90)),math.rad(math.random(0,90)),math.rad(math.random(0,90)))
- ball.CFrame = CFrame.new(p.CFrame.p,p.CFrame.p+ball.CFrame.lookVector)
- p.Parent = game.Workspace
- p.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
- game.Debris:AddItem(p,2)
- end
- for i=1,15 do
- wait()
- ball.Transparency = ball.Transparency + 0.07
- ball.Mesh.Scale = ball.Mesh.Scale * .5
- end
- ball.Anchored = true
- wait(4)
- ball:Destroy()
- end)
- ball.BodyVelocity.Velocity = (ball.CFrame.lookVector * 60)
- ball.Parent = game.Workspace
- Tool.Hit:Play()
- ball.Touched:Connect(function(hit)
- if ball.Anchored then return end
- if hit and hit.Parent == Player.Character then return end
- if hit and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(Damage)
- Tool.Hit:Play()
- ball:Destroy()
- end
- end)
- end)
- ----------------------------- local script ---------------------------------
- local Tool = script.Parent
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- Tool.Activated:Connect(function()
- Tool.RemoteEvent:FireServer(Mouse.Hit)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement