Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:WaitForChild("IcePillar")
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local UserInput = game:GetService("UserInputService")
- Anim = script.Anim
- Damage = script.Damage
- Use = true
- UserInput.InputBegan:connect(function(Key)
- if Key.KeyCode == Enum.KeyCode.X and Use == true then
- Use = false
- print("Freeze!")
- local Anim = Character:FindFirstChild("Humanoid"):LoadAnimation(Anim)
- Anim:Play()
- wait(.25)
- local Ice = script.IcePillar
- local PositionFor = -6
- local SizeY = 12
- local SizeX = 2
- for i=0,30,1 do
- local Pillar = Ice:Clone()
- Pillar.Name = "Pillar"
- Pillar.Size = Vector3.new(SizeX,SizeY,SizeX)
- Pillar.CFrame = Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(math.random(-5,5),1,PositionFor)
- Pillar.Orientation = Character:FindFirstChild("HumanoidRootPart").Orientation + Vector3.new(0,math.random(-60,60),math.random(-45,45))
- Pillar.CanCollide = false
- Pillar.Anchored = true
- Pillar.Parent = Character:FindFirstChild("UpperTorso")
- PositionFor = PositionFor + -3
- SizeY = SizeY + 4
- SizeX = SizeX + 2
- Pillar.Touched:connect(function(Hit)
- if Hit.Parent == Character or Hit.Parent.Parent == Character then
- print(Character)
- elseif Hit.Parent ~= Character or Hit.Parent.Parent ~= Character then
- local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
- if Humanoid then
- Humanoid.Health = Humanoid.Health - Damage.Value
- Pillar:Destroy()
- wait()
- end
- end
- end)
- wait()
- end
- wait(2)
- while Character:FindFirstChild("UpperTorso"):FindFirstChildOfClass("UnionOperation") do
- Character:FindFirstChild("UpperTorso"):FindFirstChildOfClass("UnionOperation"):Destroy()
- wait()
- end
- wait(9)
- Use = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment