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