Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // This Code Was Writed By Allvideo
- local Player = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local ServerStorage = game:GetService("ServerStorage")
- local Blue = ServerStorage.Nuke:FindFirstChild("Blue")
- local Red = ServerStorage.Nuke:FindFirstChild("Red")
- local Purple = ServerStorage.Nuke:FindFirstChild("Purple")
- local Debounce = false
- local Circle = true
- local radius = 35
- local speed = 12
- local cooldown = 50
- local Damage = 50
- local Damaged = {} --ignore
- function MakeTween(Part,Destination,Delay)
- local info = TweenInfo.new(Delay,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
- local create = TweenService:Create(Part,info,{CFrame = Destination})
- create:Play()
- return create
- end
- script.Parent.Activated:connect(function()
- if not Debounce then
- Debounce = true
- local char = script.Parent.Parent
- local LocalPlayer = Player:GetPlayerFromCharacter(char)
- local Humanoid = char:FindFirstChild("Humanoid")
- local HumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
- local launched = false
- if char and Red and Blue and Purple and Humanoid and HumanoidRootPart then
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- Humanoid.AutoRotate = false
- task.wait(0.5)
- char.Animate.Disabled = true
- --play sound
- wait(4)
- HumanoidRootPart.Anchored = true
- local RedClone = Red:Clone()
- RedClone.Parent = char
- RedClone.Anchored = true
- RedClone.CFrame = char.HumanoidRootPart.CFrame
- MakeTween(RedClone,char.HumanoidRootPart.CFrame * CFrame.new(0,55,0),1.5)
- wait(4.5)
- local BlueClone = Blue:Clone()
- BlueClone.Parent = char
- BlueClone.Anchored = true
- BlueClone.CFrame = char.HumanoidRootPart.CFrame
- MakeTween(BlueClone,char.HumanoidRootPart.CFrame * CFrame.new(35,0,0),1)
- wait(2)
- task.defer(function()
- local angle = 85 + speed * 0.01
- while true do
- if BlueClone and Circle then
- BlueClone.CFrame = CFrame.new(char.HumanoidRootPart.Position) * CFrame.new(math.cos(angle) * radius, 0, math.sin(angle) * radius)
- angle = angle + speed * 0.01
- wait(0.03)
- else
- break
- end
- end
- end)
- wait(1)
- local tweenfinish = MakeTween(char.HumanoidRootPart,char.HumanoidRootPart.CFrame * CFrame.new(0,45,0),4)
- tweenfinish.Completed:connect(function()
- wait(2)
- MakeTween(RedClone,RedClone.CFrame * CFrame.new(-5,0,0),2)
- wait(1)
- Circle = false
- MakeTween(BlueClone,RedClone.CFrame * CFrame.new(10,0,0),1.5)
- wait(1.5)
- MakeTween(BlueClone,BlueClone.CFrame * CFrame.new(-5,0,0),2)
- MakeTween(RedClone,RedClone.CFrame * CFrame.new(5,0,0),2)
- wait(2)
- local PurpleClone = Purple:Clone()
- PurpleClone.Parent = char
- PurpleClone.Anchored = true
- PurpleClone.CFrame = BlueClone.CFrame * CFrame.new(-3,4,0)
- BlueClone:Destroy()
- RedClone:Destroy()
- wait(2)
- PurpleClone:Destroy()
- local boom = ServerStorage.Nuke.Boom:Clone()
- boom.CFrame = char.HumanoidRootPart.CFrame
- boom.Parent = char
- for i,v in next, boom:GetDescendants() do
- if v:IsA("ParticleEmitter") then
- v.Enabled = true
- end
- end
- for i = 1,Damage do
- local nearest = Workspace:GetPartBoundsInBox(char.HumanoidRootPart.CFrame,Vector3.new(243, 100, 143))
- for i2,v in next, nearest do
- if v.Parent:FindFirstChild("Humanoid") and not Damaged[v.Parent] and v.Parent.Humanoid ~= Humanoid then
- Damaged[v.Parent] = true
- v.Parent.Humanoid:TakeDamage(1)
- end
- end
- Damaged = {}
- task.wait(0.1)
- end
- task.wait(17)
- for i,v in next, boom:GetDescendants() do
- if v:IsA("ParticleEmitter") then
- v.Enabled = false
- end
- end
- boom:Destroy()
- local LastTween = MakeTween(char.HumanoidRootPart,char.HumanoidRootPart.CFrame * CFrame.new(0,-45,0),4)
- LastTween.Completed:connect(function()
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- Humanoid.AutoRotate = true
- HumanoidRootPart.Anchored = false
- char.Animate.Disabled = false
- end)
- end)
- end
- task.wait(37)
- for i = 1,cooldown do
- script.Parent.Name = cooldown - i
- wait(1)
- end
- script.Parent.Name = "Hollow Nuke"
- Debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement