Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local replicatedStorage = game:GetService("ReplicatedStorage")
- local tweenService = game:GetService("TweenService")
- script.Parent.OnServerEvent:Connect(function(player,Mouse)
- local char = player.Character
- local humanoid = char:WaitForChild("Humanoid")
- local rightarm = char:WaitForChild("Right Arm")
- local leftarm = char:WaitForChild("Left Arm")
- local Track2 = Instance.new("Animation")
- Track2.AnimationId = "rbxassetid://6167980352" --paste iceball animation here
- local anim2 = humanoid:LoadAnimation(Track2)
- anim2:Play()
- spawn(function()
- char.HumanoidRootPart.Anchored = true
- wait(3)
- char.HumanoidRootPart.Anchored = false
- end)
- local tornado = game.ReplicatedStorage.Effects.Tornado:Clone()
- tornado.Position = Mouse.p + Vector3.new(0,20,0)
- tornado.Parent = workspace
- game.Debris:AddItem(tornado,5)
- local whirl = game.ReplicatedStorage.Effects.Circle:Clone()
- whirl.Position = tornado.Position + Vector3.new(0,-5,0)
- whirl.Parent = workspace
- game.Debris:AddItem(whirl,5)
- local info = TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal = {}
- goal.Size = whirl.Size * 1
- goal.Transparency = 1
- local tween = tweenService:Create(whirl,info,goal)
- tween:Play()
- print("played")
- local info2 = TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal2 = {}
- goal2.Size = whirl.Size * 1
- goal2.Transparency = 1
- local tween2 = tweenService:Create(tornado,info2,goal2)
- tween2:Play()
- print("played")
- local ball = game.ReplicatedStorage.Effects.Iceball:Clone()
- ball.Position = tornado.Position + Vector3.new(0,-2,0)
- ball.Parent = workspace
- game.Debris:AddItem(ball,5)
- local info3 = TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal3 = {}
- goal3.Size = whirl.Size * 3
- goal3.Anchored = false
- local tween3 = tweenService:Create(ball,info3,goal3)
- tween3:Play()
- print("played")
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://130852656"
- sound.Parent = player.Character
- sound:Play()
- game.Debris:AddItem(sound,3)
- ball.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local explosion1 = game.ReplicatedStorage.Effects:WaitForChild("Explosion5"):Clone()
- explosion1.CFrame = Hit.CFrame * CFrame.new(0,4,0)
- explosion1.Parent = workspace
- game.Debris:AddItem(explosion1,1)
- local explosion2 = game.ReplicatedStorage.Effects:WaitForChild("Explosion6"):Clone()
- explosion2.CFrame = Hit.CFrame * CFrame.new(0,4,0)
- explosion2.Parent = workspace
- game.Debris:AddItem(explosion2,1)
- local whirl = game.ReplicatedStorage.Effects["Whirl"]:Clone()
- whirl.CFrame = Hit.CFrame * CFrame.new(0,4,0)
- whirl.Parent = workspace
- game.Debris:AddItem(whirl,1)
- local info = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal = {}
- goal.Size = explosion1.Size * 4
- goal.Transparency = 1
- local tween = tweenService:Create(explosion1,info,goal)
- tween:Play()
- print("played")
- local info2 = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal2 = {}
- goal2.Size = explosion2.Size * 4
- goal2.Transparency = 1
- local tween2 = tweenService:Create(explosion2,info2,goal2)
- tween2:Play()
- print("played")
- local info3 = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local goal3 = {}
- goal3.Size = whirl.Size * 6
- goal3.Transparency = 1
- local tween3 = tweenService:Create(whirl,info3,goal3)
- tween3:Play()
- print("played")
- for i,m in pairs(workspace:GetChildren()) do
- if m:FindFirstChild("HumanoidRootPart") and m:FindFirstChild("Humanoid") and m~= player.Character then
- if (m.HumanoidRootPart.Position - ball.Position).Magnitude < 15 then
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://3154829820"
- sound2.Parent = m.HumanoidRootPart
- sound2:Play()
- game.Debris:AddItem(sound,3)
- m.Humanoid:TakeDamage(20)
- ball:Destroy()
- end
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement