Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local stand = Instance.new("Model",game.Workspace) stand.Name = "Stand"
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" or game.Players.LocalPlayer.Name == "Pedrorb03" then
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 250
- game.Players.LocalPlayer.Character.Humanoid.Health = 250
- end
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("BasePart") then
- local clon = v:Clone()
- clon.Parent = stand
- clon.Locked = false
- clon.Color = Color3.fromRGB(255,255,255)
- clon.Anchored = false
- clon.CFrame = CFrame.new(0,0,0)
- for _,p in pairs(clon:GetChildren()) do
- if p.ClassName ~= "Motor6D" and p.ClassName ~= "SpecialMesh" then
- p:remove()
- end
- end
- end
- if v.ClassName == "Humanoid" then
- local clon = v:Clone()
- clon.Parent = stand
- end
- end
- stand.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- stand.Head.Mesh.MeshId = ""
- stand.HumanoidRootPart.RootJoint.Part0 = stand.HumanoidRootPart
- stand.HumanoidRootPart.RootJoint.Part1 = stand.Torso
- stand.Torso.Neck.Part0 = stand.Torso
- stand.Torso.Neck.Part1 = stand.Head
- stand.Torso["Right Shoulder"].Part0 = stand.Torso
- stand.Torso["Right Shoulder"].Part1 = stand["Right Arm"]
- stand.Torso["Left Shoulder"].Part0 = stand.Torso
- stand.Torso["Left Shoulder"].Part1 = stand["Left Arm"]
- stand.Torso["Right Hip"].Part0 = stand.Torso
- stand.Torso["Right Hip"].Part1 = stand["Right Leg"]
- stand.Torso["Left Hip"].Part0 = stand.Torso
- stand.Torso["Left Hip"].Part1 = stand["Left Leg"]
- local part = Instance.new("Part",stand["Right Arm"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Right Arm"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1046802053"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Right Arm"] weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(180),0) weld.Parent = part
- local part = Instance.new("Part",stand["Left Arm"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Left Arm"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1046802053"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Left Arm"] weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(0),0) weld.Parent = part
- local part = Instance.new("Part",stand["Right Leg"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Right Leg"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1046814309"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Right Leg"] weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(180),0) weld.Parent = part
- local part = Instance.new("Part",stand["Left Leg"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Left Leg"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1046814309"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Left Leg"] weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(180),0) weld.Parent = part
- local part = Instance.new("Part",stand["Torso"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Torso"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1047170939"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Torso"] weld.C0 = CFrame.new(0,-0.05,-0.05)*CFrame.Angles(0,math.rad(180),0) weld.Parent = part
- local part = Instance.new("Part",stand["Head"]) part.Size = Vector3.new(0,0,0) part.BrickColor = BrickColor.new("Cyan") part.CanCollide = false part.CFrame = stand["Head"].CFrame part.Name = "Model"
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshId = "rbxassetid://1047207057"
- local weld = Instance.new("Weld") weld.Part0 = part weld.Part1 = stand["Head"] weld.C0 = CFrame.new(0,-0.1,0)*CFrame.Angles(0,math.rad(180),0) weld.Parent = part
- cooldown = false
- normalTp = true
- punchTp = false
- stand.Parent = nil
- running = false
- punchEffects = {}
- stand.HumanoidRootPart.Anchored = true
- freezing = {}
- function stillAnimation()
- stand.HumanoidRootPart.RootJoint.C0 = CFrame.new(stand.HumanoidRootPart.RootJoint.C0.p)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(30))
- stand.Torso["Right Shoulder"].C0 = CFrame.new(stand.Torso["Right Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(90),0)
- stand.Torso["Left Shoulder"].C0 = CFrame.new(stand.Torso["Left Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(-90),0)
- stand.Torso["Neck"].C0 = CFrame.new(stand.Torso["Neck"].C0.p)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(-210))
- stand.Torso["Right Hip"].C0 = CFrame.new(stand.Torso["Right Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(90),0)
- stand.Torso["Left Hip"].C0 = CFrame.new(stand.Torso["Left Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(-90),0)
- end
- function punchAnimation()
- for i=-30,90,30 do
- wait()
- stand.HumanoidRootPart.RootJoint.C0 = CFrame.new(stand.HumanoidRootPart.RootJoint.C0.p)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(i/3))
- stand.Torso["Right Shoulder"].C0 = CFrame.new(stand.Torso["Right Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(0,math.rad(i),math.rad(90))
- stand.Torso["Left Shoulder"].C0 = CFrame.new(stand.Torso["Left Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(-90),0)
- stand.Torso["Neck"].C0 = CFrame.new(stand.Torso["Neck"].C0.p)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(-210))
- stand.Torso["Right Hip"].C0 = CFrame.new(stand.Torso["Right Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(90),0)
- stand.Torso["Left Hip"].C0 = CFrame.new(stand.Torso["Left Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(-90),0)
- end
- end
- function oraposAnimation()
- stand.HumanoidRootPart.RootJoint.C0 = CFrame.new(stand.HumanoidRootPart.RootJoint.C0.p)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0))
- stand.Torso["Right Shoulder"].C0 = CFrame.new(stand.Torso["Right Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(90),0)
- stand.Torso["Left Shoulder"].C0 = CFrame.new(stand.Torso["Left Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(-90),0)
- stand.Torso["Neck"].C0 = CFrame.new(stand.Torso["Neck"].C0.p)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(-180))
- stand.Torso["Right Hip"].C0 = CFrame.new(stand.Torso["Right Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(90),0)
- stand.Torso["Left Hip"].C0 = CFrame.new(stand.Torso["Left Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(-90),0)
- end
- function skill1Animation()
- stand.HumanoidRootPart.RootJoint.C0 = CFrame.new(stand.HumanoidRootPart.RootJoint.C0.p)*CFrame.Angles(math.rad(60),math.rad(180),math.rad(0))
- stand.Torso["Right Shoulder"].C0 = CFrame.new(stand.Torso["Right Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(90),0)
- stand.Torso["Left Shoulder"].C0 = CFrame.new(stand.Torso["Left Shoulder"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-20),math.rad(-90),0)
- stand.Torso["Neck"].C0 = CFrame.new(stand.Torso["Neck"].C0.p)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(-180))
- stand.Torso["Right Hip"].C0 = CFrame.new(stand.Torso["Right Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(90),0)
- stand.Torso["Left Hip"].C0 = CFrame.new(stand.Torso["Left Hip"].C0.p)*CFrame.fromEulerAnglesYXZ(math.rad(-10),math.rad(-90),0)
- end
- oras = {}
- stillAnimation()
- function punched(pos)
- local part = Instance.new("Part",game.Workspace) part.Anchored = true part.CanCollide = false
- local mesh = Instance.new("SpecialMesh",part) mesh.MeshType = Enum.MeshType.Sphere
- part.Color = Color3.fromRGB(255,255,255)
- part.Material = Enum.Material.Neon
- part.Transparency = 0.85
- part.Size = Vector3.new(0.05,0.05,0.05)
- part.CFrame = CFrame.new(pos)
- part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- game:GetService("Debris"):AddItem(part,0.5)
- table.insert(punchEffects,part)
- end
- timerforbubbles = 0
- local waterball = Instance.new("Part") waterball.Shape = Enum.PartType.Ball
- waterball.Color = Color3.fromRGB(4, 175, 236)
- waterball.Material = Enum.Material.Granite
- waterball.Transparency = 0.5
- waterball.Size = Vector3.new(0.75,0.75,0.75)
- waterball.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- waterball.Anchored = true
- waterball.CanCollide = false
- local int = Instance.new("NumberValue",waterball) int.Name = "Timer"
- local int = Instance.new("NumberValue",waterball) int.Name = "TimerNeed"
- local int = Instance.new("Color3Value",waterball) int.Name = "ColorVal"
- local int = Instance.new("NumberValue",waterball) int.Name = "Trans"
- local int = Instance.new("NumberValue",waterball) int.Name = "Reflec"
- waterballs = {}
- stand.Humanoid.HealthChanged:connect(function(health)
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" or game.Players.LocalPlayer.Name == "Pedrorb03" then
- if health < 250 then
- stand.Humanoid.Health = 250
- local quantity = health-250
- game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health+quantity
- end
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" or game.Players.LocalPlayer.Name == "Pedrorb03" then
- for _,ora in pairs(oras) do
- if ora:FindFirstChild("Pos") then
- ora.Pos.Value = ora.Pos.Value-Vector3.new(0,0,1)
- ora.CFrame = stand.Torso.CFrame:toWorldSpace(CFrame.new(ora.Pos.Value))*CFrame.Angles(0,math.rad(270),math.rad(-90))
- ora.Model.CFrame = ora.CFrame
- local exception = {}
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child ~= game.Players.LocalPlayer.Character then
- for _,InChild in pairs(child:GetChildren()) do
- if child:FindFirstChild("Humanoid") then
- local did = false
- for i=1,#exception do
- if exception[i] == child then
- did = true
- end
- end
- if did == false then
- if InChild:IsA("BasePart") then
- local pos = ora.CFrame.p
- if (pos-InChild.Position).magnitude < 2 then
- table.insert(exception,child)
- punched(pos)
- if not ora:FindFirstChild("LowDamage") then
- child.Humanoid.Health = child.Humanoid.Health-0.125
- end
- if ora:FindFirstChild("LowDamage") then
- child.Humanoid.Health = child.Humanoid.Health-0.03
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- for _,ballz in pairs(waterballs) do
- if ballz:FindFirstChild("Timer") then
- ballz.Timer.Value = ballz.Timer.Value+0.05
- if ballz.Timer.Value < ballz.TimerNeed.Value then
- ballz.CFrame = ballz.CFrame+Vector3.new(0,0.1,0)
- end
- if ballz.Timer.Value >= ballz.TimerNeed.Value then
- ballz.Anchored = true
- ballz.Transparency = 0
- ballz.Color = ballz.ColorVal.Value
- ballz.Transparency = ballz.Trans.Value
- ballz.Reflectance = ballz.Reflec.Value
- ballz.CanCollide = true
- end
- ballz.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent ~= game.Players.LocalPlayer.Character then
- local child = hit.Parent
- child.Humanoid.Health = child.Humanoid.Health-0.5
- if hit.Parent:FindFirstChild("HumanoidRootPart") then
- hit.Parent.HumanoidRootPart.Velocity = -hit.Parent.HumanoidRootPart.CFrame.lookVector*30
- end
- end
- end
- end)
- end
- end
- for i,freeze in pairs(freezing) do
- local away = false
- for _,child in pairs(freeze:GetChildren()) do
- if child:IsA("BasePart") then
- if (child.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude <= 20 then
- child.Material = Enum.Material.Ice
- child.Anchored = true
- end
- if (child.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude > 20 then
- child.Material = Enum.Material.Plastic
- child.Anchored = false
- away = true
- end
- end
- end
- if away == true then
- for _,child in pairs(freeze:GetChildren()) do
- if child:IsA("BasePart") then
- child.Material = Enum.Material.Plastic
- child.Anchored = false
- end
- end
- table.remove(freezing,i)
- end
- end
- for _,partt in pairs(punchEffects) do
- partt.Size = partt.Size+Vector3.new(0.075,0.075,0.075)
- end
- if normalTp == true then
- stand.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(2,0.5,3)).p,game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*100000000)
- end
- if punchTp == true then
- stand.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0.5,-3)).p,game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*100000000)
- end
- for _,child in pairs(stand:GetChildren()) do
- if child:IsA("BasePart") then
- child.CollisionGroupId = 3
- child.CanCollide = false
- end
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if game.Players.LocalPlayer.Name == "TheNeonKaratedKid" or game.Players.LocalPlayer.Name == "Pedrorb03" then
- if key.KeyCode == Enum.KeyCode.Q then
- if cooldown == false then
- if stand.Parent ~= nil then
- stand.Parent = nil
- else
- game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character,"Love Is Blue!",Enum.ChatColor.White)
- stand.Parent = game.Players.LocalPlayer.Character
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.E then
- if cooldown == false then
- if stand.Parent ~= nil then
- if normalTp == true then
- normalTp = false
- cooldown = true
- punchTp = true
- punchAnimation()
- local exception = {}
- for i=1,6 do
- wait(0.1)
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child ~= game.Players.LocalPlayer.Character then
- for _,InChild in pairs(child:GetChildren()) do
- if child:FindFirstChild("Humanoid") then
- local did = false
- for i=1,#exception do
- if exception[i] == child then
- did = true
- end
- end
- if did == false then
- if InChild:IsA("BasePart") then
- local pos = stand["Right Arm"].CFrame:toWorldSpace(CFrame.new(0,-1,0)).p
- if (pos-InChild.Position).magnitude < 2 then
- table.insert(exception,child)
- punched(pos)
- child.Humanoid.Health = child.Humanoid.Health-10
- end
- end
- end
- end
- end
- end
- end
- end
- stillAnimation()
- normalTp = true
- cooldown = false
- punchTp = false
- end
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.R then
- if cooldown == false then
- if stand.Parent ~= nil then
- if normalTp == true then
- normalTp = false
- cooldown = true
- punchTp = true
- stand["Right Arm"].Transparency = 1
- stand["Right Arm"].Model.Transparency = 1
- stand["Left Arm"].Transparency = 1
- stand["Left Arm"].Model.Transparency = 1
- oraposAnimation()
- for i=1,100 do
- wait()
- local clon = stand["Right Arm"]:Clone()
- clon.Name = "ora"
- clon.Parent = game.Workspace
- clon.Anchored = true
- clon.CanCollide = false
- clon.Model.CanCollide = false
- clon.Transparency = 0
- clon.Model.Transparency = 0
- clon.Model.Anchored = true
- clon.Material = Enum.Material.SmoothPlastic
- clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- game:GetService("Debris"):AddItem(clon,0.1)
- local ins = Instance.new("Vector3Value",clon) ins.Name = "Pos"
- ins.Value = Vector3.new(math.random(-2,2),math.random(-2,2),1)
- table.insert(oras,clon)
- local clon = stand["Left Arm"]:Clone()
- clon.Name = "ora"
- clon.Parent = game.Workspace
- clon.Anchored = true
- clon.CanCollide = false
- clon.Model.CanCollide = false
- clon.Transparency = 0
- clon.Model.Transparency = 0
- clon.Model.Anchored = true
- clon.Material = Enum.Material.SmoothPlastic
- clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- game:GetService("Debris"):AddItem(clon,0.1)
- local ins = Instance.new("Vector3Value",clon) ins.Name = "Pos"
- ins.Value = Vector3.new(math.random(-2,2),math.random(-2,2),1)
- table.insert(oras,clon)
- end
- wait(0.3)
- oras = {}
- stand["Right Arm"].Transparency = 0
- stand["Right Arm"].Model.Transparency = 0
- stand["Left Arm"].Transparency = 0
- stand["Left Arm"].Model.Transparency = 0
- stillAnimation()
- normalTp = true
- cooldown = false
- punchTp = false
- end
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.Z then
- if cooldown == false then
- if stand.Parent ~= nil then
- if normalTp == true then
- normalTp = false
- cooldown = true
- punchTp = true
- skill1Animation()
- stand["Right Arm"].Transparency = 1
- stand["Right Arm"].Model.Transparency = 1
- stand["Left Arm"].Transparency = 1
- stand["Left Arm"].Model.Transparency = 1
- for i=1,100 do
- wait()
- local clon = stand["Right Arm"]:Clone()
- clon.Name = "ora"
- clon.Parent = game.Workspace
- clon.Anchored = true
- clon.CanCollide = false
- clon.Model.CanCollide = false
- clon.Transparency = 0
- clon.Model.Transparency = 0
- clon.Model.Anchored = true
- clon.Material = Enum.Material.SmoothPlastic
- clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- game:GetService("Debris"):AddItem(clon,0.15)
- local ins = Instance.new("Vector3Value",clon) ins.Name = "Pos"
- ins.Value = Vector3.new(math.random(-2,2),math.random(-2,2),1)
- local ins = Instance.new("BoolValue",clon) ins.Name = "LowDamage"
- table.insert(oras,clon)
- local pos = stand.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(math.random(-300,300)/100,-4,-math.random(300,900)/100))
- timerforbubbles = timerforbubbles+1
- if timerforbubbles >= 2 then
- timerforbubbles = 0
- local ray = Ray.new(pos.p+Vector3.new(0,1,0),Vector3.new(0,-2,0))
- local ignoreList = {game.Players.LocalPlayer.Character}
- for _, var in pairs(oras) do
- table.insert(ignoreList,var)
- end
- for _, var in pairs(waterballs) do
- table.insert(ignoreList,var)
- end
- for _, var in pairs(punchEffects) do
- table.insert(ignoreList,var)
- end
- local hit,position,normal = game.Workspace:FindPartOnRayWithIgnoreList(ray,ignoreList)
- if hit then
- local ball = waterball:Clone()
- ball.Parent = game.Workspace
- ball.CFrame = pos
- ball.Material = hit.Material
- ball.ColorVal.Value = hit.Color
- ball.Trans.Value = hit.Transparency
- ball.Reflec.Value = hit.Reflectance
- ball.TimerNeed.Value = math.random(0,500)/100
- game:GetService("Debris"):AddItem(ball,20)
- table.insert(waterballs,ball)
- end
- end
- local clon = stand["Left Arm"]:Clone()
- clon.Name = "ora"
- clon.Parent = game.Workspace
- clon.Anchored = true
- clon.CanCollide = false
- clon.Model.CanCollide = false
- clon.Transparency = 0
- clon.Model.Transparency = 0
- clon.Model.Anchored = true
- game:GetService("Debris"):AddItem(clon,0.1)
- local ins = Instance.new("Vector3Value",clon) ins.Name = "Pos"
- ins.Value = Vector3.new(math.random(-2,2),math.random(-2,2),1)
- clon.Material = Enum.Material.SmoothPlastic
- clon.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- clon.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- table.insert(oras,clon)
- end
- wait(0.3)
- oras = {}
- stand["Right Arm"].Transparency = 0
- stand["Right Arm"].Model.Transparency = 0
- stand["Left Arm"].Transparency = 0
- stand["Left Arm"].Model.Transparency = 0
- stillAnimation()
- normalTp = true
- cooldown = false
- punchTp = false
- end
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.X then
- if cooldown == false then
- if stand.Parent ~= nil then
- if normalTp == true then
- normalTp = false
- cooldown = true
- punchTp = true
- punchAnimation()
- local exception = {}
- for i=1,6 do
- wait(0.1)
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child ~= game.Players.LocalPlayer.Character then
- if child:IsA("BasePart") then
- local pos = stand["Right Arm"].CFrame:toWorldSpace(CFrame.new(0,-1,0)).p
- if (pos-child.Position).magnitude < 2 then
- local instan = Instance.new("Part",game.Workspace)
- instan.Size = child.Size
- instan.CFrame = child.CFrame
- instan.Material = child.Material
- instan.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.Name = "nil"
- instan.Color = Color3.fromRGB(4, 175, 236)
- instan.Transparency = 0.5
- instan.CanCollide = false
- child:remove()
- end
- end
- for _,Inchild in pairs(child:GetChildren()) do
- if Inchild:IsA("BasePart") then
- local pos = stand["Right Arm"].CFrame:toWorldSpace(CFrame.new(0,-1,0)).p
- if (pos-Inchild.Position).magnitude < 2 then
- local instan = Instance.new("Part",game.Workspace)
- instan.Size = Inchild.Size
- instan.Position = Inchild.Position
- instan.Material = Inchild.Material
- instan.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- instan.Name = "nil"
- instan.Color = Color3.fromRGB(4, 175, 236)
- instan.Transparency = 0.5
- instan.CanCollide = false
- Inchild:remove()
- end
- end
- end
- end
- end
- end
- stillAnimation()
- normalTp = true
- cooldown = false
- punchTp = false
- end
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.C then
- if cooldown == false then
- if stand.Parent ~= nil then
- if normalTp == true then
- normalTp = false
- cooldown = true
- punchTp = true
- punchAnimation()
- local exception = {}
- for i=1,6 do
- wait(0.1)
- for _,child in pairs(game.Workspace:GetChildren()) do
- for _,Inchild in pairs(child:GetChildren()) do
- if Inchild:IsA("BasePart") then
- local pos = stand["Right Arm"].CFrame:toWorldSpace(CFrame.new(0,-1,0)).p
- if (pos-Inchild.Position).magnitude < 2 then
- if child:FindFirstChild("Humanoid") then
- table.insert(freezing,child)
- end
- end
- end
- end
- end
- end
- stillAnimation()
- normalTp = true
- cooldown = false
- punchTp = false
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement