Advertisement
naser2345

Hook

Dec 31st, 2017
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.54 KB | None | 0 0
  1.  
  2.  
  3. local player = game:GetService("Players").LocalPlayer
  4. local char = player.Character
  5. local mouse = player:GetMouse()
  6. local Hood = true
  7. local hum = char.Humanoid
  8. local skincolor= BrickColor.new"Really black" --that doesnt sound right
  9. local RootPart = char:WaitForChild("HumanoidRootPart")
  10. local rad = math.rad
  11. local huge = math.huge
  12. local rand = math.random
  13. local Vec = Vector3.new
  14. local Cf = CFrame.new
  15. local Euler = CFrame.fromEulerAnglesXYZ
  16. local BC = BrickColor.new
  17. local Col3 = Color3.new
  18. local Inst = Instance.new
  19. local Ud2 = UDim2.new
  20. local RootPart = char:WaitForChild("HumanoidRootPart")
  21. local RootJoint = RootPart:WaitForChild("RootJoint")
  22. local runServ = game:GetService("RunService")
  23.  
  24. wait(2)
  25. char["Body Colors"].HeadColor = skincolor
  26. char["Body Colors"].LeftArmColor = skincolor
  27. char["Body Colors"].LeftLegColor = skincolor
  28. char["Body Colors"].RightArmColor = skincolor
  29. char["Body Colors"].RightLegColor = skincolor
  30. char["Body Colors"].TorsoColor = skincolor
  31.  
  32. Shirt = Instance.new("Shirt",char)
  33. Shirt.Parent = char
  34. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=98045742"
  35.  
  36. Pant = Instance.new("Pants",char)
  37. Pant.Parent = char
  38. Pant.PantsTemplate = "http://www.roblox.com/asset/?id=83181745"
  39.  
  40. lite = Instance.new("PointLight")
  41. lite.Parent = char.Torso
  42. lite.Brightness = 100
  43. lite.Range = 8
  44. lite.Color = Color3.new(1,1,1)
  45.  
  46. local cf = CFrame.new(0, 0, -3) * CFrame.Angles(math.rad(180), 0, 0)
  47. local chatServ = game:GetService("Chat")
  48. local runServ = game:GetService("RunService")
  49. local debServ = game:GetService("Debris")
  50. local FONT = "SourceSans"
  51.  
  52. function MakeText(text, font, duration, tcr, tcg, tcb, scr, scg, scb, cFrame)
  53. local tpart = Instance.new("Part")
  54. tpart.Parent = char
  55. tpart.Transparency = 1
  56. tpart.Name = "hoihoi"
  57. tpart.Anchored = true
  58. tpart.CanCollide = false
  59. tpart.Locked = true
  60. tpart.Size = Vector3.new(.2,.2,.2)
  61. tpart.CFrame = cFrame*CFrame.new(math.random(-2,2),0,math.random(-2,2))
  62. local bill = Instance.new("BillboardGui")
  63. bill.Parent = tpart
  64. bill.AlwaysOnTop = true
  65. bill.Name = "bilb"
  66. bill.Size = UDim2.new(4, 0, 4, 0)
  67. bill.StudsOffset = Vector3.new(0, 1, 0)
  68. local counter = 0
  69. local textl = Instance.new("TextLabel")
  70. textl.Parent = bill
  71. textl.Name = "bilb2"
  72. textl.BackgroundTransparency = 1
  73. textl.Size = UDim2.new(1, 0, 1, 0)
  74. textl.Font = font
  75. textl.Text = text
  76. textl.TextColor3 = Color3.new(tcr/255, tcg/255, tcb/255)
  77. textl.TextScaled = true
  78. textl.TextStrokeColor3 = Color3.new(scr/255, scg/255, scb/255)
  79. textl.TextStrokeTransparency = 0
  80. coroutine.resume(coroutine.create(function()
  81. while textl.TextTransparency < 1 do
  82. wait()
  83. if bill.StudsOffset.Y >= 5 then
  84. if counter >= duration then
  85. textl.TextTransparency = textl.TextTransparency+.15
  86. textl.TextStrokeTransparency = textl.TextStrokeTransparency+.15
  87. else
  88. counter = counter+.1
  89. end
  90. else
  91. bill.StudsOffset = Vec(0, bill.StudsOffset.Y+.15, 0)
  92. end
  93. end
  94. debServ:AddItem(bill, 0)
  95. debServ:AddItem(textl, 0)
  96. debServ:AddItem(tpart, 0)
  97. end))
  98. end
  99.  
  100. local r = Instance.new("Part", char)
  101. r.Transparency = 1
  102. r.CanCollide = false
  103. r.Name = "Circle"
  104. r.CFrame = char.Torso.CFrame * CFrame.new(0, -1.7, 0)
  105. r.Size = Vector3.new(10, 1, 10)
  106. r.Anchored = true
  107. local c = Instance.new("Decal", r)
  108. c.Face = "Top"
  109. c.Texture = "http://www.roblox.com/asset/?id=131155455"
  110. orb = r
  111. wait()
  112. r.CFrame = char.Torso.CFrame * CFrame.new(0, -1.7, 0)
  113. local pos = 0
  114. game:GetService("RunService").RenderStepped:connect(function()
  115. orb.CFrame = char.Torso.CFrame * CFrame.new(0, -1.7, 0) * CFrame.fromEulerAnglesXYZ(0, pos, 0)
  116. pos = pos + 0.05
  117. end)
  118.  
  119. local Player = game:GetService("Players").LocalPlayer
  120. repeat wait(1) until Player.Character
  121. local Character = Player.Character
  122. Character.Animate.Disabled = true
  123. local la = Character:FindFirstChild("Left Arm")
  124. local ra = Character:FindFirstChild("Right Arm")
  125. local ll = Character:FindFirstChild("Left Leg")
  126. local rl = Character:FindFirstChild("Right Leg")
  127. local Torso = Character:FindFirstChild("Torso")
  128.  
  129. --[[z = Instance.new("Sound", Torso)
  130. z.SoundId = "rbxassetid://566055038" -- test
  131. z.Looped = true
  132. z.Volume = 1
  133. wait(.1)
  134. z:Play()
  135. ]]--
  136.  
  137. local Humanoid = Character:findFirstChild("Humanoid")
  138. local Mouse = Player:GetMouse()
  139. Character.Animate.Disabled = true
  140. Character.Sound:Destroy()
  141. Humanoid.Animator:Destroy()
  142.  
  143. local LimbAccess = {LA=true,RA=true,LL=true,RL=true,RJ=true,NJ=true,Weapon=true}
  144. local State = "Flying"
  145. local Active = true
  146. local Mode = "Flying"
  147. function Lerp(a,b,i) -- A = First pos, B = Second Pos, i = Speed
  148. return a:lerp(b,i)
  149. end
  150. Left_Arm = Instance.new("Weld",Torso)
  151. Left_Arm.Part0 = Torso
  152. Left_Arm.Part1 = la
  153. Left_Arm.Name = "LeftArmJ"
  154. Left_Arm.C0 = CFrame.new(-1.5,0.5,0)
  155. Left_Arm.C1 = CFrame.new(0,0.5,0)
  156. Right_Arm = Instance.new("Weld",Torso)
  157. Right_Arm.Part0 = Torso
  158. Right_Arm.Part1 = ra
  159. Right_Arm.Name = "RightArmJ"
  160. Right_Arm.C0 = CFrame.new(1.5,0.5,0)
  161. Right_Arm.C1 = CFrame.new(0,0.5,0)
  162. Left_Leg = Instance.new("Weld",Torso)
  163. Left_Leg.Part0 = Torso
  164. Left_Leg.Part1 = ll
  165. Left_Leg.Name = "LeftLegJ"
  166. Left_Leg.C0 = CFrame.new(-0.5,-1,0)
  167. Left_Leg.C1 = CFrame.new(0,1,0)
  168. Right_Leg = Instance.new("Weld",Torso)
  169. Right_Leg.Name = "RightLegJ"
  170. Right_Leg.Part0 = Torso
  171. Right_Leg.Part1 = rl
  172. Right_Leg.C0 = CFrame.new(0.5,-1,0)
  173. Right_Leg.C1 = CFrame.new(0,1,0)
  174. Staffw = Instance.new("Weld",Torso)
  175. Staffw.Part0 = Torso
  176. Staffw.Part1 = Torso
  177. Staffw.Name = "StaffJoint"
  178.  
  179. local RootJoint = Instance.new("Weld",Character["HumanoidRootPart"])
  180. RootJoint.Name = "RootJ"
  181. RootJoint.Part0 = Character["HumanoidRootPart"]
  182. RootJoint.Part1 = Torso
  183.  
  184. local NeckJ = Instance.new("Weld",Torso)
  185. NeckJ.Name = "NeckJ"
  186. NeckJ.Part0 = Torso
  187. NeckJ.Part1 = Character.Head
  188. NeckJ.C1 = CFrame.new(0,-1.5,0)
  189. Player.Character.Humanoid.Died:connect(function()
  190. _G.ConnectionAgent:disconnect()
  191. end)
  192.  
  193. angle = 0
  194. angle2 = 0
  195. angle3 = 0
  196. anglespeed = 2
  197. anglespeed2 = 1
  198. anglespeed3 = .4
  199. game:GetService("RunService").Stepped:connect(function()
  200. angle = ((angle % 100) + anglespeed/10)
  201. angle2 = ((angle2 % 100) + anglespeed2/10)
  202. angle3 = ((angle3 % 100) + anglespeed3/10) --it'll go from 0 to 100 and repeat in a loop. basically it will get to its destination and back --ok
  203. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Flying" then -- idle
  204. if not Humanoid.WalkSpeed == 50 then
  205. Humanoid.WalkSpeed = 50
  206. end
  207. if LimbAccess.RJ then
  208. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2)
  209. end
  210. if LimbAccess.LA then
  211. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(0)+math.sin(angle3)*.06),.1)
  212. end
  213. if LimbAccess.NJ then
  214. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25)
  215. end
  216. if LimbAccess.RA then
  217. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1)
  218. end
  219. if LimbAccess.LL then
  220. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  221. end
  222. if LimbAccess.RL then
  223. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  224. end
  225. if LimbAccess.Weapon then
  226. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2)
  227. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2)
  228. end
  229. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Flying" then -- walk
  230. if LimbAccess.RJ then
  231. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2)
  232. end
  233. if LimbAccess.LA then
  234. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(7)+math.sin(angle3)*.06),.1)
  235. end
  236. if LimbAccess.NJ then
  237. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25)
  238. end
  239. if LimbAccess.RA then
  240. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1)
  241. end
  242. if LimbAccess.LL then
  243. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  244. end
  245. if LimbAccess.RL then
  246. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  247. end
  248. if LimbAccess.Weapon then
  249. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2)
  250. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2)
  251. end
  252. end
  253. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Lounge" then -- idle
  254. if not Humanoid.WalkSpeed == 30 then
  255. Humanoid.WalkSpeed = 30
  256. end
  257. if LimbAccess.RJ then
  258. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  259. end
  260. if LimbAccess.LA then
  261. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-3)+math.sin(angle3)*.06),.1)
  262. end
  263. if LimbAccess.NJ then
  264. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  265. end
  266. if LimbAccess.RA then
  267. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(3)),.1)
  268. end
  269. if LimbAccess.LL then
  270. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1)
  271. end
  272. if LimbAccess.RL then
  273. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(15)+math.sin(angle3)*-.02),.1)
  274. end
  275. if LimbAccess.Weapon then
  276. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2)
  277. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2)
  278. end
  279. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Lounge" then -- walk
  280. if LimbAccess.RJ then
  281. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2)
  282. end
  283. if LimbAccess.LA then
  284. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-23)+math.sin(angle3)*.06),.1)
  285. end
  286. if LimbAccess.NJ then
  287. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  288. end
  289. if LimbAccess.RA then
  290. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(23)),.1)
  291. end
  292. if LimbAccess.LL then
  293. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  294. end
  295. if LimbAccess.RL then
  296. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  297. end
  298. if LimbAccess.Weapon then
  299. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2)
  300. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2)
  301. end
  302. end
  303. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Battle" then -- idle
  304. if not Humanoid.WalkSpeed == 20 then
  305. Humanoid.WalkSpeed = 20
  306. end
  307. if LimbAccess.RJ then
  308. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  309. end
  310. if LimbAccess.LA then
  311. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1)
  312. end
  313. if LimbAccess.NJ then
  314. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  315. end
  316. if LimbAccess.RA then
  317. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1)
  318. end
  319. if LimbAccess.LL then
  320. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1)
  321. end
  322. if LimbAccess.RL then
  323. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(5)+math.sin(angle3)*-.02),.1)
  324. end
  325. if LimbAccess.Weapon then
  326. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-.5,-1),.2)
  327. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.6,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(-90)),.2)
  328. end
  329. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Battle" then -- walk
  330. if LimbAccess.RJ then
  331. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,.5+math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2)
  332. end
  333. if LimbAccess.LA then
  334. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-.9,0.6,-.8)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1)
  335. end
  336. if LimbAccess.NJ then
  337. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  338. end
  339. if LimbAccess.RA then
  340. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.4,-.3)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1)
  341. end
  342. if LimbAccess.LL then
  343. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.7,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  344. end
  345. if LimbAccess.RL then
  346. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  347. end
  348. if LimbAccess.Weapon then
  349. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(.4,.5,-1),.2)
  350. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.1,0)*CFrame.Angles(math.rad(135),math.rad(120),math.rad(-135)),.2)
  351. end
  352. end
  353. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Changing" then -- idle
  354. if LimbAccess.RJ then
  355. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  356. end
  357. if LimbAccess.LA then
  358. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.3,0.51,-.7)*CFrame.Angles(math.rad(5),math.rad(-165),math.rad(-90)),.1)
  359. end
  360. if LimbAccess.NJ then
  361. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-10),math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  362. end
  363. if LimbAccess.RA then
  364. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.3,0.49,-.7)*CFrame.Angles(math.rad(5),math.rad(165),math.rad(90)),.1)
  365. end
  366. if LimbAccess.LL then
  367. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-1,-1,-.4)*CFrame.Angles(0,math.rad(25),math.rad(75)),.1)
  368. end
  369. if LimbAccess.RL then
  370. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(1,-1,-.4)*CFrame.Angles(0,math.rad(-25),math.rad(-75)),.1)
  371. end
  372. end
  373. end)
  374.  
  375. Mesh2 = function(par, num, x, y, z)
  376.  
  377. local msh = _
  378. if num == 1 then
  379. msh = Instance.new("CylinderMesh", par)
  380. else
  381. if num == 2 then
  382. msh = Instance.new("SpecialMesh", par)
  383. msh.MeshType = 3
  384. else
  385. if num == 3 then
  386. msh = Instance.new("BlockMesh", par)
  387. else
  388. if num == 4 then
  389. msh = Instance.new("SpecialMesh", par)
  390. msh.MeshType = "Torso"
  391. else
  392. if type(num) == "string" then
  393. msh = Instance.new("SpecialMesh", par)
  394. msh.MeshId = num
  395. end
  396. end
  397. end
  398. end
  399. end
  400. msh.Scale = Vector3.new(x, y, z)
  401. return msh
  402. end
  403.  
  404. local GodMode = true
  405. local OP_HEALTH = runServ.RenderStepped:connect(function()
  406. if GodMode and RootJoint.Parent ~= nil then
  407. hum.MaxHealth = huge
  408. hum.Health = huge
  409. hum.MaxHealth = huge
  410. hum.Health = huge
  411. wait()
  412. hum.MaxHealth = huge
  413. hum.Health = huge
  414. hum.MaxHealth = huge
  415. hum.Health = huge
  416. if hum.Health == 0 then
  417. MakeText("I failed my master..", FONT, 1, 255, 0, 0, 0, 0, 0, char.Head.CFrame)
  418. end
  419. end
  420. end)
  421.  
  422.  
  423. Weld2 = function(p0, p1, x, y, z, rx, ry, rz, par)
  424.  
  425. local w = Instance.new("Motor", par or p0)
  426. w.Part0 = p0
  427. w.Part1 = p1
  428. w.C1 = CFrame.new(x, y, z) * CFrame.Angles(rx, ry, rz)
  429. return w
  430. end
  431.  
  432. NoOutline = function(Part)
  433.  
  434. Part.TopSurface = 10
  435. end
  436.  
  437. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  438.  
  439. local fp = Instance.new("Part")
  440. fp.formFactor = formfactor
  441. fp.Parent = parent
  442. fp.Reflectance = reflectance
  443. fp.Transparency = transparency
  444. fp.CanCollide = false
  445. fp.Locked = true
  446. fp.BrickColor = brickcolor
  447. fp.Name = name
  448. fp.Size = size
  449. fp.Position = Torso.Position
  450. NoOutline(fp)
  451. fp.Material = "SmoothPlastic"
  452. fp:BreakJoints()
  453. return fp
  454. end
  455.  
  456. local vt = Vector3.new
  457.  
  458. for i,v in pairs(player.Character.Head:GetChildren()) do
  459. if v:IsA("Sound") then
  460. v:Destroy()
  461. end
  462. end
  463.  
  464. if Hood == true then
  465. for _,v in pairs(char:GetChildren()) do
  466. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  467. --v:remove()
  468. v.Handle.Transparency = 1
  469. local hat = part(3, char, 0, 0, BrickColor.new("Really black"), "Hood", vt(0.5, 1, 1.02))
  470. Mesh2(hat, "http://www.roblox.com/asset/?id=16952952", 1.05, 1.05, 1.05)
  471. Weld2(char.Head, hat, 0, -0.25, 0, 0, 0, 0, hat)
  472. end
  473. end
  474. end
  475.  
  476. --[[Magic Change]]--
  477. mouse.KeyDown:connect(function(key)
  478. if key == "l" then
  479. r.Decal.Texture = "rbxassetid://564602277"
  480. MakeText("Magic Change!", FONT, .3, 255, 0, 0, 0, 0, 0, char.Head.CFrame) --help
  481. wait(3)
  482. end
  483. end)
  484.  
  485. mouse.KeyDown:connect(function(key)
  486. if key == "i" then
  487. r.Decal.Texture = "rbxassetid://131155455"
  488. end
  489. end)
  490.  
  491. --551749770
  492.  
  493. mouse.KeyDown:connect(function(key)
  494. if key == "o" then
  495. r.Decal.Texture = "rbxassetid://127950951"
  496. end
  497. end)
  498.  
  499. mouse.KeyDown:connect(function(key)
  500. if key == "p" then
  501. MakeText("Disappear!", FONT, .3, 255, 0, 0, 0, 0, 0, char.Head.CFrame)
  502. r.Decal.Transparency = 0.050
  503. wait(0.1)
  504. r.Decal.Transparency = 0.1
  505. wait(0.1)
  506. r.Decal.Transparency = 0.15
  507. wait(0.1)
  508. r.Decal.Transparency = 0.2
  509. wait(0.1)
  510. r.Decal.Transparency = 0.25
  511. wait(0.1)
  512. r.Decal.Transparency = 0.30
  513. wait(0.1)
  514. r.Decal.Transparency = 0.4
  515. wait(0.1)
  516. r.Decal.Transparency = 0.5
  517. wait(0.1)
  518. r.Decal.Transparency = 0.6
  519. wait(0.1)
  520. r.Decal.Transparency = 0.7
  521. wait(0.1)
  522. r.Decal.Transparency = 0.8
  523. wait(0.1)
  524. r.Decal.Transparency = 0.9
  525. wait(0.050)
  526. r.Decal.Transparency = 1
  527. end
  528. end)
  529. mouse.KeyDown:connect(function(key)
  530. if key == "b" then
  531. MakeText("Reappear", FONT, .3, 255, 0, 0, 0, 0, 0, char.Head.CFrame) --help
  532. r.Decal.Transparency = 1
  533. wait(0.1)
  534. r.Decal.Transparency = 0.950
  535. wait(0.1)
  536. r.Decal.Transparency = 0.9
  537. wait(0.1)
  538. r.Decal.Transparency = 0.8
  539. wait(0.1)
  540. r.Decal.Transparency = 0.7
  541. wait(0.1)
  542. r.Decal.Transparency = 0.6
  543. wait(0.1)
  544. r.Decal.Transparency = 0.5
  545. wait(0.1)
  546. r.Decal.Transparency = 0.4
  547. wait(0.1)
  548. r.Decal.Transparency = 0.3
  549. wait(0.1)
  550. r.Decal.Transparency = 0.25
  551. wait(0.1)
  552. r.Decal.Transparency = 0.2
  553. wait(0.1)
  554. r.Decal.Transparency = 0.1
  555. wait(0.050)
  556. r.Decal.Transparency = 0
  557. end
  558. end)
  559.  
  560. In = Instance.new
  561. V3 = Vector3
  562. local powah = false
  563. local powah2 = false
  564. local Enabled = false
  565. local enabled = true
  566. local typ = "Click-Generate"
  567. local gen = false
  568. local color = "Black"
  569. local change = true
  570. local harm = true
  571. Bin = In("HopperBin", player.Backpack)
  572. Bin.Name = "Dark Overseer Official Orb Handler"
  573. player.Character.Humanoid.MaxHealth = math.huge
  574. player.Character.Humanoid.Health = math.huge
  575. function colorchange()
  576. change = false
  577. Bin.Name = "Changed color to " .. color
  578. wait(1)
  579. Bin.Name = typ
  580. change = true
  581. end
  582. function move(part, bp)
  583. while powah == true do
  584. bp.Position = part.Position
  585. wait()
  586. end
  587. end
  588. function move2(part, mouse)
  589. while powah2 == true do
  590. part.bp.Position = mouse.Hit.p
  591. wait()
  592. end
  593. end
  594. function PressKey(key, mouse)
  595. key = key:lower()
  596. if key == "r" then
  597. powah = true
  598. Enabled = false
  599. ball = In("Part", Workspace)
  600. ball.CanCollide = false
  601. ball.Transparency = 1
  602. ball.Anchored = false
  603. ball.Name = "MainOrb"
  604. ball.Parent = player.Character
  605. ball.Shape = "Ball"
  606. ball.Material = "Neon"
  607. ball.BrickColor = BrickColor.new(color)
  608. ball.Size = V3.new(1, 1, 1)
  609. ball.Position = mouse.Hit.p
  610. bp = In("BodyPosition", ball)
  611. bp.Name = "bp"
  612. bp.MaxForce = V3.new(math.huge, math.huge, math.huge)
  613. bp.Position = ball.Position + Vector3.new(0, 5, 0)
  614. ball.Touched:connect(function(hit)
  615. if hit.Name == "orb" then
  616. ball.Transparency = 0
  617. hit:remove()
  618. ball.Size = ball.Size + V3.new(0.4, 0.4, 0.4)
  619. ball.bp.Position = ball.bp.Position + V3.new(0, 0.1, 0)
  620. bloop = In("Sound", ball)
  621. bloop.SoundId = "rbxassetid://236989198"
  622. bloop.Volume = 10
  623. bloop:play()
  624. elseif hit.Name ~= "Base" and hit.Parent.Name ~= player.Name and harm == true then
  625. hit:remove()
  626. end
  627. end)
  628. for i, v in pairs(player.Character:GetChildren()) do
  629. if v.Name == "orb" then
  630. coroutine.resume(coroutine.create(function()
  631. move(ball, v.bp)
  632. end))
  633. end
  634. end
  635. elseif key == "e" then
  636. if typ == "Click-Generate" then
  637. typ = "Auto-Generate"
  638. Bin.Name = "Auto-Generate"
  639. else
  640. typ = "Click-Generate"
  641. Bin.Name = "Click-Generate"
  642. end
  643. elseif key == "t" then
  644. if enabled == true then
  645. enabled = false
  646. powah2 = true
  647. move2(player.Character.MainOrb, mouse)
  648. else
  649. enabled = true
  650. powah2 = false
  651. player.Character.MainOrb:remove()
  652. end
  653. elseif key == "z" then
  654. if color == "Black" and change == true then
  655. color = "Really red"
  656. colorchange()
  657. elseif color == "Really red" and change == true then
  658. color = "New Yeller"
  659. colorchange()
  660. elseif color == "New Yeller" and change == true then
  661. color = "Institutional white"
  662. colorchange()
  663. elseif color == "Institutional white" and change == true then
  664. color = "Toothpaste"
  665. colorchange()
  666. elseif color == "Toothpaste" and change == true then
  667. color = "Pink"
  668. colorchange()
  669. elseif color == "Pink" and change == true then
  670. color = "Lime green"
  671. colorchange()
  672. elseif color == "Lime green" and change == true then
  673. color = "Black"
  674. colorchange()
  675. end
  676. elseif key == "x" then
  677. if color == "Lime green" and change == true then
  678. color = "Pink"
  679. colorchange()
  680. elseif color == "Pink" and change == true then
  681. color = "Toothpaste"
  682. colorchange()
  683. elseif color == "Toothpaste" and change == true then
  684. color = "Institutional white"
  685. colorchange()
  686. elseif color == "Institutional white" and change == true then
  687. color = "New Yeller"
  688. colorchange()
  689. elseif color == "New Yeller" and change == true then
  690. color = "Really red"
  691. colorchange()
  692. elseif color == "Really red" and change == true then
  693. color = "Black"
  694. colorchange()
  695. elseif color == "Black" and change == true then
  696. color = "Lime green"
  697. colorchange()
  698. end
  699. elseif key == "f" then
  700. if harm == true and change == true then
  701. change = false
  702. harm = false
  703. Bin.Name = "Harm Mode: Off"
  704. wait(1)
  705. Bin.Name = typ
  706. change = true
  707. elseif harm == false and change == true then
  708. change = false
  709. harm = true
  710. Bin.Name = "Harm Mode: On"
  711. wait(1)
  712. Bin.Name = typ
  713. change = true
  714. end
  715. elseif key == "g" then
  716. for i, v in pairs(player.Character:GetChildren()) do
  717. if v.Name == "orb" or v.Name == "MainOrb" then
  718. ex = In("Explosion", Workspace)
  719. ex.Position = v.Position
  720. v:remove()
  721. end
  722. end
  723. end
  724. end
  725. function LiftKey(key, mouse)
  726. key = key:lower()
  727. if key == "t" then
  728. end
  729. end
  730. function Click(mouse)
  731. Enabled = true
  732. ball = In("Part")
  733. ball.CanCollide = false
  734. ball.Name = "orb"
  735. ball.Parent = player.Character
  736. ball.Shape = "Ball"
  737. ball.Material = "Neon"
  738. ball.BrickColor = BrickColor.new(color)
  739. ball.Size = V3.new(1, 1, 1)
  740. ball.Position = mouse.Hit.p
  741. bp = In("BodyPosition", ball)
  742. bp.Name = "bp"
  743. bp.MaxForce = V3.new(math.huge, math.huge, math.huge)
  744. bp.Position = ball.Position + Vector3.new(0, 5, 0)
  745. bloop = In("Sound", ball)
  746. bloop.SoundId = "rbxassetid://236989198"
  747. bloop.Volume = 10
  748. bloop:play()
  749. end
  750. function Click2(mouse)
  751. gen = true
  752. Enabled = true
  753. while gen == true do
  754. ball = In("Part")
  755. ball.CanCollide = false
  756. ball.Name = "orb"
  757. ball.Parent = player.Character
  758. ball.Shape = "Ball"
  759. ball.Material = "Neon"
  760. ball.BrickColor = BrickColor.new(color)
  761. ball.Size = V3.new(1, 1, 1)
  762. pos = math.random(-200, 200)
  763. pos2 = math.random(-200, 200)
  764. ball.CFrame = player.Character.Head.CFrame * CFrame.new(pos, -5, pos2)
  765. bp = In("BodyPosition", ball)
  766. bp.Name = "bp"
  767. bp.MaxForce = V3.new(math.huge, math.huge, math.huge)
  768. bp.Position = ball.Position + Vector3.new(0, 5, 0)
  769. bloop = In("Sound", ball)
  770. bloop.SoundId = "rbxassetid://236989198"
  771. bloop.Volume = 10
  772. bloop:play()
  773. wait()
  774. end
  775. end
  776. function Click3(mouse)
  777. if mouse.Target:IsA("Part") then
  778. bp = In("BodyPosition")
  779. bp.Name = "bp"
  780. grab = true
  781. mouse.Target.Anchored = false
  782. coroutine.resume(coroutine.create(function()
  783. move(mouse.Target, bp, mouse)
  784. end))
  785. end
  786. end
  787. function Release(mouse)
  788. gen = false
  789. end
  790. function Select(mouse)
  791. mouse.Button1Down:connect(function()
  792. if typ == "Click-Generate" then
  793. Click(mouse)
  794. elseif typ == "Auto-Generate" then
  795. Click2(mouse)
  796. end
  797. end)
  798. mouse.Button1Up:connect(function()
  799. Release(mouse)
  800. end)
  801. mouse.KeyDown:connect(function(key)
  802. PressKey(key, mouse)
  803. end)
  804. mouse.KeyUp:connect(function(key)
  805. LiftKey(key, mouse)
  806. end)
  807. end
  808. Bin.Selected:connect(Select)
  809. wait(2)
  810. Bin.Name = "Overseer Hopperbin Loaded"
  811. wait(2)
  812. Bin.Name = "..."
  813.  
  814. Bin2 = In("HopperBin", player.Backpack)
  815. while wait(6) do
  816. Bin2.Name = "Hello, " .. game.Players.LocalPlayer.Name
  817. wait(3)
  818. Bin2.Name = "Your player id is: " .. game.Players.LocalPlayer.UserId
  819. end
  820.  
  821. print'Overseer loaded.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement