Advertisement
Mediakiller7Cool

HahahSikey

Mar 16th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.69 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85. local h,t
  86. --Give the server mouse data every second frame, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. local HB = game:GetService("RunService").Heartbeat
  89. while true do
  90. if h~=Mouse.Hit or t~=Mouse.Target then
  91. h,t=Mouse.Hit,Mouse.Target
  92. Event:FireServer({isMouse=true,Target=t,Hit=h})
  93. end
  94. --Wait 2 frames
  95. for i=1,2 do
  96. HB:Wait()
  97. end
  98. end]==],script)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local RealGame = game
  103.  
  104. --Metatable for fake service
  105. local FakeService_Metatable = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then
  109. return typeof(s[k])=="function"
  110. and function(_,...)return s[k](s,...)end or s[k]
  111. end
  112. end,
  113. __newindex = function(self,k,v)
  114. local s = rawget(self,"_RealService")
  115. if s then s[k]=v end
  116. end
  117. }
  118. local function FakeService(t,RealService)
  119. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  120. return setmetatable(t,FakeService_Metatable)
  121. end
  122.  
  123. --Fake game object
  124. local FakeGame = {
  125. GetService = function(self,s)
  126. return rawget(self,s) or RealGame:GetService(s)
  127. end,
  128. Players = FakeService({
  129. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  130. },"Players"),
  131. UserInputService = FakeService(UIS,"UserInputService"),
  132. ContextActionService = FakeService(CAS,"ContextActionService"),
  133. RunService = FakeService({
  134. _btrs = {},
  135. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  136. BindToRenderStep = function(self,name,_,fun)
  137. self._btrs[name] = self.Heartbeat:Connect(fun)
  138. end,
  139. UnbindFromRenderStep = function(self,name)
  140. self._btrs[name]:Disconnect()
  141. end,
  142. },"RunService")
  143. }
  144. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  145. FakeGame.service = FakeGame.GetService
  146. FakeService(FakeGame,game)
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  149. end
  150. --Leaked by XxevillittleninjaxX
  151. --Your fualt goku5693
  152. --Roi
  153. Player = game:GetService("Players").LocalPlayer
  154. PlayerName=Player.Name
  155. Character = Player.Character
  156. PlayerGui = Player.PlayerGui
  157. Backpack = Player.Backpack
  158. Torso = Character.Torso
  159. Head = Character.Head
  160. Humanoid = Character.Humanoid
  161. LeftArm = Character["Left Arm"]
  162. LeftLeg = Character["Left Leg"]
  163. RightArm = Character["Right Arm"]
  164. RightLeg = Character["Right Leg"]
  165. LS = Torso["Left Shoulder"]
  166. LH = Torso["Left Hip"]
  167. RS = Torso["Right Shoulder"]
  168. RH = Torso["Right Hip"]
  169. Neck = Torso.Neck
  170. it=Instance.new
  171. vt=Vector3.new
  172. cf=CFrame.new
  173. euler=CFrame.fromEulerAnglesXYZ
  174. angles=CFrame.Angles
  175. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  176. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  177. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  178. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  179. attack = false
  180. attackdebounce = false
  181. debouncerockets=false
  182. debounceorb=false
  183. MMouse=nil
  184. idle=true
  185. doingidle=false
  186. doingwalk=false
  187. armwalk=false
  188. restarted=false
  189. holdrockets=false
  190. canidle=true
  191. aiming=false
  192. Mode="Robot"
  193. combo=0
  194. RootPart=Character.HumanoidRootPart
  195. --workspace.CurrentCamera.CameraSubject=RootPart
  196. --workspace.CurrentCamera.CameraType = "Track"
  197. RootJoint=RootPart.RootJoint
  198. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  199. local RobotParts={}
  200. local RobotWelds={}
  201. local rocketlaunchparts={}
  202. do
  203. local PlayerColours = {
  204. BrickColor.new("Bright red"),
  205. BrickColor.new("Bright blue"),
  206. BrickColor.new("Earth green"),
  207. BrickColor.new("Bright violet"),
  208. BrickColor.new("Bright orange"),
  209. BrickColor.new("Bright yellow"),
  210. BrickColor.new("Light reddish violet"),
  211. BrickColor.new("Brick yellow"),
  212. }
  213. local GetNameValue
  214. function GetChatColour(Name)
  215. return PlayerColours[GetNameValue(Name) + 1]
  216. end
  217. function GetNameValue(Name)
  218. local Length = #Name
  219. local Value = 0
  220. for Index = 1, Length do
  221. local CharacterValue = string.byte(string.sub(Name, Index, Index))
  222. if (Length - Index + 1) % 4 < 2 then
  223. Value = Value + CharacterValue
  224. else
  225. Value = Value - CharacterValue
  226. end
  227. end
  228. return Value % 8
  229. end
  230. end
  231. print(GetChatColour(PlayerName))
  232. Color1=BrickColor.new("Navy blue")
  233. Color2="Medium stone grey"
  234. Color3="Dark stone grey"
  235. Color4="Really black"
  236. --player
  237. player = nil
  238. --save shoulders
  239. RSH, LSH = nil, nil
  240. --welds
  241. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  242. RW.Name="Right Shoulder"
  243. LW.Name="Left Shoulder"
  244. RWL.Name="Right Hip"
  245. LWL.Name="Left Hip"
  246. if Character:findFirstChild("Roi",true) ~= nil then
  247. Character:findFirstChild("Roi",true).Parent = nil
  248. end
  249. if Character:findFirstChild("Right Fist",true) ~= nil then
  250. Character:findFirstChild("Right Fist",true).Parent = nil
  251. end
  252. if Character:findFirstChild("Left Fist",true) ~= nil then
  253. Character:findFirstChild("Left Fist",true).Parent = nil
  254. end
  255. if Character:findFirstChild("Block",true) ~= nil then
  256. Character:findFirstChild("Block",true).Parent = nil
  257. end
  258. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  259. local fp = it("Part")
  260. fp.Material = "SmoothPlastic"
  261. fp.formFactor = formfactor
  262. fp.Parent = parent
  263. fp.Reflectance = reflectance
  264. fp.Transparency = transparency
  265. fp.CanCollide = false
  266. fp.Locked=true
  267. fp.BrickColor = brickcolor
  268. fp.Name = name
  269. fp.Size = size
  270. fp.Position = Torso.Position
  271. fp.BottomSurface="SmoothNoOutlines"
  272. fp.TopSurface="SmoothNoOutlines"
  273. fp.RightSurface="SmoothNoOutlines"
  274. fp.LeftSurface="SmoothNoOutlines"
  275. fp:BreakJoints()
  276. table.insert(RobotParts,fp)
  277. return fp
  278. end
  279. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  280. local mesh = it(Mesh)
  281. mesh.Parent = part
  282. if Mesh=="SpecialMesh" then
  283. mesh.MeshType = meshtype
  284. mesh.MeshId = meshid
  285. end
  286. mesh.Offset=offset
  287. mesh.Scale=scale
  288. return mesh
  289. end
  290. function weld(parent,part0,part1,c0)
  291. local weld = it("Weld")
  292. weld.Parent = parent
  293. weld.Part0 = part0
  294. weld.Part1 = part1
  295. weld.C0 = c0
  296. table.insert(RobotWelds,weld)
  297. return weld
  298. end
  299. local modelzorz = Instance.new("Model")
  300. modelzorz.Parent = Character
  301. modelzorz.Name = "Roi"
  302. fist1=Instance.new("Model")
  303. fist1.Parent=Character
  304. fist1.Name="Left Fist"
  305. fist2=Instance.new("Model")
  306. fist2.Parent=Character
  307. fist2.Name="Right Fist"
  308. Torso.CFrame=Torso.CFrame*cf(0,10,0)
  309. tors1=part(3,modelzorz,0,0,Color1,"Torso1",vt(1,1,1))
  310. RootJoint.Part1=tors1
  311. tors2=part(3,modelzorz,0,0,Color1,"Torso2",vt(1,1,1))
  312. tors3=part(3,modelzorz,0,0,BrickColor.new(Color2),"Torso3",vt(1,1,1))
  313. tors4=part(3,modelzorz,0,0,BrickColor.new(Color2),"Torso4",vt(1,1,1))
  314. tors5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso5",vt(1,1,1))
  315. tors6=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso6",vt(1,1,1))
  316. tors7=part(3,modelzorz,0,0,Color1,"Torso7",vt(1,1,1))
  317. tors8=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso8",vt(1,1,1))
  318. tors9=part(3,modelzorz,0,0,Color1,"Torso9",vt(1,1,1))
  319. tors10=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso10",vt(1,1,1))
  320. tors11=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso11",vt(1,1,1))
  321. tors12=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso12",vt(1,1,1))
  322. tors13=part(3,modelzorz,0,0,Color1,"Torso13",vt(1,1,1))
  323. tors14=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso14",vt(1,1,1))
  324. tors15=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso15",vt(1,1,1))
  325. tors16=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso16",vt(1,1,1))
  326. tors17=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso17",vt(1,1,1))
  327. tors18=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Torso Hitbox",vt(5,4,3.5))
  328. tors18.CanCollide=true
  329. lleg1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Leg1",vt(1,1,1))
  330. lleg2=part(3,modelzorz,0,0,Color1,"Left Leg2",vt(1,1,1))
  331. lleg3=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg3",vt(1,1,1))
  332. lleg4=part(3,modelzorz,0,0,Color1,"Left Leg4",vt(1,1,1))
  333. lleg5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg5",vt(1,1,1))
  334. lleg6=part(3,modelzorz,0,0,Color1,"Left Leg6",vt(1,1,1))
  335. lleg7=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg7",vt(1,1,1))
  336. lleg8=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Leg8",vt(1,1,1))
  337. lleg9=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg9",vt(1,1,1))
  338. lleg10=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Leg10",vt(1,1,1))
  339. lleg11=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Leg Hitbox",vt(1.5,4,1.5))
  340.  
  341. rleg1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Leg1",vt(1,1,1))
  342. rleg2=part(3,modelzorz,0,0,Color1,"Right Leg2",vt(1,1,1))
  343. rleg3=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg3",vt(1,1,1))
  344. rleg4=part(3,modelzorz,0,0,Color1,"Right Leg4",vt(1,1,1))
  345. rleg5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg5",vt(1,1,1))
  346. rleg6=part(3,modelzorz,0,0,Color1,"Right Leg6",vt(1,1,1))
  347. rleg7=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg7",vt(1,1,1))
  348. rleg8=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Leg8",vt(1,1,1))
  349. rleg9=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg9",vt(1,1,1))
  350. rleg10=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Leg10",vt(1,1,1))
  351. rleg11=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Right Leg Hitbox",vt(1.5,4,1.5))
  352.  
  353. larm1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Arm1",vt(1,1,1))
  354. larm2=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Arm2",vt(1,1,1))
  355. larm3=part(3,modelzorz,0,1,BrickColor.new(Color4),"Left Arm3",vt(1,1,1)) --Scrapped to make way for new cannon
  356. numb=0.6
  357. for i=1,3 do
  358. larm4=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Arm4",vt(1,1,1))
  359. larmmsh4=mesh("CylinderMesh",larm4,"","",vt(0,0,0),vt(0.5,1.01,0.5))
  360. larmwld4=weld(larm4,larm4,larm3,euler(1.57,0,0)*cf(numb,-0.1,0))
  361. numb=numb-0.6
  362. end
  363. larm5=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Arm5",vt(1,1,1))
  364. larm6=part(3,modelzorz,0,0,Color1,"Left Arm6",vt(1,1,1))
  365. larm7=part(3,modelzorz,0,0,Color1,"Left Arm7",vt(1,1,1))
  366. larm8=part(3,modelzorz,0,0,Color1,"Left Arm8",vt(1,1,1))
  367. larm9=part(3,modelzorz,0,0,Color1,"Left Arm9",vt(1,1,1))
  368. larm10=part(3,modelzorz,0,0,Color1,"Left Arm10",vt(1,1,1))
  369. larm11=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm11",vt(1,1,1))
  370. larm12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Arm12",vt(1,1,1))
  371. larm13=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm13",vt(1,1,1))
  372. larm14=part(3,modelzorz,0,0,BrickColor.new(Color4),"Left Arm14",vt(1,1,1))
  373. larm15=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm15",vt(1,1,1))
  374. larm16=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm16",vt(1,1,1))
  375. larm17=part(3,modelzorz,0,0,Color1,"Left Arm17",vt(1,1,1))
  376. lfist1=part(3,fist1,0,0,BrickColor.new(Color2),"Left Fist1",vt(1,1,1))
  377. lfist2=part(3,fist1,0,0,Color1,"Left Fist2",vt(1,1,1))
  378. lfist3=part(3,fist1,0,0,Color1,"Left Fist3",vt(1,1,1))
  379. lfist4=part(3,fist1,0,0,Color1,"Left Fist4",vt(1,1,1))
  380. lfist5=part(3,fist1,0,0,Color1,"Left Fist5",vt(1,1,1))
  381. lfist6=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist6",vt(1,1,1))
  382. lfist7=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist7",vt(1,1,1))
  383. lfist8=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist8",vt(1,1,1))
  384. lfist9=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist9",vt(1,1,1))
  385. lfist10=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist10",vt(1,1,1))
  386. lfist11=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist11",vt(1,1,1))
  387. lfist12=part(3,fist1,0,1,BrickColor.new("Really black"),"Left Fist Hitbox",vt(1.5,4,1.5))
  388.  
  389. rarm1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm1",vt(1,1,1))
  390. rarm2=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Arm2",vt(1,1,1))
  391. rarm3=part(3,modelzorz,0,0,BrickColor.new(Color4),"Right Arm3",vt(1,1,1))
  392. numb=0.6
  393. for i=1,3 do
  394. rarm4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm4",vt(1,1,1))
  395. rarmmsh4=mesh("CylinderMesh",rarm4,"","",vt(0,0,0),vt(0.5,1.01,0.5))
  396. rarmwld4=weld(rarm4,rarm4,rarm3,euler(1.57,0,0)*cf(numb,-0.1,0))
  397. table.insert(rocketlaunchparts,rarm4)
  398. numb=numb-0.6
  399. end
  400. rarm5=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Right Arm5",vt(1,1,1))
  401. rarm6=part(3,modelzorz,0,0,Color1,"Right Arm6",vt(1,1,1))
  402. rarm7=part(3,modelzorz,0,0,Color1,"Right Arm7",vt(1,1,1))
  403. rarm8=part(3,modelzorz,0,0,Color1,"Right Arm8",vt(1,1,1))
  404. rarm9=part(3,modelzorz,0,0,Color1,"Right Arm9",vt(1,1,1))
  405. rarm10=part(3,modelzorz,0,0,Color1,"Right Arm10",vt(1,1,1))
  406. rarm11=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Arm11",vt(1,1,1))
  407. rarm12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm12",vt(1,1,1))
  408. rarm13=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Arm13",vt(1,1,1))
  409. rfist1=part(3,fist2,0,0,BrickColor.new(Color2),"Right Fist1",vt(1,1,1))
  410. rfist2=part(3,fist2,0,0,Color1,"Right Fist2",vt(1,1,1))
  411. rfist3=part(3,fist2,0,0,Color1,"Right Fist3",vt(1,1,1))
  412. rfist4=part(3,fist2,0,0,Color1,"Right Fist4",vt(1,1,1))
  413. rfist5=part(3,fist2,0,0,Color1,"Right Fist5",vt(1,1,1))
  414. rfist6=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist6",vt(1,1,1))
  415. rfist7=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist7",vt(1,1,1))
  416. rfist8=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist8",vt(1,1,1))
  417. rfist9=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist9",vt(1,1,1))
  418. rfist10=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist10",vt(1,1,1))
  419. rfist11=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist11",vt(1,1,1))
  420. rfist12=part(3,fist2,0,1,BrickColor.new("Really black"),"Right Fist Hitbox",vt(1.5,4,1.5))
  421. torsmsh1=mesh("BlockMesh",tors1,"","",vt(0,0,0),vt(2,1.5,3))
  422. torsmsh2=mesh("BlockMesh",tors2,"","",vt(0,0,0),vt(3.3,1.3,2.8))
  423. torsmsh3=mesh("BlockMesh",tors3,"","",vt(0,0,0),vt(2.5,0.8,3))
  424. torsmsh4=mesh("BlockMesh",tors4,"","",vt(0,0,0),vt(2.4,0.7,1.5))
  425. torsmsh5=mesh("BlockMesh",tors5,"","",vt(0,0,0),vt(1,1,1.5))
  426. torsmsh6=mesh("BlockMesh",tors6,"","",vt(0,0,0),vt(2,0.6,2))
  427. torsmsh7=mesh("BlockMesh",tors7,"","",vt(0,0,0),vt(2.5,1.5,1))
  428. torsmsh8=mesh("BlockMesh",tors8,"","",vt(0,0,0),vt(2,1.5,0.9))
  429. torsmsh9=mesh("BlockMesh",tors9,"","",vt(0,0,0),vt(1.9,1,1))
  430. torsmsh10=mesh("BlockMesh",tors10,"","",vt(0,0,0),vt(1.5,1.3,1.3))
  431. torsmsh11=mesh("BlockMesh",tors11,"","",vt(0,0,0),vt(1.2,2,1.2))
  432. torsmsh12=mesh("BlockMesh",tors12,"","",vt(0,0,0),vt(1.2,1,1.4))
  433. torsmsh13=mesh("BlockMesh",tors13,"","",vt(0,0,0),vt(1,1,1.2))
  434. torsmsh14=mesh("BlockMesh",tors14,"","",vt(0,0,0),vt(0.2,1,1.2))
  435. torsmsh15=mesh("BlockMesh",tors15,"","",vt(0,0,0),vt(0.2,1,1.2))
  436. torsmsh16=mesh("BlockMesh",tors16,"","",vt(0,0,0),vt(0.2,1,1.2))
  437. torsmsh17=mesh("BlockMesh",tors17,"","",vt(0,0,0),vt(1.2,1.2,1))
  438. llegmsh1=mesh("BlockMesh",lleg1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  439. llegmsh2=mesh("CylinderMesh",lleg2,"","",vt(0,0,0),vt(1.3,1.3,1.3))
  440. llegmsh3=mesh("CylinderMesh",lleg3,"","",vt(0,0,0),vt(1,1.4,1))
  441. llegmsh4=mesh("BlockMesh",lleg4,"","",vt(0,0,0),vt(1.2,1,1.2))
  442. llegmsh5=mesh("BlockMesh",lleg5,"","",vt(0,0,0),vt(0.9,1,0.9))
  443. llegmsh6=mesh("BlockMesh",lleg6,"","",vt(0,0,0),vt(0.8,1.2,0.8))
  444. llegmsh7=mesh("BlockMesh",lleg7,"","",vt(0,0,0),vt(1,1.2,1.5))
  445. llegmsh8=mesh("BlockMesh",lleg8,"","",vt(0,0,0),vt(1,0.8,1.4))
  446. llegmsh9=mesh("BlockMesh",lleg9,"","",vt(0,0,0),vt(1,0.4,1.3))
  447. llegmsh10=mesh("BlockMesh",lleg10,"","",vt(0,0,0),vt(1.5,2.5,0.8))
  448. rlegmsh1=mesh("BlockMesh",rleg1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  449. rlegmsh2=mesh("CylinderMesh",rleg2,"","",vt(0,0,0),vt(1.3,1.3,1.3))
  450. rlegmsh3=mesh("CylinderMesh",rleg3,"","",vt(0,0,0),vt(1,1.4,1))
  451. rlegmsh4=mesh("BlockMesh",rleg4,"","",vt(0,0,0),vt(1.2,1,1.2))
  452. rlegmsh5=mesh("BlockMesh",rleg5,"","",vt(0,0,0),vt(0.9,1,0.9))
  453. rlegmsh6=mesh("BlockMesh",rleg6,"","",vt(0,0,0),vt(0.8,1.2,0.8))
  454. rlegmsh7=mesh("BlockMesh",rleg7,"","",vt(0,0,0),vt(1,1.2,1.5))
  455. rlegmsh8=mesh("BlockMesh",rleg8,"","",vt(0,0,0),vt(1,0.8,1.4))
  456. rlegmsh9=mesh("BlockMesh",rleg9,"","",vt(0,0,0),vt(1,0.4,1.3))
  457. rlegmsh10=mesh("BlockMesh",rleg10,"","",vt(0,0,0),vt(1.5,2.5,0.8))
  458. larmmsh1=mesh("BlockMesh",larm1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  459. larmmsh2=mesh("BlockMesh",larm2,"","",vt(0,0,0),vt(3,0.5,2))
  460. larmmsh3=mesh("BlockMesh",larm3,"","",vt(0,0,0),vt(2,1,1))
  461. larmmsh5=mesh("BlockMesh",larm5,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  462. larmmsh6=mesh("BlockMesh",larm6,"","",vt(0,0,0),vt(3.1,1,0.5))
  463. larmmsh7=mesh("BlockMesh",larm7,"","",vt(0,0,0),vt(0.5,1,2.1))
  464. larmmsh8=mesh("BlockMesh",larm8,"","",vt(0,0,0),vt(0.5,1,2.1))
  465. larmmsh9=mesh("BlockMesh",larm9,"","",vt(0,0,0),vt(3.1,1,0.5))
  466. larmmsh10=mesh("BlockMesh",larm10,"","",vt(0,0,0),vt(3.1,0.5,2.5))
  467. larmmsh11=mesh("BlockMesh",larm11,"","",vt(0,0,0),vt(1,1.5,1))
  468. larmmsh12=mesh("BlockMesh",larm12,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  469. larmmsh13=mesh("BlockMesh",larm13,"","",vt(0,0,0),vt(1.2,1.9,1.2))
  470. larmmsh14=mesh("BlockMesh",larm14,"","",vt(0,0,0),vt(1.5,0.8,1))
  471. larmmsh15=mesh("BlockMesh",larm15,"","",vt(0,0,0),vt(0.2,1,0.2))
  472. larmmsh16=mesh("BlockMesh",larm16,"","",vt(0,0,0),vt(0.2,1,0.2))
  473. larmmsh17=mesh("SpecialMesh",larm17,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  474. lfistmsh1=mesh("BlockMesh",lfist1,"","",vt(0,0,0),vt(1.3,1,1.3))
  475. lfistmsh2=mesh("BlockMesh",lfist2,"","",vt(0,0,0),vt(0.5,2,1.4))
  476. lfistmsh3=mesh("BlockMesh",lfist3,"","",vt(0,0,0),vt(0.5,2,1.4))
  477. lfistmsh4=mesh("BlockMesh",lfist4,"","",vt(0,0,0),vt(0.5,2,1.4))
  478. lfistmsh5=mesh("BlockMesh",lfist5,"","",vt(0,0,0),vt(1.2,1,1.4))
  479. lfistmsh6=mesh("BlockMesh",lfist6,"","",vt(0,0,0),vt(0.5,0.8,1.3))
  480. lfistmsh7=mesh("BlockMesh",lfist7,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  481. lfistmsh8=mesh("BlockMesh",lfist8,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  482. lfistmsh9=mesh("BlockMesh",lfist9,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  483. lfistmsh10=mesh("BlockMesh",lfist10,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  484. lfistmsh11=mesh("BlockMesh",lfist11,"","",vt(0,0,0),vt(0.3,0.6,0.3))
  485. rarmmsh1=mesh("BlockMesh",rarm1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  486. rarmmsh2=mesh("BlockMesh",rarm2,"","",vt(0,0,0),vt(3,0.5,2))
  487. rarmmsh3=mesh("BlockMesh",rarm3,"","",vt(0,0,0),vt(2,1,1))
  488. rarmmsh5=mesh("BlockMesh",rarm5,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  489. rarmmsh6=mesh("BlockMesh",rarm6,"","",vt(0,0,0),vt(3.1,1,0.5))
  490. rarmmsh7=mesh("BlockMesh",rarm7,"","",vt(0,0,0),vt(0.5,1,2.1))
  491. rarmmsh8=mesh("BlockMesh",rarm8,"","",vt(0,0,0),vt(0.5,1,2.1))
  492. rarmmsh9=mesh("BlockMesh",rarm9,"","",vt(0,0,0),vt(3.1,1,0.5))
  493. rarmmsh10=mesh("BlockMesh",rarm10,"","",vt(0,0,0),vt(3.1,0.5,2.5))
  494. rarmmsh11=mesh("BlockMesh",rarm11,"","",vt(0,0,0),vt(1,1.5,1))
  495. rarmmsh12=mesh("BlockMesh",rarm12,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  496. rarmmsh13=mesh("BlockMesh",rarm13,"","",vt(0,0,0),vt(1.2,1.9,1.2))
  497. rfistmsh1=mesh("BlockMesh",rfist1,"","",vt(0,0,0),vt(1.3,1,1.3))
  498. rfistmsh2=mesh("BlockMesh",rfist2,"","",vt(0,0,0),vt(0.5,2,1.4))
  499. rfistmsh3=mesh("BlockMesh",rfist3,"","",vt(0,0,0),vt(0.5,2,1.4))
  500. rfistmsh4=mesh("BlockMesh",rfist4,"","",vt(0,0,0),vt(0.5,2,1.4))
  501. rfistmsh5=mesh("BlockMesh",rfist5,"","",vt(0,0,0),vt(1.2,1,1.4))
  502. rfistmsh6=mesh("BlockMesh",rfist6,"","",vt(0,0,0),vt(0.5,0.8,1.3))
  503. rfistmsh7=mesh("BlockMesh",rfist7,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  504. rfistmsh8=mesh("BlockMesh",rfist8,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  505. rfistmsh9=mesh("BlockMesh",rfist9,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  506. rfistmsh10=mesh("BlockMesh",rfist10,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  507. rfistmsh11=mesh("BlockMesh",rfist11,"","",vt(0,0,0),vt(0.3,0.6,0.3))
  508. local torswld1=weld(tors1,tors1,Torso,euler(0.2,0,0)*cf(-3,2.3,0))
  509. -- torswld1=weld(tors1,tors1,Torso,euler(0,0,0)*cf(0,-4,5))
  510. torswld2=weld(tors2,tors2,tors1,euler(0,0,0)*cf(0,0,0))
  511. torswld3=weld(tors3,tors3,tors2,euler(0,0,0)*cf(0,1,0.2))
  512. torswld4=weld(tors4,tors4,tors3,euler(0,0,0)*cf(0,0.5,-0.7))
  513. torswld5=weld(tors5,tors5,tors3,euler(0,0,0)*cf(0,0.8,0.2))
  514. torswld6=weld(tors6,tors6,tors5,euler(0,0,0)*cf(0,0.8,0))
  515. torswld7=weld(tors7,tors7,tors6,euler(0,0,0)*cf(0,0,0.8))
  516. torswld8=weld(tors8,tors8,tors7,euler(0,0,0)*cf(0,1.2,0))
  517. torswld9=weld(tors9,tors9,tors7,euler(1,0,0)*cf(0,0.2,0.3))
  518. torswld10=weld(tors10,tors10,tors8,euler(0.785,0,1.57)*cf(0,0,0))
  519. torswld11=weld(tors11,tors11,tors6,euler(0,0,0)*cf(0,0,-0.6))
  520. torswld12=weld(tors12,tors12,tors1,euler(0,0,0)*cf(0,-0.5,-0.2))
  521. torswld13=weld(tors13,tors13,tors12,euler(0,0,0)*cf(0,-0.5,0))
  522. torswld14=weld(tors14,tors14,tors13,euler(0,0,0)*cf(0.3,0.2,0.01))
  523. torswld15=weld(tors15,tors15,tors13,euler(0,0,0)*cf(0,0.2,0.01))
  524. torswld16=weld(tors16,tors16,tors13,euler(0,0,0)*cf(-0.3,0.2,0.01))
  525. torswld17=weld(tors17,tors17,tors13,euler(0,0,0)*cf(0,0,-0.4))
  526. torswld18=weld(tors18,tors18,tors1,euler(0,0,0)*cf(0,1,0))
  527. llegwld1=weld(lleg1,lleg1,tors6,euler(0,0,0)*cf(1.5,0,-0.5))
  528. llegwld2=weld(lleg2,lleg2,lleg1,euler(0,0,1.57)*cf(0,0,0))
  529. llegwld3=weld(lleg3,lleg3,lleg2,euler(0,0,0)*cf(0,0,0))
  530. llegwld4=weld(lleg4,lleg4,lleg2,euler(0,0,-1.57)*cf(0,0.4,0.8))
  531. llegwld5=weld(lleg5,lleg5,lleg4,euler(0.785,0,0)*cf(0,-0.4,0))
  532. llegwld6=weld(lleg6,lleg6,lleg4,euler(0,0,0)*cf(0,0.2,0.4))
  533. llegwld7=weld(lleg7,lleg7,lleg4,euler(0,0,0)*cf(0,1.1,-0.4))
  534. llegwld8=weld(lleg8,lleg8,lleg7,euler(0,0,0)*cf(0,1,0))
  535. llegwld9=weld(lleg9,lleg9,lleg8,euler(0,0,0)*cf(0,0.6,0))
  536. llegwld10=weld(lleg10,lleg10,lleg7,euler(0,0,0)*cf(0,0.5,0))
  537. llegwld11=weld(lleg11,lleg11,lleg7,euler(0,0,0)*cf(0,-0.2,0))
  538. rlegwld1=weld(rleg1,rleg1,tors6,euler(0,0,0)*cf(-1.5,0,-0.5))
  539. rlegwld2=weld(rleg2,rleg2,rleg1,euler(0,0,1.57)*cf(0,0,0))
  540. rlegwld3=weld(rleg3,rleg3,rleg2,euler(0,0,0)*cf(0,0,0))
  541. rlegwld4=weld(rleg4,rleg4,rleg2,euler(0,0,-1.57)*cf(0,-0.4,0.8))
  542. rlegwld5=weld(rleg5,rleg5,rleg4,euler(0.785,0,0)*cf(0,-0.4,0))
  543. rlegwld6=weld(rleg6,rleg6,rleg4,euler(0,0,0)*cf(0,0.2,0.4))
  544. rlegwld7=weld(rleg7,rleg7,rleg4,euler(0,0,0)*cf(0,1.1,-0.4))
  545. rlegwld8=weld(rleg8,rleg8,rleg7,euler(0,0,0)*cf(0,1,0))
  546. rlegwld9=weld(rleg9,rleg9,rleg8,euler(0,0,0)*cf(0,0.6,0))
  547. rlegwld10=weld(rleg10,rleg10,rleg7,euler(0,0,0)*cf(0,0.5,0))
  548. rlegwld11=weld(rleg11,rleg11,rleg7,euler(0,0,0)*cf(0,-0.2,0))
  549. larmwld1=weld(larm1,larm1,tors1,euler(0,0,0)*cf(3,0,0))
  550. larmwld2=weld(larm2,larm2,larm1,euler(0,0,0)*cf(0,0.2,0))
  551. larmwld3=weld(larm3,larm3,larm2,euler(0,0,0)*cf(0,-0.4,0))
  552. larmwld5=weld(larm5,larm5,larm1,euler(0,0,0)*cf(0,-0.4,-1))
  553. larmwld6=weld(larm6,larm6,larm5,euler(0,0,0)*cf(0,0,0))
  554. larmwld7=weld(larm7,larm7,larm5,euler(0,0,0)*cf(1.29,0,1))
  555. larmwld8=weld(larm8,larm8,larm5,euler(0,0,0)*cf(-1.29,0,1))
  556. larmwld9=weld(larm9,larm9,larm5,euler(0,0,0)*cf(0,0,2))
  557. larmwld10=weld(larm10,larm10,larm5,euler(0,0,0)*cf(0,-0.7,1))
  558. larmwld11=weld(larm11,larm11,larm2,euler(-0.5,0,0.2)*cf(0,0.8,0))
  559. larmwld12=weld(larm12,larm12,larm11,euler(0.5,0,-0.2)*cf(0,0.8,0))
  560. larmwld13=weld(larm13,larm13,larm12,cf(0,1,0)*euler(-1.2,0,0.2))
  561. larmwld14=weld(larm14,larm14,larm2,euler(0,0,0)*cf(0,-0.2,0))
  562. larmwld15=weld(larm15,larm15,larm14,euler(0,0,0.5)*cf(-0.4,-0.5,0))
  563. larmwld16=weld(larm16,larm16,larm14,euler(0,0,-0.5)*cf(0.4,-0.5,0))
  564. larmwld17=weld(larm17,larm17,larm14,euler(0,0,0)*cf(0,-1,0))
  565. lfistwld1=weld(lfist1,lfist1,larm13,euler(0,0,0)*cf(0,1,0))
  566. lfistwld2=weld(lfist2,lfist2,lfist1,euler(0,0,0)*cf(0.5,-1,0))
  567. lfistwld3=weld(lfist3,lfist3,lfist1,euler(0,1.57,0)*cf(0,-1,0.5))
  568. lfistwld4=weld(lfist4,lfist4,lfist1,euler(0,1.57,0)*cf(0,-1,-0.5))
  569. lfistwld5=weld(lfist5,lfist5,lfist1,euler(-0.2,0,0)*cf(0,0.7,0))
  570. lfistwld6=weld(lfist6,lfist6,lfist5,euler(0,0,-0.2)*cf(0.2,0.7,0))
  571. lfistwld7=weld(lfist7,lfist7,lfist6,euler(0,0,-0.2)*cf(0,0.6,0.5))
  572. lfistwld8=weld(lfist8,lfist8,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,0.175))
  573. lfistwld9=weld(lfist9,lfist9,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,-0.175))
  574. lfistwld10=weld(lfist10,lfist10,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,-0.5))
  575. lfistwld11=weld(lfist11,lfist11,lfist6,euler(2.1,0.3,0)*cf(0,0.2,0.7))
  576. lfistwld12=weld(lfist12,lfist12,lfist1,euler(0,0,0)*cf(0,0,0))
  577. rarmwld1=weld(rarm1,rarm1,tors1,euler(0,0,0)*cf(-3,0,0))
  578. rarmwld2=weld(rarm2,rarm2,rarm1,euler(0,0,0)*cf(0,0.2,0))
  579. rarmwld3=weld(rarm3,rarm3,rarm2,euler(0,0,0)*cf(0,-0.4,0))
  580. rarmwld5=weld(rarm5,rarm5,rarm1,euler(0,0,0)*cf(0,-0.4,-1))
  581. rarmwld6=weld(rarm6,rarm6,rarm5,euler(0,0,0)*cf(0,0,0))
  582. rarmwld7=weld(rarm7,rarm7,rarm5,euler(0,0,0)*cf(1.29,0,1))
  583. rarmwld8=weld(rarm8,rarm8,rarm5,euler(0,0,0)*cf(-1.29,0,1))
  584. rarmwld9=weld(rarm9,rarm9,rarm5,euler(0,0,0)*cf(0,0,2))
  585. rarmwld10=weld(rarm10,rarm10,rarm5,euler(0,0,0)*cf(0,-0.7,1))
  586. rarmwld11=weld(rarm11,rarm11,rarm2,euler(-0.5,0,-0.2)*cf(0,0.8,0))
  587. rarmwld12=weld(rarm12,rarm12,rarm11,euler(0.5,0,0.2)*cf(0,0.8,0))
  588. rarmwld13=weld(rarm13,rarm13,rarm12,cf(0,1,0)*euler(-1.2,0,-0.2))
  589. rfistwld1=weld(rfist1,rfist1,rarm13,euler(0,0,0)*cf(0,1,0))
  590. rfistwld2=weld(rfist2,rfist2,rfist1,euler(0,0,0)*cf(-0.5,-1,0))
  591. rfistwld3=weld(rfist3,rfist3,rfist1,euler(0,1.57,0)*cf(0,-1,0.5))
  592. rfistwld4=weld(rfist4,rfist4,rfist1,euler(0,1.57,0)*cf(0,-1,-0.5))
  593. rfistwld5=weld(rfist5,rfist5,rfist1,euler(-0.2,0,0)*cf(0,0.7,0))
  594. rfistwld6=weld(rfist6,rfist6,rfist5,euler(0,0,0.2)*cf(-0.2,0.7,0))
  595. rfistwld7=weld(rfist7,rfist7,rfist6,euler(0,0,0.2)*cf(0,0.6,0.5))
  596. rfistwld8=weld(rfist8,rfist8,rfist6,euler(0,0,0.4)*cf(0.1,0.6,0.175))
  597. rfistwld9=weld(rfist9,rfist9,rfist6,euler(0,0,0.4)*cf(0.1,0.6,-0.175))
  598. rfistwld10=weld(rfist10,rfist10,rfist6,euler(0,0,0.4)*cf(0.1,0.6,-0.5))
  599. rfistwld11=weld(rfist11,rfist11,rfist6,euler(2.1,-0.3,0)*cf(0,0.2,0.7))
  600. rfistwld12=weld(rfist12,rfist12,rfist1,euler(0,0,0)*cf(0,0,0))
  601.  
  602. player = Player
  603. ch = Character
  604. RSH = ch.Torso["Right Shoulder"]
  605. LSH = ch.Torso["Left Shoulder"]
  606. RH = ch.Torso["Right Hip"]
  607. LH = ch.Torso["Left Hip"]
  608. --
  609. RSH.Parent = nil
  610. LSH.Parent = nil
  611. RH.Parent = nil
  612. LH.Parent = nil
  613. --
  614. RW.Part0 = ch.Torso
  615. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  616. RW.C1 = CFrame.new(0, 0.5, 0)
  617. RW.Part1 = ch["Right Arm"]
  618. RW.Parent = ch.Torso
  619. --_G.R = RW
  620. --
  621. LW.Part0 = ch.Torso
  622. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  623. LW.C1 = CFrame.new(0, 0.5, 0)
  624. LW.Part1 = ch["Left Arm"]
  625. LW.Parent = ch.Torso
  626. --_G.L = LW
  627. --
  628. RWL.Part0 = ch.Torso
  629. RWL.C0 = cf(0, -1.5, 0) --* euler(1.3, 0, -0.5)
  630. RWL.C1 = cf(-0.5, 0.5, 0)
  631. RWL.Part1 = ch["Right Leg"]
  632. RWL.Parent = ch.Torso
  633. --_G.R = RW
  634. --
  635. LWL.Part0 = ch.Torso
  636. LWL.C0 = cf(0, -1.5, 0) --* euler(1.7, 0, 0.8)
  637. LWL.C1 = cf(0.5, 0.5, 0)
  638. LWL.Part1 = ch["Left Leg"]
  639. LWL.Parent = ch.Torso
  640. --_G.L = LW
  641. --
  642. Neck.C0=necko*euler(0.2,0,0)
  643. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2,0,0)
  644. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  645. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1)
  646. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  647. RWL.C0 = cf(0,-0.5,0) * euler(1,0,0.1)
  648. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  649. LWL.C0 = cf(0,-0.5,0) * euler(1,0,-0.1)
  650. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  651. --
  652. if (script.Parent.className ~= "HopperBin") then
  653. Tool = Instance.new("HopperBin")
  654. Tool.Parent = Backpack
  655. Tool.Name = "Roi"
  656. script.Parent = Tool
  657. end
  658. Bin = script.Parent
  659. local bg = it("BodyGyro")
  660. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  661. bg.P = 20e+003
  662. bg.Parent = nil
  663. bp=it("BodyPosition")
  664. bp.P=2000
  665. bp.D=100
  666. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  667. so = function(id,par,vol,pit)
  668. coroutine.resume(coroutine.create(function()
  669. local sou = Instance.new("Sound",par or workspace)
  670. sou.Volume=vol
  671. sou.Pitch=pit or 1
  672. sou.SoundId=id
  673. wait()
  674. sou:play()
  675. wait(6)
  676. sou:Remove()
  677. end))
  678. end
  679. function hideanim()
  680. equipped=false
  681. wait(0.1)
  682. Torso.Neck.C0=necko
  683. RootJoint.C0=RootCF
  684. end
  685. function equipanim()
  686. equipped=true
  687. wait(0.1)
  688. end
  689. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  690. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  691. end
  692. function attackone()
  693. attack=true
  694. idle=false
  695. closefistl()
  696. for i=0,1,0.1 do
  697. wait()
  698. RootJoint.C0=RootCF*euler(0,0,1*i)
  699. torswld5.C0=euler(0,1*i,0)*cf(0,0.8,0.2)
  700. larmwld11.C0=euler(-0.5,0,0.2+1.3*i)*cf(1*i,0.8-0.1*i,0)
  701. end
  702. con1=lfist12.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  703. so("http://roblox.com/asset/?id=10209640",lfist12,1,0.5)
  704. for i=0,1,0.2 do
  705. wait()
  706. RootJoint.C0=RootCF*euler(0,0,1-2.3*i)
  707. torswld5.C0=euler(0,1-2.3*i,0)*cf(0,0.8,0.2)
  708. larmwld11.C0=euler(-0.5+0.5*i,0.5*i,1.5)*cf(1,0.8-0.1,0)
  709. end
  710. closefistr()
  711. for i=0,1,0.2 do
  712. wait()
  713. RootJoint.C0=RootCF*euler(0,0,1-2.3-0.2*i)
  714. torswld5.C0=euler(0,1-2.3-0.2*i,0)*cf(0,0.8,0.2)
  715. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  716. end
  717. con1:disconnect()
  718. openfistl()
  719. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  720. end
  721. function attacktwo()
  722. attack=true
  723. idle=false
  724. con1=rfist12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  725. so("http://roblox.com/asset/?id=10209640",rfist12,1,0.6)
  726. for i=0,1,0.2 do
  727. wait()
  728. RootJoint.C0=RootCF*euler(0,0,-1.5+2.8*i)
  729. torswld5.C0=euler(0,1-2.5+2.8*i,0)*cf(0,0.8,0.2)
  730. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  731. rarmwld11.C0=euler(-0.5+0.5*i,0,-0.2-1.3*i)*cf(-1*i,0.8-0.1*i,0)
  732. end
  733. for i=0,1,0.2 do
  734. wait()
  735. RootJoint.C0=RootCF*euler(0,0,-1.5+2.8+0.2*i)
  736. torswld5.C0=euler(0,1-2.5+2.8+0.2*i,0)*cf(0,0.8,0.2)
  737. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  738. end
  739. con1:disconnect()
  740. openfistr()
  741. for i=0,1,0.1 do
  742. wait()
  743. RootJoint.C0=RootCF*euler(0,0,1.5-1.5*i)
  744. torswld5.C0=euler(0,1.5-1.5*i,0)*cf(0,0.8,0.2)
  745. larmwld11.C0=euler(-0.5*i,0.5-0.5*i,1.5-1.3*i)*cf(1-1*i,0.8-0.1+0.1*i,0)
  746. rarmwld11.C0=euler(-0.5*i,0,-1.5+1.3*i)*cf(-1+1*i,0.8-0.1+0.1*i,0)
  747. --[[
  748. larmwld11.C0=euler(-0.5+0.2*i,0,0.2)*cf(0,0.8,0)
  749. rarmwld11.C0=euler(-0.5+0.2*i,0,-0.2)*cf(0,0.8,0)]]
  750. end
  751. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  752. attack=false
  753. end
  754. function MovingPunch()
  755. attack=true
  756. closefistr()
  757. con1=rfist12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  758. so("http://roblox.com/asset/?id=10209640",rfist12,1,0.4)
  759. for i=0,1,0.1 do
  760. wait()
  761. rarmwld11.C0=euler(-0.5-1.5*i,0,-1.2-0.37*i)*cf(-1+1*i,0.7,0.5*i)
  762. rarmwld12.C0=euler(0.5-0.5*i,0,0.2-0.2*i)*cf(0,0.8,0)
  763. rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  764. end
  765. for i=0,1,0.1 do
  766. wait()
  767. rarmwld11.C0=euler(-0.5-1.5-0.2*i,0,-1.2-0.37)*cf(-1+1,0.7,0.5)
  768. end
  769. con1:disconnect()
  770. openfistr()
  771. for i=0,1,0.1 do
  772. wait()
  773. rarmwld11.C0=euler(-0.5-1.7+1.7*i,0,-1.2-0.37+0.37*i)*cf(-1*i,0.7,0.5-0.5*i)
  774. rarmwld12.C0=euler(0.5*i,0,0.2*i)*cf(0,0.8,0)
  775. rarmwld13.C0=cf(0,1,0)*euler(-1.2*i,0,-0.2*i)
  776. end
  777. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  778. rarmwld11.C0=euler(-0.5,0,-0.2-1)*cf(-1,0.8-0.1,0)
  779. rarmwld12.C0=euler(0.5,0,0.2)*cf(0,0.8,0)
  780. rarmwld13.C0=cf(0,1,0)*euler(-1.2,0,-0.2)
  781. attack=false
  782. end
  783. function punchone()
  784. attack=true
  785. idle=false
  786. --[[
  787. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2)
  788. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2)
  789. ]]
  790. closefistl()
  791. for i=0,1,0.1 do
  792. wait()
  793. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2-1.37*i)
  794. lfistwld1.C0=euler(-0.6-0.97*i,0.2,0)*cf(4,-2+2*i,1)
  795. end
  796. con1=lfist12.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  797. so("http://roblox.com/asset/?id=10209640",lfist12,1,0.5)
  798. for i=0,1,0.2 do
  799. wait()
  800. LW.C0 = cf(-1.5,0.5,0) * euler(0,-1.2*i,-1.57)
  801. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.2*i,0)
  802. end
  803. for i=0,1,0.2 do
  804. wait()
  805. LW.C0 = cf(-1.5,0.5,0) * euler(0,-1.2-0.2*i,-1.57)
  806. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.2+0.2*i,0)
  807. end
  808. con1:disconnect()
  809. openfistl()
  810. end
  811. function punchtwo()
  812. attack=true
  813. idle=false
  814. for i=0,1,0.1 do
  815. wait()
  816. RootJoint.C0=euler(-1.57,0,3.14)*euler(0,0,1*i)
  817. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.4-1.4*i,0)
  818. end
  819. attack=false
  820. end
  821. function RocketPunch()
  822. Humanoid.WalkSpeed=0
  823. attack=true
  824. idle=false
  825. for i=0,1,0.2 do
  826. wait()
  827. RootJoint.C0=RootCF*euler(0,0,-1*i)
  828. torswld5.C0=euler(0,-1*i,0)*cf(0,0.8,0.2)
  829. rarmwld11.C0=euler(-0.5+0.5*i,0,-0.2)*cf(0,0.8,0)
  830. rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  831. end
  832. for i=0,1,0.2 do
  833. wait()
  834. RootJoint.C0=RootCF*euler(0,0,-1+2.5*i)
  835. torswld5.C0=euler(0,-1+2.5*i,0)*cf(0,0.8,0.2)
  836. rarmwld11.C0=euler(-1.57*i,1.57*i,-0.2+0.2*i)*cf(0,0.8,0)
  837. rarmwld12.C0=euler(0.5-0.5*i,-1.57*i,0.2-0.2*i)*cf(0,0.8,0)
  838. --rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  839. end
  840. so("http://www.roblox.com/asset/?id=2697431",rfist12,1,0.2)
  841. disconnect=false
  842. con1=rfist12.Touched:connect(function(hit)
  843. disconnect=true
  844. Damagefunc1(hit,30,30) end)
  845. rfistwld1.Part1=nil
  846. rfist1.CanCollide=true
  847. rfist12.CanCollide=true
  848. rfist1.CFrame=rfist1.CFrame*cf(0,-2,0)
  849. rfist1.Velocity=MMouse.Hit.lookVector * 70
  850. bv=Instance.new("BodyVelocity")
  851. bv.Parent=rfist1
  852. bv.maxForce=Vector3.new(4e+020, 4e+020, 4e+020)
  853. bv.velocity=MMouse.Hit.lookVector * 70
  854. gy=Instance.new("BodyGyro")
  855. gy.Parent=rfist1
  856. gy.maxTorque = Vector3.new(999999999999,99999999999999999,0)
  857. gy.cframe = CFrame.new(gy.Parent.Position, MMouse.Hit.p)*euler(1.57,1.57,0)
  858. bf=Instance.new("BodyForce")
  859. bf.Parent=rfist1
  860. mass=rfist1:GetMass()+rfist2:GetMass()+rfist3:GetMass()+rfist4:GetMass()+rfist5:GetMass()+rfist6:GetMass()+rfist7:GetMass()+rfist8:GetMass()+rfist9:GetMass()+rfist10:GetMass()+rfist11:GetMass()+rfist12:GetMass()
  861. bf.force=Vector3.new(0, 196.2 * mass, 0)
  862. -- rfistwld1=weld(rfist1,rfist1,rarm13,euler(0,0,0)*cf(0,1,0))
  863. wait()
  864. rfist1.Velocity=MMouse.Hit.lookVector * 120
  865. numb=0
  866. for i=1,100 do
  867. if numb<=5 then
  868. numb=numb+1
  869. else
  870. numb=0
  871. end
  872. local target=findNearestTorso(rfist1.Position,50)
  873. if target~=nil then
  874. bv.velocity=(target.Position-rfist1.Position).unit*70
  875. gy.cframe = CFrame.new(gy.Parent.Position, target.Position)*euler(1.57,1.57,0)
  876. --rfist1.Velocity=MMouse.Hit.lookVector * 70
  877. else
  878. bv.velocity=MMouse.Hit.lookVector * 70
  879. gy.cframe = CFrame.new(gy.Parent.Position, MMouse.Hit.p)*euler(1.57,1.57,0)
  880. end
  881. if disconnect==false then
  882. wait()
  883. end
  884. end
  885. so("http://www.roblox.com/asset/?id=2101148",rfist12,1,0.6)
  886. boomcf=rfist12.CFrame
  887. MagicCircle(BrickColor.new("Bright red"),boomcf,1,1,1,5,5,5)
  888. for i=1,2 do
  889. MagicRing(BrickColor.new("Bright red"),boomcf*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2)
  890. end
  891. con1:disconnect()
  892. bv.Parent=nil
  893. gy.Parent=nil
  894. bf.Parent=nil
  895. rfist1.CanCollide=false
  896. rfist12.CanCollide=false
  897. rfist1.Anchored=false
  898. rfistwld1.Part1=rarm13
  899. RootJoint.C0=RootCF*euler(0,0,0)
  900. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  901. rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  902. rarmwld12.C0=euler(0.5,0,0.2)*cf(0,0.8,0)
  903. rarmwld13.C0=cf(0,1,0)*euler(-1.2,0,-0.2)
  904. attack=false
  905. Humanoid.WalkSpeed=16
  906. end
  907. function Rockets()
  908. attack=true
  909. holdrockets=true
  910. for i=0,1,0.1 do
  911. wait()
  912. rarmwld5.C0=euler(-0.6*i,0,0)*cf(0,-0.4,-1)
  913. end
  914. rocketnumb=1
  915. while holdrockets==true do
  916. if rocketnumb==1 then
  917. rocketnumb=2
  918. item=rocketlaunchparts[1]
  919. shoottrail(mouse,item)
  920. elseif rocketnumb==2 then
  921. rocketnumb=3
  922. item=rocketlaunchparts[2]
  923. shoottrail(mouse,item)
  924. elseif rocketnumb==3 then
  925. rocketnumb=1
  926. item=rocketlaunchparts[3]
  927. holdrockets=false
  928. shoottrail(mouse,item)
  929. end
  930. wait(0.5)
  931. end
  932. for i=0,1,0.1 do
  933. wait()
  934. rarmwld5.C0=euler(-0.6+0.6*i,0,0)*cf(0,-0.4,-1)
  935. end
  936. attack=false
  937. end
  938. function LightningOrb()
  939. attack=true
  940. for i=0,1,0.1 do
  941. wait()
  942. torswld1.C0=euler(0.2+2*i,0,0)*cf(-3,2.3-2*i,-3*i)
  943. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2-1*i,0,0)
  944. RW.C0 = cf(1.5,0.5,0) * euler(-0.3-0.9*i,0,0.1)
  945. RWL.C0 = cf(0,-0.5,0) * euler(1+0.5*i,0,0.1-0.1*i)
  946. RWL.C1 = cf(-0.5,1.5-1.5*i,-0.5*i) * euler(-1.57*i,0,0)
  947. LWL.C0 = cf(0,-0.5,0) * euler(1+0.5*i,0,-0.1+0.1*i)
  948. LWL.C1 = cf(0.5,1.5-1.5*i,-0.5*i) * euler(-1.57*i,0,0)
  949. larmwld5.C0=euler(-0.8*i,0,0)*cf(0,-0.4,-1)
  950. end
  951. coroutine.resume(coroutine.create(function()
  952. for i=0,1,0.1 do
  953. wait()
  954. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  955. torswld1.C1=euler(3*i,0,0)*cf(0,0,0)
  956. LW.C0 = cf(-1.5,0.5,0) * euler(-1.2+2.4*i,0,0)
  957. RW.C0 = cf(1.5,0.5,0) * euler(-1.2+2.4*i,0,0.1)
  958. RWL.C1 = cf(-0.5,1.5*i,-0.5+0.5*i) * euler(-1.57+1.57*i,0,0)
  959. LWL.C1 = cf(0.5,1.5*i,-0.5+0.5*i) * euler(-1.57+1.57*i,0,0)
  960. end
  961. for i=0,1,0.1 do
  962. wait()
  963. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  964. torswld1.C1=euler(3+0.1*i,0,0)*cf(0,-1.5*i,0)
  965. LW.C0 = cf(-1.5,0.5,0) * euler(1.2+0.8*i,0,0)
  966. RW.C0 = cf(1.5,0.5,0) * euler(1.2+0.8*i,0,0.1)
  967. RWL.C0 = cf(0,-0.5,0) * euler(1.5-1.4*i,0,0.2*i)
  968. LWL.C0 = cf(0,-0.5,0) * euler(1.5-1.5*i,0,-0.2*i)
  969. end
  970. for i=0,1,0.1 do
  971. wait()
  972. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  973. torswld1.C1=euler(3.1-0.7*i,0,0.5*i)*cf(1*i,-1.5,0)
  974. LW.C0 = cf(-1.5+0.5*i,0.5,-0.5*i) * euler(2-1*i,0,0.4*i)
  975. RW.C0 = cf(1.5,0.5,0) * euler(2-1*i,0,0.1+0.2*i)
  976. end
  977. end))
  978. numb=0
  979. for i=0,2,0.1 do
  980. wait(0.1)
  981. --Lightning(p0,p1,tym,ofs,col,th,tra)
  982. Lightning(larm17.Position+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),larm17.Position+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),3,1,"Bright yellow",0.05,0.5)
  983. if numb<=5 then
  984. numb=numb+1
  985. else
  986. numb=0
  987. MagicCircle(BrickColor.new("Bright yellow"),larm17.CFrame,0.5,0.5,0.5,1,1,1)
  988. end
  989. end
  990. shoottrail2(mouse,larm17)
  991. wait(1)
  992. for i=0,1,0.1 do
  993. wait()
  994. torswld1.C0=euler(2.2-1.5*i,0,0)*cf(-3,0.3-0.3*i,-3+3*i)
  995. torswld1.C1=euler(2.4-2.4*i,0,0.5-0.5*i)*cf(1-1*i,-1.5-0.5*i,1*i)
  996. LW.C0 = cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * euler(1-2*i,0,0.4-0.4*i)
  997. RW.C0 = cf(1.5,0.5,0) * euler(1-2*i,0,0.3-0.3*i)
  998. RWL.C0 = cf(0,-0.5,0) * euler(0.1+1.2*i,0,0.2-0.2*i)
  999. LWL.C0 = cf(0,-0.5,0) * euler(1.3*i,0,-0.2+0.2*i)
  1000. larmwld5.C0=euler(-0.8+0.8*i,0,0)*cf(0,-0.4,-1)
  1001. end
  1002. for i=0,1,0.1 do
  1003. wait()
  1004. torswld1.C0=euler(0.7-0.5*i,0,0)*cf(-3,2.3*i,0)
  1005. torswld1.C1=euler(0,0,0)*cf(0,-2+2*i,1-1*i)
  1006. LW.C0 = cf(-1.5,0.5,0) * euler(-1+0.8*i,0,0)
  1007. RW.C0 = cf(1.5,0.5,0) * euler(-1+0.7*i,0,0.1*i)
  1008. RWL.C0 = cf(0,-0.5,0) * euler(1.3-0.3*i,0,0.1*i)
  1009. LWL.C0 = cf(0,-0.5,0) * euler(1.3-0.3*i,0,-0.1*i)
  1010. end
  1011. attack=false
  1012. end
  1013. function closefistl()
  1014. coroutine.resume(coroutine.create(function()
  1015. for i=0,1,0.1 do
  1016. wait()
  1017. lfistwld6.C0=euler(0,0,-0.2-0.4*i)*cf(0.2,0.7,0)
  1018. lfistwld7.C0=euler(0,0,-0.2-0.4*i)*cf(0,0.6,0.5)
  1019. lfistwld8.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,0.175)
  1020. lfistwld9.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,-0.175)
  1021. lfistwld10.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,-0.5)
  1022. end
  1023. end))
  1024. end
  1025. function openfistl()
  1026. coroutine.resume(coroutine.create(function()
  1027. for i=0,1,0.1 do
  1028. wait()
  1029. lfistwld6.C0=euler(0,0,-0.2-0.4+0.4*i)*cf(0.2,0.7,0)
  1030. lfistwld7.C0=euler(0,0,-0.2-0.4+0.4*i)*cf(0,0.6,0.5)
  1031. lfistwld8.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,0.175)
  1032. lfistwld9.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,-0.175)
  1033. lfistwld10.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,-0.5)
  1034. end
  1035. end))
  1036. end
  1037. function closefistr()
  1038. coroutine.resume(coroutine.create(function()
  1039. for i=0,1,0.1 do
  1040. wait()
  1041. rfistwld6.C0=euler(0,0,0.2+0.4*i)*cf(-0.2,0.7,0)
  1042. rfistwld7.C0=euler(0,0,0.2+0.4*i)*cf(0,0.6,0.5)
  1043. rfistwld8.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,0.175)
  1044. rfistwld9.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,-0.175)
  1045. rfistwld10.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,-0.5)
  1046. end
  1047. end))
  1048. end
  1049. function openfistr()
  1050. coroutine.resume(coroutine.create(function()
  1051. for i=0,1,0.1 do
  1052. wait()
  1053. rfistwld6.C0=euler(0,0,0.2+0.4-0.4*i)*cf(-0.2,0.7,0)
  1054. rfistwld7.C0=euler(0,0,0.2+0.4-0.4*i)*cf(0,0.6,0.5)
  1055. rfistwld8.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,0.175)
  1056. rfistwld9.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,-0.175)
  1057. rfistwld10.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,-0.5)
  1058. end
  1059. end))
  1060. end
  1061. function idlefistr()
  1062. coroutine.resume(coroutine.create(function()
  1063. for i=0,1,0.1 do
  1064. wait()
  1065. rfistwld6.C0=euler(0,0,0.2+0.4*i)*cf(-0.2+0.1*i,0.7,0)
  1066. end
  1067. wait(0.1)
  1068. for i=0,1,0.1 do
  1069. wait()
  1070. rfistwld6.C0=euler(0,0,0.6-0.6*i)*cf(-0.2+0.1-0.1*i,0.7,0)
  1071. end
  1072. for i=0,1,0.1 do
  1073. wait()
  1074. rfistwld6.C0=euler(0,0,0.2*i)*cf(-0.2,0.7,0)
  1075. end
  1076. end))
  1077. coroutine.resume(coroutine.create(function()
  1078. wait(0.2)
  1079. for i=0,1,0.1 do
  1080. wait()
  1081. rfistwld7.C0=euler(0,0,0.2+0.6*i)*cf(0.1*i,0.6,0.5)
  1082. end
  1083. wait(0.1)
  1084. for i=0,1,0.1 do
  1085. wait()
  1086. rfistwld7.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,0.5)
  1087. end
  1088. for i=0,1,0.1 do
  1089. wait()
  1090. rfistwld7.C0=euler(0,0,0.2*i)*cf(0,0.6,0.5)
  1091. end
  1092. end))
  1093. coroutine.resume(coroutine.create(function()
  1094. wait(0.15)
  1095. for i=0,1,0.1 do
  1096. wait()
  1097. rfistwld8.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,0.175)
  1098. end
  1099. wait(0.1)
  1100. for i=0,1,0.1 do
  1101. wait()
  1102. rfistwld8.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,0.175)
  1103. end
  1104. for i=0,1,0.1 do
  1105. wait()
  1106. rfistwld8.C0=euler(0,0,0.4*i)*cf(0.1*i,0.6,0.175)
  1107. end
  1108. end))
  1109. coroutine.resume(coroutine.create(function()
  1110. wait(0.1)
  1111. for i=0,1,0.1 do
  1112. wait()
  1113. rfistwld9.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,-0.175)
  1114. end
  1115. wait(0.1)
  1116. for i=0,1,0.1 do
  1117. wait()
  1118. rfistwld9.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,-0.175)
  1119. end
  1120. for i=0,1,0.1 do
  1121. wait()
  1122. rfistwld9.C0=euler(0,0,0.4*i)*cf(0.1*i,0.6,-0.175)
  1123. end
  1124. end))
  1125. coroutine.resume(coroutine.create(function()
  1126. for i=0,1,0.1 do
  1127. wait()
  1128. rfistwld10.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,-0.5)
  1129. end
  1130. wait(0.1)
  1131. for i=0,1,0.1 do
  1132. wait()
  1133. lfistwld8.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,0.175)
  1134. end
  1135. for i=0,1,0.1 do
  1136. wait()
  1137. lfistwld8.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,0.175)
  1138. end
  1139. end))
  1140. coroutine.resume(coroutine.create(function()
  1141. wait(0.1)
  1142. for i=0,1,0.1 do
  1143. wait()
  1144. lfistwld9.C0=euler(0,0,-0.4-0.4*i)*cf(-0.1,0.6,-0.175)
  1145. end
  1146. wait(0.1)
  1147. for i=0,1,0.1 do
  1148. wait()
  1149. lfistwld9.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,-0.175)
  1150. end
  1151. for i=0,1,0.1 do
  1152. wait()
  1153. lfistwld9.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,-0.175)
  1154. end
  1155. end))
  1156. coroutine.resume(coroutine.create(function()
  1157. for i=0,1,0.1 do
  1158. wait()
  1159. lfistwld10.C0=euler(0,0,-0.4-0.4*i)*cf(-0.1,0.6,-0.5)
  1160. end
  1161. wait(0.1)
  1162. for i=0,1,0.1 do
  1163. wait()
  1164. lfistwld10.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,-0.5)
  1165. end
  1166. for i=0,1,0.1 do
  1167. wait()
  1168. lfistwld10.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,-0.5)
  1169. end
  1170. end))
  1171. end
  1172. function Aim()
  1173. aiming=true
  1174. coroutine.resume(coroutine.create(function()
  1175. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1176. bg.P = 9000
  1177. bg.Parent = Torso
  1178. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1179. while aiming==true do
  1180. wait()
  1181. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,RootPart.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1182. bg.cframe = cf(RootPart.Position,pos4) * euler(0,3.14,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1183. bg.Parent = RootPart
  1184. local pos5 = Vector3.new(MMouse.Hit.p.x,RootPart.Position.Y,MMouse.Hit.p.z)
  1185. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1186. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1187. offset=offset/mag
  1188. end
  1189. for i=0,1,0.1 do
  1190. wait()
  1191. bg.Parent=nil
  1192. end
  1193. end))
  1194. end
  1195. function NoAim()
  1196. aiming=false
  1197. end
  1198. spread=0
  1199. range=500
  1200. rangepower=10
  1201. function shoottrail(mouse,baseprt)
  1202. so("http://www.roblox.com/asset/?id=2697431",baseprt,1,0.5)
  1203. MagicBlock(BrickColor.new("Bright red"),baseprt.CFrame,0.1,0.1,0.1,1,1,1)
  1204. coroutine.resume(coroutine.create(function(v)
  1205. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  1206. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  1207. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1208. local rangepos = range
  1209. local function drawtrail(From,To)
  1210. local effectsmsh = Instance.new("CylinderMesh")
  1211. effectsmsh.Scale = Vector3.new(1,1,1)
  1212. effectsmsh.Name = "Mesh"
  1213. local effectsg = Instance.new("Part")
  1214. effectsg.formFactor = 3
  1215. effectsg.CanCollide = false
  1216. effectsg.Name = "Eff"
  1217. effectsg.Locked = true
  1218. effectsg.Anchored = true
  1219. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1220. effectsg.Parent = modelzorz
  1221. effectsmsh.Parent = effectsg
  1222. effectsg.BrickColor = BrickColor.new("Bright red")
  1223. effectsg.Reflectance = 0.25
  1224. local LP = From
  1225. local point1 = To
  1226. --[[if target~=nil then
  1227. LP=targetted
  1228. end]]
  1229. local mg = (LP - point1).magnitude
  1230. effectsmsh.Scale = Vector3.new(3,mg*5,3)
  1231. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1232. MagicBlock(BrickColor.new("Bright red"),effectsg.CFrame,0.1,0.1,0.1,0.5,0.5,0.5)
  1233. coroutine.resume(coroutine.create(function()
  1234. for i = 0 , 1 , 0.2 do
  1235. wait()
  1236. effectsg.Transparency = 1*i
  1237. effectsmsh.Scale = Vector3.new(3-3*i,mg*5,3-3*i)
  1238. end
  1239. effectsg.Parent = nil
  1240. end))
  1241. end
  1242. local newpos = baseprt.Position
  1243. local inc = rangepower
  1244. repeat
  1245. wait() wait()
  1246. rangepos = rangepos - 10
  1247. dir = dir * CFrame.Angles(math.rad(-0.5),0,0)
  1248. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1249. drawtrail(newpos,pos)
  1250. newpos = newpos + (dir.lookVector * inc)
  1251. if inc >= 20 then
  1252. inc = inc - 10
  1253. end
  1254. if hit ~= nil then
  1255. rangepos = 0
  1256. end
  1257. until rangepos <= 0
  1258. if hit ~= nil then
  1259. so("http://www.roblox.com/asset/?id=2101148",hit,1,0.6)
  1260. MagicCircle(BrickColor.new("Bright red"),CFrame.new(pos),0.5,0.5,0.5,2,2,2)
  1261. MagicRing(BrickColor.new("Bright red"),CFrame.new(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0.5,0.5,0.5,0.5,0.5,0.5)
  1262. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1263. hum = hit.Parent.Humanoid
  1264. tTorso=hit.Parent.Torso
  1265. Damagefunc1(hit,10,20)
  1266. --ADmg(hum,hit)
  1267. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1268. hum = hit.Parent.Parent.Humanoid
  1269. tTorso=hit.Parent.Parent.Torso
  1270. Damagefunc1(hit.Parent.Parent.Torso,10,20)
  1271. --ADmg(hum,hit)
  1272. end
  1273. end
  1274. end))
  1275. end
  1276. lightningdebounce=false
  1277. function shoottrail2(mouse,baseprt)
  1278. coroutine.resume(coroutine.create(function(v)
  1279. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  1280. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  1281. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1282. local rangepos = range*2
  1283. local function drawtrail(From,To)
  1284. local effectsmsh = Instance.new("SpecialMesh")
  1285. effectsmsh.MeshType = "Sphere"
  1286. effectsmsh.Scale = Vector3.new(1,1,1)
  1287. effectsmsh.Name = "Mesh"
  1288. local effectsg = Instance.new("Part")
  1289. effectsg.formFactor = 3
  1290. effectsg.CanCollide = false
  1291. effectsg.Name = "Eff"
  1292. effectsg.Locked = true
  1293. effectsg.Anchored = true
  1294. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1295. effectsg.Parent = modelzorz
  1296. effectsmsh.Parent = effectsg
  1297. effectsg.BrickColor = BrickColor.new("Bright yellow")
  1298. effectsg.Reflectance = 0.25
  1299. local LP = From
  1300. local point1 = To
  1301. --[[if target~=nil then
  1302. LP=targetted
  1303. end]]
  1304. local mg = (LP - point1).magnitude
  1305. effectsmsh.Scale = Vector3.new(5,5,5)
  1306. Lightning(LP+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),point1+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),6,4,"Bright yellow",0.05,0.5)
  1307. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1308. local target=findNearestTorso(effectsg.Position,20)
  1309. if target~=nil and lightningdebounce==false then
  1310. lightningdebounce=true
  1311. Lightning(effectsg.Position,target.Position,6,1,"Bright yellow",0.05,0.5)
  1312. Damagefunc1(target,1,0)
  1313. so("http://www.roblox.com/asset/?id=10756118",tartet,1,1)
  1314. coroutine.resume(coroutine.create(function()
  1315. wait(0.2)
  1316. lightningdebounce=false
  1317. end))
  1318. end
  1319. coroutine.resume(coroutine.create(function()
  1320. wait(0.1)
  1321. effectsg.Parent = nil
  1322. end))
  1323. end
  1324. local newpos = baseprt.Position
  1325. local inc = rangepower/10
  1326. repeat
  1327. wait() wait()
  1328. rangepos = rangepos - 10
  1329. dir = dir
  1330. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1331. drawtrail(newpos,pos)
  1332. newpos = newpos + (dir.lookVector * inc)
  1333. if inc >= 20 then
  1334. inc = inc - 10
  1335. end
  1336. if hit ~= nil then
  1337. rangepos = 0
  1338. end
  1339. until rangepos <= 0
  1340. if hit ~= nil then
  1341. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1342. hum = hit.Parent.Humanoid
  1343. tTorso=hit.Parent.Torso
  1344. Damagefunc1(hit,10,20)
  1345. --ADmg(hum,hit)
  1346. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1347. hum = hit.Parent.Parent.Humanoid
  1348. tTorso=hit.Parent.Parent.Torso
  1349. Damagefunc1(hit.Parent.Parent.Torso,10,20)
  1350. --ADmg(hum,hit)
  1351. end
  1352. end
  1353. end))
  1354. end
  1355. function ModeChange()
  1356. canidle=false
  1357. idle=false
  1358. if Mode=="Robot" then
  1359. Mode="Battle"
  1360. rfistwld1.Part1=Torso
  1361. rfistwld1.C0=euler(-1,-0.2,0)*cf(-6,5,2)
  1362. lfistwld1.Part1=Torso
  1363. lfistwld1.C0=euler(-1,0.2,0)*cf(0,5,2)
  1364. for _,v in pairs(modelzorz:children()) do
  1365. if v.className=="Part" then
  1366. coroutine.resume(coroutine.create(function(Part)
  1367. for i=0,1,0.1 do
  1368. wait(0)
  1369. Part.Transparency=Part.Transparency+0.1
  1370. end
  1371. end),v)
  1372. print(v)
  1373. end
  1374. end
  1375. for i=0,1,0.1 do
  1376. wait()
  1377. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2-0.1*i,0,-1.57*i)
  1378. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1379. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1+1.47*i)
  1380. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1381. RWL.C0 = cf(0,-0.5,0) * euler(1-1*i,0,0.1)
  1382. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1383. LWL.C0 = cf(0,-0.5,0) * euler(1-1*i,0,-0.1)
  1384. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1385. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4-2.4*i)
  1386. torswld1.C0=euler(0.2-0.2*i,0,0)*cf(-3+3*i,2.3-(2.3+2.4)*i,0)
  1387. rfistwld1.C0=euler(-1+0.4*i,-0.2,0)*cf(-6+2*i,5-7*i,2-1*i)
  1388. lfistwld1.C0=euler(-1+0.4*i,0.2,0)*cf(4*i,5-7*i,2-1*i)
  1389. end
  1390. workspace.CurrentCamera.CameraSubject=Humanoid
  1391. workspace.CurrentCamera.CameraType = "Custom"
  1392. RootJoint.Part1=Torso
  1393. RootJoint.C0=euler(-1.57,0,3.14)
  1394. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4-2.4)
  1395. modelzorz.Parent=nil
  1396. rfistwld1.C0=euler(-0.6,-0.2,0)*cf(-4,-2,1)
  1397. lfistwld1.C0=euler(-0.6,0.2,0)*cf(4,-2,1)
  1398. rfistwld1.Parent=rfist1
  1399. --rfistwld1.Part1=Torso
  1400. rfistwld1.Part1=RootPart
  1401. lfistwld1.Parent=lfist1
  1402. --lfistwld1.Part1=Torso
  1403. lfistwld1.Part1=RootPart
  1404. print(lfistwld1.Part0)
  1405. print(lfistwld1.Part1)
  1406. wait(0.1)
  1407. for i=0,1,0.1 do
  1408. wait()
  1409. LW.C0 = cf(-1.5+0.5*i,0.5,-0.5*i) * euler(-0.3+0.3*i,-2.8*i,-1.57+0.5*i)
  1410. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(-0.3+0.3*i,2.8*i,1.57)
  1411. rfistwld1.C1=euler(0,1*i,0)*cf(0,0,0)
  1412. lfistwld1.C1=euler(0,-1*i,0)*cf(0,0,0)
  1413. rfistwld1.C0=euler(-0.6-1*i,-0.2,0)*cf(-4,-2+1*i,1+1*i)
  1414. lfistwld1.C0=euler(-0.6-0.7*i,0.2,0)*cf(4,-2+1*i,1+1*i)
  1415. end
  1416. print(lfistwld1.Part0)
  1417. print(lfistwld1.Part1)
  1418. for i=0,1,0.2 do
  1419. wait()
  1420. Neck.C0=necko*euler(0.2-0.2*i,0,0)
  1421. LW.C0 = cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * euler(0,-2.8+2.7*i,-1.57+0.5-0.5*i)
  1422. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(0,2.8-2.7*i,1.57)
  1423. rfistwld1.C1=euler(0,1-1*i,0)*cf(0,0,0)
  1424. lfistwld1.C1=euler(0,-1+1*i,0)*cf(0,0,0)
  1425. rfistwld1.C0=euler(-1.6,-0.2+1.47*i,0)*cf(-4-1*i,-1,2-2*i)
  1426. lfistwld1.C0=euler(-1.3-0.3,0.2-1.47*i,0)*cf(4+1*i,-1,2-2*i)
  1427. end
  1428. for i=0,1,0.1 do
  1429. wait()
  1430. LW.C0 = cf(-1.5,0.5,0) * euler(0,-0.1+0.1*i,-1.57)
  1431. RW.C0 = cf(1.5,0.5,0) * euler(0,0.1-0.1*i,1.57)
  1432. rfistwld1.C0=euler(-1.6,1.27+0.1*i,0)*cf(-5,-1,0)
  1433. lfistwld1.C0=euler(-1.6,-1.27-0.1*i,0)*cf(5,-1,0)
  1434. end
  1435. for i=0,1,0.1 do
  1436. wait()
  1437. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57+1.37*i)
  1438. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57-1.37*i)
  1439. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.1-0.1*i)
  1440. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.1+0.1*i)
  1441. rfistwld1.C0=euler(-1.6+1*i,1.37-1.57*i,0)*cf(-5+1*i,-1-1*i,1*i)
  1442. lfistwld1.C0=euler(-1.6+1*i,-1.37+1.57*i,0)*cf(5-1*i,-1-1*i,1*i)
  1443. end
  1444. RWL.Parent = nil
  1445. LWL.Parent = nil
  1446. RH.Parent = player.Character.Torso
  1447. LH.Parent = player.Character.Torso
  1448. canidle=true
  1449. elseif Mode=="Battle" then
  1450. Mode="Robot"
  1451. workspace.CurrentCamera.CameraSubject=RootPart
  1452. workspace.CurrentCamera.CameraType = "Track"
  1453. modelzorz.Parent=Character
  1454. RootJoint.Part1=tors1
  1455. RootJoint.C0=euler(-1.57,0,3.14)
  1456. rfistwld1.Part1=Torso
  1457. lfistwld1.Part1=Torso
  1458. for e=1,#RobotWelds do
  1459. RobotWelds[e].Parent=Torso
  1460. end
  1461. for _,v in pairs(modelzorz:children()) do
  1462. if v.className=="Part" then
  1463. coroutine.resume(coroutine.create(function(Part)
  1464. for i=0,1,0.1 do
  1465. wait(0)
  1466. Part.Transparency=Part.Transparency-0.1
  1467. end
  1468. if Part.Name~="Torso Hitbox" and Part.Name~="Left Leg Hitbox" and Part.Name~="Right Leg Hitbox" then
  1469. Part.Transparency=0
  1470. end
  1471. end),v)
  1472. end
  1473. end
  1474. player = Player
  1475. ch = Character
  1476. RH = ch.Torso["Right Hip"]
  1477. LH = ch.Torso["Left Hip"]
  1478. --
  1479. RH.Parent = nil
  1480. LH.Parent = nil
  1481. --
  1482. RWL.Part0 = ch.Torso
  1483. RWL.C0 = cf(0, -1.5, 0) --* euler(1.3, 0, -0.5)
  1484. RWL.C1 = cf(-0.5, 0.5, 0)
  1485. RWL.Part1 = ch["Right Leg"]
  1486. RWL.Parent = ch.Torso
  1487. --_G.R = RW
  1488. --
  1489. LWL.Part0 = ch.Torso
  1490. LWL.C0 = cf(0, -1.5, 0) --* euler(1.7, 0, 0.8)
  1491. LWL.C1 = cf(0.5, 0.5, 0)
  1492. LWL.Part1 = ch["Left Leg"]
  1493. LWL.Parent = ch.Torso
  1494. --_G.L = LW
  1495. --
  1496. for i=0,1,0.1 do
  1497. wait()
  1498. Neck.C0=necko*euler(0.6*i,0,0)
  1499. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2-1.37*i)
  1500. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2+1.37*i)
  1501. RWL.C0 = cf(0,-0.5,0) * euler(1*i,0,0.1)
  1502. LWL.C0 = cf(0,-0.5,0) * euler(1*i,0,-0.1)
  1503. rfistwld1.C0=euler(-0.6-0.4*i,-0.2,0)*cf(-4-2*i,-2+7*i,1+1*i)
  1504. lfistwld1.C0=euler(-0.6-0.4*i,0.2,0)*cf(4-4*i,-2+7*i,1+1*i)
  1505. torswld1.C0=euler(0.2*i,0,0)*cf(-3*i,-2.4+(2.3+2.4)*i,0)
  1506. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4*i)
  1507. RootJoint.C0=RootCF
  1508. end
  1509. RWL.C0 = cf(0,-0.5,0) * euler(1,0,0.1)
  1510. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1511. LWL.C0 = cf(0,-0.5,0) * euler(1,0,-0.1)
  1512. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1513. rfistwld1.Part1=rarm13
  1514. rfistwld1.C0=euler(0,0,0)*cf(0,1,0)
  1515. lfistwld1.Part1=larm13
  1516. lfistwld1.C0=euler(0,0,0)*cf(0,1,0)
  1517. wait(0.2)
  1518. closefistl()
  1519. closefistr()
  1520. for i=0,1,0.1 do
  1521. wait()
  1522. Neck.C0=necko*euler(0.6-0.4*i,0,0)
  1523. LW.C0 = cf(-1.5,0.5,0) * euler(2*i,0,-1.57+1.57*i)
  1524. RW.C0 = cf(1.5,0.5,0) * euler(2*i,0,1.57-1.57*i)
  1525. larmwld11.C0=euler(-0.5-1*i,0,0.2-0.2*i)*cf(0,0.8,0)
  1526. rarmwld11.C0=euler(-0.5-1*i,0,-0.2+0.2*i)*cf(0,0.8,0)
  1527. end
  1528. for i=0,1,0.1 do
  1529. wait()
  1530. LW.C0 = cf(-1.5,0.5,0) * euler(2-3*i,0,0)
  1531. RW.C0 = cf(1.5,0.5,0) * euler(2-3*i,0,0)
  1532. larmwld11.C0=euler(-1.5+2*i,0,0)*cf(0,0.8,0)
  1533. rarmwld11.C0=euler(-1.5+2*i,0,0)*cf(0,0.8,0)
  1534. end
  1535. openfistl()
  1536. openfistr()
  1537. for i=0,1,0.1 do
  1538. wait()
  1539. LW.C0 = cf(-1.5,0.5,0) * euler(-1+0.8*i,0,0)
  1540. RW.C0 = cf(1.5,0.5,0) * euler(-1+0.7*i,0,0.1*i)
  1541. larmwld11.C0=euler(0.5-1*i,0,0.2*i)*cf(0,0.8,0)
  1542. rarmwld11.C0=euler(0.5-1*i,0,-0.2*i)*cf(0,0.8,0)
  1543. end
  1544. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2,0,0)
  1545. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1546. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1)
  1547. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1548. canidle=true
  1549. end
  1550. end
  1551. function findNearestTorso(pos,distance)
  1552. local list = game.Workspace:children()
  1553. local torso = nil
  1554. local dist = distance
  1555. local temp = nil
  1556. local human = nil
  1557. local temp2 = nil
  1558. for x = 1, #list do
  1559. temp2 = list[x]
  1560. if (temp2.className == "Model") and (temp2 ~= Character) then
  1561. temp = temp2:findFirstChild("Torso")
  1562. human = temp2:findFirstChild("Humanoid")
  1563. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1564. if (temp.Position - pos).magnitude < dist then
  1565. torso = temp
  1566. dist = (temp.Position - pos).magnitude
  1567. end
  1568. end
  1569. end
  1570. end
  1571. return torso
  1572. end
  1573. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1574. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1575. prt.Anchored=true
  1576. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1577. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1578. coroutine.resume(coroutine.create(function(Part,Mesh)
  1579. for i=0,1,0.1 do
  1580. wait()
  1581. Part.CFrame=Part.CFrame
  1582. Part.Transparency=i
  1583. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1584. end
  1585. Part.Parent=nil
  1586. end),prt,msh)
  1587. end
  1588. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1589. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1590. prt.Anchored=true
  1591. prt.CFrame=cframe
  1592. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1593. coroutine.resume(coroutine.create(function(Part,Mesh)
  1594. for i=0,1,0.1 do
  1595. wait()
  1596. Part.CFrame=Part.CFrame
  1597. Part.Transparency=i
  1598. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1599. end
  1600. Part.Parent=nil
  1601. end),prt,msh)
  1602. end
  1603. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1604. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1605. prt.Anchored=true
  1606. prt.CFrame=cframe
  1607. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1608. coroutine.resume(coroutine.create(function(Part,Mesh)
  1609. for i=0,1,0.03 do
  1610. wait()
  1611. Part.CFrame=Part.CFrame
  1612. Part.Transparency=i
  1613. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1614. end
  1615. Part.Parent=nil
  1616. end),prt,msh)
  1617. end
  1618. function Lightning(p0,p1,tym,ofs,col,th,tra)
  1619. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1620. for i=1,tym do
  1621. local li = Instance.new("Part",modelzorz) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1622. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1623. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1624. if tym == i then
  1625. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1626. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1627. else
  1628. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1629. end
  1630. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,.5)
  1631. end
  1632. end
  1633. Damagefunc1=function(hit,Damage,Knockback)
  1634. if hit.Parent==nil then
  1635. return
  1636. end
  1637. CPlayer=Bin
  1638. h=hit.Parent:FindFirstChild("Humanoid")
  1639. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1640. if attackdebounce == false then
  1641. attackdebounce = true
  1642. coroutine.resume(coroutine.create(function()
  1643. wait(0.2)
  1644. attackdebounce = false
  1645. end))
  1646. Damage=Damage
  1647. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1648. return
  1649. end]]
  1650. -- hs(hit,1.2)
  1651. c=Instance.new("ObjectValue")
  1652. c.Name="creator"
  1653. c.Value=game.Players.LocalPlayer
  1654. c.Parent=h
  1655. game:GetService("Debris"):AddItem(c,.5)
  1656. Damage=Damage+math.random(0,10)
  1657. -- h:TakeDamage(Damage)
  1658. blocked=false
  1659. block=hit.Parent:findFirstChild("Block")
  1660. if block~=nil then
  1661. print("herp")
  1662. if block.Value>0 then
  1663. blocked=true
  1664. block.Value=block.Value-1
  1665. print(block.Value)
  1666. end
  1667. end
  1668. if blocked==false then
  1669. -- h:TakeDamage(Damage)
  1670. h.Health=h.Health-Damage
  1671. showDamage(hit.Parent,Damage,.5)
  1672. else
  1673. Damage=Damage/2
  1674. h:TakeDamage(Damage)
  1675. showDamage(hit.Parent,Damage,.5)
  1676. end
  1677. vp=Instance.new("BodyVelocity")
  1678. vp.P=500
  1679. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1680. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1681. vp.velocity=RootPart.CFrame.lookVector*Knockback+RootPart.Velocity/1.05
  1682. if Knockback>0 then
  1683. vp.Parent=hit.Parent.Torso
  1684. end
  1685. game:GetService("Debris"):AddItem(vp,.25)
  1686. game:GetService("Debris"):AddItem(r,.5)
  1687. c=Instance.new("ObjectValue")
  1688. c.Name="creator"
  1689. c.Value=Player
  1690. c.Parent=h
  1691. game:GetService("Debris"):AddItem(c,.5)
  1692. CRIT=false
  1693. hitDeb=true
  1694. AttackPos=6
  1695. end
  1696. end
  1697. end
  1698. showDamage=function(Char,Dealt,du)
  1699. m=Instance.new("Model")
  1700. m.Name=tostring(Dealt)
  1701. h=Instance.new("Humanoid")
  1702. h.Health=0
  1703. h.MaxHealth=0
  1704. h.Parent=m
  1705. c=Instance.new("Part")
  1706. c.Material = "SmoothPlastic"
  1707. c.Transparency=0
  1708. c.BrickColor=BrickColor:Red()
  1709. if CRIT==true then
  1710. c.BrickColor=BrickColor.new("Really red")
  1711. end
  1712. c.Name="Head"
  1713. c.TopSurface="SmoothNoOutlines"
  1714. c.BottomSurface="SmoothNoOutlines"
  1715. c.RightSurface="SmoothNoOutlines"
  1716. c.LeftSurface="SmoothNoOutlines"
  1717. c.formFactor="Plate"
  1718. c.Size=Vector3.new(1,.4,1)
  1719. ms=Instance.new("CylinderMesh")
  1720. ms.Scale=Vector3.new(.8,.8,.8)
  1721. if CRIT==true then
  1722. ms.Scale=Vector3.new(1,1.25,1)
  1723. end
  1724. ms.Parent=c
  1725. c.Reflectance=0
  1726. Instance.new("BodyGyro").Parent=c
  1727. c.Parent=m
  1728. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1729. f=Instance.new("BodyPosition")
  1730. f.P=2000
  1731. f.D=100
  1732. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1733. f.position=c.Position+Vector3.new(0,3,0)
  1734. f.Parent=c
  1735. game:GetService("Debris"):AddItem(m,.5+du)
  1736. c.CanCollide=false
  1737. m.Parent=workspace
  1738. c.CanCollide=false
  1739. end
  1740. function ob1d(mouse)
  1741. if attack == true then return end
  1742. hold=true
  1743. if Mode=="Robot" then
  1744. if idle==false then
  1745. MovingPunch()
  1746. end
  1747. Humanoid.WalkSpeed=0
  1748. if idle==true then
  1749. canidle=false
  1750. attackone()
  1751. attacktwo()
  1752. canidle=true
  1753. end
  1754. attack=false
  1755. Humanoid.WalkSpeed=16
  1756. elseif Mode=="Battle" then
  1757. canidle=false
  1758. punchone()
  1759. punchtwo()
  1760. wait(1)
  1761. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2)
  1762. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2)
  1763. RootJoint.C0=euler(-1.57,0,3.14)
  1764. attack=false
  1765. canidle=true
  1766. end
  1767. end
  1768. function ob1u(mouse)
  1769. hold = false
  1770. end
  1771. buttonhold = false
  1772. function key(key)
  1773. if key=="x" then
  1774. if debouncerockets==true then return end
  1775. debouncerockets=true
  1776. Rockets()
  1777. debouncerockets=false
  1778. end
  1779. if key=="c" then
  1780. if debounceorb==true then return end
  1781. debounceorb=true
  1782. LightningOrb()
  1783. debounceorb=false
  1784. end
  1785. if attack == true then return end
  1786. if key=="q" then
  1787. if aiming==false then
  1788. Aim()
  1789. elseif aiming==true then
  1790. NoAim()
  1791. end
  1792. end
  1793. if key=="z" then
  1794. canidle=false
  1795. RocketPunch()
  1796. canidle=true
  1797. end
  1798. if key=="f" then
  1799. ModeChange()
  1800. end
  1801. --[[if key=="g" then
  1802. so("http://roblox.com/asset/?id=133489855",Torso,1,1)
  1803. wait(0.7)
  1804. so("http://roblox.com/asset/?id=144844438",Torso,1,1)
  1805. print("SOUND")
  1806. end
  1807. end]]--
  1808. function key2(key)
  1809. if key=="e" then
  1810. holdrockets=false
  1811. end
  1812. end
  1813. end
  1814. function s(mouse)
  1815. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1816. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1817. mouse.KeyDown:connect(key)
  1818. mouse.KeyUp:connect(key2)
  1819. unsheathed = true
  1820. player = Player
  1821. ch = Character
  1822. MMouse = mouse
  1823. equipanim()
  1824. end
  1825. function ds(mouse)
  1826. hideanim()
  1827. wait(0)
  1828. end
  1829. Bin.Selected:connect(s)
  1830. Bin.Deselected:connect(ds)
  1831. print("Roi loaded.")
  1832. while restarted==false do
  1833. if Mode=="Robot" then
  1834. wait()
  1835. if canidle==true then
  1836. if (Torso.Velocity*Vector3.new(1,0,1)).magnitude < 0.2 then
  1837. idle=true
  1838. armwalk=false
  1839. if doingidle==false then
  1840. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  1841. coroutine.resume(coroutine.create(function()
  1842. doingidle=true
  1843. if math.random(1,5)==1 then
  1844. idlefistr()
  1845. end
  1846. if math.random(1,5)==1 then
  1847. idlefistl()
  1848. end
  1849. for i=0,1,0.01 do
  1850. if idle==true then
  1851. wait()
  1852. RootJoint.C0=RootCF*cf(0,0,-0.5*i)
  1853. llegwld2.C0=euler(0,0,1.57)*cf(0,-0.5*i,0)
  1854. rlegwld2.C0=euler(0,0,1.57)*cf(0,-0.5*i,0)
  1855. larmwld11.C0=euler(-0.5+0.2*i,0,0.2)*cf(0,0.8,0)
  1856. rarmwld11.C0=euler(-0.5+0.2*i,0,-0.2)*cf(0,0.8,0)
  1857. end
  1858. end
  1859. if math.random(1,5)==1 then
  1860. idlefistr()
  1861. end
  1862. if math.random(1,5)==1 then
  1863. idlefistl()
  1864. end
  1865. for i=0,1,0.01 do
  1866. if idle==true then
  1867. wait()
  1868. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)
  1869. llegwld2.C0=euler(0,0,1.57)*cf(0,-0.5+0.5*i,0)
  1870. rlegwld2.C0=euler(0,0,1.57)*cf(0,-0.5+0.5*i,0)
  1871. larmwld11.C0=euler(-0.5+0.2-0.2*i,0,0.2)*cf(0,0.8,0)
  1872. rarmwld11.C0=euler(-0.5+0.2-0.2*i,0,-0.2)*cf(0,0.8,0)
  1873. end
  1874. end
  1875. if math.random(1,5)==1 then
  1876. idlefistr()
  1877. end
  1878. if math.random(1,5)==1 then
  1879. idlefistl()
  1880. end
  1881. doingidle=false
  1882. end))
  1883. end
  1884. end
  1885. if (Torso.Velocity*Vector3.new(1,0,1)).magnitude > 0.2 then
  1886. idle=false
  1887. if armwalk==false then
  1888. armwalk=true
  1889. coroutine.resume(coroutine.create(function()
  1890. for i=0,1,0.05 do
  1891. wait()
  1892. larmwld11.C0=euler(-0.5,0,0.2+1*i)*cf(1*i,0.8-0.1*i,0)
  1893. rarmwld11.C0=euler(-0.5,0,-0.2-1*i)*cf(-1*i,0.8-0.1*i,0)
  1894. end
  1895. while armwalk==true do
  1896. wait()
  1897. end
  1898. larmwld11.C0=euler(-0.5,0,0.2)*cf(0,0.8,0)
  1899. rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  1900. end))
  1901. end
  1902. if doingwalk==false then
  1903. coroutine.resume(coroutine.create(function()
  1904. doingwalk=true
  1905. for i=0,1,0.1 do
  1906. if idle==false then
  1907. wait()
  1908. RootJoint.C0=RootCF*cf(0,0,-0.7*i)*euler(0.1*i,0,-0.2*i)
  1909. llegwld2.C0=euler(0.5*i,1*i,1.57)*cf(0,0,0)
  1910. rlegwld2.C0=euler(0,-1*i,1.57)*cf(0,0,0)
  1911. end
  1912. end
  1913. for i=0,1,0.1 do
  1914. if idle==false then
  1915. wait()
  1916. RootJoint.C0=RootCF*cf(0,0,-0.7+0.7*i)*euler(0.1-0.1*i,0,-0.2+0.2*i)
  1917. llegwld2.C0=euler(0.5-0.5*i,1-1*i,1.57)*cf(0,0,0)
  1918. rlegwld2.C0=euler(0,-1+1*i,1.57)*cf(0,0,0)
  1919. end
  1920. end
  1921. for i=0,1,0.1 do
  1922. if idle==false then
  1923. wait()
  1924. RootJoint.C0=RootCF*cf(0,0,-0.7*i)*euler(0.1*i,0,0.2*i)
  1925. llegwld2.C0=euler(0,-1*i,1.57)*cf(0,0,0)
  1926. rlegwld2.C0=euler(-0.5*i,1*i,1.57)*cf(0,0,0)
  1927. end
  1928. end
  1929. for i=0,1,0.1 do
  1930. if idle==false then
  1931. wait()
  1932. RootJoint.C0=RootCF*cf(0,0,-0.7+0.7*i)*euler(0.1-0.1*i,0,0.2-0.2*i)
  1933. llegwld2.C0=euler(0,-1+1*i,1.57)*cf(0,0,0)
  1934. rlegwld2.C0=euler(-0.5+0.5*i,1-1*i,1.57)*cf(0,0,0)
  1935. end
  1936. end
  1937. doingwalk=false
  1938. end))
  1939. end
  1940. --RootJoint.C0=RootCF
  1941. --llegwld2.C0=euler(0,0,1.57)*cf(0,0,0)
  1942. --rlegwld2.C0=euler(0,0,1.57)*cf(0,0,0)
  1943. --larmwld11.C0=euler(-0.5,0,0.2)*cf(0,0.8,0)
  1944. --rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  1945. end
  1946. end
  1947. elseif Mode=="Battle" then
  1948. wait()
  1949. if canidle==true then
  1950. idle=true
  1951. armwalk=false
  1952. if doingidle==false then
  1953. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  1954. coroutine.resume(coroutine.create(function()
  1955. doingidle=true
  1956. for i=0,1,0.01 do
  1957. if idle==true then
  1958. wait()
  1959. rfistwld1.C0=euler(-0.6+0.1*i,-0.2,0)*cf(-4,-2+0.1*i,1)
  1960. lfistwld1.C0=euler(-0.6+0.1*i,0.2,0)*cf(4,-2+0.1*i,1)
  1961. end
  1962. end
  1963. if math.random(1,5)==1 then
  1964. idlefistr()
  1965. end
  1966. if math.random(1,5)==1 then
  1967. idlefistl()
  1968. end
  1969. for i=0,1,0.01 do
  1970. if idle==true then
  1971. wait()
  1972. rfistwld1.C0=euler(-0.6+0.1-0.1*i,-0.2,0)*cf(-4,-2+0.1-0.1*i,1)
  1973. lfistwld1.C0=euler(-0.6+0.1-0.1*i,0.2,0)*cf(4,-2+0.1-0.1*i,1)
  1974. end
  1975. end
  1976. if math.random(1,5)==1 then
  1977. idlefistr()
  1978. end
  1979. if math.random(1,5)==1 then
  1980. idlefistl()
  1981. end
  1982. doingidle=false
  1983. end))
  1984. end
  1985. end
  1986. end
  1987. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement