Advertisement
lafur

Untitled

Jan 8th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.54 KB | None | 0 0
  1. -- STARTER DEFINITIONS
  2. local plr = game:GetService("Players").LocalPlayer
  3. local char = plr.Character
  4. local hum = char:FindFirstChildOfClass("Humanoid")
  5. local mou = plr:GetMouse()
  6. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  7. local head = char:FindFirstChild("Head")
  8. local neck = tor:FindFirstChild("Neck")
  9. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  10. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  11. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  12. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  13. local ls = tor:FindFirstChild("Left Shoulder")
  14. local rs = tor:FindFirstChild("Right Shoulder")
  15. local tweenserv = game:GetService("TweenService")
  16. local equipped = true
  17. local auraok = true
  18. local attack = false
  19. local swing = true
  20. local tauntok = true
  21. local ONO = true
  22.  
  23.  
  24. --LOADING NOTIFICATION
  25. print("Loading Anubis..")
  26.  
  27. --TOOL PROPERTIES
  28. local lass = Instance.new("Tool", plr.Backpack)
  29. lass.Name = "Anubis"
  30. lass.CanBeDropped = false
  31.  
  32. local handle = Instance.new("Part", lass)
  33. handle.Name = "Handle"
  34. handle.Size = Vector3.new(1, 1, 1)
  35. handle.Transparency = 1
  36. handle.Locked = true
  37.  
  38. local h1 = Instance.new("Part", handle)
  39. h1.Size = Vector3.new(0.3, 0.3, 1.8)
  40. h1.Material = "Wood"
  41. h1.BrickColor = BrickColor.new("Burnt Sienna")
  42. h1.Locked = true
  43.  
  44.  
  45. local c1 = Instance.new("Part", handle)
  46. c1.Material = "Metal"
  47. c1.Reflectance = 0.1
  48. c1.BrickColor = BrickColor.new("Gold")
  49. c1.Size = Vector3.new(0.2, 1.3, 1.3)
  50. c1.Shape = "Cylinder"
  51. c1.Locked = true
  52.  
  53. local b1 = Instance.new("Part", handle)
  54. b1.Material = "Metal"
  55. b1.BrickColor = BrickColor.new("Quill grey")
  56. b1.Size = Vector3.new(0.1, 4.7, 0.5)
  57. b1.Reflectance = 0.1
  58. b1.CanCollide = false
  59. b1.Locked = true
  60.  
  61. local b2 = Instance.new("WedgePart", handle)
  62. b2.Material = "Metal"
  63. b2.BrickColor = BrickColor.new("Quill grey")
  64. b2.Size = Vector3.new(0.1, 1, 0.5)
  65. b2.Reflectance = 0.1
  66. b2.CanCollide = false
  67. b2.Locked = true
  68.  
  69. --WELDS
  70. local h1w = Instance.new("Weld", h1)
  71. h1w.Part0 = handle
  72. h1w.Part1 = h1
  73. h1w.C1 = CFrame.Angles(math.rad(-90), 0, 0)
  74.  
  75. local p1w = Instance.new("Weld", p1)
  76. p1w.Part0 = handle
  77. p1w.Part1 = p1
  78. p1w.C1 = CFrame.new(0, 0.7, -0.3) * CFrame.Angles(math.rad(-45), 0, 0)
  79.  
  80. local p2w = Instance.new("Weld", p2)
  81. p2w.Part0 = handle
  82. p2w.Part1 = p2
  83. p2w.C1 = CFrame.new(0, 0.55, -0.3) * CFrame.Angles(math.rad(-75), 0, 0)
  84.  
  85. local p3w = Instance.new("Weld", p3)
  86. p3w.Part0 = handle
  87. p3w.Part1 = p3
  88. p3w.C1 = CFrame.new(0, -0.55, 0) * CFrame.Angles(math.rad(90), 0, 0)
  89.  
  90. local p4w = Instance.new("Weld", p4)
  91. p4w.Part0 = handle
  92. p4w.Part1 = p4
  93. p4w.C1 = CFrame.new(0, -0.55, -0.3) * CFrame.Angles(math.rad(75), 0, 0)
  94.  
  95. local p5w = Instance.new("Weld", p5)
  96. p5w.Part0 = handle
  97. p5w.Part1 = p5
  98. p5w.C1 = CFrame.new(0, -0.7, -0.3) * CFrame.Angles(math.rad(45), 0, 0)
  99.  
  100. local c1w = Instance.new("Weld", c1)
  101. c1w.Part0 = handle
  102. c1w.Part1 = c1
  103. c1w.C1 = CFrame.new(0.9, 0, 0) * CFrame.Angles(0, 0, math.rad(90))
  104.  
  105. local b1w = Instance.new("Weld", b1)
  106. b1w.Part0 = handle
  107. b1w.Part1 = b1
  108. b1w.C1 = CFrame.new(0, -3.3, 0)
  109.  
  110. local b2w = Instance.new("Weld", b2)
  111. b2w.Part0 = handle
  112. b2w.Part1 = b2
  113. b2w.C1 = CFrame.new(0, -6.15, 0)
  114.  
  115. --STARTER LERP DEFINITIONS
  116. local start = rs.C1
  117. local starti = rs.C0
  118. local starts = ls.C0
  119.  
  120. --LOADED NOTIFICATION
  121. print("Anubis is ready")
  122.  
  123. --FUNCTIONS
  124. lass.Equipped:connect(function()
  125. rs.C1 = rs.C1 * CFrame.Angles(0, 0, math.rad(90))
  126. rs.C0 = rs.C0 * CFrame.Angles(math.rad(-10), 0, 0)
  127. equipped = true
  128. if equipped == true then
  129. mou.Button1Down:connect(function()
  130. attack = true
  131. if attack == true then
  132. b1.Touched:connect(function(hit)
  133. if attack == true and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= char.Name and hit.Name ~= "himynameisomgwhatt" then
  134. local ow = hit.Parent
  135. local owtor = ow:FindFirstChild("Torso") or ow:FindFirstChild("UpperTorso")
  136. ow:BreakJoints()
  137.  
  138. local oof = Instance.new("Sound", owtor)
  139. oof.SoundId = "rbxassetid://220834019"
  140. oof.Volume = 9
  141. oof:Play()
  142. game:GetService("Debris"):AddItem(oof, 1.2)
  143. attack = false
  144. wait(4)
  145. b2.BrickColor = BrickColor.new("Quill grey")
  146. end
  147. end)
  148.  
  149. b2.Touched:connect(function(hit)
  150. if attack == true and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then
  151. local ow = hit.Parent
  152. local owtor = ow:FindFirstChild("Torso") or ow:FindFirstChild("UpperTorso")
  153. ow:BreakJoints()
  154.  
  155.  
  156. local oof = Instance.new("Sound", owtor)
  157. oof.SoundId = "rbxassetid://220834019"
  158. oof.Volume = 9
  159. oof:Play()
  160. attack = false
  161. wait(2)
  162. b2.BrickColor = BrickColor.new("Quill grey")
  163. end
  164. end)
  165.  
  166. if attack == true and swing == true then
  167. swing = false
  168. local start2 = rs.C1
  169. local start3 = rs.C0
  170. local finish2 = rs.C1 * CFrame.Angles(0, 0, math.rad(-90))
  171. local finish3 = rs.C0 * CFrame.Angles(math.rad(-90), 0, 0)
  172. local finish4 = rs.C1 * CFrame.Angles(0, 0, math.rad(-360))
  173. for i = 0,1,.15 do
  174. rs.C1 = start2:lerp(finish2, i)
  175. rs.C0 = start3:lerp(finish3, i)
  176. wait()
  177. end
  178. for i = 0,1,.2 do
  179. rs.C1 = finish2:lerp(finish4, i)
  180. wait()
  181. end
  182. for i = 0,1,.1 do
  183. rs.C1 = rs.C1:lerp(start2, i)
  184. rs.C0 = rs.C0:lerp(start3, i)
  185. wait()
  186. end
  187. swing = true
  188. end
  189. attack = false
  190. end
  191. end)
  192. function pressed(key)
  193. if key == "e" and auraok == true and attack == false then
  194. auraok = false
  195. local aura = Instance.new("Part", workspace)
  196. aura.Shape = "Ball"
  197. aura.BrickColor = BrickColor.new("Crimson")
  198. aura.Material = "Neon"
  199. aura.Name = "himynameisomgwhatt"
  200. aura.CanCollide = false
  201. aura.Locked = true
  202. aura.CFrame = tor.CFrame
  203. aura.Anchored = true
  204. local tweeninfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
  205. local partprop = {Size = Vector3.new(300, 300, 300);
  206. Transparency = 1}
  207. local tween = tweenserv:Create(aura, tweeninfo, partprop)
  208. tween:Play()
  209. game:GetService("Debris"):AddItem(aura, 2)
  210. local aurasound = Instance.new("Sound", aura)
  211. aurasound.SoundId = "rbxassetid://180120107"
  212. aurasound.Volume = 9
  213. aurasound:Play()
  214. game:GetService("Debris"):AddItem(aurasound, 2.2)
  215. for i,v in pairs(workspace:GetChildren()) do
  216. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= char.Name then
  217. local ow2 = v
  218. local owtor2 = ow2:FindFirstChild("Torso") or ow2:FindFirstChild("UpperTorso")
  219. local owhum = ow2:FindFirstChildOfClass("Humanoid")
  220. owtor2.Anchored = true
  221. owhum.PlatformStand = true
  222. owhum.Health = 1
  223. end
  224. end
  225. wait(7)
  226. auraok = true
  227. elseif key == "q" and mou.Target ~= nil then
  228. char.Archivable = true
  229. local fakechar = char:Clone()
  230. char.Archivable = false
  231. fakechar.Parent = workspace
  232. fakechar:MoveTo(tor.Position)
  233. local faketor = fakechar:FindFirstChild("Torso") or fakechar:FindFirstChild("UpperTorso")
  234. local tpsound = Instance.new("Sound", faketor)
  235. tpsound.SoundId = "rbxassetid://153613030"
  236. tpsound.Volume = 9
  237. tpsound:Play()
  238. if fakechar:FindFirstChildOfClass("Humanoid") then
  239. local fakehum = fakechar:FindFirstChildOfClass("Humanoid")
  240. fakehum.DisplayDistanceType = "None"
  241. fakehum.HealthDisplayType = "AlwaysOff"
  242. end
  243. game:GetService("Debris"):AddItem(tpsound, 1.2)
  244. game:GetService("Debris"):AddItem(fakechar, 5)
  245. for i,v in pairs(fakechar:GetChildren()) do
  246. if v:IsA("Shirt") then
  247. v:Destroy()
  248. end
  249. if v:IsA("Pants") then
  250. v:Destroy()
  251. end
  252. if v:IsA("Part") then
  253. v.Transparency = 0.5
  254. v.Material = "Neon"
  255. v.BrickColor = BrickColor.new("Crimson")
  256. v.Anchored = true
  257. if v:FindFirstChildOfClass("Decal") then
  258. local fakeface = v:FindFirstChildOfClass("Decal")
  259. fakeface:Destroy()
  260. end
  261. end
  262. if v:IsA("Accessory") then
  263. v:Destroy()
  264. end
  265. end
  266. tor.CFrame = mou.Hit * CFrame.new(0, 5, 0)
  267. elseif key == "f" then
  268. if ONO == true then
  269. if mou.Target ~= nil and mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  270. ONO = false
  271. thing = mou.Target
  272. local start = thing.CFrame
  273. local finish10 = larm.CFrame * CFrame.new(0, 1, 0)
  274. ls.C0 = starts
  275. local finishs = ls.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90))
  276. thing.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  277. for i = 0,1,.1 do
  278. thing.CFrame = start:lerp(finish10, i)
  279. ls.C0 = starts:lerp(finishs, i)
  280. wait()
  281. end
  282. thing.CanCollide = false
  283. thing.Anchored = false
  284. neww = Instance.new("Weld", thing)
  285. neww.Part0 = larm
  286. neww.Part1 = thing
  287. neww.C1 = CFrame.new(0, 1, 0)
  288. end
  289. elseif ONO == false then
  290. neww:Destroy()
  291. why = Instance.new("BodyPosition", thing)
  292. why.Position = mou.Hit.p
  293. why.MaxForce = Vector3.new(10000, 10000, 10000)
  294. game:GetService("Debris"):AddItem(why, 10)
  295. ls.C0 = starts
  296. ONO = true
  297. end
  298. elseif key == "t" and tauntok == true then
  299. tauntok = false
  300. local taunts = {"So boring.", "You make me laugh!",
  301. "Is that all you've got?", "What's the matter?", "What a pity.", "Pointless.",
  302. "Such weakness.", "Sorry, who are you again?", "Hmph, what a waste of time.", "Pathetic."}
  303. local tauntsounds = {"736346216", "724862823", "731944386", "463770058", }
  304. local tauntsound = Instance.new("Sound", head)
  305. tauntsound.SoundId = "rbxassetid://"..tauntsounds[math.random(1, #tauntsounds)]
  306. tauntsound.Volume = 10
  307. tauntsound:Play()
  308. game:GetService("Debris"):AddItem(tauntsound, 4)
  309. local sgui = Instance.new("BillboardGui", char)
  310. sgui.AlwaysOnTop = true
  311. sgui.StudsOffset = Vector3.new(0.5, 1, 0)
  312. sgui.Size = UDim2.new(5, 35, 5, 35)
  313. sgui.Adornee = head
  314. local stext2 = Instance.new("TextLabel", sgui)
  315. stext2.BackgroundTransparency = 1
  316. stext2.TextScaled = true
  317. stext2.BorderSizePixel = 0
  318. stext2.Text = taunts[math.random(1, #taunts)]
  319. stext2.Font = "Fantasy"
  320. stext2.TextSize = 30
  321. stext2.TextStrokeTransparency = 0
  322. stext2.TextColor3 = Color3.new(1, 0, 0.5)
  323. stext2.Size = UDim2.new(0.8, 0, 0.3, 0)
  324. stext2.Parent = sgui
  325. game:GetService("Debris"):AddItem(sgui, 4)
  326. game:GetService("Debris"):AddItem(stext2, 4)
  327. wait(4)
  328. tauntok = true
  329. end
  330. end
  331. mou.KeyDown:connect(pressed)
  332. end
  333. end)
  334.  
  335. lass.Unequipped:connect(function()
  336. rs.C1 = start
  337. rs.C0 = starti
  338. attack = false
  339. swing = true
  340. equipped = false
  341. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement