Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local larm = owner.Character["Left Arm"]
- attacking = false
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- hitmesh = "rbxassetid://1007757199"
- char = owner.Character
- Humanoid = char:FindFirstChildOfClass("Humanoid")
- root = char.Torso
- Player_Size = 1
- RootPart = root
- Effects = Instance.new("Model",char)
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = root.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- Player_Size = 1 --Size of the player.
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 20
- local Effects2 = {}
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --\\=================================//
- walkspeedtoggle = true
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = SIZE
- mesh.Offset = VT(0,0,-SIZE.X/8)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function Debree(Table)
- local KindOf = (Table.Variant or "Ring")
- local Position = (Table.Location or root.Position)
- local Coloration = (Table.Color or C3(1,1,1))
- local Texture = (Table.Material or "Slate")
- local Fling = (Table.Scatter or 1)
- local Number = (Table.Amount or 1)
- local Rocks = (Table.DebreeCount or 1)
- local Range = (Table.Distance or 1)
- local Scale = (Table.Size or 1)
- local Timer = (Table.Delay or 1.5)
- coroutine.resume(coroutine.create(function()
- local ScaleVector = VT(Scale,Scale,Scale)
- local Boulders = {}
- Position = CF(Position)
- if KindOf == "Ring" or KindOf == "Both" then
- for RockValue = 1, Number do
- local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),Range)
- local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
- BOULDER.CanCollide = true
- BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- BOULDER.Color = Coloration
- table.insert(Boulders,BOULDER)
- end
- end
- if KindOf == "Loose" or KindOf == "Both" then
- for RockValue = 1, Rocks do
- local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale-(Scale/2)),math.ceil(Scale-(Scale/2))),0.7)
- local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
- BOULDER.CanCollide = true
- BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- BOULDER.Velocity = CF(BOULDER.Position-VT(0,4,0),BOULDER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,5,0).p).lookVector*MRANDOM(Fling-(Fling/1.5),Fling+(Fling/1.5))
- BOULDER.Color = Coloration
- table.insert(Boulders,BOULDER)
- end
- end
- if KindOf == "Random" then
- for RockValue = 1, Number do
- local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),MRANDOM(0,Range))
- local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
- BOULDER.CanCollide = true
- BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- BOULDER.Color = Coloration
- table.insert(Boulders,BOULDER)
- end
- end
- wait(Timer)
- for E = 1, 45 do
- Swait()
- for A = 1, #Boulders do
- Boulders[A].Transparency = Boulders[A].Transparency + 1/45
- end
- end
- for A = 1, #Boulders do
- Boulders[A]:Destroy()
- end
- end))
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- coroutine.resume(coroutine.create(function()
- while true do
- Swait()
- Humanoid.WalkSpeed = 16
- Humanoid.Health = 100
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Anchored = false
- elseif v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v.Handle.Anchored = false
- end
- end
- end
- end))
- function anti()
- Humanoid.Parent = game.Lighting
- Humanoid.Health = 100
- local Motor6D0 = Instance.new("Motor6D")
- local Motor6D1 = Instance.new("Motor6D")
- local Motor6D2 = Instance.new("Motor6D")
- local Motor6D3 = Instance.new("Motor6D")
- local Motor6D4 = Instance.new("Motor6D")
- Motor6D0.Name = "Left Hip"
- Motor6D0.Parent = root
- Motor6D0.MaxVelocity = 0.10000000149012
- Motor6D0.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D0.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D0.Part0 = root
- Motor6D0.Part1 = char["Left Leg"]
- Motor6D1.Name = "Left Shoulder"
- Motor6D1.Parent = root
- Motor6D1.MaxVelocity = 0.10000000149012
- Motor6D1.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D1.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D1.Part0 = root
- Motor6D1.Part1 = larm
- Motor6D2.Name = "Neck"
- Motor6D2.Parent = root
- Motor6D2.MaxVelocity = 0.10000000149012
- Motor6D2.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D2.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D2.Part0 = root
- Motor6D2.Part1 = char["Head"]
- Motor6D3.Name = "Right Hip"
- Motor6D3.Parent = root
- Motor6D3.MaxVelocity = 0.10000000149012
- Motor6D3.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D3.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D3.Part0 = root
- Motor6D3.Part1 = char["Right Leg"]
- Motor6D4.Name = "Right Shoulder"
- Motor6D4.Parent = root
- Motor6D4.MaxVelocity = 0.10000000149012
- Motor6D4.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D4.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D4.Part0 = root
- Motor6D4.Part1 = char["Right Arm"]
- local Motor6D9 = Instance.new("Motor6D")
- Motor6D9.Name = "Root Hip"
- Motor6D9.Parent = char.HumanoidRootPart
- Motor6D9.MaxVelocity = 0.10000000149012
- Motor6D9.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D9.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D9.Part0 = char.HumanoidRootPart
- Motor6D9.Part1 = root
- Humanoid.Parent = char
- end
- Humanoid.Died:Connect(anti)
- char.ChildRemoved:Connect(function(child)
- if child.ClassName == "Humanoid" then
- local p = Instance.new("Part",workspace)
- p.CFrame = root.CFrame
- owner:LoadCharacter()
- p:Remove()
- owner.Character:MoveTo(CFrame.new(p.CFrame.X,p.CFrame.Y,p.CFrame.Z))
- script:Remove()
- end
- end)
- function uhh()
- local part = Instance.new("Part",root)
- part.CFrame = root.CFrame
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = hitmesh
- for i = 1,3 do
- wait(0.1)
- mesh.Scale = Vector3.new(0+1,0+1,0+1)
- part.Transparency = part.Transparency + 1
- end
- end
- local S = IT("Sound",game.Lighting)
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "rbxassetid://"..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- Character =char
- local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- owner.Character.Torso.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid")and attacking == false and hit.Parent:FindFirstChild("Head") and hit.Parent:FindFirstChild("Head").Parent ~= Character then
- if hit.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then
- HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- local ili =char.Torso["Left Shoulder"].C0
- --Converted with ttyyuu12345's model to script plugin v4
- local function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- local cors = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local ScreenGui0 = Instance.new("ScreenGui")
- local TextButton1 = Instance.new("TextButton")
- local TextButton2 = Instance.new("TextButton")
- local TextLabel3 = Instance.new("TextLabel")
- ScreenGui0.Parent = mas
- TextButton1.Name = "a"
- TextButton1.Parent = ScreenGui0
- TextButton1.Position = UDim2.new(0.801898003, 0, 0.761431456, 0)
- TextButton1.Size = UDim2.new(0, 91, 0, 50)
- TextButton1.BackgroundColor = BrickColor.new("Institutional white")
- TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton1.Font = Enum.Font.SourceSans
- TextButton1.FontSize = Enum.FontSize.Size14
- TextButton1.Text = "throw them up"
- TextButton1.TextColor = BrickColor.new("Really black")
- TextButton1.TextColor3 = Color3.new(0, 0, 0)
- TextButton1.TextSize = 14
- TextButton2.Name = "e"
- TextButton2.Parent = ScreenGui0
- TextButton2.Position = UDim2.new(0.721233785, 0, 0.761431396, 0)
- TextButton2.Size = UDim2.new(0, 68, 0, 50)
- TextButton2.BackgroundColor = BrickColor.new("Institutional white")
- TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.FontSize = Enum.FontSize.Size14
- TextButton2.Text = "throw"
- TextButton2.TextColor = BrickColor.new("Really black")
- TextButton2.TextColor3 = Color3.new(0, 0, 0)
- TextButton2.TextSize = 14
- TextLabel3.Parent = ScreenGui0
- TextLabel3.Position = UDim2.new(0.747330964, 0, 0.707753479, 0)
- TextLabel3.Size = UDim2.new(0, 119, 0, 17)
- TextLabel3.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel3.Font = Enum.Font.SourceSans
- TextLabel3.FontSize = Enum.FontSize.Size14
- TextLabel3.Text = "choices"
- TextLabel3.TextColor = BrickColor.new("Really black")
- TextLabel3.TextColor3 = Color3.new(0, 0, 0)
- TextLabel3.TextSize = 14
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- attacking = true
- local weld = Instance.new("Weld",hit.Parent.Head)
- weld.Part0 = hit.Parent.Head
- weld.Part1 = larm
- Humanoid.WalkSpeed = 0
- hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- print("Current Target : "..hit.Parent.Name)
- TextButton2.MouseButton1Click:Connect(function()
- ScreenGui0.Parent = nil
- CreateSound(147722227, Effects, 2, 1.3, false)
- local bodyforc = Instance.new("BodyVelocity", hit.Parent.Torso)
- weld:Remove()
- bodyforc.Velocity = Vector3.new(0, hit.Parent.Torso:GetMass() * 500, 0)
- if hit.Parent:FindFirstChild("HumanoidRootPart") then
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
- wait(0.5)
- attacking = false
- bodyforc:Remove()
- char.Torso["Left Shoulder"].C0 = ili
- local HITFLOOR1,HITPOS1 = Raycast(hit.Parent.HumanoidRootPart.Position, (CF(hit.Parent.HumanoidRootPart.Position,hit.Parent.HumanoidRootPart.Position + VT(0, -1, 0))).lookVector, 4, hit.Parent)
- repeat wait() until HITFLOOR1 ~= nil
- local bricky = Instance.new("Part",Effects)
- bricky.Size = Vector3.new(1,1,1)
- bricky.CFrame = CF(hit.Parent.HumanoidRootPart.CFrame.X,1,hit.Parent.HumanoidRootPart.CFrame.Z)
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
- Debree({Delay = 4,Variant = "Ring",Location = HITPOS1,Color = HITFLOOR1.Color,Size = 3,Distance = 15,Material = HITFLOOR1.Material,Scatter = 1,Amount = 30,DebreeCount = 8})
- bricky:Remove()
- CreateSound(765590102,Effects,5,1,false)
- hit.Parent:BreakJoints()
- elseif not hit.Parent:FindFirstChild("HumanoidRootPart") then
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
- wait(0.5)
- bodyforc:Remove()
- char.Torso["Left Shoulder"].C0 = ili
- attacking = false
- local HITFLOOR1,HITPOS1 = Raycast(hit.Parent.Torso.Position, (CF(hit.Parent.Torso.Position,hit.Parent.Torso.Position + VT(0, -1, 0))).lookVector, 4, hit.Parent)
- repeat wait() until HITFLOOR1 ~= nil
- local bricky = Instance.new("Part",Effects)
- bricky.Size = Vector3.new(1,1,1)
- bricky.CFrame = CF(hit.Parent.Torso.CFrame.X,1,hit.Parent.Torso.CFrame.Z)
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
- Debree({Delay = 4,Variant = "Ring",Location = HITPOS1,Color = HITFLOOR1.Color,Size = 3,Distance = 15,Material = HITFLOOR1.Material,Scatter = 1,Amount = 30,DebreeCount = 8})
- bricky:Remove()
- CreateSound(765590102,Effects,5,1,false)
- hit.Parent:BreakJoints()
- end
- end)
- TextButton1.MouseButton1Click:Connect(function()
- owner.PlayerGui.ScreenGui:Remove()
- owner.Character.Torso.Anchored = true
- Humanoid.PlatformStand = true
- CreateSound(147722227, Effects, 2, 1.3, false)
- for i = 1,2 do
- wait(0.01)
- owner.Character.Torso.CFrame = owner.Character.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0 + 1,0,0)
- end
- owner.Character.Torso.Anchored = false
- owner.Character.Torso.Velocity = Vector3.new(500,0,0)
- local a = Instance.new("BodyVelocity",owner.Character.Torso)
- a.Velocity = Vector3.new(0,50,0)
- a.MaxForce = Vector3.new(math.huge, math.huge,math.huge)
- wait(1)
- a:Destroy()
- for i = 1,3 do
- wait(0.01)
- owner.Character.Torso.CFrame = owner.Character.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0 + 1,0,0)
- end
- wait(1)
- repeat wait() until HITFLOOR ~= nil
- local bricky = Instance.new("Part",Effects)
- bricky.Size = Vector3.new(1,1,1)
- bricky.CFrame = CF(root.CFrame.X,1,root.CFrame.Z)
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
- CreateWave(VT(3,1,3),65,CF(bricky.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
- Debree({Delay = 4,Variant = "Ring",Location = HITPOS,Color = HITFLOOR.Color,Size = 3,Distance = 15,Material = HITFLOOR.Material,Scatter = 1,Amount = 30,DebreeCount = 8})
- bricky:Remove()
- CreateSound(765590102,Effects,5,1,false)
- hit.Parent:BreakJoints()
- owner.Character.Torso.Anchored = false
- Humanoid.PlatformStand = false
- attacking = false
- char.Torso["Left Shoulder"].C0 = ili
- Humanoid.WalkSpeed = 16
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement