Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- THE MURDERER
- Created by Quil_Cyndaquil (ROBLOX)
- MintyLatios (V3rmillion)
- Minty Latios#1938
- Credit to CKbackup for the knife
- Credit to Rufus14 for the ragdolls
- --]]
- --//====================================================\\--
- --|| CREATED BY SHACKLUSTER
- --\\====================================================//--
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- wait(1)
- plr = owner
- char = plr.Character
- torso = char.Torso
- eq = false
- mouse = owner:GetMouse()
- Effects = {}
- nen = false
- lifetime = 6
- amnt = 5
- divinesword = false
- equipped = false
- enabled = false
- rs = torso["Right Shoulder"]
- ls = torso["Left Shoulder"]
- attacking = false
- usage = false
- active = false
- chatscript = false
- char.Humanoid.WalkSpeed = 25
- deca = false
- grabbing = false
- grabbed = false
- count = 0
- local rightclone = Instance.new("Motor6D")
- rightclone.Name = "Right Shoulder"
- rightclone.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- rightclone.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local leftclone = Instance.new("Motor6D")
- leftclone.Name = "Left Shoulder"
- leftclone.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- leftclone.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local torsoclone = Instance.new("Motor6D")
- torsoclone.Name = "RootJoint"
- torsoclone.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- torsoclone.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local killcount = Instance.new("ScreenGui")
- local kills = Instance.new("TextLabel")
- killcount.Name = "killcount"
- killcount.Parent = plr.PlayerGui
- kills.Name = "kills"
- kills.Parent = killcount
- kills.BackgroundColor3 = Color3.new(0, 1, 0)
- kills.BorderColor3 = Color3.new(0, 0, 0)
- kills.BorderSizePixel = 2
- kills.Position = UDim2.new(0, 0, 0.380952388, 0)
- kills.Size = UDim2.new(0, 200, 0, 50)
- kills.Font = Enum.Font.SourceSans
- kills.FontSize = Enum.FontSize.Size24
- kills.Text = "Kills:"
- kills.TextColor3 = Color3.new(1, 1, 1)
- kills.TextScaled = true
- kills.TextSize = 20
- kills.TextWrapped = true
- function remgui()
- for i, v in pairs(plr.PlayerGui:GetChildren()) do
- if v.ClassName == "ScreenGui" and v.Name == "Noti" then
- v:Destroy()
- end
- end
- end
- function inform(txt, del)
- local cor = coroutine.wrap(function()
- local Noti = Instance.new("ScreenGui")
- local text = Instance.new("TextLabel")
- local bar = Instance.new("Frame")
- Noti.Name = "Noti"
- Noti.Parent = plr.PlayerGui
- text.Name = "text"
- text.Parent = Noti
- text.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- text.BorderSizePixel = 0
- text.Position = UDim2.new(0.111111112, 0, 0.111904763, 0)
- text.Size = UDim2.new(0, 640, 0, 64)
- text.Font = Enum.Font.SourceSans
- text.FontSize = Enum.FontSize.Size14
- text.Text = txt
- text.TextColor3 = Color3.new(1, 1, 1)
- text.TextScaled = true
- text.TextSize = 14
- text.TextWrapped = true
- bar.Name = "bar"
- bar.Parent = text
- bar.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- bar.BorderSizePixel = 0
- bar.Position = UDim2.new(0, 0, 1, 0)
- bar.Size = UDim2.new(0, 640, 0, 8)
- wait(del)
- remgui()
- end)
- cor()
- end
- inform("Katana V2 by Mitu_Andrei and RazerOfficial-, press C to equip.", 2)
- char.Humanoid.MaxHealth = math.huge
- local ff = Instance.new("ForceField", char)
- ff.Visible = false
- ff.Name = "AAAAAAAAA"
- o1 = Instance.new("Model")
- o2 = Instance.new("WedgePart")
- o3 = Instance.new("Part")
- o4 = Instance.new("Part")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("WedgePart")
- o1.Name = "katana"
- o1.Parent = char
- o1.PrimaryPart = o5
- o2.Name = "blade"
- o2.Parent = o1
- o2.Transparency = 1
- o2.Material = Enum.Material.Metal
- o2.BrickColor = BrickColor.new("Dark stone grey")
- o2.Position = Vector3.new(-1.41889954, 0.568201602, 35.4738998)
- o2.Rotation = Vector3.new(63.8199997, -76.5999985, 63.1800003)
- o2.Size = Vector3.new(0.170001268, 0.280000448, 0.930000186)
- o2.CFrame = CFrame.new(-1.41889954, 0.568201602, 35.4738998, 0.104519971, -0.206772178, -0.972791672, 3.79876219E-8, 0.978147924, -0.207910955, 0.99452281, 0.021730829, 0.102236226)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o2.Position = Vector3.new(-1.41889954, 0.568201602, 35.4738998)
- o3.Name = "topcap"
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Really black")
- o3.Position = Vector3.new(-5.86900711, 0.455011994, 35.550087)
- o3.Shape = Enum.PartType.Cylinder
- o3.Size = Vector3.new(0.189999998, 0.890000105, 1)
- o3.CFrame = CFrame.new(-5.86900711, 0.455011994, 35.550087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Transparency = 1
- o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o3.Position = Vector3.new(-5.86900711, 0.455011994, 35.550087)
- o4.Name = "blade"
- o4.Parent = o1
- o4.Material = Enum.Material.Metal
- o4.BrickColor = BrickColor.new("Dark stone grey")
- o4.Position = Vector3.new(-3.78600883, 0.425012141, 35.5000877)
- o4.Size = Vector3.new(4.01999998, 0.350000054, 0.17000033)
- o4.CFrame = CFrame.new(-3.78600883, 0.425012141, 35.5000877, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.Transparency = 1
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o4.Position = Vector3.new(-3.78600883, 0.425012141, 35.5000877)
- o5.Name = "handle"
- o5.Parent = o1
- o5.Material = Enum.Material.SmoothPlastic
- o5.BrickColor = BrickColor.new("Really black")
- o5.Position = Vector3.new(-6.68501282, 0.412755281, 35.5199966)
- o5.Shape = Enum.PartType.Cylinder
- o5.Size = Vector3.new(1.67000186, 0.400000423, 1)
- o5.CFrame = CFrame.new(-6.68501282, 0.412755281, 35.5199966, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o5.Position = Vector3.new(-6.68501282, 0.412755281, 35.5199966)
- o6.Name = "blade"
- o6.Parent = o1
- o6.Material = Enum.Material.Metal
- o6.BrickColor = BrickColor.new("Pearl")
- o6.Position = Vector3.new(-3.68737984, 0.361644179, 35.5102768)
- o6.Size = Vector3.new(4.23000383, 0.300000042, 0.130000442)
- o6.CFrame = CFrame.new(-3.68737984, 0.361644179, 35.5102768, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.905882, 0.905882, 0.92549)
- o6.Transparency = 1
- o6.Position = Vector3.new(-3.68737984, 0.361644179, 35.5102768)
- o7.Name = "blade"
- o7.Parent = o1
- o7.Material = Enum.Material.Metal
- o7.BrickColor = BrickColor.new("Pearl")
- o7.Position = Vector3.new(-1.31419945, 0.486169487, 35.4697533)
- o7.Rotation = Vector3.new(76.7900009, -65.2999954, 75.5099945)
- o7.Size = Vector3.new(0.07, 0.28, 0.93)
- o7.CFrame = CFrame.new(-1.31419945, 0.486169487, 35.4697533, 0.104519621, -0.404509038, -0.908541679, -1.11847829E-8, 0.91354543, -0.406736791, 0.994522929, 0.042511981, 0.0954833925)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.905882, 0.905882, 0.92549)
- o7.Position = Vector3.new(-1.31419945, 0.486169487, 35.4697533)
- o7.Transparency = 1
- knife = Instance.new("Model")
- knifepart = Instance.new("Part")
- knifepart2 = Instance.new("WedgePart")
- knifepart3 = Instance.new("Part")
- knifepart4 = Instance.new("Part")
- knifepart5 = Instance.new("Part")
- knife.Name = "knife"
- knife.PrimaryPart = knifepart2
- knife.Parent = char
- knifepart.Name = "hit"
- knifepart.Parent = knife
- knifepart.Transparency = 9
- knifepart.Position = Vector3.new(-3.64290094, 0.138375998, -32.6240005)
- knifepart.Anchored = true
- knifepart.Size = Vector3.new(1.99439991, 0.27670002, 0.48179999)
- knifepart.CFrame = CFrame.new(-3.64290094, 0.138375998, -32.6240005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- knifepart.Position = Vector3.new(-3.64290094, 0.138375998, -32.6240005)
- knifepart2.Name = "blade"
- knifepart2.Parent = knife
- knifepart2.Material = Enum.Material.Metal
- knifepart2.Position = Vector3.new(-4.524755, 0.141372442, -32.631443)
- knifepart2.Rotation = Vector3.new(0, 90, 0)
- knifepart2.Anchored = true
- knifepart2.Size = Vector3.new(0.122299999, 0.171500012, 0.265900016)
- knifepart2.CFrame = CFrame.new(-4.524755, 0.141372442, -32.631443, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8)
- knifepart2.Position = Vector3.new(-4.524755, 0.141372442, -32.631443)
- knifepart3.Name = "blade"
- knifepart3.Parent = knife
- knifepart3.Material = Enum.Material.Metal
- knifepart3.Position = Vector3.new(-3.52325106, 0.108675718, -32.6366501)
- knifepart3.Anchored = true
- knifepart3.Size = Vector3.new(1.75509989, 0.0987000093, 0.153300002)
- knifepart3.CFrame = CFrame.new(-3.52325106, 0.108675718, -32.6366501, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- knifepart3.Position = Vector3.new(-3.52325106, 0.108675718, -32.6366501)
- knifepart4.Name = "blade"
- knifepart4.Parent = knife
- knifepart4.Material = Enum.Material.Metal
- knifepart4.BrickColor = BrickColor.new("Dark stone grey")
- knifepart4.Position = Vector3.new(-3.52325106, 0.188175917, -32.6366501)
- knifepart4.Anchored = true
- knifepart4.Size = Vector3.new(1.75509989, 0.0637000054, 0.153300002)
- knifepart4.CFrame = CFrame.new(-3.52325106, 0.188175917, -32.6366501, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- knifepart4.Color = Color3.new(0.388235, 0.372549, 0.384314)
- knifepart4.Position = Vector3.new(-3.52325106, 0.188175917, -32.6366501)
- knifepart5.Name = "hold"
- knifepart5.Parent = knife
- knifepart5.Material = Enum.Material.SmoothPlastic
- knifepart5.BrickColor = BrickColor.new("Black")
- knifepart5.Position = Vector3.new(-2.84210014, 0.141077757, -32.6371498)
- knifepart5.Anchored = true
- knifepart5.Size = Vector3.new(1.44639993, 0.265300006, 0.213100001)
- knifepart5.CFrame = CFrame.new(-2.84210014, 0.141077757, -32.6371498, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- knifepart5.Color = Color3.new(0.105882, 0.164706, 0.207843)
- knifepart5.Position = Vector3.new(-2.84210014, 0.141077757, -32.6371498)
- knifep = knife.PrimaryPart
- knifech = knife:GetChildren()
- function rayLaser(brcol)
- local sou = Instance.new("Sound", o5)
- sou.SoundId = "rbxassetid://878000314"
- sou.Volume = 1.3
- char.Humanoid.WalkSpeed = 0
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.2)
- wait()
- end
- local ray = Ray.new(o6.CFrame.p, (mouse.Hit.p - o6.CFrame.p).unit * 500000)
- local ignore = char
- local hit, position = workspace:FindPartOnRay(ray, ignore)
- local distance = (position - o6.CFrame.p).magnitude
- local ef = Instance.new("Part", char)
- ef.Anchored = true
- ef.Material = "Neon"
- ef.CanCollide = false
- ef.CFrame = o6.CFrame * CFrame.new(0, -2, 0)
- ef.BrickColor = brcol
- ef.Size = Vector3.new(3, 3, 3)
- local las = Instance.new("Part", char)
- las.BrickColor = brcol
- las.Material = "Neon"
- las.Transparency = 0
- las.CanCollide = false
- las.FormFactor = Enum.FormFactor.Custom
- las.Size = Vector3.new(1, 1, distance)
- las.CFrame = CFrame.new(position, ef.CFrame.p) * CFrame.new(0, 0, -distance / 2)
- las.Anchored = true
- local ef0 = Instance.new("Part", char)
- ef0.Anchored = true
- ef0.Material = "Neon"
- ef0.CanCollide = false
- ef0.Position = position
- ef0.BrickColor = brcol
- ef0.Size = Vector3.new(3, 3, 3)
- sou:Play()
- las.Name = "Effect"
- ef.Name = "Effect"
- ef0.Name = "Effect"
- if hit == nil then
- print("no")
- wait(0.4)
- for i = 1, 30 do
- las.Size = las.Size - Vector3.new(0.1, 0.1, 0)
- ef.Size = ef.Size - Vector3.new(0.1, 0.1, 0.1)
- ef0.Size = ef0.Size - Vector3.new(0.1, 0.1, 0.1)
- ef.Transparency = ef.Transparency + 0.03333333333333333
- ef0.Transparency = ef0.Transparency + 0.03333333333333333
- las.Transparency = las.Transparency + 0.03333333333333333
- wait()
- end
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.2)
- wait()
- end
- las:Destroy()
- ef:Destroy()
- ef0:Destroy()
- attacking = false
- char.Humanoid.WalkSpeed = 5
- return
- end
- coroutine.wrap(function()
- for i = 1, 10 do
- las.Size = las.Size + Vector3.new(0.1, 0.1, 0)
- ef.Size = ef.Size + Vector3.new(0.1, 0.1, 0.1)
- ef0.Size = ef0.Size + Vector3.new(0.1, 0.1, 0.1)
- wait()
- end
- end)()
- coroutine.wrap(function()
- while true do
- ef0.CFrame = ef0.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- ef.CFrame = ef.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- wait()
- end
- end)()
- coroutine.wrap(function()
- for i = 1, math.random(1, 10) do
- local pa = Instance.new("Part", workspace)
- pa.Name = "Effect"
- pa.Size = Vector3.new(0.8, 0.8, 0.8)
- pa.BrickColor = brcol
- pa.Anchored = false
- pa.CanCollide = false
- pa.CFrame = ef0.CFrame
- pa.Material = "Neon"
- local ve = Instance.new("BodyVelocity", pa)
- ve.Velocity = Vector3.new(math.random(-50, 50), math.random(5, 50), math.random(-50, 50))
- wait()
- ve:Destroy()
- end
- end)()
- print(distance)
- las:Destroy()
- ef:Destroy()
- ef0:Destroy()
- attacking = false
- char.Humanoid.WalkSpeed = 5
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.2)
- wait()
- end
- end
- for i = 1, #knifech do
- if knifech[i]:IsA("BasePart") then
- local weld = Instance.new("Weld", knifep)
- weld.Part0 = knifep
- weld.Part1 = knifech[i]
- weld.C0 = knifep.CFrame:inverse()
- weld.C1 = knifech[i].CFrame:inverse()
- weld.Parent = knifep
- end
- end
- for _, b in pairs(knife:GetChildren()) do
- if b.ClassName == "Part" then
- b.Transparency = 1
- end
- end
- knife.Parent = nil
- local equipsound = Instance.new("Sound")
- equipsound.SoundId = "rbxassetid://608709870"
- equipsound.Volume = 1
- local unequipsound = Instance.new("Sound")
- unequipsound.SoundId = "rbxassetid://608714098"
- unequipsound.Volume = 1
- local swordeq = Instance.new("Sound")
- local att1 = Instance.new("Attachment", o5)
- local att2 = Instance.new("Attachment", o7)
- local trail = Instance.new("Trail", o5)
- trail.Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))
- })
- trail.LightEmission = 0.25
- trail.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.75),
- NumberSequenceKeypoint.new(1, 1)
- })
- trail.Lifetime = 0.1
- trail.MinLength = 0.05
- trail.Attachment0 = att1
- trail.Attachment1 = att2
- trail.Enabled = false
- function ragdoll(victim)
- for _, t in pairs(victim:GetChildren()) do
- if t.ClassName == "Humanoid" then
- t.Died:connect(function()
- victim.Archivable = true
- local Ragdoll = victim:Clone()
- Ragdoll.Name = victim.Name .. " (Dead)"
- victim.Archivable = false
- for _, Object in pairs(Ragdoll:GetChildren()) do
- if Object.ClassName == "Script" or Object.ClassName == "LocalScript" then
- Object:Destroy()
- end
- for _, Weld in pairs(Object:GetChildren()) do
- if Weld.ClassName == "Weld" or Weld.ClassName == "Motor6D" then
- Weld:Destroy()
- end
- end
- end
- for _, v in pairs(Ragdoll:GetChildren()) do
- if v.ClassName == "Humanoid" then
- local RagdollHumanoid = v
- RagdollHumanoid.Name = "Ragdoll Humanoid"
- RagdollHumanoid.PlatformStand = true
- RagdollHumanoid.Sit = true
- RagdollHumanoid.MaxHealth = 0
- RagdollHumanoid.Health = 0
- end
- end
- local Torso, MoveVector
- if Ragdoll:FindFirstChild("Torso") and victim:FindFirstChild("Torso") then
- Torso = Ragdoll.Torso
- MoveVector = Ragdoll.Torso.CFrame.lookVector
- do
- local Limb = Torso
- Limb.Anchored = false
- coroutine.wrap(function()
- for i = 1, 20 do
- local blood = Instance.new("Part", Ragdoll)
- local vel = Instance.new("BodyVelocity", blood)
- vel.MaxForce = Vector3.new(99999, 99999, 9999999)
- vel.Velocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- blood.BrickColor = BrickColor.new("Maroon")
- blood.Anchored = false
- blood.CanCollide = false
- blood.Size = Vector3.new(0.3, 0.3, 0.3)
- blood.CFrame = Limb.CFrame
- wait()
- vel:Destroy()
- end
- end)()
- coroutine.wrap(function()
- coroutine.wrap(function()
- for i = 1, 3 do
- coroutine.wrap(function()
- local pool = Instance.new("Part", Ragdoll)
- pool.CFrame = Limb.CFrame * CFrame.new(math.random(-1, 4), -2.9, math.random(-1, 4))
- pool.BrickColor = BrickColor.new("Crimson")
- pool.Material = "SmoothPlastic"
- pool.Size = Vector3.new(1, 0.05, 1)
- pool.Anchored = true
- local mesh = Instance.new("CylinderMesh", pool)
- mesh.Scale = Vector3.new(1, 1, 1)
- wait(0.1)
- for i = 1, math.random(20, 30) do
- mesh.Scale = mesh.Scale + Vector3.new(0.2, 0, 0.2)
- wait()
- end
- end)()
- end
- end)()
- local pool = Instance.new("Part", Ragdoll)
- pool.CFrame = Limb.CFrame * CFrame.new(0, -2.9, 0)
- pool.BrickColor = BrickColor.new("Crimson")
- pool.Material = "SmoothPlastic"
- pool.Size = Vector3.new(1, 0.05, 1)
- pool.Anchored = true
- pool.CanCollide = false
- pool.Name = "Bloodpool"
- local mesh = Instance.new("CylinderMesh", pool)
- mesh.Scale = Vector3.new(1, 1, 1)
- wait(0.1)
- for i = 1, 20 do
- mesh.Scale = mesh.Scale + Vector3.new(0.2, 0, 0.2)
- wait()
- end
- end)()
- end
- end
- if Ragdoll:FindFirstChild("Head") ~= nil then
- do
- local Limb = Ragdoll.Head
- if Limb:FindFirstChild("face") then
- Limb.face.Texture = "http://www.roblox.com/asset/?id=145854465"
- end
- local cor = coroutine.wrap(function()
- local vel = Instance.new("BodyVelocity", Limb)
- vel.MaxForce = Vector3.new(999999, 9999999999, 99999999)
- vel.Velocity = Vector3.new(0, 50, -20)
- wait(0.1)
- vel:Destroy()
- end)
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Limb
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- if deca == true then
- Neck:Destroy()
- cor()
- end
- end
- end
- if Ragdoll:FindFirstChild("Left Arm") ~= nil then
- local Limb = Ragdoll["Left Arm"]
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "Left Shoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local AttachLimb = Instance.new("Part")
- AttachLimb.Name = "Attach Limb"
- AttachLimb.TopSurface = "Smooth"
- AttachLimb.BottomSurface = "Smooth"
- AttachLimb.formFactor = "Symmetric"
- AttachLimb.Size = Vector3.new(1, 1, 1)
- AttachLimb.Transparency = 1
- AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- AttachLimb.Parent = Ragdoll
- local Weld = Instance.new("Weld")
- Weld.Part0 = Limb
- Weld.Part1 = AttachLimb
- Weld.C0 = CFrame.new(0, -0.5, 0)
- Weld.Parent = Limb
- end
- if Ragdoll:FindFirstChild("Right Arm") ~= nil then
- local Limb = Ragdoll["Right Arm"]
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "Right Shoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Joint.Parent = Torso
- local AttachLimb = Instance.new("Part")
- AttachLimb.Name = "Attach Limb"
- AttachLimb.TopSurface = "Smooth"
- AttachLimb.BottomSurface = "Smooth"
- AttachLimb.formFactor = "Symmetric"
- AttachLimb.Size = Vector3.new(1, 1, 1)
- AttachLimb.Transparency = 1
- AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- AttachLimb.Parent = Ragdoll
- local Weld = Instance.new("Weld")
- Weld.Part0 = Limb
- Weld.Part1 = AttachLimb
- Weld.C0 = CFrame.new(0, -0.5, 0)
- Weld.Parent = Limb
- end
- if Ragdoll:FindFirstChild("Left Leg") ~= nil then
- local Limb = Ragdoll["Left Leg"]
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "Left Hip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local AttachLimb = Instance.new("Part")
- AttachLimb.Name = "Attach Limb"
- AttachLimb.TopSurface = "Smooth"
- AttachLimb.BottomSurface = "Smooth"
- AttachLimb.formFactor = "Symmetric"
- AttachLimb.Size = Vector3.new(1, 1, 1)
- AttachLimb.Transparency = 1
- AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- AttachLimb.Parent = Ragdoll
- local Weld = Instance.new("Weld")
- Weld.Part0 = Limb
- Weld.Part1 = AttachLimb
- Weld.C0 = CFrame.new(0, -0.5, 0)
- Weld.Parent = Limb
- end
- if Ragdoll:FindFirstChild("Right Leg") ~= nil then
- local Limb = Ragdoll["Right Leg"]
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "Right Hip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local AttachLimb = Instance.new("Part")
- AttachLimb.Name = "Attach Limb"
- AttachLimb.TopSurface = "Smooth"
- AttachLimb.BottomSurface = "Smooth"
- AttachLimb.formFactor = "Symmetric"
- AttachLimb.Size = Vector3.new(1, 1, 1)
- AttachLimb.Transparency = 1
- AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- AttachLimb.Parent = Ragdoll
- local Weld = Instance.new("Weld")
- Weld.Part0 = Limb
- Weld.Part1 = AttachLimb
- Weld.C0 = CFrame.new(0, -0.5, 0)
- Weld.Parent = Limb
- end
- local Bar = Instance.new("Part")
- Bar.TopSurface = "Smooth"
- Bar.BottomSurface = "Smooth"
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Ragdoll
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- Ragdoll.Parent = game.Workspace
- for _, Object in pairs(victim:GetChildren()) do
- if Object.ClassName == "Part" or Object.ClassName == "Hat" then
- Object:Destroy()
- end
- end
- for i = 1, 10 do
- Torso.Velocity = MoveVector * -20
- wait(0.01)
- end
- if divinesword == true then
- for _, v in pairs(Ragdoll:GetChildren()) do
- if v.ClassName == "Part" then
- if v.Name == "Bloodpool" then
- wait()
- else
- local parti = Instance.new("ParticleEmitter")
- parti.Parent = v
- parti.Rotation = NumberRange.new(99, 99)
- parti.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti.LightEmission = 3
- parti.Lifetime = NumberRange.new(0.1, 0.1)
- parti.Rate = 10000
- parti.RotSpeed = NumberRange.new(500, 500)
- parti.VelocitySpread = 20
- parti.Enabled = true
- parti.LockedToPart = true
- end
- end
- end
- end
- wait(10)
- for _, v in pairs(Ragdoll:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- if v.Name == "Bloodpool" then
- wait()
- else
- v.Anchored = false
- end
- if v.Name ~= "Torso" then
- end
- v:Destroy()
- for _, t in pairs(v:GetChildren()) do
- if t.ClassName ~= "Weld" then
- end
- t:Destroy()
- end
- end
- end
- end)
- end
- end
- end
- local parti = Instance.new("ParticleEmitter")
- parti.Parent = o2
- parti.Rotation = NumberRange.new(99, 99)
- parti.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti.LightEmission = 3
- parti.Lifetime = NumberRange.new(0.1, 0.1)
- parti.Rate = 100
- parti.RotSpeed = NumberRange.new(500, 500)
- parti.VelocitySpread = 20
- parti.Enabled = false
- parti.LockedToPart = true
- bloodparti = Instance.new("ParticleEmitter")
- bloodparti.Parent = o2
- bloodparti.Enabled = false
- bloodparti.Rate = 100
- bloodparti.Acceleration = Vector3.new(0, -50, 0)
- bloodparti.Size = NumberSequence.new(0.10000000149012, 0.10000000149012)
- bloodparti.Color = ColorSequence.new(Color3.new(0.666667, 0, 0), Color3.new(0.666667, 0, 0))
- bloodparti.Texture = "rbxassetid://3419963"
- bloodparti.LockedToPart = false
- bloodparti.Lifetime = NumberRange.new(0.69999998807907, 0.69999998807907)
- local parti2 = Instance.new("ParticleEmitter")
- parti2.Parent = o3
- parti2.Rotation = NumberRange.new(99, 99)
- parti2.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti2.LightEmission = 3
- parti2.Lifetime = NumberRange.new(0.1, 0.1)
- parti2.Rate = 100
- parti2.RotSpeed = NumberRange.new(500, 500)
- parti2.VelocitySpread = 20
- parti2.Enabled = false
- parti2.LockedToPart = true
- local parti3 = Instance.new("ParticleEmitter")
- parti3.Parent = o4
- parti3.Rotation = NumberRange.new(99, 99)
- parti3.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti3.LightEmission = 3
- parti3.Lifetime = NumberRange.new(0.1, 0.1)
- parti3.Rate = 100
- parti3.RotSpeed = NumberRange.new(500, 500)
- parti3.VelocitySpread = 20
- parti3.Enabled = false
- parti3.LockedToPart = true
- local parti4 = Instance.new("ParticleEmitter")
- parti4.Parent = o6
- parti4.Rotation = NumberRange.new(99, 99)
- parti4.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti4.LightEmission = 3
- parti4.Lifetime = NumberRange.new(0.1, 0.1)
- parti4.Rate = 100
- parti4.RotSpeed = NumberRange.new(500, 500)
- parti4.VelocitySpread = 20
- parti4.Enabled = false
- parti4.LockedToPart = true
- local parti5 = Instance.new("ParticleEmitter")
- parti5.Parent = o7
- parti5.Rotation = NumberRange.new(99, 99)
- parti5.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
- parti5.LightEmission = 3
- parti5.Lifetime = NumberRange.new(0.1, 0.1)
- parti5.Rate = 100
- parti5.RotSpeed = NumberRange.new(500, 500)
- parti5.VelocitySpread = 20
- parti5.Enabled = false
- parti5.LockedToPart = true
- local prim = o1.PrimaryPart
- local parts = o1:GetChildren()
- for i = 1, #parts do
- if parts[i]:IsA("BasePart") then
- local weld = Instance.new("Weld")
- weld.Part0 = prim
- weld.Part1 = parts[i]
- weld.C0 = prim.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prim
- end
- end
- for _, v in pairs(o1:GetChildren()) do
- if v.ClassName ~= "Part" then
- end
- v.CanCollide = false
- end
- local weldrs = Instance.new("Part", char)
- weldrs.Name = "rsweldpart"
- weldrs.Transparency = 1
- weldrs.Size = Vector3.new(0.4, 0.4, 0.4)
- local we = Instance.new("Weld", weldrs)
- we.Part0 = weldrs
- we.Part1 = char["Right Arm"]
- we.C0 = CFrame.new(0, 1, 0)
- o1:SetPrimaryPartCFrame(char["Right Arm"].CFrame)
- o1.Parent = char
- local handweld = Instance.new("Weld", weldrs)
- handweld.Part0 = weldrs
- handweld.Part1 = o5
- handweld.C0 = CFrame.new(-0.4, 0, 0)
- handweld.C1 = CFrame.Angles(0, 4.5, -0.1)
- mainc1 = handweld.C1
- rs0 = rs.C0
- ls0 = ls.C0
- char.Animate.idle.Animation1.AnimationId = "rbxassetid://0"
- char.Animate.idle.Animation2.AnimationId = "rbxassetid://0"
- neckc0 = torso.Neck.C0
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "z" and eq == true then
- if equipped == false then
- equipped = true
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.05)
- wait()
- end
- inform("Katana equipped, click to perform an action.", 2)
- swordeq:Play()
- parti.Enabled = true
- parti2.Enabled = true
- parti3.Enabled = true
- parti4.Enabled = true
- parti5.Enabled = true
- for _, v in pairs(o1:GetChildren()) do
- if v.ClassName ~= "Part" then
- end
- coroutine.wrap(function()
- for i = 1, 10 do
- v.Transparency = v.Transparency - 0.1
- wait()
- end
- end)()
- end
- wait(0.5)
- parti.Enabled = false
- parti2.Enabled = false
- parti3.Enabled = false
- parti4.Enabled = false
- parti5.Enabled = false
- else
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.05)
- wait()
- end
- inform("Katana unequipped", 2)
- equipped = false
- parti.Enabled = true
- parti2.Enabled = true
- parti3.Enabled = true
- parti4.Enabled = true
- parti5.Enabled = true
- for _, v in pairs(o1:GetChildren()) do
- if v.ClassName ~= "Part" then
- end
- coroutine.wrap(function()
- for i = 1, 10 do
- v.Transparency = v.Transparency + 0.1
- wait()
- end
- end)()
- end
- wait(0.5)
- parti.Enabled = false
- parti2.Enabled = false
- parti3.Enabled = false
- parti4.Enabled = false
- parti5.Enabled = false
- end
- end
- if k == "c" then
- if eq == false then
- eq = true
- equipsound:Play()
- inform("Equipped", 2)
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.08, 0, 0)
- wait()
- end
- handweld.C0 = CFrame.new(0, 0, 0)
- handweld.Part0 = weldrs
- wait(0.13)
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.08, 0, 0)
- wait()
- end
- else
- unequipsound:Play()
- inform("Unequipped", 2)
- if equipped == true then
- equipped = false
- for i = 1, 20 do
- o2.Transparency = o2.Transparency + 0.05
- wait()
- end
- for i = 1, 20 do
- o3.Transparency = o3.Transparency + 0.05
- wait()
- end
- for i = 1, 20 do
- o4.Transparency = o4.Transparency + 0.05
- wait()
- end
- for i = 1, 20 do
- o6.Transparency = o6.Transparency + 0.05
- wait()
- end
- for i = 1, 20 do
- o7.Transparency = o7.Transparency + 0.05
- wait()
- end
- end
- eq = false
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.08, 0, 0)
- wait()
- end
- handweld.Part0 = torso
- handweld.C0 = CFrame.new(1, -1, 0)
- wait(0.13)
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.08, 0, 0)
- wait()
- end
- end
- end
- if k == "l" then
- if usage == false and equipped == true then
- usage = true
- inform("Katana usage off", 2)
- equipped = false
- handweld.C1 = CFrame.Angles(0, -4.5, -0.1)
- else
- usage = false
- inform("Katana usage on", 2)
- equipped = true
- handweld.C1 = CFrame.Angles(0, 4.5, -0.1)
- end
- end
- if k:byte() == 8 then
- o1.Parent = workspace
- for _, v in pairs(o1:GetChildren()) do
- if v.ClassName ~= "Part" then
- end
- v.CanCollide = true
- for _, p in pairs(o5:GetChildren()) do
- if p.ClassName == "Weld" then
- p:Destroy()
- end
- end
- weldrs:Destroy()
- end
- for i = 1, #parts do
- if parts[i]:IsA("BasePart") then
- local weld = Instance.new("Weld")
- weld.Part0 = prim
- weld.Part1 = parts[i]
- weld.C0 = prim.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prim
- end
- end
- script:Destroy()
- end
- if k == "r" and equipped == true and attacking == false then
- attacking = true
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.1, 0, 0.2)
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0.1, 0, -0.2)
- wait()
- end
- handweld.Part0 = torso
- handweld.C0 = CFrame.new(0, 0, -2)
- for i = 1, 8 do
- handweld.C1 = handweld.C1 * CFrame.Angles(0.2, 0, 0)
- wait()
- end
- handweld.C1 = handweld.C1 * CFrame.Angles(0, 4.5, 0)
- do
- local sound = Instance.new("Sound", o5)
- sound.SoundId = "http://www.roblox.com/asset/?id=199145446"
- sound.Volume = 2
- sound:Play()
- local wavez = coroutine.wrap(function()
- table.insert(Effects, "rbxassetid://20329976")
- for i = 1, 20 do
- coroutine.wrap(function()
- local wa = Instance.new("Part", char)
- local wm = Instance.new("FileMesh", wa)
- wa.Anchored = true
- wa.CanCollide = false
- wa.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
- wa.BrickColor = BrickColor.new("Dark stone grey")
- wm.MeshId = Effects[1]
- coroutine.wrap(function()
- for i = 1, 20 do
- wm.Scale = wm.Scale + Vector3.new(1, 0.5, 1)
- wa.Transparency = wa.Transparency + 0.05
- wait()
- end
- end)()
- wait(2)
- wa:Destroy()
- end)()
- wait(0.1)
- end
- end)
- wavez()
- wait(2.5)
- table.insert(Effects, "rbxassetid://20329976")
- coroutine.wrap(function()
- local wa = Instance.new("Part", char)
- local wm = Instance.new("FileMesh", wa)
- wa.Anchored = true
- wa.CanCollide = false
- wa.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
- wa.BrickColor = BrickColor.new("Dark stone grey")
- wm.MeshId = Effects[1]
- coroutine.wrap(function()
- for i = 1, 20 do
- wm.Scale = wm.Scale + Vector3.new(2, 1, 2)
- wait()
- end
- end)()
- wait(0.1)
- for i = 1, 20 do
- wa.Transparency = wa.Transparency + 0.05
- wait()
- end
- wa:Destroy()
- end)()
- local sound2 = Instance.new("Sound", char)
- sound2.SoundId = "http://www.roblox.com/asset/?id=280247455"
- sound2.Volume = 2
- sound2:Play()
- wait(1.5)
- table.insert(Effects, "rbxassetid://3270017")
- local shockwave = Instance.new("Part", workspace)
- shockwave.Anchored = true
- shockwave.CanCollide = false
- shockwave.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
- local id = Effects[3]
- shockwave.BrickColor = BrickColor.new("Really red")
- local mesh = Instance.new("FileMesh", shockwave)
- mesh.MeshId = id
- shockwave.Rotation = Vector3.new(-90, 0, 0)
- mesh.Scale = Vector3.new(1, 1, 1)
- coroutine.wrap(function()
- for i = 1, 50 do
- mesh.Scale = mesh.Scale + Vector3.new(4, 4, 20)
- shockwave.Transparency = shockwave.Transparency + 0.02
- wait()
- end
- shockwave:Destroy()
- end)()
- coroutine.wrap(function()
- for i = 1, 50 do
- shockwave.Size = shockwave.Size + Vector3.new(4, 4, 4)
- wait()
- end
- end)()
- shockwave.Touched:connect(function(h)
- if h.Parent.Name == char.Name then
- wait()
- else
- for _, v in pairs(h.Parent:GetChildren()) do
- if v.ClassName == "Humanoid" then
- if v.Health == 0 then
- wait()
- else
- v.Health = 0
- count = count + 1
- kills.Text = "Kills: " .. count
- ragdoll(h.Parent)
- end
- end
- end
- end
- end)
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.1, 0, -0.2)
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(-0.1, 0, 0.2)
- wait()
- end
- attacking = false
- handweld.Part0 = weldrs
- handweld.C0 = handweld.C0 * CFrame.new(0, 0, 2)
- handweld.C1 = mainc1
- char.Humanoid.WalkSpeed = 25
- char.Humanoid.JumpPower = 60
- table.remove(Effects, 3, "rbxassetid://3270017")
- table.remove(Effects, 2, "rbxassetid://20329976")
- table.remove(Effects, 1, "rbxassetid://20329976")
- end
- end
- if k == "e" and equipped == true and attacking == false and divinesword == false then
- attacking = true
- divinesword = true
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- local cor = coroutine.wrap(function()
- for i = 1, 10 do
- torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(-0.1, 0, 0)
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
- wait()
- end
- end)
- cor()
- parti.Enabled = true
- parti2.Enabled = true
- parti3.Enabled = true
- parti4.Enabled = true
- parti5.Enabled = true
- local lighnting = Instance.new("Sound", o5)
- lighnting.SoundId = "rbxassetid://539649706"
- lighnting.Volume = 5
- lighnting:Play()
- handweld.C1 = handweld.C1 * CFrame.Angles(-5, 0, 0)
- wait(0.5)
- local be = Instance.new("Part", workspace)
- be.Anchored = true
- be.CanCollide = false
- be.Shape = "Cylinder"
- be.Rotation = Vector3.new(0, 0, -90)
- be.Transparency = 0.6
- be.CFrame = char["Right Arm"].CFrame
- be.BrickColor = BrickColor.new("New Yeller")
- be.Material = "Neon"
- be.Rotation = Vector3.new(0, 0, -90)
- be.Size = Vector3.new(5000, 3, 3)
- for i = 1, 20 do
- handweld.C1 = handweld.C1 * CFrame.new(0, 0.2, 0)
- wait()
- end
- wait(1.4)
- local coo = coroutine.wrap(function()
- for i = 1, 20 do
- handweld.C1 = handweld.C1 * CFrame.new(0, -0.2, 0)
- wait()
- end
- end)
- coo()
- lighnting.SoundId = "rbxassetid://821439273"
- lighnting:Play()
- for i = 1, 30 do
- be.Size = be.Size + Vector3.new(0, 1, 1)
- be.Transparency = be.Transparency + 0.03333333333333333
- wait()
- end
- be:Destroy()
- handweld.C1 = mainc1
- for i = 1, 10 do
- torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(0.08, 0, 0)
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
- wait()
- end
- torso.Neck.C0 = neckc0
- attacking = false
- char.Humanoid.WalkSpeed = 5
- char.Humanoid.JumpPower = 50
- inform("Divine sword mode turned on, press F to perform an action.", 2)
- wait(20)
- inform("Divine sword mode turned off", 2)
- divinesword = false
- parti.Enabled = false
- parti2.Enabled = false
- parti3.Enabled = false
- parti4.Enabled = false
- parti5.Enabled = false
- end
- if k == "f" and equipped == true and divinesword == true and attacking == false then
- attacking = true
- do
- local lighnting = Instance.new("Sound", o5)
- lighnting.SoundId = "rbxassetid://821439273"
- lighnting.Volume = 5
- handweld.Part0 = torso
- handweld.C0 = CFrame.new(0, 0, -2)
- for i = 1, 8 do
- handweld.C1 = handweld.C1 * CFrame.Angles(-0.2, 0.06, 0)
- wait()
- end
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- for i = 1, 5 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
- wait()
- end
- local p1 = Instance.new("Part", workspace)
- p1.BrickColor = BrickColor.new("New Yeller")
- p1.Anchored = true
- p1.CanCollide = false
- p1.Position = Vector3.new(0, 150, 0)
- p1.Material = "Neon"
- p1.Size = Vector3.new(15, 15, 15)
- local p2 = Instance.new("Part", workspace)
- p2.BrickColor = BrickColor.new("Institutional white")
- p2.Anchored = true
- p2.CanCollide = false
- p2.Position = Vector3.new(0, 150, 0)
- p2.Material = "Neon"
- p2.Size = Vector3.new(15, 15, 15)
- local cor = coroutine.wrap(function()
- for i = 1, 40 do
- p1.CFrame = p1.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- p2.CFrame = p2.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- wait()
- end
- end)
- cor()
- for i = 1, 20 do
- handweld.C0 = handweld.C0 * CFrame.new(0, 0.2, 0)
- wait()
- end
- local dhit = Instance.new("Part", workspace)
- dhit.CFrame = mouse.Hit
- dhit.Transparency = 1
- dhit.Anchored = true
- dhit.CanCollide = false
- wait(1)
- p2:Destroy()
- p1:Destroy()
- local be = Instance.new("Part", workspace)
- be.Name = "Effect"
- be.Shape = "Cylinder"
- be.Size = Vector3.new(5000, 10, 10)
- be.Transparency = 0.1
- be.BrickColor = BrickColor.new("Dark stone grey")
- be.Material = "Neon"
- be.CFrame = dhit.CFrame
- be.Rotation = Vector3.new(0, 0, -90)
- be.Anchored = true
- be.CanCollide = false
- coroutine.wrap(function()
- local bottom = Instance.new("Part", workspace)
- local exploparti = Instance.new("ParticleEmitter")
- lighnting.Parent = bottom
- lighnting:Play()
- exploparti.Parent = bottom
- exploparti.Size = NumberSequence.new(0.60000002384186, 0.60000002384186)
- exploparti.Color = ColorSequence.new(Color3.new(0, 0.0392157, 0.85098), Color3.new(0.252912, 0.282209, 0.888669), Color3.new(1, 1, 1))
- exploparti.Enabled = false
- exploparti.LightEmission = 0.69999998807907
- exploparti.Texture = "rbxassetid://3419963"
- exploparti.Lifetime = NumberRange.new(10, 10)
- exploparti.Rate = 5000
- exploparti.Speed = NumberRange.new(10, 10)
- exploparti.VelocitySpread = 200
- coroutine.wrap(function()
- exploparti.Enabled = true
- wait(0.6)
- exploparti.Enabled = false
- end)()
- bottom.Size = Vector3.new(1, 1, 1)
- bottom.BrickColor = BrickColor.new("Dark stone grey")
- bottom.Shape = "Ball"
- bottom.Anchored = true
- bottom.CanCollide = false
- bottom.CFrame = dhit.CFrame * CFrame.new(0, 3, 0)
- bottom.Material = "Neon"
- coroutine.wrap(function()
- for i = 1, 150 do
- coroutine.wrap(function()
- local rand = Instance.new("Part", bottom)
- rand.Anchored = true
- rand.CanCollide = false
- rand.Size = Vector3.new(1, 1, 1)
- rand.Material = "Neon"
- rand.BrickColor = BrickColor.new("Dark stone grey")
- rand.CFrame = rand.CFrame * CFrame.Angles(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
- rand.CFrame = bottom.CFrame * CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- for i = 1, 20 do
- rand.Size = rand.Size + Vector3.new(1, 0, 0)
- rand.Transparency = rand.Transparency + 0.05
- wait()
- end
- end)()
- wait(math.random(0, 0.4))
- end
- end)()
- for i = 1, 50 do
- bottom.Size = bottom.Size + Vector3.new(0.4, 0.4, 0.4)
- wait()
- end
- for i = 1, 20 do
- bottom.Transparency = bottom.Transparency + 0.05
- wait()
- end
- wait(4)
- bottom:Destroy()
- end)()
- local ex = Instance.new("Explosion", dhit)
- ex.ExplosionType = "Craters"
- ex.BlastPressure = 2500000
- ex.BlastRadius = 30
- ex.Position = dhit.Position
- ex.Visible = false
- coroutine.wrap(function()
- wait(1.5)
- for i = 1, 20 do
- be.Transparency = be.Transparency + 0.05
- wait()
- end
- end)()
- for i = 1, 20 do
- handweld.C0 = handweld.C0 * CFrame.new(0, -0.2, 0)
- wait()
- end
- handweld.C0 = handweld.C0 * CFrame.new(0, 0, 2)
- handweld.Part0 = weldrs
- handweld.C1 = mainc1
- char.Humanoid.WalkSpeed = 15
- char.Humanoid.JumpPower = 50
- attacking = false
- dhit:Destroy()
- for i = 1, 5 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
- wait()
- end
- end
- end
- if k == "q" and equipped == true and attacking == false then
- attacking = true
- table.insert(Effects, "Brick")
- do
- local soun = Instance.new("Sound", o5)
- soun.SoundId = "rbxassetid://392838370"
- soun.Volume = 1.2
- char.Humanoid.WalkSpeed = 0
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.1, 0.1, -0.2)
- wait()
- end
- local kapew = coroutine.wrap(function()
- coroutine.wrap(function()
- for i = 1, amnt do
- coroutine.wrap(function()
- local lol = Instance.new("Part", char)
- local mesh = Instance.new("SpecialMesh", lol)
- mesh.MeshType = Effects[1]
- lol.Anchored = true
- lol.CanCollide = false
- lol.CFrame = char["Right Arm"].CFrame
- lol.Material = "Neon"
- lol.Name = "Effect"
- lol.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.6, 0)
- lol.Size = Vector3.new(1.4, 1.4, 1.4)
- lol.BrickColor = BrickColor.new("Black")
- coroutine.wrap(function()
- while true do
- lol.CFrame = lol.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- lol.Size = lol.Size + Vector3.new(0.03, 0.03, 0.03)
- wait()
- end
- end)()
- coroutine.wrap(function()
- for i = 1, 30 do
- lol.Transparency = lol.Transparency + 0.03333333333333333
- wait()
- end
- lol:Destroy()
- end)()
- end)()
- wait(0.1)
- end
- end)()
- soun:Play()
- wait(0.5)
- for i = 1, 8 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
- wait()
- end
- local blast = Instance.new("Part", char)
- blast.Anchored = false
- blast.CanCollide = false
- blast.BrickColor = BrickColor.Black()
- blast.Shape = "Ball"
- blast.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -5, 0)
- blast.Size = Vector3.new(1.5, 1.5, 1.5)
- blast.Material = "Neon"
- local vel = Instance.new("BodyVelocity", blast)
- vel.MaxForce = Vector3.new(999999999, 9999999999, 9999999999)
- vel.Velocity = torso.CFrame.lookVector * 99
- coroutine.wrap(function()
- while true do
- coroutine.wrap(function()
- local trail = Instance.new("Part", blast)
- local mesh = Instance.new("SpecialMesh", trail)
- mesh.MeshType = Effects[1]
- trail.Size = Vector3.new(0.1, 0.1, 0.1)
- trail.BrickColor = BrickColor.Black()
- trail.CanCollide = false
- trail.Anchored = true
- trail.Name = "Trail"
- trail.CFrame = blast.CFrame * CFrame.new(0, 0, 0.7)
- trail.Material = "Neon"
- for i = 1, 30 do
- trail.CFrame = trail.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
- trail.Size = trail.Size + Vector3.new(0.1, 0.1, 0.1)
- trail.Transparency = trail.Transparency + 0.03333333333333333
- wait()
- end
- trail:Destroy()
- end)()
- wait()
- end
- end)()
- coroutine.wrap(function()
- wait(lifetime)
- blast:Destroy()
- soun:Destroy()
- end)()
- blast.Touched:connect(function(h)
- print(h.Name)
- if h.Name == "Trail" then
- wait()
- end
- for _, v in pairs(h.Parent:GetChildren()) do
- if v.ClassName == "Humanoid" then
- v.Health = 0
- coroutine.wrap(function()
- local ex = Instance.new("Part", workspace)
- ex.Name = "Effect"
- ex.Anchored = true
- ex.CanCollide = false
- ex.Shape = "Ball"
- ex.CFrame = blast.CFrame
- ex.BrickColor = BrickColor.new("Black")
- ex.Material = "Neon"
- for i = 1, 45 do
- ex.Size = ex.Size + Vector3.new(1, 1, 1)
- ex.Transparency = ex.Transparency + 0.022222222222222223
- wait()
- end
- ex:Destroy()
- end)()
- blast:Destroy()
- ragdoll(h.Parent)
- end
- end
- end)
- wait(0.5)
- torso["Right Shoulder"].C0 = rs0
- attacking = false
- char.Humanoid.WalkSpeed = 15
- end)
- kapew()
- wait(lifetime)
- table.remove(Effects, 1, "Brick")
- end
- end
- if k == "t" and equipped == true and attacking == false then
- attacking = true
- rayLaser(BrickColor.new("Black"))
- end
- end)
- function lerp(weld, startpos, endpos, amntime, longatend)
- local waited = 0
- for i = 1, amntime * 100 do
- if longatend == true then
- startpos = weld.C0
- end
- weld.C0 = startpos:lerp(endpos, i / (amntime * 100))
- wait(0.01)
- waited = waited + 0.01
- end
- end
- local sounds = Instance.new("Model", o5)
- local hit1 = Instance.new("Sound", sounds)
- local hit2 = Instance.new("Sound", sounds)
- local swing = Instance.new("Sound", sounds)
- swing.SoundId = "rbxassetid://608537390"
- swing.Volume = 1
- swordeq.Parent = sounds
- swordeq.SoundId = "rbxassetid://608618332"
- swordeq.Volume = 1
- equipsound.Parent = sounds
- unequipsound.Parent = sounds
- hit1.SoundId = "rbxassetid://566593606"
- hit1.Volume = 1
- hit2.SoundId = "rbxassetid://978055110"
- hit2.Volume = 1
- mouse.Button1Down:connect(function()
- if equipped == true and attacking == false then
- attacking = true
- deca = true
- trail.Enabled = true
- do
- local rweld = Instance.new("Weld", char["Right Arm"])
- local lweld = Instance.new("Weld", char["Left Arm"])
- local tweld = Instance.new("Weld", char.HumanoidRootPart)
- rweld.Part0 = char.Torso
- rweld.Part1 = char["Right Arm"]
- rweld.C0 = CFrame.new(1.5, 0, 0)
- lweld.Part0 = char.Torso
- lweld.Part1 = char["Left Arm"]
- lweld.C0 = CFrame.new(-1.5, 0, 0)
- tweld.Part0 = char.HumanoidRootPart
- tweld.Part1 = char.Torso
- local cor = coroutine.wrap(function()
- lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(45), 0), 0.08)
- end)
- cor()
- lerp(rweld, rweld.C0, CFrame.new(1.35, 0.5, -1.2) * CFrame.Angles(0, math.rad(110), math.rad(90)), 0.08)
- wait(0.2)
- swing:Play()
- active = true
- local cor = coroutine.wrap(function()
- lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-45), 0), 0.04)
- end)
- cor()
- lerp(rweld, rweld.C0, CFrame.new(2, 0.5, 0) * CFrame.Angles(0, math.rad(0), math.rad(90)), 0.04)
- active = false
- wait(0.2)
- local cor = coroutine.wrap(function()
- lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.08)
- end)
- cor()
- lerp(rweld, rweld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.08)
- rweld:Destroy()
- lweld:Destroy()
- tweld:Destroy()
- if rightclone and char:FindFirstChild("Right Arm") and char:FindFirstChild("Torso") then
- local clone = rightclone:Clone()
- clone.Part0 = char.Torso
- clone.Part1 = char["Right Arm"]
- clone.Parent = char.Torso
- end
- if leftclone and char:FindFirstChild("Left Arm") and char:FindFirstChild("Torso") then
- local clone = leftclone:Clone()
- clone.Part0 = char.Torso
- clone.Part1 = char["Left Arm"]
- clone.Parent = char.Torso
- end
- if torsoclone and char:FindFirstChild("Torso") and char:FindFirstChild("HumanoidRootPart") then
- local clone = torsoclone:Clone()
- clone.Part0 = char.HumanoidRootPart
- clone.Part1 = char.Torso
- clone.Parent = char.HumanoidRootPart
- end
- for i = 1, 5 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.05)
- wait()
- end
- attacking = false
- trail.Enabled = false
- deca = false
- end
- end
- if eq == true and equipped == false and attacking == false then
- attacking = true
- rayLaser(BrickColor.new("Hot pink"))
- end
- end)
- o4.Touched:Connect(function(h)
- if active == true then
- if h.Parent.Name == char.Name then
- wait()
- elseif grabbing ~= true then
- for _, v in pairs(h.Parent:GetChildren()) do
- if v.ClassName == "Humanoid" and v ~= nil then
- if v.Name == "Ragdoll Humanoid" then
- wait()
- else
- v.Health = 0
- local blo = coroutine.wrap(function()
- bloodparti.Enabled = true
- o2.BrickColor = BrickColor.new("Maroon")
- o2.Material = "SmoothPlastic"
- wait(4)
- o2.BrickColor = BrickColor.new("Dark stone grey")
- o2.Material = "Metal"
- bloodparti.Enabled = false
- end)
- blo()
- ragdoll(h.Parent)
- count = count + 1
- kills.Text = "Kills: " .. count
- local Math = math.random(1, 2)
- if Math == 1 then
- hit1:Play()
- else
- hit2:Play()
- end
- ragdoll(h.Parent)
- end
- end
- end
- end
- end
- end)
- char.Humanoid.Died:connect(function()
- o1.Parent = workspace
- for _, v in pairs(o1:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = true
- end
- end
- for i = 1, #parts do
- if parts[i]:IsA("BasePart") then
- local weld = Instance.new("Weld")
- weld.Part0 = prim
- weld.Part1 = parts[i]
- weld.C0 = prim.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prim
- end
- end
- o5.Name = "Handle"
- o4.Parent = o5
- o3.Parent = o5
- o2.Parent = o5
- o6.Parent = o5
- o7.Parent = o5
- o5.Parent = workspace
- o1:Destroy()
- local tool = Instance.new("Tool", workspace)
- tool.Name = "Broken Katana"
- o5.Parent = tool
- tool.GripForward = Vector3.new(0.087, -0.003, -0.996)
- tool.GripPos = Vector3.new(0, 0, 0.048)
- tool.GripRight = Vector3.new(-0.031, -1, 0)
- tool.GripUp = Vector3.new(0.996, -0.031, 0.087)
- ragdoll(char)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement