Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Tool = script.Parent
- local Backpack = Tool.Parent
- local Me = Backpack.Parent
- local PlayerGui = Me.PlayerGui
- local PartStore = workspace:WaitForChild("PartStorage")
- local Data = Me:WaitForChild("Data")
- local MaVal = PlayerGui.MainGui.MaxKi
- local KiVal = PlayerGui.MainGui.Ki
- local Character = Me.Character
- local Humanoid = Character.Humanoid
- local Torso = Character.Torso
- local Head = Character.Head
- local Neck = Torso.Neck
- local RightShoulder = Torso["Right Shoulder"]
- local LeftShoulder = Torso["Left Shoulder"]
- local RightHip = Torso["Right Hip"]
- local LeftHip = Torso["Left Hip"]
- local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- function ChakraWelds()
- local TiltX = 0
- local TiltY = 0
- local TiltZ = 1.57
- RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
- LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
- TiltX = 0.6
- TiltY = 0
- TiltZ = 0
- local MoveX = 0
- local MoveY = 0
- local MoveZ = -0.3
- RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
- LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
- TiltX = -0.05
- TiltY = 0
- TiltZ = 0
- MoveX = 0
- MoveY = 0.1
- MoveZ = 0
- RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
- LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
- end
- function RefreshWelds()
- Neck.C0 = NeckC0
- Neck.C1 = NeckC1
- RightShoulder.C0 = RightShoulderC0
- RightShoulder.C1 = RightShoulderC1
- LeftShoulder.C0 = LeftShoulderC0
- LeftShoulder.C1 = LeftShoulderC1
- RightHip.C0 = RightHipC0
- RightHip.C1 = RightHipC1
- LeftHip.C0 = LeftHipC0
- LeftHip.C1 = LeftHipC1
- end
- wait(0.1)
- local CanRun = true
- function onButton1Down(Mouse)
- if KiVal.Value < 100 or not CanRun then
- return
- end
- KiVal.Value = KiVal.Value - 100
- CanRun = false
- Mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
- local pos = Mouse.Hit.p
- RightShoulder.MaxVelocity = 0
- RightShoulder.CurrentAngle = 0
- LeftShoulder.MaxVelocity = 0
- LeftShoulder.CurrentAngle = 0
- local Gyro = Instance.new("BodyGyro", Torso)
- Gyro.D = 50
- Gyro.CFrame = Torso.CFrame
- Gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
- local Position = Instance.new("BodyPosition")
- Position.Parent = Torso
- Position.Position = Torso.Position
- Position.MaxForce = Gyro.MaxTorque
- game.Debris:AddItem(Position)
- game.Debris:AddItem(Gyro)
- Humanoid.PlatformStand = true
- RefreshWelds()
- ChakraWelds()
- Gyro.CFrame = CFrame.new(Torso.Position, pos)
- Torso.CFrame = CFrame.new(Torso.Position, pos)
- local Energy1 = Instance.new("Part")
- Energy1.CanCollide = false
- Energy1.Anchored = true
- Energy1.TopSurface = 0
- Energy1.BottomSurface = 0
- Energy1.Size = Vector3.new(4, 4, 4)
- Energy1.Shape = "Ball"
- Energy1.Transparency = 0
- Energy1.Material = Enum.Material.Neon
- Energy1.BrickColor = BrickColor.Yellow()
- local EJoint1 = Instance.new("Weld", Torso)
- EJoint1.Part0 = Torso
- EJoint1.Part1 = Energy1
- EJoint1.C0 = CFrame.new(0, 0.5, -3)
- local Light = Instance.new("PointLight", Energy1)
- Light.Range = Energy1.Size.X * 8
- Light.Color = Energy1.BrickColor.Color
- Light.Name = "KiLight"
- Energy1.Parent = PartStore
- Energy1.Anchored = false
- local RayPart = Energy1:Clone()
- RayPart.Shape = "Cylinder"
- RayPart.BrickColor = BrickColor.Blue()
- RayPart.Size = Vector3.new(3.6, 3.6, 3.6)
- local Dist = RayPart.Size.Y / 2
- RayPart.CFrame = Energy1.CFrame * CFrame.new(0, 0, -Dist) * CFrame.Angles(0, math.rad(90), 0)
- RayPart.Anchored = true
- RayPart.CanCollide = false
- RayPart.Parent = PartStore
- Data.Ki.Value = Data.Ki.Value + 10
- Data.Attack.Value = Data.Attack.Value + 10
- local Hits = 0
- RayPart.Touched:connect(function(Hit)
- if Hits >= 2 or Hit:isDescendantOf(Character) then
- return
- end
- local Cf = Hit.CFrame
- if Hit.Parent:IsA("Hat") then
- Hit = Hit.Parent
- end
- local eHum = Hit.Parent:FindFirstChild("Humanoid")
- if eHum and eHum.Health > 0 then
- Hits = Hits + 1
- eHum:TakeDamage(20 + math.random(0, 5))
- if math.random(1, 3) == 1 then
- Data.Ki.Value = Data.Ki.Value + 5
- Data.Attack.Value = Data.Attack.Value + 5
- end
- local Boom = game.ReplicatedStorage.Effects.Explosion:Clone()
- Boom.Parent = PartStore
- Boom.BrickColor = RayPart.BrickColor
- Boom.CFrame = Cf
- end
- end)
- game.Debris:AddItem(Energy1)
- game.Debris:AddItem(RayPart)
- for i = 1, 60 do
- RayPart.Size = RayPart.Size + Vector3.new(2.5, -0.015, -0.015)
- local Dist = RayPart.Size.X / 2
- RayPart.CFrame = Energy1.CFrame * CFrame.new(0, 0, -Dist) * CFrame.Angles(0, math.rad(90), 0)
- wait()
- end
- RayPart:Destroy()
- Energy1:Destroy()
- Gyro:Destroy()
- Position:Destroy()
- Humanoid.Jump = true
- RefreshWelds()
- wait(6)
- Mouse.Icon = "http://www.roblox.com/asset/?id=11624732"
- CanRun = true
- end
- function onSelected(Mouse)
- if CanRun == true then
- Mouse.Icon = "http://www.roblox.com/asset/?id=11624732"
- else
- Mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
- end
- Mouse.Button1Down:connect(function()
- onButton1Down(Mouse)
- end)
- end
- script.Parent.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement