Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner.Character.Humanoid.MaxHealth = 250
- local sound = Instance.new("Sound")
- sound.PlayOnRemove = true
- sound.Volume = 2
- local rayblacklist = {}
- local p = Instance.new("SpawnLocation")
- p.Enabled = false
- p.Transparency = 1
- p.Size = Vector3.new(0.25,0.25,0.25)
- p.Name = "bloodyhujijahuyugtfvfyh"
- local attachment0 = Instance.new("Attachment",p)
- local attachment1 = Instance.new("Attachment",p)
- attachment1.CFrame = CFrame.new(-0.1,0.1,0.1)
- attachment0.CFrame = CFrame.new(0.1,-0.1,-0.1)
- local trail = Instance.new("Trail",p)
- trail.Attachment0 = attachment0
- trail.Attachment1 = attachment1
- trail.Lifetime = 0.15
- trail.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)}
- trail.WidthScale = NumberSequence.new{NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 0)}
- trail.MaxLength = 0
- trail.LightEmission = 0
- trail.LightInfluence = 1
- trail.TextureLength = 1
- trail.TextureMode = "Stretch"
- trail.Color = ColorSequence.new(Color3.fromRGB(85,0,0))
- trail.MinLength = 0.1
- trail.FaceCamera = true
- local min = -15
- local max = 15
- function splat(whatpart,times)
- pcall(function()
- for i = 1,(2 * times) do
- wait()
- coroutine.wrap(function()
- pcall(function()
- local b = p:Clone()
- b.Parent = script
- b.Position = whatpart.Position
- b.Velocity = Vector3.new(Random.new():NextNumber(min,max),Random.new():NextNumber(min,max) + 30,Random.new():NextNumber(min,max))
- table.insert(rayblacklist,b)
- b.Touched:Connect(function(what)
- if not (what:FindFirstAncestorWhichIsA("Model") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) and not table.find(rayblacklist,what) and what.CanCollide == true then
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {rayblacklist,whatpart:FindFirstAncestorWhichIsA("Model"):GetDescendants()}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = workspace:Raycast(b.Position,b.Velocity + Vector3.new(0,-3,0), params)
- if result then
- if result.Instance.Name ~= "imbloodaaaa" then
- local bloodpartfloor = Instance.new("SpawnLocation")
- bloodpartfloor.Enabled = false
- bloodpartfloor.CanCollide = false
- bloodpartfloor.Anchored = true
- bloodpartfloor.Name = "imbloodaaaa"
- bloodpartfloor.Size = Vector3.new(0.05,0.005,0.005)
- bloodpartfloor.CanCollide = false
- bloodpartfloor.Material = "Ice"
- bloodpartfloor.Transparency = 0.3
- local s = Instance.new("SpecialMesh",bloodpartfloor)
- s.MeshType = "Sphere"
- b:Destroy()
- bloodpartfloor.Position = result.Position
- local whathit = result.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = result.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- bloodpartfloor.CFrame = CFrame.fromMatrix(bloodpartfloor.Position, currentRightVector, upVector, newFacialVector) * CFrame.Angles(0,0,math.rad(90))
- bloodpartfloor.Color = Color3.fromRGB(85, 0,0)
- game:GetService("Debris"):AddItem(bloodpartfloor,15)
- bloodpartfloor.Parent = workspace
- local random = Random.new():NextNumber(0.25,3)
- local tweenService = game:GetService("TweenService")
- local timeToFade = random/3
- local object = bloodpartfloor
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal = {}
- goal.Size = Vector3.new(random/20,random,random)
- goal.Transparency = 0.3 + random/10
- local groww = tweenService:Create(object, tweenInfo, goal)
- groww:Play()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 5
- local object = bloodpartfloor
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal = {}
- goal.Transparency = 1
- local gone = tweenService:Create(object, tweenInfo, goal)
- delay(10,function()
- gone:Play()
- end)
- else
- local random = Random.new():NextNumber(0.25,3)/10
- local tweenService = game:GetService("TweenService")
- local timeToFade = random/3
- local object = result.Instance
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal = {}
- goal.Size = object.Size + Vector3.new(random/20,random,random)
- local groww = tweenService:Create(object, tweenInfo, goal)
- groww:Play()
- end
- end
- end
- end)
- end)
- end)()
- end
- end)
- end
- tool = Instance.new("Tool",owner.Backpack)
- tool.Grip = CFrame.new(0,-0.45,0) * CFrame.Angles(0,math.rad(-90),math.rad(10))
- tool.Name = "a"
- local part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Size = Vector3.new(173.645, 561.276, 21.766) * 0.009
- local m = Instance.new("SpecialMesh",part)
- m.MeshId = "rbxassetid://584242807"
- m.TextureId = "rbxassetid://584242810"
- m.Scale = m.Scale * 0.009
- local par2 = Instance.new("Part",owner.Character)
- par2.CanCollide = false
- par2.Transparency = 1
- par2.Size = Vector3.new()
- par2.Name = "the"
- local wel = Instance.new("Weld",owner.Character.Torso)
- wel.Part0 = par2
- wel.Part1 = wel.Parent
- local hed = Instance.new("Weld",owner.Character.Torso)
- hed.Part0 = owner.Character.Head
- hed.Part1 = hed.Parent
- hed.C0 = CFrame.new(0,-0.5,0)
- hed.C1 = CFrame.new(0,1,0)
- hed.Enabled = false
- local rarm = Instance.new("Weld",par2)
- rarm.Part0 = owner.Character["Right Arm"]
- rarm.Part1 = rarm.Parent
- rarm.C0 = CFrame.new(0,0.25,0) * CFrame.Angles(math.rad(-78.2135),math.rad(-13.2138),math.rad(27.2138))
- rarm.C1 = CFrame.new(1,0.2895,-0.581285)
- rarm.Enabled = false
- rarm.Name = "r"
- local larm = Instance.new("Weld",par2)
- larm.Part0 = owner.Character["Left Arm"]
- larm.Part1 = larm.Parent
- larm.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-84.2135),math.rad(65.2138),math.rad(27.2138))
- larm.C1 = CFrame.new(-1,0.4,-(1.389 - 0.35))
- larm.Enabled = false
- larm.Name = "l"
- local tweenService = game:GetService("TweenService")
- local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0.1,true)
- local goal = {}
- goal.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-140.2135),math.rad(-10.2138),math.rad(23.2138))
- local tween = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(0.4,0.9,-0.7) * CFrame.Angles(math.rad(-146.2135),math.rad(67.2138),math.rad(23.2138))
- goal.C1 = CFrame.new(-1,0.4,-(1.389 - 0.5))
- local tween3 = tweenService:Create(larm, tweenInfo, goal)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.new(0,0.8,0) * CFrame.Angles(math.rad(-34.2135),math.rad(-13.2138),math.rad(37.2138))
- local tween2 = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(-0.4,0.4,-0.2) * CFrame.Angles(math.rad(-96.2135),math.rad(65.2138),math.rad(57.2138))
- local tween4 = tweenService:Create(larm, tweenInfo, goal)
- local welll = Instance.new("Weld",owner.Character.HumanoidRootPart)
- welll.Part0 = owner.Character.Torso
- welll.Part1 = owner.Character.HumanoidRootPart
- welll.Enabled = false
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1 * CFrame.Angles(math.rad(10),math.rad(-15),0)
- local twee = tweenService:Create(welll, tweenInfo, goa)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1 * CFrame.Angles(math.rad(-10),math.rad(15),0)
- local twee2 = tweenService:Create(welll, tweenInfo, goa)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1
- local twee3 = tweenService:Create(welll, tweenInfo, goa)
- local goal = {}
- goal.C0 = rarm.C0
- local tweenn = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = larm.C0
- goal.C1 = larm.C1
- local tweenn2 = tweenService:Create(larm, tweenInfo, goal)
- tool.Equipped:Connect(function()
- rarm.Enabled = true
- larm.Enabled = true
- welll.Enabled = true
- hed.Enabled = true
- owner.Character.Humanoid.WalkSpeed = 20
- end)
- tool.Unequipped:Connect(function()
- rarm.Enabled = false
- larm.Enabled = false
- welll.Enabled = false
- hed.Enabled = false
- owner.Character.Humanoid.WalkSpeed = 16
- end)
- local db = false
- local hit = false
- local active = false
- local e = Instance.new("RemoteEvent",owner.Character)
- local e2 = Instance.new("RemoteEvent",owner.Character)
- e2.Name = "what we doin"
- e2.OnServerEvent:Connect(function(_,okwhat,hu)
- if okwhat == "dUCKING KILL" then
- active = hu
- elseif okwhat == "im ducking throwing that stuff bru" then
- if not db then
- db = true
- e:FireClient(owner,"throw shit at people")
- coroutine.wrap(function()
- for i = 1,4 do
- wel.C0 = wel.C0:Lerp(CFrame.Angles(math.rad(math.random(-50,50)/5),math.rad(math.random(-50,50)/2),math.rad(math.random(-150,150)/2)),0.3)
- wait(0.0285)
- end
- end)()
- tween:Play()
- tween3:Play()
- twee:Play()
- tween.Completed:Wait()
- part.Transparency = 1
- coroutine.wrap(function()
- local bullet = Instance.new("Part",script)
- bullet.Size = Vector3.new(173.645, 561.276, 21.766) * 0.009
- local m = Instance.new("SpecialMesh",bullet)
- m.MeshId = "rbxassetid://584242807"
- m.TextureId = "rbxassetid://584242810"
- m.Scale = m.Scale * 0.009
- bullet.CanCollide = false
- bullet.Anchored = true
- bullet.CFrame = part.CFrame
- bullet.Position = bullet.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()
- local x,_,_ = ((CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()):ToObjectSpace(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ())) * CFrame.Angles(math.rad(10),0,0))):ToOrientation()
- local _,_,z = ((CFrame.Angles(part.CFrame:ToEulerAnglesXYZ()):ToObjectSpace(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ())))):ToOrientation()
- local lookvector = (CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()) * CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(-x,0,0) * CFrame.new(-0.5,0,0))
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {script,bullet,owner.Character}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local sped = 30
- local x,_,_ = (CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()):ToObjectSpace(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ())) * CFrame.Angles(math.rad(10),0,0)):ToOrientation()
- local oghedcf = CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()) * CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(-x,0,-z) * CFrame.new(0,0,0)
- local c = 0
- local shootybang
- shootybang = game:GetService("RunService").Stepped:Connect(function(_,b)
- local resulttt
- c = c + 1
- if c ~= 1 then
- resulttt = workspace:Raycast(bullet.Position, lookvector.lookVector*((part.Size.Y * 4)*b*15), params)
- else
- bullet.CFrame = CFrame.new(oghedcf.Position) * CFrame.Angles(oghedcf:ToEulerAnglesXYZ()) * CFrame.new(0,0,(-part.Size.Y * 8)*b*15)
- resulttt = workspace:Raycast(bullet.Position, lookvector.lookVector*((part.Size.Y * 4)*b*15), params)
- end
- if not resulttt then
- resulttt = workspace:Raycast(bullet.Position, (lookvector * CFrame.Angles(math.rad(15),0,0)).lookVector *((part.Size.Y * 3)*b*15), params)
- if not resulttt then
- resulttt = workspace:Raycast(bullet.Position, (lookvector * CFrame.Angles(math.rad(-15),0,0)).lookVector *((part.Size.Y * 3)*b*15), params)
- end
- end
- if not resulttt then
- bullet.CFrame = CFrame.new(bullet.Position) * CFrame.Angles(oghedcf:ToEulerAnglesXYZ()) * CFrame.new(0,0,(-part.Size.Y * 4)*b*15)
- bullet.CFrame = bullet.CFrame * CFrame.Angles(math.rad(-c * 25),math.rad(90),0)
- sped = sped - (15*b)
- if sped < 0 then
- bullet:Destroy()
- shootybang:Disconnect()
- end
- else
- if resulttt.Instance:FindFirstAncestorWhichIsA("Model") and resulttt.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") then
- coroutine.wrap(function()
- bullet.CFrame = CFrame.new(bullet.Position) * CFrame.Angles(oghedcf:ToEulerAnglesXYZ()) * CFrame.new(0,0,(-part.Size.Y)*b*15)
- bullet.CFrame = bullet.CFrame * CFrame.Angles(math.rad(-c * 25),math.rad(90),0)
- local weldwhar = Instance.new("WeldConstraint",resulttt.Instance)
- weldwhar.Part0 = bullet
- weldwhar.Part1 = resulttt.Instance
- bullet.Anchored = false
- bullet.Massless = true
- game:GetService("Debris"):AddItem(bullet,10)
- pcall(function()
- splat(resulttt.Instance,math.random(6,7))
- end)
- e:FireClient(owner,"BLOOD FOR THE BLOOD GOD ASHUYIDUYIA")
- sound.SoundId = "rbxassetid://3521554607"
- sound.Pitch = 1 + math.random(-20,20)/100
- sound.Volume = 2
- sound.Parent = bullet
- sound.Parent = nil
- resulttt.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid").Health -= 35
- end)()
- shootybang:Disconnect()
- else
- coroutine.wrap(function()
- bullet.CFrame = CFrame.new(bullet.Position) * CFrame.Angles(oghedcf:ToEulerAnglesXYZ()) * CFrame.new(0,0,(-part.Size.Y)*b*15)
- bullet.CFrame = bullet.CFrame * CFrame.Angles(math.rad(-c * 25),math.rad(90),0)
- local weldwhar = Instance.new("WeldConstraint",resulttt.Instance)
- weldwhar.Part0 = bullet
- weldwhar.Part1 = resulttt.Instance
- bullet.Anchored = false
- bullet.Massless = true
- game:GetService("Debris"):AddItem(bullet,10)
- end)()
- shootybang:Disconnect()
- end
- end
- end)
- end)()
- tween2:Play()
- tween4:Play()
- twee2:Play()
- twee2.Completed:Wait()
- twee3:Play()
- tweenn:Play()
- tweenn2:Play()
- tweenn2.Completed:Wait()
- coroutine.wrap(function()
- for i = 1,4 do
- wel.C0 = wel.C0:Lerp(CFrame.new(),0.3)
- wait(0.0285)
- end
- end)()
- delay(0.5,function()
- db = false
- part.Transparency = 0
- end)
- end
- end
- end)
- e.OnServerEvent:Connect(function(_,cam,c1,alpha,hitcf,sw,wcs,shift,dt)
- local lookvector = owner.Character.HumanoidRootPart.CFrame:toObjectSpace(cam).lookVector.unit
- local y = lookvector.y
- local x = 0
- hed.C0 = hed.C0:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(-y,0,0),dt*15)
- hed.C0 = hed.C0 * CFrame.Angles(sw.y,0,0)
- if y > 0 then
- wel.C1 = wel.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles((y) + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,-0.25 * y,-0.25 * y),dt*15)
- wel.C1 = wel.C1:Lerp(wel.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0) * CFrame.Angles(wcs.y / 3, wcs.x / 3,0),dt*15)
- else
- wel.C1 = wel.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles((y) + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,0.25 * y,-0.25 * y),dt*15)
- wel.C1 = wel.C1:Lerp(wel.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0) * CFrame.Angles(wcs.y / 3, wcs.x / 3,0),dt*15)
- end
- end)
- coroutine.wrap(function()
- while task.wait() do
- if active then
- if not db then
- db = true
- e:FireClient(owner)
- coroutine.wrap(function()
- for i = 1,4 do
- wel.C0 = wel.C0:Lerp(CFrame.Angles(math.rad(math.random(-50,50)/5),math.rad(math.random(-50,50)/2),math.rad(math.random(-150,150)/2)),0.3)
- wait(0.0285)
- end
- end)()
- tween:Play()
- tween3:Play()
- twee:Play()
- coroutine.wrap(function()
- local hit2 = false
- local params = OverlapParams.new()
- params.FilterDescendantsInstances = {owner.Character:GetDescendants(), script}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local x,_,_ = CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()):ToObjectSpace(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ())):ToOrientation()
- for _, what in pairs(workspace:GetPartBoundsInBox(CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()) * CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(-x,0,0) * CFrame.new(0,-1,-4), Vector3.new(7,3,7), params)) do
- if what:FindFirstAncestorWhichIsA("Model") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health ~= 0 and not hit then
- hit = true
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {owner.Character:GetDescendants(),what:FindFirstAncestorWhichIsA("Model"):GetDescendants()}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local res = workspace:Raycast(owner.Character.Head.Position,what.Position, params)
- if not res then
- pcall(function()
- splat(what,math.random(6,7))
- end)
- e:FireClient(owner,"BLOOD FOR THE BLOOD GOD ASHUYIDUYIA")
- if (what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health - 62) <= 0 and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health ~= 0 then
- owner.Character.Humanoid.Health += 0.28 * owner.Character.Humanoid.MaxHealth
- end
- what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health -= 62
- else
- hit2 = true
- end
- end
- end
- if not hit then
- local x,_,_ = CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()):ToObjectSpace(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ())):ToOrientation()
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {owner.Character:GetDescendants(),rayblacklist}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local res = workspace:Raycast(CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()).Position,(CFrame.Angles(owner.Character.HumanoidRootPart.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(-x,0,0)).lookVector * 14, params)
- if not res then
- sound.Parent = part
- sound.SoundId = "rbxassetid://5917819729"
- sound.Pitch = 1 + math.random(-20,20)/100
- sound.Volume = 2
- sound.Parent = nil
- else
- sound.Parent = part
- sound.SoundId = "rbxassetid://247879481"
- sound.Pitch = 1 + math.random(-20,20)/100
- sound.Volume = 2
- sound.Parent = nil
- end
- elseif hit and not hit2 then
- sound.Parent = part
- sound.SoundId = "rbxassetid://3521554607"
- sound.Pitch = 1 + math.random(-20,20)/100
- sound.Volume = 2
- sound.Parent = nil
- elseif hit and hit2 then
- sound.Parent = part
- sound.SoundId = "rbxassetid://247879481"
- sound.Pitch = 1 + math.random(-20,20)/100
- sound.Volume = 2
- sound.Parent = nil
- end
- end)()
- tween.Completed:Wait()
- tween2:Play()
- tween4:Play()
- twee2:Play()
- twee2.Completed:Wait()
- twee3:Play()
- tweenn:Play()
- tweenn2:Play()
- tweenn2.Completed:Wait()
- coroutine.wrap(function()
- for i = 1,4 do
- wel.C0 = wel.C0:Lerp(CFrame.new(),0.3)
- wait(0.0285)
- end
- end)()
- delay(0.1,function()
- db = false
- hit = false
- end)
- end
- end
- end
- end)()
- NLS([[
- local e = script.Parent
- local e2 = owner.Character["what we doin"]
- local tool = owner.Backpack.a or owner.Character.a
- local ITERATIONS = 8
- local SPRING = {}
- function SPRING.create(self, mass, force, damping, speed)
- local spring = {
- Target = Vector3.new();
- Position = Vector3.new();
- Velocity = Vector3.new();
- Mass = mass or 5;
- Force = force or 50;
- Damping = damping or 4;
- Speed = speed or 4;
- }
- function spring.shove(self, force)
- local x, y, z = force.X, force.Y, force.Z
- if x ~= x or x == math.huge or x == -math.huge then
- x = 0
- end
- if y ~= y or y == math.huge or y == -math.huge then
- y = 0
- end
- if z ~= z or z == math.huge or z == -math.huge then
- z = 0
- end
- self.Velocity = self.Velocity + Vector3.new(x, y, z)
- end
- function spring.update(self, dt)
- local scaledDeltaTime = math.min(dt,1) * self.Speed / ITERATIONS
- for i = 1, ITERATIONS do
- local iterationForce = self.Target - self.Position
- local acceleration = (iterationForce * self.Force) / self.Mass
- acceleration = acceleration - (self.Velocity * self.Damping)
- self.Velocity = self.Velocity + (acceleration * scaledDeltaTime)
- self.Position = self.Position + (self.Velocity * scaledDeltaTime)
- end
- return self.Position
- end
- return spring
- end
- local wc = SPRING.create()
- local sway = SPRING.create()
- local bobspeed = 1
- local bobmod = .1
- local alpha = .25
- local hitcf = CFrame.new()
- local function gb(addition, speed, modifier)
- return math.sin(tick() * addition * speed) * modifier
- end
- c1 = CFrame.new(0,0,0)
- c2 = CFrame.new(0,0,0)
- owner.Character.Archivable = true
- local a = owner.Character:Clone()
- owner.Character.Archivable = false
- a["Right Arm"].Size = a["Right Arm"].Size * 0.45
- a["Left Arm"].Size = a["Right Arm"].Size
- a.Parent = workspace.CurrentCamera
- a["Right Arm"]:BreakJoints()
- a["Left Arm"]:BreakJoints()
- a:BreakJoints()
- for i,v in pairs(a:GetDescendants()) do
- if (v.Name ~= "Right Arm" and v.Name ~= "Left Arm") and not v:IsA("Clothing") and not v:IsA("SpecialMesh") then
- v:Destroy()
- end
- end
- local s = Instance.new("Part",workspace.CurrentCamera)
- s.CanCollide = false
- s.Size = Vector3.new(0,0,0)
- s.Anchored = true
- s.Transparency = 1
- local s2 = Instance.new("Part",workspace.CurrentCamera)
- s2.CanCollide = false
- s2.Size = Vector3.new(0,0,0)
- s2.Transparency = 1
- local UIS = game:GetService("UserInputService")
- local mouse = owner:GetMouse()
- local active = false
- mouse.Button1Down:Connect(function()
- if tool.Parent == owner.Character then
- active = true
- e2:FireServer("dUCKING KILL",active)
- end
- end)
- --
- --
- mouse.Button1Up:Connect(function()
- if tool.Parent == owner.Character then
- active = false
- e2:FireServer("dUCKING KILL",active)
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "q" then
- e2:FireServer("im ducking throwing that stuff bru")
- end
- end)
- time = 5
- correction = Instance.new("ColorCorrectionEffect", workspace.CurrentCamera)
- correction.TintColor = Color3.fromRGB(255,50,50)
- correction.Contrast = 0
- correction.Saturation = 0.5
- correction.Enabled = false
- coroutine.wrap(function()
- while true do
- repeat
- wait(0.1)
- time = time - 0.1
- correction.Saturation = math.clamp(correction.Saturation - (80/255),0,0.5)
- correction.TintColor = Color3.new(correction.TintColor.R,math.clamp(correction.TintColor.G + 5/255,0,255),math.clamp(correction.TintColor.G + 5/255,0,255))
- correction.Brightness = math.clamp(correction.Brightness - 0.03,-0.2,0)
- until time <= 0
- correction.Enabled = false
- time = time + 0.1
- end
- end)()
- local part = Instance.new("Part",workspace.CurrentCamera)
- part.Size = (Vector3.new(173.645, 561.276, 21.766) * 0.009) * 0.45
- part.CanCollide = false
- local w = Instance.new("Weld",a["Right Arm"])
- w.Part0 = part
- w.Part1 = a["Right Arm"]
- w.C0 = CFrame.new(0,-0.45 * 0.45,0) * CFrame.Angles(0,math.rad(-90),math.rad(10))
- w.C1 = CFrame.new(0,-1 * 0.45,0) * CFrame.Angles(math.rad(-90),0,0)
- local m = Instance.new("SpecialMesh",part)
- m.MeshId = "rbxassetid://584242807"
- m.TextureId = "rbxassetid://584242810"
- m.Scale = (m.Scale * 0.009) * 0.45
- local rarm = Instance.new("Weld",s2)
- rarm.Part0 = a["Right Arm"]
- rarm.Part1 = rarm.Parent
- rarm.C0 = CFrame.new(0,0.25 * 0.45,0) * CFrame.Angles(math.rad(-78.2135),math.rad(-13.2138),math.rad(27.2138))
- rarm.C1 = CFrame.new(1 * 0.45,0.2895 * 0.45,-0.581285 * 0.45)
- rarm.Name = "r"
- local larm = Instance.new("Weld",s2)
- larm.Part0 = a["Left Arm"]
- larm.Part1 = larm.Parent
- larm.C0 = CFrame.new(0,0.5 * 0.45,0) * CFrame.Angles(math.rad(-84.2135),math.rad(65.2138),math.rad(27.2138))
- larm.C1 = CFrame.new(-1 * 0.45,0.4 * 0.45,-(1.389 - 0.35) * 0.45)
- larm.Name = "l"
- local tweenService = game:GetService("TweenService")
- local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0.1,true)
- local goal = {}
- goal.C0 = CFrame.new(0,0.5 * 0.45,0) * CFrame.Angles(math.rad(-140.2135),math.rad(-10.2138),math.rad(23.2138))
- local tween = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(0.4 * 0.45,0.9 * 0.45,-0.7 * 0.45) * CFrame.Angles(math.rad(-146.2135),math.rad(67.2138),math.rad(23.2138))
- goal.C1 = CFrame.new(-1 * 0.45,0.4 * 0.45,-(1.389 - 0.5) * 0.45)
- local tween3 = tweenService:Create(larm, tweenInfo, goal)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.new(0,0.8 * 0.45,0) * CFrame.Angles(math.rad(-34.2135),math.rad(-13.2138),math.rad(37.2138))
- local tween2 = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(-0.4 * 0.45,0.4 * 0.45,-0.2 * 0.45) * CFrame.Angles(math.rad(-96.2135),math.rad(65.2138),math.rad(57.2138))
- local tween4 = tweenService:Create(larm, tweenInfo, goal)
- local welll = Instance.new("Weld",s)
- welll.Part0 = s2
- welll.Part1 = s
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1 * CFrame.Angles(math.rad(10),math.rad(-15),0)
- local twee = tweenService:Create(welll, tweenInfo, goa)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1 * CFrame.Angles(math.rad(-20),math.rad(25),0)
- local twee2 = tweenService:Create(welll, tweenInfo, goa)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goa = {}
- goa.C1 = welll.C1
- local twee3 = tweenService:Create(welll, tweenInfo, goa)
- local goal = {}
- goal.C0 = rarm.C0
- local tweenn = tweenService:Create(rarm, tweenInfo, goal)
- local goal = {}
- goal.C0 = larm.C0
- goal.C1 = larm.C1
- local tweenn2 = tweenService:Create(larm, tweenInfo, goal)
- e.OnClientEvent:Connect(function(wha)
- if wha ~= "throw shit at people" and wha ~= "BLOOD FOR THE BLOOD GOD ASHUYIDUYIA" then
- coroutine.wrap(function()
- for i = 1,4 do
- welll.C0 = welll.C0:Lerp(CFrame.Angles(math.rad(math.random(-50,50)/5),math.rad(math.random(-50,50)/2),math.rad(math.random(-150,150)/2)),0.3)
- wait(0.0285)
- end
- end)()
- tween:Play()
- tween3:Play()
- twee:Play()
- tween.Completed:Wait()
- tween2:Play()
- tween4:Play()
- twee2:Play()
- twee2.Completed:Wait()
- twee3:Play()
- tweenn:Play()
- tweenn2:Play()
- tweenn2.Completed:Wait()
- coroutine.wrap(function()
- for i = 1,4 do
- welll.C0 = welll.C0:Lerp(CFrame.new(),0.3)
- wait(0.0285)
- end
- end)()
- delay(0.1,function()
- db = false
- end)
- elseif wha == "throw shit at people" then
- coroutine.wrap(function()
- for i = 1,4 do
- welll.C0 = welll.C0:Lerp(CFrame.Angles(math.rad(math.random(-50,50)/5),math.rad(math.random(-50,50)/2),math.rad(math.random(-150,150)/2)),0.3)
- wait(0.0285)
- end
- end)()
- tween:Play()
- tween3:Play()
- twee:Play()
- tween.Completed:Wait()
- m.Scale = Vector3.new()
- tool.Handle:FindFirstChildWhichIsA("SpecialMesh").Scale = m.Scale
- tween2:Play()
- tween4:Play()
- twee2:Play()
- twee2.Completed:Wait()
- twee3:Play()
- tweenn:Play()
- tweenn2:Play()
- tweenn2.Completed:Wait()
- coroutine.wrap(function()
- for i = 1,4 do
- welll.C0 = welll.C0:Lerp(CFrame.new(),0.3)
- wait(0.0285)
- end
- end)()
- delay(0.5,function()
- db = false
- m.Scale = (Vector3.new(1,1,1) * 0.009) * 0.45
- tool.Handle:FindFirstChildWhichIsA("SpecialMesh").Scale = (Vector3.new(1,1,1) * 0.009)
- end)
- elseif wha == "BLOOD FOR THE BLOOD GOD ASHUYIDUYIA" then
- correction.TintColor = Color3.fromRGB(255,50,50)
- correction.Contrast = 0
- correction.Saturation = 0.5
- correction.Brightness = -0.2
- correction.Enabled = true
- time = 5
- end
- end)
- local handle = owner.Backpack.a.Handle or owner.Character.a.Handle
- game:GetService("RunService").RenderStepped:Connect(function(dt)
- delta = game:GetService("UserInputService"):GetMouseDelta()
- local vel = owner.Character.HumanoidRootPart.Velocity
- s.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,-1.5 * 0.7,-3 * 0.2)
- local msway = Vector3.new(gb(10, bobspeed, bobmod), gb(5, bobspeed, bobmod), gb(5, bobspeed, bobmod))
- sway:shove(Vector3.new(delta.X / 500, delta.Y / 500))
- wc:shove((msway / 25) * dt * 60 * math.clamp(vel.Magnitude,0,30))
- local sw = sway:update(dt)
- local wcs = wc:update(dt)
- if (workspace.CurrentCamera.CFrame.Position - owner.Character.Head.Position).Magnitude <= 1.5 then
- owner.Character.Humanoid.CameraOffset = CFrame.new():Lerp(CFrame.new() * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15).Position + Vector3.new(0,0,0.25)
- a["Left Arm"].LocalTransparencyModifier = 0
- a["Right Arm"].LocalTransparencyModifier = 0
- a["Right Arm"].Transparency = 0
- a["Left Arm"].Transparency = 0
- s.CFrame = s.CFrame * CFrame.new():Lerp(CFrame.new() * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15)
- s.CFrame = s.CFrame * CFrame.Angles(sw.y,-(sw.x), 0)
- s.CFrame = s.CFrame * CFrame.new(sw.y,-sw.x,0)
- handle.Transparency = 1
- part.Transparency = 0
- workspace.CurrentCamera.FieldOfView = 80
- else
- handle.Transparency = 0
- part.Transparency = 1
- owner.Character.Humanoid.CameraOffset = Vector3.new()
- workspace.CurrentCamera.FieldOfView = 70
- a["Left Arm"].LocalTransparencyModifier = 1
- a["Right Arm"].LocalTransparencyModifier = 1
- a["Right Arm"].Transparency = 1
- a["Left Arm"].Transparency = 1
- end
- e:FireServer(workspace.CurrentCamera.CFrame,c1,alpha,hitcf,sw,wcs,false,dt)
- end)
- ]],e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement