Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- STARTER DEFINITIONS
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local mou = plr:GetMouse()
- local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
- local head = char:FindFirstChild("Head")
- local neck = tor:FindFirstChild("Neck")
- local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
- local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
- local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
- local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
- local ls = tor:FindFirstChild("Left Shoulder")
- local rs = tor:FindFirstChild("Right Shoulder")
- local tweenserv = game:GetService("TweenService")
- local equipped = true
- local auraok = true
- local attack = false
- local swing = true
- local tauntok = true
- local ONO = true
- --LOADING NOTIFICATION
- print("Loading Anubis..")
- --TOOL PROPERTIES
- local lass = Instance.new("Tool", plr.Backpack)
- lass.Name = "Anubis"
- lass.CanBeDropped = false
- local handle = Instance.new("Part", lass)
- handle.Name = "Handle"
- handle.Size = Vector3.new(1, 1, 1)
- handle.Transparency = 1
- handle.Locked = true
- local h1 = Instance.new("Part", handle)
- h1.Size = Vector3.new(0.3, 0.3, 1.8)
- h1.Material = "Wood"
- h1.BrickColor = BrickColor.new("Burnt Sienna")
- h1.Locked = true
- local c1 = Instance.new("Part", handle)
- c1.Material = "Metal"
- c1.Reflectance = 0.1
- c1.BrickColor = BrickColor.new("Gold")
- c1.Size = Vector3.new(0.2, 1.3, 1.3)
- c1.Shape = "Cylinder"
- c1.Locked = true
- local b1 = Instance.new("Part", handle)
- b1.Material = "Metal"
- b1.BrickColor = BrickColor.new("Quill grey")
- b1.Size = Vector3.new(0.1, 4.7, 0.5)
- b1.Reflectance = 0.1
- b1.CanCollide = false
- b1.Locked = true
- local b2 = Instance.new("WedgePart", handle)
- b2.Material = "Metal"
- b2.BrickColor = BrickColor.new("Quill grey")
- b2.Size = Vector3.new(0.1, 1, 0.5)
- b2.Reflectance = 0.1
- b2.CanCollide = false
- b2.Locked = true
- --WELDS
- local h1w = Instance.new("Weld", h1)
- h1w.Part0 = handle
- h1w.Part1 = h1
- h1w.C1 = CFrame.Angles(math.rad(-90), 0, 0)
- local p1w = Instance.new("Weld", p1)
- p1w.Part0 = handle
- p1w.Part1 = p1
- p1w.C1 = CFrame.new(0, 0.7, -0.3) * CFrame.Angles(math.rad(-45), 0, 0)
- local p2w = Instance.new("Weld", p2)
- p2w.Part0 = handle
- p2w.Part1 = p2
- p2w.C1 = CFrame.new(0, 0.55, -0.3) * CFrame.Angles(math.rad(-75), 0, 0)
- local p3w = Instance.new("Weld", p3)
- p3w.Part0 = handle
- p3w.Part1 = p3
- p3w.C1 = CFrame.new(0, -0.55, 0) * CFrame.Angles(math.rad(90), 0, 0)
- local p4w = Instance.new("Weld", p4)
- p4w.Part0 = handle
- p4w.Part1 = p4
- p4w.C1 = CFrame.new(0, -0.55, -0.3) * CFrame.Angles(math.rad(75), 0, 0)
- local p5w = Instance.new("Weld", p5)
- p5w.Part0 = handle
- p5w.Part1 = p5
- p5w.C1 = CFrame.new(0, -0.7, -0.3) * CFrame.Angles(math.rad(45), 0, 0)
- local c1w = Instance.new("Weld", c1)
- c1w.Part0 = handle
- c1w.Part1 = c1
- c1w.C1 = CFrame.new(0.9, 0, 0) * CFrame.Angles(0, 0, math.rad(90))
- local b1w = Instance.new("Weld", b1)
- b1w.Part0 = handle
- b1w.Part1 = b1
- b1w.C1 = CFrame.new(0, -3.3, 0)
- local b2w = Instance.new("Weld", b2)
- b2w.Part0 = handle
- b2w.Part1 = b2
- b2w.C1 = CFrame.new(0, -6.15, 0)
- --STARTER LERP DEFINITIONS
- local start = rs.C1
- local starti = rs.C0
- local starts = ls.C0
- --LOADED NOTIFICATION
- print("Anubis is ready")
- --FUNCTIONS
- lass.Equipped:connect(function()
- rs.C1 = rs.C1 * CFrame.Angles(0, 0, math.rad(90))
- rs.C0 = rs.C0 * CFrame.Angles(math.rad(-10), 0, 0)
- equipped = true
- if equipped == true then
- mou.Button1Down:connect(function()
- attack = true
- if attack == true then
- b1.Touched:connect(function(hit)
- if attack == true and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= char.Name and hit.Name ~= "himynameisomgwhatt" then
- local ow = hit.Parent
- local owtor = ow:FindFirstChild("Torso") or ow:FindFirstChild("UpperTorso")
- ow:BreakJoints()
- local oof = Instance.new("Sound", owtor)
- oof.SoundId = "rbxassetid://220834019"
- oof.Volume = 9
- oof:Play()
- game:GetService("Debris"):AddItem(oof, 1.2)
- attack = false
- wait(4)
- b2.BrickColor = BrickColor.new("Quill grey")
- end
- end)
- b2.Touched:connect(function(hit)
- if attack == true and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then
- local ow = hit.Parent
- local owtor = ow:FindFirstChild("Torso") or ow:FindFirstChild("UpperTorso")
- ow:BreakJoints()
- local oof = Instance.new("Sound", owtor)
- oof.SoundId = "rbxassetid://220834019"
- oof.Volume = 9
- oof:Play()
- attack = false
- wait(2)
- b2.BrickColor = BrickColor.new("Quill grey")
- end
- end)
- if attack == true and swing == true then
- swing = false
- local start2 = rs.C1
- local start3 = rs.C0
- local finish2 = rs.C1 * CFrame.Angles(0, 0, math.rad(-90))
- local finish3 = rs.C0 * CFrame.Angles(math.rad(-90), 0, 0)
- local finish4 = rs.C1 * CFrame.Angles(0, 0, math.rad(-360))
- for i = 0,1,.15 do
- rs.C1 = start2:lerp(finish2, i)
- rs.C0 = start3:lerp(finish3, i)
- wait()
- end
- for i = 0,1,.2 do
- rs.C1 = finish2:lerp(finish4, i)
- wait()
- end
- for i = 0,1,.1 do
- rs.C1 = rs.C1:lerp(start2, i)
- rs.C0 = rs.C0:lerp(start3, i)
- wait()
- end
- swing = true
- end
- attack = false
- end
- end)
- function pressed(key)
- if key == "e" and auraok == true and attack == false then
- auraok = false
- local aura = Instance.new("Part", workspace)
- aura.Shape = "Ball"
- aura.BrickColor = BrickColor.new("Crimson")
- aura.Material = "Neon"
- aura.Name = "himynameisomgwhatt"
- aura.CanCollide = false
- aura.Locked = true
- aura.CFrame = tor.CFrame
- aura.Anchored = true
- local tweeninfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
- local partprop = {Size = Vector3.new(300, 300, 300);
- Transparency = 1}
- local tween = tweenserv:Create(aura, tweeninfo, partprop)
- tween:Play()
- game:GetService("Debris"):AddItem(aura, 2)
- local aurasound = Instance.new("Sound", aura)
- aurasound.SoundId = "rbxassetid://180120107"
- aurasound.Volume = 9
- aurasound:Play()
- game:GetService("Debris"):AddItem(aurasound, 2.2)
- for i,v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= char.Name then
- local ow2 = v
- local owtor2 = ow2:FindFirstChild("Torso") or ow2:FindFirstChild("UpperTorso")
- local owhum = ow2:FindFirstChildOfClass("Humanoid")
- owtor2.Anchored = true
- owhum.PlatformStand = true
- owhum.Health = 1
- end
- end
- wait(7)
- auraok = true
- elseif key == "q" and mou.Target ~= nil then
- char.Archivable = true
- local fakechar = char:Clone()
- char.Archivable = false
- fakechar.Parent = workspace
- fakechar:MoveTo(tor.Position)
- local faketor = fakechar:FindFirstChild("Torso") or fakechar:FindFirstChild("UpperTorso")
- local tpsound = Instance.new("Sound", faketor)
- tpsound.SoundId = "rbxassetid://153613030"
- tpsound.Volume = 9
- tpsound:Play()
- if fakechar:FindFirstChildOfClass("Humanoid") then
- local fakehum = fakechar:FindFirstChildOfClass("Humanoid")
- fakehum.DisplayDistanceType = "None"
- fakehum.HealthDisplayType = "AlwaysOff"
- end
- game:GetService("Debris"):AddItem(tpsound, 1.2)
- game:GetService("Debris"):AddItem(fakechar, 5)
- for i,v in pairs(fakechar:GetChildren()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- if v:IsA("Pants") then
- v:Destroy()
- end
- if v:IsA("Part") then
- v.Transparency = 0.5
- v.Material = "Neon"
- v.BrickColor = BrickColor.new("Crimson")
- v.Anchored = true
- if v:FindFirstChildOfClass("Decal") then
- local fakeface = v:FindFirstChildOfClass("Decal")
- fakeface:Destroy()
- end
- end
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- tor.CFrame = mou.Hit * CFrame.new(0, 5, 0)
- elseif key == "f" then
- if ONO == true then
- if mou.Target ~= nil and mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
- ONO = false
- thing = mou.Target
- local start = thing.CFrame
- local finish10 = larm.CFrame * CFrame.new(0, 1, 0)
- ls.C0 = starts
- local finishs = ls.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90))
- thing.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- for i = 0,1,.1 do
- thing.CFrame = start:lerp(finish10, i)
- ls.C0 = starts:lerp(finishs, i)
- wait()
- end
- thing.CanCollide = false
- thing.Anchored = false
- neww = Instance.new("Weld", thing)
- neww.Part0 = larm
- neww.Part1 = thing
- neww.C1 = CFrame.new(0, 1, 0)
- end
- elseif ONO == false then
- neww:Destroy()
- why = Instance.new("BodyPosition", thing)
- why.Position = mou.Hit.p
- why.MaxForce = Vector3.new(10000, 10000, 10000)
- game:GetService("Debris"):AddItem(why, 10)
- ls.C0 = starts
- ONO = true
- end
- elseif key == "t" and tauntok == true then
- tauntok = false
- local taunts = {"So boring.", "You make me laugh!",
- "Is that all you've got?", "What's the matter?", "What a pity.", "Pointless.",
- "Such weakness.", "Sorry, who are you again?", "Hmph, what a waste of time.", "Pathetic."}
- local tauntsounds = {"736346216", "724862823", "731944386", "463770058", }
- local tauntsound = Instance.new("Sound", head)
- tauntsound.SoundId = "rbxassetid://"..tauntsounds[math.random(1, #tauntsounds)]
- tauntsound.Volume = 10
- tauntsound:Play()
- game:GetService("Debris"):AddItem(tauntsound, 4)
- local sgui = Instance.new("BillboardGui", char)
- sgui.AlwaysOnTop = true
- sgui.StudsOffset = Vector3.new(0.5, 1, 0)
- sgui.Size = UDim2.new(5, 35, 5, 35)
- sgui.Adornee = head
- local stext2 = Instance.new("TextLabel", sgui)
- stext2.BackgroundTransparency = 1
- stext2.TextScaled = true
- stext2.BorderSizePixel = 0
- stext2.Text = taunts[math.random(1, #taunts)]
- stext2.Font = "Fantasy"
- stext2.TextSize = 30
- stext2.TextStrokeTransparency = 0
- stext2.TextColor3 = Color3.new(1, 0, 0.5)
- stext2.Size = UDim2.new(0.8, 0, 0.3, 0)
- stext2.Parent = sgui
- game:GetService("Debris"):AddItem(sgui, 4)
- game:GetService("Debris"):AddItem(stext2, 4)
- wait(4)
- tauntok = true
- end
- end
- mou.KeyDown:connect(pressed)
- end
- end)
- lass.Unequipped:connect(function()
- rs.C1 = start
- rs.C0 = starti
- attack = false
- swing = true
- equipped = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement