ghostteen14

Untitled

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