SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("PROTOTYPE #2, ACTIVATE!")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer | |
6 | end | |
7 | --i used stravants Beautifier so it might look a bit wonky | |
8 | Meshes = { | |
9 | Blast = '20329976', | |
10 | Crown = '1323306', | |
11 | Ring = '3270017', | |
12 | Claw = '10681506', | |
13 | Crystal = '9756362', | |
14 | Coil = '9753878', | |
15 | Cloud = '1095708', | |
16 | } | |
17 | clangsounds = { | |
18 | '199149119', | |
19 | '199149109', | |
20 | '199149072', | |
21 | '199149025', | |
22 | '199148971' | |
23 | } | |
24 | hitsounds = { | |
25 | '199149137', | |
26 | '199149186', | |
27 | '199149221', | |
28 | '199149235', | |
29 | '199149269', | |
30 | '199149297' | |
31 | } | |
32 | blocksounds = { | |
33 | '199148933', | |
34 | '199148947' | |
35 | } | |
36 | armorsounds = { | |
37 | '199149321', | |
38 | '199149338', | |
39 | '199149367', | |
40 | '199149409', | |
41 | '199149452' | |
42 | } | |
43 | woosh = { | |
44 | Heavy1 = '320557353', | |
45 | Heavy2 = '320557382', | |
46 | Heavy3 = '320557453', | |
47 | Heavy4 = '199144226', | |
48 | Heavy5 = '203691447', | |
49 | Heavy6 = '203691467', | |
50 | Heavy7 = '203691492', | |
51 | Light1 = '320557413', | |
52 | Light2 = '320557487', | |
53 | Light3 = '199145095', | |
54 | Light4 = '199145146', | |
55 | Light5 = '199145887', | |
56 | Light6 = '199145913', | |
57 | Light7 = '199145841', | |
58 | Medium1 = '320557518', | |
59 | Medium2 = '320557537', | |
60 | Medium3 = '320557563', | |
61 | Medium4 = '199145204' | |
62 | } | |
63 | music = {--i like music a lot | |
64 | Breaking = '179281636', | |
65 | FinalReckoning = '357375770', | |
66 | NotDeadYet = '346175829', | |
67 | Intense = '151514610', | |
68 | JumpP1 = '160536628', | |
69 | JumpP2 = '60536666', | |
70 | SonsOfWar = '158929777', | |
71 | WrathOfSea = '165520893', | |
72 | ProtecTorsofEarth = '160542922', | |
73 | SkyTitans = '179282324', | |
74 | ArchAngel = '144043274', | |
75 | Anticipation = '168614529', | |
76 | TheMartyred = '186849544', | |
77 | AwakeP1 = '335631255', | |
78 | AwakeP2 = '335631297', | |
79 | ReadyAimFireP1 = '342455387', | |
80 | ReadyAimFireP2 = '342455399', | |
81 | DarkLordP1 = '209567483', | |
82 | DarkLordP2 = '209567529', | |
83 | BloodDrainP1 = '162914123', | |
84 | BloodDrainP2 = '162914203', | |
85 | DanceOfSwords = '320473062', | |
86 | Opal = '286415112', | |
87 | Calamity = '190454307', | |
88 | Hypnotica = '155968128', | |
89 | Nemisis = '160453802', | |
90 | Breathe = '276963903', | |
91 | GateToTheRift = '270655227', | |
92 | InfernalBeserking = '244143404', | |
93 | Trust = '246184492', | |
94 | AwakeningTheProject = '245121821', | |
95 | BloodPain = '242545577', | |
96 | Chaos = '247241693', | |
97 | NightmareFictionHighStake = '248062278', | |
98 | TheWhiteWeapon = '247236446', | |
99 | Gale = '256851659', | |
100 | ImperialCode = '256848383', | |
101 | Blitzkrieg = '306431437', | |
102 | RhapsodyRage = '348690251', | |
103 | TheGodFist = '348541501', | |
104 | BattleForSoul = '321185592', | |
105 | TheDarkColossus = '305976780', | |
106 | EmpireOfAngels = '302580452', | |
107 | Kronos = '302205297', | |
108 | Exorcist = '299796054', | |
109 | CrimsonFlames = '297799220', | |
110 | UltimatePower = '295753229', | |
111 | DrivingInTheDark = '295753229', | |
112 | AscendToPower = '293860654', | |
113 | GodOfTheSun = '293612495', | |
114 | DarkRider = '293861765', | |
115 | Vengeance = '293375555', | |
116 | SoundOfWar = '293376196', | |
117 | HellsCrusaders = '293012202', | |
118 | Legend = '293011823', | |
119 | RisingSouls = '290524959' | |
120 | } | |
121 | misc = { | |
122 | GroundSlam = '199145477', | |
123 | LaserSlash = '199145497', | |
124 | RailGunFire = '199145534', | |
125 | Charge1 = '199145659', | |
126 | Charge2 = '169380469', | |
127 | Charge3 = '169380479', | |
128 | EmptyGun = '203691822', | |
129 | GunShoot = '203691837', | |
130 | Stomp1 = '200632875', | |
131 | Stomp2 = '200632561', | |
132 | TelsaCannonCharge = '169445572', | |
133 | TelsaCannonShoot = '169445602', | |
134 | AncientHymm = '245313442' | |
135 | } | |
136 | wait(1 / 60) | |
137 | local Player = game.Players.localPlayer | |
138 | local Character = Player.Character | |
139 | local Humanoid = Character.Humanoid | |
140 | local mouse = Player:GetMouse() | |
141 | local m = Instance.new('Model', Character) | |
142 | m.Name = "WeaponModel" | |
143 | local Effects = {} | |
144 | local LeftArm = Character["Left Arm"] | |
145 | local RightArm = Character["Right Arm"] | |
146 | local LeftLeg = Character["Left Leg"] | |
147 | local RightLeg = Character["Right Leg"] | |
148 | local Head = Character.Head | |
149 | local Torso = Character.Torso | |
150 | local cam = game.Workspace.CurrentCamera | |
151 | local RootPart = Character.HumanoidRootPart | |
152 | local RootJoint = RootPart.RootJoint | |
153 | --cam.CameraSubject = Head | |
154 | local equipped = false | |
155 | local attack = false | |
156 | local Anim = 'Idle' | |
157 | local idle = 0 | |
158 | local sprint = false | |
159 | local battlestance = false | |
160 | local attacktype = 1 | |
161 | local state = 'none' | |
162 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
163 | local velocity = RootPart.Velocity.y | |
164 | local sine = 0 | |
165 | local change = 1 | |
166 | local on = false | |
167 | local grabbed = false | |
168 | local skill1 = false | |
169 | local skill2 = false | |
170 | local skill3 = false | |
171 | local skill4 = false | |
172 | local cooldown1 = 0 | |
173 | local cooldown2 = 0 | |
174 | local cooldown3 = 0 | |
175 | local cooldown4 = 0 | |
176 | local co1 = 10--how long it will take for skill to cooldown | |
177 | local co2 = 15 | |
178 | local co3 = 15 | |
179 | local co4 = 25 | |
180 | local inputserv = game:GetService('UserInputService') | |
181 | local typing = false | |
182 | local crit = false | |
183 | local critchance = 2--critical chance percentage | |
184 | local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage | |
185 | local critdamageaddmax = 7--maximum amount | |
186 | local maxstamina = 100--max amount of stamina | |
187 | local stamina = 0--stamina you start out with | |
188 | local skill1stam = 10--how much stamina is needed for a skill | |
189 | local skill2stam = 10 | |
190 | local skill3stam = 20 | |
191 | local skill4stam = 30 | |
192 | local recovermana = 3--how much mana per second | |
193 | local defensevalue = 1--how much defense this character has | |
194 | local speedvalue = 1--how much speed this character has | |
195 | --speed is 16*speedvalue | |
196 | local mindamage = 5--self explanatory | |
197 | local maxdamage = 7--self explanatory | |
198 | local damagevalue = 1--how much damage this character has | |
199 | --damage is math.random(mindamage,maxdamage)*damagevalue | |
200 | --damage(hit, mindamage, maxdamage, 1, 1, RootPart) | |
201 | --asd | |
202 | local cn = CFrame.new-- make things easier :) | |
203 | local mr = math.rad | |
204 | local angles = CFrame.Angles | |
205 | local ud = UDim2.new | |
206 | local c3 = Color3.new | |
207 | local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol | |
208 | --asd | |
209 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
210 | Humanoid.Animator:Destroy() | |
211 | Character.Animate:Destroy() | |
212 | ||
213 | --Angles For RootJoint `~` | |
214 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
215 | --Save Shoulders/Hips | |
216 | RSH, LSH = nil, nil | |
217 | RHS, LHS = nil, nil | |
218 | --Shoulders | |
219 | RW = Instance.new("Weld") | |
220 | LW = Instance.new("Weld") | |
221 | --Hips | |
222 | RH = Instance.new("Weld") | |
223 | LH = Instance.new("Weld") | |
224 | -- | |
225 | Player = Player | |
226 | ch = Character | |
227 | LHS = Torso["Left Hip"] | |
228 | RHS = Torso["Right Hip"] | |
229 | RSH = ch.Torso["Right Shoulder"] | |
230 | LSH = ch.Torso["Left Shoulder"] | |
231 | -- | |
232 | RSH.Parent = nil | |
233 | LSH.Parent = nil | |
234 | -- | |
235 | LHS.Parent = nil | |
236 | RHS.Parent = nil | |
237 | -- | |
238 | RW.Name = "RW" | |
239 | RW.Part0 = ch.Torso | |
240 | RW.C0 = cn(1.5, 0.5, 0) | |
241 | RW.C1 = cn(0, 0.5, 0) | |
242 | RW.Part1 = ch["Right Arm"] | |
243 | RW.Parent = ch.Torso | |
244 | -- | |
245 | LW.Name = "LW" | |
246 | LW.Part0 = ch.Torso | |
247 | LW.C0 = cn(-1.5, 0.5, 0) | |
248 | LW.C1 = cn(0, 0.5, 0) | |
249 | LW.Part1 = ch["Left Arm"] | |
250 | LW.Parent = ch.Torso | |
251 | -- | |
252 | LH.Name = "LH" | |
253 | LH.Part0 = ch.Torso | |
254 | LH.C0 = cn(-0.5, -2, 0) | |
255 | LH.Part1 = ch["Left Leg"] | |
256 | LH.Parent = ch.Torso | |
257 | -- | |
258 | RH.Name = "RH" | |
259 | RH.Part0 = ch.Torso | |
260 | RH.C0 = cn(0.5, -2, 0) | |
261 | RH.Part1 = ch["Right Leg"] | |
262 | RH.Parent = ch.Torso | |
263 | ||
264 | local scrn = Instance.new('ScreenGui', Player.PlayerGui) | |
265 | function makeframe(par, trans, pos, size, color) | |
266 | local frame = Instance.new('Frame', par) | |
267 | frame.BackgroundTransparency = trans | |
268 | frame.BorderSizePixel = 0 | |
269 | frame.Position = pos | |
270 | frame.Size = size | |
271 | frame.BackgroundColor3 = color | |
272 | return frame | |
273 | end | |
274 | function makelabel(par, text) | |
275 | local label = Instance.new('TextLabel', par) | |
276 | label.BackgroundTransparency = 1 | |
277 | label.Size = ud(1, 0, 1, 0) | |
278 | label.Position = ud(0, 0, 0, 0) | |
279 | label.TextColor3 = c3(255, 255, 255) | |
280 | label.TextStrokeTransparency = 0 | |
281 | label.FontSize = Enum.FontSize.Size32 | |
282 | label.Font = Enum.Font.SourceSansBold | |
283 | label.BorderSizePixel = 0 | |
284 | label.TextScaled = true | |
285 | label.Text = text | |
286 | end | |
287 | framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
288 | framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
289 | framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
290 | framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
291 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
292 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
293 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
294 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
295 | text1 = makelabel(framesk1, '[3] Skill3') | |
296 | text2 = makelabel(framesk2, '[4] Skill4') | |
297 | text3 = makelabel(framesk3, "[2] Skill2") | |
298 | text4 = makelabel(framesk4, '[q] Jikishi') | |
299 | staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1)) | |
300 | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1)) | |
301 | staminatext = makelabel(staminabar, 'Mana') | |
302 | healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0)) | |
303 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255)) | |
304 | healthtext = makelabel(healthbar, 'Health') | |
305 | ||
306 | local stats = Instance.new('Folder', Character) | |
307 | stats.Name = 'Stats' | |
308 | local block = Instance.new('BoolValue', stats) | |
309 | block.Name = 'Block' | |
310 | block.Value = false | |
311 | local stun = Instance.new('BoolValue', stats) | |
312 | stun.Name = 'Stun' | |
313 | stun.Value = false | |
314 | local defense = Instance.new('NumberValue', stats) | |
315 | defense.Name = 'Defence' | |
316 | defense.Value = defensevalue | |
317 | local speed = Instance.new('NumberValue', stats) | |
318 | speed.Name = 'Speed' | |
319 | speed.Value = speedvalue | |
320 | local damagea = Instance.new('NumberValue', stats) | |
321 | damagea.Name = 'Damage' | |
322 | damagea.Value = damagevalue | |
323 | gyro = Instance.new("BodyGyro") | |
324 | gyro.Parent = nil | |
325 | gyro.P = 1e7 | |
326 | gyro.D = 1e3 | |
327 | gyro.MaxTorque = Vector3.new(0,1e7,0) | |
328 | ||
329 | function atktype(s, e) | |
330 | coroutine.resume(coroutine.create(function() | |
331 | attacktype = e | |
332 | wait(1.5) | |
333 | attacktype = s | |
334 | end)) | |
335 | end | |
336 | ||
337 | function turncrit() | |
338 | coroutine.resume(coroutine.create(function() | |
339 | print'CRITICAL!' | |
340 | crit = true | |
341 | wait(.25) | |
342 | crit = false | |
343 | end)) | |
344 | end | |
345 | ||
346 | function subtractstamina(k) | |
347 | if stamina >= k then | |
348 | stamina = stamina - k | |
349 | end | |
350 | end | |
351 | ||
352 | function clerp(a, b, t) | |
353 | return a:lerp(b, t) | |
354 | end | |
355 | ||
356 | function randomizer(percent) | |
357 | local randomized = math.random(0, 100) | |
358 | if randomized <= percent then | |
359 | return true | |
360 | elseif randomized >= percent then | |
361 | return false | |
362 | end | |
363 | end | |
364 | ||
365 | local RbxUtility = LoadLibrary("RbxUtility") | |
366 | local Create = RbxUtility.Create | |
367 | ||
368 | function RemoveOutlines(part) | |
369 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
370 | end | |
371 | ||
372 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
373 | local Part = Create("Part"){ | |
374 | formFactor = FormFactor, | |
375 | Parent = Parent, | |
376 | Reflectance = Reflectance, | |
377 | Transparency = Transparency, | |
378 | CanCollide = false, | |
379 | Locked = true, | |
380 | BrickColor = BrickColor.new(tostring(BColor)), | |
381 | Name = Name, | |
382 | Size = Size, | |
383 | Material = Material, | |
384 | } | |
385 | RemoveOutlines(Part) | |
386 | return Part | |
387 | end | |
388 | ||
389 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
390 | local Msh = Create(Mesh){ | |
391 | Parent = Part, | |
392 | Offset = OffSet, | |
393 | Scale = Scale, | |
394 | } | |
395 | if Mesh == "SpecialMesh" then | |
396 | Msh.MeshType = MeshType | |
397 | Msh.MeshId = MeshId | |
398 | end | |
399 | return Msh | |
400 | end | |
401 | ||
402 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
403 | local Weld = Create("Weld"){ | |
404 | Parent = Parent, | |
405 | Part0 = Part0, | |
406 | Part1 = Part1, | |
407 | C0 = C0, | |
408 | C1 = C1, | |
409 | } | |
410 | return Weld | |
411 | end | |
412 | ||
413 | function rayCast(pos, dir, maxl, ignore) | |
414 | return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore) | |
415 | end | |
416 | --Effects | |
417 | function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type) | |
418 | local p = Instance.new('Part', par or workspace) | |
419 | p.CFrame = pos1 | |
420 | p.Anchored = true | |
421 | p.Material = 'SmoothPlastic' | |
422 | p.CanCollide = false | |
423 | p.TopSurface = 0 | |
424 | p.Size = Vector3.new(1, 1, 1) | |
425 | p.BottomSurface = 0 | |
426 | p.Transparency = trans | |
427 | p.FormFactor = 'Custom' | |
428 | RemoveOutlines(p) | |
429 | local mesh = Instance.new('SpecialMesh', p) | |
430 | mesh.Scale = size | |
431 | if id ~= nil and type == nil then | |
432 | mesh.MeshId = 'rbxassetid://'..id | |
433 | elseif id == nil and type ~= nil then | |
434 | mesh.MeshType = type | |
435 | elseif id == nil and type == nil then | |
436 | mesh.MeshType = 'Brick' | |
437 | end | |
438 | coroutine.wrap(function() | |
439 | for i = 0, delay1, .1 do | |
440 | wait(1 / 60) | |
441 | p.CFrame = p.CFrame | |
442 | mesh.Scale = mesh.Scale + howmuch | |
443 | p.Transparency = p.Transparency + trans1 | |
444 | end | |
445 | p:Destroy() | |
446 | end)() | |
447 | return p | |
448 | end | |
449 | function clangy(cframe) | |
450 | wait(1 / 60) | |
451 | local clang = {} | |
452 | local dis = 0 | |
453 | local part = Instance.new('Part', nil) | |
454 | part.CFrame = cframe | |
455 | part.Anchored = true | |
456 | part.CanCollide = false | |
457 | part.BrickColor = BrickColor.new('New Yeller') | |
458 | part.FormFactor = 'Custom' | |
459 | part.Name = 'clanger' | |
460 | part.Size = Vector3.new(.2, .2, .2) | |
461 | part.TopSurface = 10 | |
462 | part.BottomSurface = 10 | |
463 | part.RightSurface = 10 | |
464 | part.LeftSurface = 10 | |
465 | part.BackSurface = 10 | |
466 | part.FrontSurface = 10 | |
467 | --part.Material='Neon' | |
468 | part:BreakJoints() | |
469 | local mesh = Instance.new('BlockMesh', part) | |
470 | coroutine.wrap(function() | |
471 | for i = 1, 7 do | |
472 | wait(1 / 60) | |
473 | dis = dis + .2 | |
474 | local partc = part:clone() | |
475 | partc.Parent = workspace | |
476 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
477 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
478 | table.insert(clang, partc) | |
479 | end | |
480 | for i, v in pairs(clang) do | |
481 | coroutine.wrap(function() | |
482 | for i = 1, 10 do | |
483 | wait(.01) | |
484 | v.Transparency = v.Transparency + .1 | |
485 | end | |
486 | v:destroy() | |
487 | end)() | |
488 | end | |
489 | end)() | |
490 | end | |
491 | --damage effects | |
492 | function circle(color, pos1) | |
493 | local p = Instance.new('Part', m) | |
494 | p.BrickColor = BrickColor.new(color) | |
495 | p.CFrame = pos1 | |
496 | p.Anchored = true | |
497 | p.Material = 'Plastic' | |
498 | p.CanCollide = false | |
499 | p.TopSurface = 0 | |
500 | p.Size = Vector3.new(1, 1, 1) | |
501 | p.BottomSurface = 0 | |
502 | p.Transparency = 0.35 | |
503 | p.FormFactor = 'Custom' | |
504 | local mesh = Instance.new('CylinderMesh', p) | |
505 | mesh.Scale = Vector3.new(0, 0, 0) | |
506 | coroutine.wrap(function() | |
507 | for i = 0, 5, .1 do | |
508 | wait(1 / 60) | |
509 | p.CFrame = p.CFrame | |
510 | mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5) | |
511 | p.Transparency = p.Transparency + .025 | |
512 | end | |
513 | p:Destroy() | |
514 | end)() | |
515 | end | |
516 | function firespaz1(color, pos1) | |
517 | local p = Instance.new('Part', m) | |
518 | p.BrickColor = BrickColor.new(color) | |
519 | p.CFrame = pos1 | |
520 | p.Anchored = true | |
521 | p.Material = 'Plastic' | |
522 | p.CanCollide = false | |
523 | p.TopSurface = 0 | |
524 | p.Size = Vector3.new(1, 1, 1) | |
525 | p.BottomSurface = 0 | |
526 | p.Transparency = 0.5 | |
527 | p.FormFactor = 'Custom' | |
528 | local mesh = Instance.new('BlockMesh', p) | |
529 | mesh.Scale = Vector3.new(1, 1, 1) | |
530 | coroutine.wrap(function() | |
531 | for i = 0, 15, .1 do | |
532 | wait(1 / 30) | |
533 | p.CFrame = p.CFrame * CFrame.new(0, .1, 0) | |
534 | mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) | |
535 | p.Transparency = p.Transparency + .025 | |
536 | end | |
537 | p:Destroy() | |
538 | end)() | |
539 | end | |
540 | ||
541 | function pickrandom(tablesa) | |
542 | local randomized = tablesa[math.random(1, #tablesa)] | |
543 | return randomized | |
544 | end | |
545 | function sound(id, pitch, volume, par, last) | |
546 | local s = Instance.new('Sound', par or Torso) | |
547 | s.SoundId = 'rbxassetid://'..id | |
548 | s.Pitch = pitch or 1 | |
549 | s.Volume = volume or 1 | |
550 | wait() | |
551 | s:play() | |
552 | game.Debris:AddItem(s, last or 120) | |
553 | end | |
554 | function clangy(cframe) | |
555 | wait(1 / 60) | |
556 | local clang = {} | |
557 | local dis = 0 | |
558 | local part = Instance.new('Part', nil) | |
559 | part.CFrame = cframe | |
560 | part.Anchored = true | |
561 | part.CanCollide = false | |
562 | part.BrickColor = BrickColor.new('New Yeller') | |
563 | part.FormFactor = 'Custom' | |
564 | part.Name = 'clanger' | |
565 | part.Size = Vector3.new(.2, .2, .2) | |
566 | part.TopSurface = 10 | |
567 | part.BottomSurface = 10 | |
568 | part.RightSurface = 10 | |
569 | part.LeftSurface = 10 | |
570 | part.BackSurface = 10 | |
571 | part.FrontSurface = 10 | |
572 | --part.Material='Neon' | |
573 | part:BreakJoints() | |
574 | local mesh = Instance.new('BlockMesh', part) | |
575 | coroutine.wrap(function() | |
576 | for i = 1, 7 do | |
577 | wait(1 / 60) | |
578 | dis = dis + .2 | |
579 | local partc = part:clone() | |
580 | partc.Parent = workspace | |
581 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
582 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
583 | table.insert(clang, partc) | |
584 | end | |
585 | for i, v in pairs(clang) do | |
586 | coroutine.wrap(function() | |
587 | for i = 1, 10 do | |
588 | wait(.01) | |
589 | v.Transparency = v.Transparency + .1 | |
590 | end | |
591 | v:destroy() | |
592 | end)() | |
593 | end | |
594 | end)() | |
595 | end | |
596 | --damage effects | |
597 | --Effects | |
598 | so = function(id, par, vol, pit) | |
599 | coroutine.resume(coroutine.create(function() | |
600 | local sou = Instance.new("Sound", par or workspace) | |
601 | sou.Volume = vol | |
602 | sou.Pitch = pit or 1 | |
603 | sou.SoundId = id | |
604 | wait() | |
605 | sou:play() | |
606 | game:GetService("Debris"):AddItem(sou, 6) | |
607 | end)) | |
608 | end | |
609 | ||
610 | local function getclosest(obj, distance) | |
611 | local last, lastx = distance + 1 | |
612 | for i, v in pairs(workspace:GetChildren()) do | |
613 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
614 | local t = v.Torso | |
615 | local dist = (t.Position - obj.Position).magnitude | |
616 | if dist <= distance then | |
617 | if dist < last then | |
618 | last = dist | |
619 | lastx = v | |
620 | end | |
621 | end | |
622 | end | |
623 | end | |
624 | return lastx | |
625 | end | |
626 | ||
627 | function makegui(cframe, text) | |
628 | local a = math.random(-10, 10) / 100 | |
629 | local c = Instance.new("Part") | |
630 | c.Transparency = 1 | |
631 | Instance.new("BodyGyro").Parent = c | |
632 | c.Parent = m | |
633 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
634 | local f = Instance.new("BodyPosition") | |
635 | f.P = 2000 | |
636 | f.D = 100 | |
637 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
638 | f.position = c.Position + Vector3.new(0, 3, 0) | |
639 | f.Parent = c | |
640 | game:GetService("Debris"):AddItem(c, .5 + 6) | |
641 | c.CanCollide = false | |
642 | c.CanCollide = false | |
643 | local bg = Instance.new('BillboardGui', m) | |
644 | bg.Adornee = c | |
645 | bg.Size = UDim2.new(1, 0, 1, 0) | |
646 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
647 | bg.AlwaysOnTop = false | |
648 | local tl = Instance.new('TextLabel', bg) | |
649 | tl.BackgroundTransparency = 1 | |
650 | tl.Size = UDim2.new(1, 0, 1, 0) | |
651 | tl.Text = text | |
652 | tl.Font = 'SourceSansBold' | |
653 | tl.FontSize = 'Size42' | |
654 | if crit == true then | |
655 | tl.TextColor3 = Color3.new(180 / 255, 0, 0) | |
656 | else | |
657 | tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255) | |
658 | end | |
659 | tl.TextStrokeTransparency = 0 | |
660 | tl.TextScaled = true | |
661 | tl.TextWrapped = true | |
662 | coroutine.wrap(function() | |
663 | wait(2) | |
664 | for i = 1, 10 do | |
665 | wait() | |
666 | tl.TextTransparency = tl.TextTransparency + .1 | |
667 | end | |
668 | end)() | |
669 | end | |
670 | ||
671 | function tag(hum, Player) | |
672 | local creator = Instance.new('ObjectValue', hum) | |
673 | creator.Value = Player | |
674 | creator.Name = 'creator' | |
675 | end | |
676 | function untag(hum) | |
677 | if hum ~= nil then | |
678 | local tag = hum:findFirstChild("creator") | |
679 | if tag ~= nil then | |
680 | tag.Parent = nil | |
681 | end | |
682 | end | |
683 | end | |
684 | ||
685 | function tagPlayer(h) | |
686 | coroutine.wrap(function() | |
687 | tag(h, Player) | |
688 | wait(1) | |
689 | untag(h) | |
690 | end)() | |
691 | end | |
692 | ||
693 | function CheckClose(Obj,Dist) | |
694 | for _,v in pairs(workspace:GetChildren()) do | |
695 | if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Character then | |
696 | local DistFromTorso = (v.Torso.Position - Obj.Position).magnitude | |
697 | if DistFromTorso < Dist then | |
698 | return v | |
699 | end | |
700 | end | |
701 | end | |
702 | end | |
703 | ||
704 | function damage(hit, mind, maxd, knock, type, prop) | |
705 | --[[ | |
706 | to apply it to a Player directly, make the first arg go to the Players Torso | |
707 | 1 - normal type(damage and knockback) | |
708 | 2 - drain type(damage no knockback) | |
709 | 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed | |
710 | 4 - heal(heals target) | |
711 | 5 - subtracts enemies defense | |
712 | 6 - subtracts enemies speed | |
713 | 7 - | |
714 | ]] | |
715 | if hit.Name:lower() == 'Hitbox' then | |
716 | local pos = CFrame.new(0, 1, -1) | |
717 | sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6) | |
718 | coroutine.wrap(function() | |
719 | for i = 1, 4 do | |
720 | clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)) | |
721 | end | |
722 | end)() | |
723 | end | |
724 | if hit.Parent == nil then | |
725 | return | |
726 | end | |
727 | local h = hit.Parent:FindFirstChild("Humanoid") | |
728 | for i, v in pairs(hit.Parent:children()) do | |
729 | if v:IsA("Humanoid") then | |
730 | h = v | |
731 | end | |
732 | end | |
733 | if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then | |
734 | h = hit.Parent.Parent:FindFirstChild('Humanoid') | |
735 | end | |
736 | if hit.Parent:IsA('Hat') then | |
737 | hit = hit.Parent.Parent:findFirstChild('Head') | |
738 | end | |
739 | local D = math.random(mind, maxd) * damagea.Value | |
740 | if h.Parent:FindFirstChild('Stats') then | |
741 | D = D / h.Parent:FindFirstChild('Stats').Defence.Value | |
742 | elseif not h.Parent:FindFirstChild('Stats') then | |
743 | D = D | |
744 | end | |
745 | if h then | |
746 | makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5))) | |
747 | end | |
748 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
749 | if type == 1 then | |
750 | tagPlayer(h) | |
751 | local asd = randomizer(critchance) | |
752 | if asd == true then | |
753 | turncrit() | |
754 | end | |
755 | if crit == false then | |
756 | h.Health = h.Health - D | |
757 | else | |
758 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
759 | end | |
760 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
761 | local vp = Instance.new('BodyVelocity') | |
762 | vp.P = 500 | |
763 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
764 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
765 | if knock > 0 then | |
766 | vp.Parent = hit.Parent.Torso | |
767 | end | |
768 | game:GetService("Debris"):AddItem(vp, .5) | |
769 | elseif type == 2 then | |
770 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
771 | local asd = randomizer(critchance) | |
772 | if asd == true then | |
773 | turncrit() | |
774 | end | |
775 | if crit == false then | |
776 | h.Health = h.Health - D | |
777 | else | |
778 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
779 | end | |
780 | tagPlayer(h) | |
781 | elseif type == 3 then | |
782 | tagPlayer(h) | |
783 | local asd = randomizer(critchance) | |
784 | if asd == true then | |
785 | turncrit() | |
786 | end | |
787 | if crit == false then | |
788 | h.Health = h.Health - D | |
789 | else | |
790 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
791 | end | |
792 | Character.Humanoid.Health = Character.Humanoid.Health + D / 2 | |
793 | so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5) | |
794 | for i = 1, 10 do | |
795 | firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))) | |
796 | end | |
797 | elseif type == 4 then | |
798 | h.Health = h.Health + D | |
799 | so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1) | |
800 | circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0)) | |
801 | end | |
802 | end | |
803 | end | |
804 | ||
805 | function subtrackstamina(k) | |
806 | if stamina >= k then | |
807 | stamina = stamina - k | |
808 | end | |
809 | end | |
810 | ||
811 | HandleA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HandleA",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
812 | HandleAweld=CreateWeld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.96914959, -0.0125427246, 0.385789871, 1.75864163e-012, -0.999996305, 5.21540642e-007, 1, 1.75863566e-012, 9.87516926e-013, -9.87517793e-013, 5.21538709e-007, 1)) | |
813 | CreateMesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
814 | HandleB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HandleB",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
815 | HandleBweld=CreateWeld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.96914959, -0.0415725708, 0.385789871, 1.75864163e-012, -0.999996305, 5.21540642e-007, 1, 1.75863566e-012, 9.87516926e-013, -9.87517793e-013, 5.21538709e-007, 1)) | |
816 | CreateMesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
817 | FakeHandleA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","FakeHandleA",Vector3.new(0.200000003, 0.256000012, 0.496000051)) | |
818 | FakeHandleAweld=CreateWeld(m,HandleA,FakeHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, -2.70708814e-020, 0, -2.70708814e-020, 1, 0, 0, 0, 1)) | |
819 | CreateMesh("BlockMesh",FakeHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
820 | BarrelA=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","BarrelA",Vector3.new(0.200000003, 0.200000003, 0.512000024)) | |
821 | BarrelAweld=CreateWeld(m,FakeHandleA,BarrelA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00650787354, -0.375404358, -2.42294502, 4.16033035e-005, -1, 4.46682229e-008, 4.43546014e-007, -4.46531985e-008, -1, 1, 4.16033035e-005, 4.43542376e-007)) | |
822 | CreateMesh("SpecialMesh",BarrelA,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.153600022, 0.140799999, 0.447999448)) | |
823 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.28000021)) | |
824 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.119544983, -0.121589661, 1.78291702, -6.37476187e-005, 4.76194713e-013, 0.999996901, -5.47054914e-013, 0.999996901, -7.60343774e-013, -1, -8.91774122e-013, -5.38835739e-005)) | |
825 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
826 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.384000033, 0.339200079)) | |
827 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640106201, 0.630371094, -6.47408015e-005, 7.84722764e-014, 0.999998569, -3.66998706e-012, 0.999998569, -1.63487659e-013, -1, -3.82280969e-012, -6.01361753e-005)) | |
828 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.256000012)) | |
829 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.128004074, 0.192035675, -1.79853174e-007, -1, -1.51764738e-007, 0.499996454, -2.21358675e-007, 0.866026282, -0.866026223, 7.98759316e-008, 0.499996454)) | |
830 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
831 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
832 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546047, -0.370124817, -0.202838898, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
833 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.115200005, 0.115200005, 0.447999448)) | |
834 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.339200139)) | |
835 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.503520966, 0.00640106201, 0.969585419, -9.1756061e-005, 4.99451825e-014, 1, -2.86708916e-012, 1, -5.020821e-014, -1, -2.86709372e-012, -9.1756061e-005)) | |
836 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
837 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.339200139)) | |
838 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.311544418, -0.12159729, 0.969573975, -6.47460765e-005, -6.7951287e-015, 0.999998569, -3.65221698e-012, 0.999998569, -2.48750727e-013, -1, -3.84057283e-012, -6.01309002e-005)) | |
839 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
840 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.200000003, 0.200000003)) | |
841 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375535965, -0.121589661, 1.20691872, -6.56298071e-005, 4.76194442e-013, 1, -4.9733736e-013, 1, -4.76227022e-013, -1, -4.97368585e-013, -6.56298071e-005)) | |
842 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.704000056)) | |
843 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
844 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.127998352, 0, 0.255999565, 0.499999821, 1.38461152e-011, 0.866025269, -1.16909017e-011, 1, -9.23837656e-012, -0.866025209, -5.50542771e-012, 0.499999821)) | |
845 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
846 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.200000003)) | |
847 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.128002167, 2.67028809e-005, 2.98034593e-007, -1, 7.74869136e-007, 0.500002921, 8.20073808e-007, 0.866023064, -0.866023004, 1.29332093e-007, 0.500002921)) | |
848 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.640000105)) | |
849 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.243200049, 0.512000024)) | |
850 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 7.62939453e-006, -0.447894096, 0.499994576, 3.01597532e-011, 0.866018713, -2.50146275e-011, 0.999995053, -2.05416344e-011, -0.866017878, -1.14053853e-011, 0.499993682)) | |
851 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
852 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.256000012, 0.200000003, 0.249600157)) | |
853 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52622414, 0.138786316, 0.999559402, -0.707390428, -2.36573001e-012, 0.706825316, 7.26157936e-012, 0.999998569, 1.03766258e-011, -0.706822991, 1.242495e-011, -0.707386136)) | |
854 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
855 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.640000045, 0.640000045)) | |
856 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247411728, 0.00640106201, 0.480004311, -1.30890949e-005, 9.87543597e-013, 1, 2.16009654e-012, 1, -9.87514866e-013, -1, 2.16008418e-012, -1.30890949e-005)) | |
857 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
858 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.339200139)) | |
859 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.311553955, 0.134399414, 0.969578743, -7.60540061e-005, -6.8364368e-015, 1, -3.32184042e-012, 1, 6.58381769e-015, -1, -3.32183955e-012, -7.60540061e-005)) | |
860 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
861 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
862 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.480007172, -0.247407913, -0.185581207, 1, 4.16033035e-005, -4.7685171e-007, -4.76891728e-007, 9.65081313e-007, -1, -4.16033035e-005, 1, 9.65104618e-007)) | |
863 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.320000023, 0.320000023, 2.08639956)) | |
864 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.256000012, 0.200000003, 0.249600157)) | |
865 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52619648, -0.125507355, 0.999582291, -0.707382321, -9.27554908e-013, 0.706833422, 8.0601914e-012, 0.999998569, 9.14097357e-012, -0.706831098, 1.21153313e-011, -0.70737803)) | |
866 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
867 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
868 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546524, -0.370138168, 0.181156158, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
869 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.115200005, 0.115200005, 0.447999448)) | |
870 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.256000012, 0.256000012)) | |
871 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-006, 0, -0.448005676, 0.499998838, 4.82502233e-012, 0.866024554, -2.13518244e-012, 1, -4.3588232e-012, -0.866024792, 4.25874071e-013, 0.499998927)) | |
872 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
873 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.200000003)) | |
874 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -4.29153442e-005, 0.127996445, -2.58063409e-007, -1, 4.14316702e-007, 0.866026998, -4.30647162e-007, -0.499996841, 0.499996811, 2.29778649e-007, 0.866026998)) | |
875 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.640000105)) | |
876 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.256000012)) | |
877 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.128002167, 0.0639677048, -8.49376818e-007, 1, -1.90735591e-006, 0.500001371, 2.07650851e-006, 0.866023898, 0.866023898, -2.18100411e-007, -0.50000149)) | |
878 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
879 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
880 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546524, -0.370138168, 0.181156158, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
881 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0768000111, 0.0896000117, 0.447999448)) | |
882 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
883 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.128002167, 0, -0.255997658, 0.499999672, 1.36613611e-011, 0.866024077, -1.16269529e-011, 1, -9.08205802e-012, -0.866024315, -5.43262137e-012, 0.499999762)) | |
884 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
885 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.256000012, 0.200000003)) | |
886 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0639648438, 0.127994537, 6.71324528e-007, 0.999995053, 5.07118841e-007, -0.866017222, 3.278262e-007, 0.499994814, 0.499995708, -7.74842817e-007, 0.866018057)) | |
887 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.640000105)) | |
888 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.384000033)) | |
889 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0724544525, 0.735972404, -0.00640106201, -6.44168395e-005, 3.14877468e-007, 0.999998569, -1, -5.96083751e-008, -5.98121624e-005, 5.95880181e-008, -0.999998569, 3.14881191e-007)) | |
890 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
891 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.256000012, 0.200000003, 1.61920011)) | |
892 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0555686951, 0.00640106201, 1.60957241, -7.2596129e-005, 5.00198841e-014, 0.999998569, -3.4390624e-012, 0.999998569, -1.35049524e-013, -1, -3.59188373e-012, -6.79914956e-005)) | |
893 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
894 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
895 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.49999997, 1.38461196e-011, 0.866025507, -1.16909017e-011, 1, -9.23837656e-012, -0.866025448, -5.50543031e-012, 0.49999997)) | |
896 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
897 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.640000045, 0.640000045)) | |
898 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640106201, 0.4799757, -6.47454726e-005, -6.7951287e-015, 0.999998569, -3.65221698e-012, 0.999998569, -2.48750727e-013, -1, -3.84057283e-012, -6.01315041e-005)) | |
899 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
900 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
901 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375492096, 0.134399414, 1.85013199, -3.86866304e-005, 4.47896277e-013, 0.999998569, -4.51189823e-012, 0.999998569, -5.32840699e-013, -1, -4.66473214e-012, -3.40820479e-005)) | |
902 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
903 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
904 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375541687, -0.121589661, 1.85011864, -6.34202806e-005, 4.76195092e-013, 0.999997139, -5.54160559e-013, 0.999997139, -7.60344316e-013, -1, -8.84668803e-013, -5.42109265e-005)) | |
905 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
906 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.256000012, 0.200000003, 0.384000033)) | |
907 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.369918823, 2.35839176, -0.00639343262, -6.70053632e-005, 3.14878548e-007, 1, -1, -5.96450818e-008, -6.70053632e-005, 5.96239929e-008, -1, 3.14882556e-007)) | |
908 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672000051, 1)) | |
909 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
910 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78545761, -0.370113373, -0.202846527, -1, -2.91119595e-005, -0.000384613872, 0.000384613057, 2.89192758e-005, -1, 2.91230808e-005, -1, -2.89080763e-005)) | |
911 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0768000111, 0.0896000117, 0.447999448)) | |
912 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.61920011)) | |
913 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00845146179, 0.134399414, 1.60957241, -6.47431807e-005, -6.7951287e-015, 0.999998569, -3.65221698e-012, 0.999998569, -2.48750727e-013, -1, -3.84057283e-012, -6.01337961e-005)) | |
914 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
915 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.512000024, 1.61920011, 0.384000033)) | |
916 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0725307465, 1.60959148, -0.00640106201, -2.98303694e-005, 3.14878463e-007, 1, -1, -5.96094196e-008, -2.98303694e-005, 5.96000334e-008, -1, 3.14880253e-007)) | |
917 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
918 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.384000033, 0.640000045)) | |
919 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640106201, 0.4799757, -6.47453999e-005, -6.7951287e-015, 0.999998569, -3.65221698e-012, 0.999998569, -2.48750727e-013, -1, -3.84057283e-012, -6.01315769e-005)) | |
920 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
921 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
922 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.503547668, 0.00639343262, 1.20689487, -0.000104134786, 2.20283698e-013, 1, -2.54377313e-012, 1, -2.20548514e-013, -1, -2.54379612e-012, -0.000104134786)) | |
923 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 0.704000056)) | |
924 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
925 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479990959, -0.247407913, 0.198421478, 1, 4.16033035e-005, -4.7685171e-007, -4.76891728e-007, 9.65081313e-007, -1, -4.16033035e-005, 1, 9.65104618e-007)) | |
926 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.320000023, 0.320000023, 2.08639956)) | |
927 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
928 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.127994537, 0, -0.25599575, 0.500000298, 1.36755893e-011, 0.866025329, -1.15810217e-011, 1, -9.1049026e-012, -0.866025269, -5.47700297e-012, 0.500000298)) | |
929 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
930 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.200000003, 0.200000003)) | |
931 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.3754673, 0.134399414, 1.20693207, -3.41913183e-005, 4.47918449e-013, 0.999998569, -4.64334864e-012, 0.999998569, -5.32845794e-013, -1, -4.79617995e-012, -2.9586743e-005)) | |
932 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.704000056)) | |
933 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
934 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479964256, -0.247545242, 0.262424469, 1, 4.16032526e-005, 6.01762658e-005, 6.47900524e-005, 9.65080972e-007, -0.999998569, -4.16033727e-005, 0.999998569, 9.62580543e-007)) | |
935 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.243199989, 0.243199989, 1.47199988)) | |
936 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
937 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375528336, 0.00639343262, 1.84636974, -0.000123670645, 5.04564869e-013, 0.999998569, -2.03210604e-012, 0.999998569, -5.896105e-013, -1, -2.18498808e-012, -0.000119065939)) | |
938 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
939 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.28000021)) | |
940 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.119522095, 0.134399414, 1.78292942, -4.50793596e-005, 4.19445891e-013, 1, -4.32361742e-012, 1, -4.19640776e-013, -1, -4.3236365e-012, -4.50793596e-005)) | |
941 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
942 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
943 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479986191, -0.247545242, -0.249576569, 1, 4.16032526e-005, 6.01762658e-005, 6.47900524e-005, 9.65080972e-007, -0.999998569, -4.16033727e-005, 0.999998569, 9.62580543e-007)) | |
944 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.243199989, 0.243199989, 1.47199988)) | |
945 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.61920011)) | |
946 | Partweld=CreateWeld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00845146179, -0.12159729, 1.60957241, -6.47456545e-005, -6.7951287e-015, 0.999998569, -3.65221698e-012, 0.999998569, -2.48750727e-013, -1, -3.84057283e-012, -6.01313222e-005)) | |
947 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
948 | FakeHandleB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","FakeHandleB",Vector3.new(0.200000003, 0.256000012, 0.496000051)) | |
949 | FakeHandleBweld=CreateWeld(m,HandleB,FakeHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, -2.70708814e-020, 0, -2.70708814e-020, 1, 0, 0, 0, 1)) | |
950 | CreateMesh("BlockMesh",FakeHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
951 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.61920011)) | |
952 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00845146179, -0.121593475, 1.60957336, -6.47457127e-005, -6.3638656e-014, 0.999998569, -3.63800266e-012, 0.999998569, -3.0559317e-013, -1, -3.85478368e-012, -6.0131264e-005)) | |
953 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
954 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.28000021)) | |
955 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.119544983, -0.121589661, 1.78291702, -6.37476187e-005, 4.76194713e-013, 0.999996901, -5.47054914e-013, 0.999996901, -7.60343774e-013, -1, -8.91774122e-013, -5.38835739e-005)) | |
956 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
957 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.384000033, 0.339200079)) | |
958 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640869141, 0.630371094, -6.47408015e-005, 7.84722764e-014, 0.999998569, -3.66998706e-012, 0.999998569, -1.63487659e-013, -1, -3.82280969e-012, -6.01361753e-005)) | |
959 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.256000012)) | |
960 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.128002167, 0.192035675, -1.79853174e-007, -1, -1.51764738e-007, 0.499996454, -2.21358675e-007, 0.866026282, -0.866026223, 7.98759316e-008, 0.499996454)) | |
961 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
962 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
963 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546143, -0.370124817, -0.202846527, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
964 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.115200005, 0.115200005, 0.447999448)) | |
965 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.339200139)) | |
966 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.503541946, 0.00639343262, 0.969587326, -8.2750259e-005, -6.86213239e-015, 1, -3.11578432e-012, 1, 6.60430911e-015, -1, -3.11578346e-012, -8.2750259e-005)) | |
967 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
968 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.339200139)) | |
969 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.311544418, -0.121593475, 0.969573975, -6.47620036e-005, -6.36387644e-014, 0.999998569, -3.63800266e-012, 0.999998569, -3.0559317e-013, -1, -3.85478368e-012, -6.01149695e-005)) | |
970 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
971 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.200000003, 0.200000003)) | |
972 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.3754673, -0.121593475, 1.20693207, -3.53266842e-005, 4.76335334e-013, 1, -4.61138289e-012, 1, -4.76498127e-013, -1, -4.6113998e-012, -3.53266842e-005)) | |
973 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.704000056)) | |
974 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
975 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.127998352, 0, 0.255999565, 0.499999821, 1.38461152e-011, 0.866025269, -1.16909017e-011, 1, -9.23837656e-012, -0.866025209, -5.50542771e-012, 0.499999821)) | |
976 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
977 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.200000003)) | |
978 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -0.128002167, 2.67028809e-005, 2.98034593e-007, -1, 7.74869136e-007, 0.500002921, 8.20073808e-007, 0.866023064, -0.866023004, 1.29332093e-007, 0.500002921)) | |
979 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.640000105)) | |
980 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.243200049, 0.512000024)) | |
981 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 1.52587891e-005, -0.447894096, 0.499994576, 3.01597532e-011, 0.866018713, -2.50146275e-011, 0.999995053, -2.05416344e-011, -0.866017878, -1.14053853e-011, 0.499993682)) | |
982 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
983 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.256000012, 0.200000003, 0.249600157)) | |
984 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52622414, 0.138793945, 0.999559402, -0.707390428, -2.36573001e-012, 0.706825316, 7.26157936e-012, 0.999998569, 1.03766258e-011, -0.706822991, 1.242495e-011, -0.707386136)) | |
985 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
986 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.640000045, 0.640000045)) | |
987 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247411728, 0.00640106201, 0.480004311, -1.30890949e-005, 9.87543597e-013, 1, 2.16009654e-012, 1, -9.87514866e-013, -1, 2.16008418e-012, -1.30890949e-005)) | |
988 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
989 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.339200139)) | |
990 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.311553955, 0.134407043, 0.969582558, -7.60542825e-005, -6.36801809e-014, 1, -3.30763455e-012, 1, 6.3428646e-014, -1, -3.30762999e-012, -7.60542825e-005)) | |
991 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
992 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
993 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.480007172, -0.247407913, -0.185573578, 1, 4.16033035e-005, -4.7685171e-007, -4.76891728e-007, 9.65081313e-007, -1, -4.16033035e-005, 1, 9.65104618e-007)) | |
994 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.320000023, 0.320000023, 2.08639956)) | |
995 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.256000012, 0.200000003, 0.249600157)) | |
996 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52619648, -0.12550354, 0.999582291, -0.707382321, -9.27554908e-013, 0.706833422, 8.0601914e-012, 0.999998569, 9.14097357e-012, -0.706831098, 1.21153313e-011, -0.70737803)) | |
997 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
998 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
999 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546524, -0.370138168, 0.181156158, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
1000 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.115200005, 0.115200005, 0.447999448)) | |
1001 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.256000012, 0.256000012)) | |
1002 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, 0, -0.44802475, 0.499999821, 2.87913812e-012, 0.866025627, -5.11821054e-013, 1, -3.0290436e-012, -0.866025567, 1.07127198e-012, 0.499999821)) | |
1003 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
1004 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.200000003)) | |
1005 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -4.29153442e-005, 0.127996445, -2.58063409e-007, -1, 4.14316702e-007, 0.866026998, -4.30647162e-007, -0.499996841, 0.499996811, 2.29778649e-007, 0.866026998)) | |
1006 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.640000105)) | |
1007 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.200000003, 0.256000012)) | |
1008 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.128002167, 0.0639677048, -8.49376818e-007, 1, -1.90735591e-006, 0.500001371, 2.07650851e-006, 0.866023898, 0.866023898, -2.18100411e-007, -0.50000149)) | |
1009 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1010 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
1011 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78546524, -0.370138168, 0.181156158, -0.99999994, -2.91117576e-005, -0.00038461131, 0.000389215566, 2.89187028e-005, -0.99999851, 2.91230535e-005, -0.999998569, -2.89075051e-005)) | |
1012 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0768000111, 0.0896000117, 0.447999448)) | |
1013 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
1014 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.128002167, 7.62939453e-006, -0.255997658, 0.499999672, 1.36613611e-011, 0.866024077, -1.16269529e-011, 1, -9.08205802e-012, -0.866024315, -5.43262137e-012, 0.499999762)) | |
1015 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
1016 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.256000012, 0.256000012, 0.200000003)) | |
1017 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.0639648438, 0.127996445, 6.71324528e-007, 0.999995053, 5.07118841e-007, -0.866017222, 3.278262e-007, 0.499994814, 0.499995708, -7.74842817e-007, 0.866018057)) | |
1018 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.640000105)) | |
1019 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.512000024, 0.200000003, 0.384000033)) | |
1020 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0724544525, 0.735972404, -0.00640869141, -6.44168395e-005, 3.14877468e-007, 0.999998569, -1, -5.96083751e-008, -5.98121624e-005, 5.95880181e-008, -0.999998569, 3.14881191e-007)) | |
1021 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1022 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.256000012, 0.200000003, 1.61920011)) | |
1023 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0555686951, 0.00640869141, 1.60957241, -7.2596129e-005, 5.00198841e-014, 0.999998569, -3.4390624e-012, 0.999998569, -1.35049524e-013, -1, -3.59188373e-012, -6.79914956e-005)) | |
1024 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1025 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.256000012, 0.896000028)) | |
1026 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.49999997, 1.38461196e-011, 0.866025507, -1.16909017e-011, 1, -9.23837656e-012, -0.866025448, -5.50543031e-012, 0.49999997)) | |
1027 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
1028 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.640000045, 0.640000045)) | |
1029 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640869141, 0.4799757, -6.47458946e-005, -6.3638656e-014, 0.999998569, -3.63800266e-012, 0.999998569, -3.0559317e-013, -1, -3.85478368e-012, -6.01310821e-005)) | |
1030 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1031 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
1032 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375492096, 0.134399414, 1.85013199, -3.86866304e-005, 4.47896277e-013, 0.999998569, -4.51189823e-012, 0.999998569, -5.32840699e-013, -1, -4.66473214e-012, -3.40820479e-005)) | |
1033 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1034 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
1035 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375541687, -0.121589661, 1.85011864, -6.34202806e-005, 4.76195092e-013, 0.999997139, -5.54160559e-013, 0.999997139, -7.60344316e-013, -1, -8.84668803e-013, -5.42109265e-005)) | |
1036 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1037 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.256000012, 0.200000003, 0.384000033)) | |
1038 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.369916916, 2.35839176, -0.00639343262, -6.70053632e-005, 3.14878548e-007, 1, -1, -5.96450818e-008, -6.70053632e-005, 5.96239929e-008, -1, 3.14882556e-007)) | |
1039 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.672000051, 1)) | |
1040 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
1041 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.78545856, -0.370113373, -0.202846527, -1, -2.91119595e-005, -0.000384613872, 0.000384613057, 2.89192758e-005, -1, 2.91230808e-005, -1, -2.89080763e-005)) | |
1042 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0768000111, 0.0896000117, 0.447999448)) | |
1043 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.61920011)) | |
1044 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00845146179, 0.134407043, 1.60957336, -6.4748041e-005, -6.3638656e-014, 0.999998569, -3.63800266e-012, 0.999998569, -3.0559317e-013, -1, -3.85478368e-012, -6.01289321e-005)) | |
1045 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
1046 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.512000024, 1.61920011, 0.384000033)) | |
1047 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0725326538, 1.60959148, -0.00640106201, -2.98303694e-005, 3.14878463e-007, 1, -1, -5.96094196e-008, -2.98303694e-005, 5.96000334e-008, -1, 3.14880253e-007)) | |
1048 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1049 | Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.640000045, 0.384000033, 0.640000045)) | |
1050 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.247545242, 0.00640106201, 0.4799757, -6.47458219e-005, -6.3638656e-014, 0.999998569, -3.63800266e-012, 0.999998569, -3.0559317e-013, -1, -3.85478368e-012, -6.01311513e-005)) | |
1051 | CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1052 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1053 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.503547668, 0.00640106201, 1.20689487, -0.000104134786, 2.20283698e-013, 1, -2.54377313e-012, 1, -2.20548514e-013, -1, -2.54379612e-012, -0.000104134786)) | |
1054 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 0.704000056)) | |
1055 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.256000012)) | |
1056 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479991913, -0.247407913, 0.198429108, 1, 4.16033035e-005, -4.7685171e-007, -4.76891728e-007, 9.65081313e-007, -1, -4.16033035e-005, 1, 9.65104618e-007)) | |
1057 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.320000023, 0.320000023, 2.08639956)) | |
1058 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.200000003, 0.256000012, 0.384000003)) | |
1059 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.127994537, 7.62939453e-006, -0.25599575, 0.500000298, 1.36755893e-011, 0.866025329, -1.15810217e-011, 1, -9.1049026e-012, -0.866025269, -5.47700297e-012, 0.500000298)) | |
1060 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 1, 1)) | |
1061 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.384000033, 0.200000003, 0.200000003)) | |
1062 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.3754673, 0.134407043, 1.20693207, -3.41913183e-005, 4.47918449e-013, 0.999998569, -4.64334864e-012, 0.999998569, -5.32845794e-013, -1, -4.79617995e-012, -2.9586743e-005)) | |
1063 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 0.704000056)) | |
1064 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1065 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479966164, -0.247543335, 0.262420654, 1, 4.16032526e-005, 6.01758402e-005, 6.47904744e-005, 9.65080972e-007, -0.999998569, -4.16033727e-005, 0.999998569, 9.62580543e-007)) | |
1066 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.243199989, 0.243199989, 1.47199988)) | |
1067 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.384000033, 0.200000003, 1.1456002)) | |
1068 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.375528336, 0.00640106201, 1.84636974, -0.000123670645, 5.04564869e-013, 0.999998569, -2.03210604e-012, 0.999998569, -5.896105e-013, -1, -2.18498808e-012, -0.000119065939)) | |
1069 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.640000105, 1)) | |
1070 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 1.28000021)) | |
1071 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.119522095, 0.134399414, 1.78292942, -4.50793596e-005, 4.19445891e-013, 1, -4.32361742e-012, 1, -4.19640776e-013, -1, -4.3236365e-012, -4.50793596e-005)) | |
1072 | CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.640000105, 0.640000105, 1)) | |
1073 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1074 | Partweld=CreateWeld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.479986191, -0.247543335, -0.249576569, 1, 4.16032526e-005, 6.01758402e-005, 6.47904744e-005, 9.65080972e-007, -0.999998569, -4.16033727e-005, 0.999998569, 9.62580543e-007)) | |
1075 | CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.243199989, 0.243199989, 1.47199988)) | |
1076 | BarrelB=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","BarrelB",Vector3.new(0.200000003, 0.200000003, 0.512000024)) | |
1077 | BarrelBweld=CreateWeld(m,FakeHandleB,BarrelB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00651550293, -0.375404358, -2.42294502, 4.16033035e-005, -1, 4.46682229e-008, 4.43546014e-007, -4.46531985e-008, -1, 1, 4.16033035e-005, 4.43542376e-007)) | |
1078 | CreateMesh("SpecialMesh",BarrelB,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.153600022, 0.140799999, 0.447999448)) | |
1079 | ||
1080 | local lasrs = {} | |
1081 | local lasrspd = 6 | |
1082 | local maxTravelDistance = 100 | |
1083 | local maxRebounds = 5 | |
1084 | ||
1085 | function RAY(pos, dir, collidedlist, startpos, endpos, distleft) | |
1086 | collidedlist = collidedlist or {Character} | |
1087 | startpos = startpos or pos | |
1088 | distleft = distleft or dir.unit * dir.magnitude | |
1089 | endpos = endpos or pos + distleft | |
1090 | local ray = Ray.new(pos, distleft) | |
1091 | local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist) | |
1092 | if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then | |
1093 | if hitz.CanCollide == false then | |
1094 | table.insert(collidedlist, hitz) | |
1095 | local newpos = enz | |
1096 | local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude) | |
1097 | if newdistleft then | |
1098 | return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01)) | |
1099 | end | |
1100 | end | |
1101 | end | |
1102 | return hitz, enz, ray | |
1103 | end | |
1104 | ||
1105 | function FindSurface(part, position) | |
1106 | local obj = part.CFrame:pointToObjectSpace(position) | |
1107 | local siz = part.Size/2 | |
1108 | for i,v in pairs(Enum.NormalId:GetEnumItems()) do | |
1109 | local vec = Vector3.FromNormalId(v) | |
1110 | local wvec = part.CFrame:vectorToWorldSpace(vec) | |
1111 | local vz = (obj)/(siz*vec) | |
1112 | if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then | |
1113 | return wvec,vec | |
1114 | end | |
1115 | end | |
1116 | if part.className == "WedgePart" then | |
1117 | local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p | |
1118 | local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p | |
1119 | local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos) | |
1120 | return wvec,vec | |
1121 | elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then | |
1122 | return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit) | |
1123 | end | |
1124 | end | |
1125 | ||
1126 | function Reflect(direction, normal) | |
1127 | return direction - 2 * normal:Dot(direction) * normal | |
1128 | end | |
1129 | ||
1130 | function ReflectShot(mouse,asd) | |
1131 | local dir = (mouse.Hit.p - Torso.Position).unit | |
1132 | local tabl | |
1133 | local tablnum = 0 | |
1134 | for i, v in pairs(lasrs) do | |
1135 | if not v[1] then | |
1136 | tabl = v | |
1137 | tablnum = i | |
1138 | break | |
1139 | end | |
1140 | end | |
1141 | if not tabl then | |
1142 | tablnum = #lasrs + 1 | |
1143 | tabl = {false,nil,nil,0,0,1,{},{},{},{}} | |
1144 | for i = 1, 2 do | |
1145 | for j = 1, 6 do | |
1146 | local p = Instance.new("Part") | |
1147 | p.FormFactor = "Custom" | |
1148 | p.CanCollide = false | |
1149 | p.Anchored = true | |
1150 | p.Locked = true | |
1151 | p.BrickColor = BarrelA.BrickColor | |
1152 | p.TopSurface = 10 | |
1153 | p.BottomSurface = 10 | |
1154 | p.RightSurface = 10 | |
1155 | p.LeftSurface = 10 | |
1156 | p.FrontSurface = 10 | |
1157 | p.BackSurface = 10 | |
1158 | p.Size = Vector3.new(.5,.5,.5) | |
1159 | p.Material = "Neon" | |
1160 | p.Transparency = i == 1 and 0 or 0.6 | |
1161 | local mesh = Instance.new("CylinderMesh",p) | |
1162 | table.insert(tabl[6+i],p) | |
1163 | table.insert(tabl[8+i],mesh) | |
1164 | end | |
1165 | end | |
1166 | table.insert(lasrs,tabl) | |
1167 | end | |
1168 | -- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer | |
1169 | tabl[4],tabl[5] = 0,0 | |
1170 | tabl[3] = asd.Position | |
1171 | tabl[2] = dir | |
1172 | tabl[1] = true | |
1173 | ||
1174 | end | |
1175 | ||
1176 | gun = false | |
1177 | ||
1178 | shoot = false | |
1179 | ||
1180 | gunidle = false | |
1181 | ||
1182 | local GunA = true | |
1183 | local GunB = false | |
1184 | ||
1185 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1186 | local prt = CreatePart(3, Character, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.1, 0.1, 0.1)) | |
1187 | prt.Anchored = true | |
1188 | prt.CFrame = cframe | |
1189 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1190 | game:GetService("Debris"):AddItem(prt, 5) | |
1191 | Effects[#Effects + 1] = { | |
1192 | prt, | |
1193 | "Cylinder", | |
1194 | delay, | |
1195 | x3, | |
1196 | y3, | |
1197 | z3 | |
1198 | } --part, type, delay | |
1199 | end | |
1200 | ||
1201 | function Shoot(asd, spread1, spread2) | |
1202 | local MainPos = asd.Position | |
1203 | local MainPos2 = mouse.Hit.p | |
1204 | local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100 | |
1205 | local MouseLook = cn((MainPos + MainPos2) / 2, MainPos2 + spread) | |
1206 | num = 30 | |
1207 | coroutine.resume(coroutine.create(function(Spreaded) | |
1208 | repeat | |
1209 | wait() | |
1210 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent) | |
1211 | local TheHit = mouse.Hit.p | |
1212 | local mag = (MainPos - pos).magnitude | |
1213 | CylinderEffect(BrickColor.new(asd.BrickColor.Color), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1) | |
1214 | MainPos = MainPos + (MouseLook.lookVector * 10) | |
1215 | num = num - 1 | |
1216 | if hit ~= nil then | |
1217 | num = 0 | |
1218 | local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new()) | |
1219 | ref.Anchored = true | |
1220 | ref.CFrame = cn(pos) | |
1221 | damage(hit.Parent:WaitForChild("Torso"), math.random(1,3), math.random(3,5), 5, 1, RootPart) | |
1222 | game:GetService("Debris"):AddItem(ref, 5) | |
1223 | end | |
1224 | until num <= 0 | |
1225 | end)) | |
1226 | end | |
1227 | ||
1228 | function GunStance() | |
1229 | attack=true | |
1230 | gun=true | |
1231 | Humanoid.WalkSpeed = 0 | |
1232 | gyro.Parent = RootPart | |
1233 | if GunA == true then | |
1234 | for i=0,1,0.2 do | |
1235 | wait() | |
1236 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1237 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(5), math.rad(-90)), .25) | |
1238 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), .25) | |
1239 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), .25) | |
1240 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1241 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1242 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), 5*i, math.rad(0)), .75) | |
1243 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1244 | end | |
1245 | for i=0,1,0.1 do | |
1246 | wait() | |
1247 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1248 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1249 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), .25) | |
1250 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-10)), .25) | |
1251 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1252 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1253 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1254 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1255 | end | |
1256 | elseif GunB == true then | |
1257 | for i=0,1,0.2 do | |
1258 | wait() | |
1259 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1260 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-5), math.rad(90)), .25) | |
1261 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), .25) | |
1262 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-30), math.rad(-90)), .25) | |
1263 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1264 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1265 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1266 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), 5*i, math.rad(0)), .75) | |
1267 | end | |
1268 | for i=0,1,0.1 do | |
1269 | wait() | |
1270 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), .25) | |
1271 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .25) | |
1272 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), .25) | |
1273 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), .25) | |
1274 | RH.C0 = clerp(RH.C0, cn(0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .25) | |
1275 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .25) | |
1276 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1277 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1278 | end | |
1279 | end | |
1280 | local offset = nil | |
1281 | gunidle=true | |
1282 | while gun==true do | |
1283 | wait() | |
1284 | local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z) | |
1285 | offset = (Torso.Position.y - mouse.Hit.p.y) / 60 | |
1286 | local mag = (Torso.Position - mouse.Hit.p).magnitude / 80 | |
1287 | offset = offset / mag | |
1288 | if GunA == true and GunB == false then | |
1289 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), .5) | |
1290 | elseif GunB == true and GunA == false then | |
1291 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), .5) | |
1292 | end | |
1293 | end | |
1294 | if shoot==true then | |
1295 | gunidle=false | |
1296 | if GunA == true then | |
1297 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1298 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1299 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1300 | GunA = false | |
1301 | Shoot(BarrelA, 0, 0) | |
1302 | for i=0,1,0.15 do | |
1303 | wait() | |
1304 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1305 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(5), math.rad(-80)), .3) | |
1306 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(90), math.rad(60), math.rad(80)), .55) | |
1307 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-15)), .3) | |
1308 | RH.C0 = clerp(RH.C0, cn(0.6, -2, -.1) * angles(math.rad(5), math.rad(0), math.rad(3)), .25) | |
1309 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, .1) * angles(math.rad(-5), math.rad(0), math.rad(-3)), .25) | |
1310 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), .75) | |
1311 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), .3) | |
1312 | end | |
1313 | GunB = true | |
1314 | elseif GunB == true then | |
1315 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1316 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1317 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1318 | GunB = false | |
1319 | Shoot(BarrelB, 0, 0) | |
1320 | for i=0,1,0.15 do | |
1321 | wait() | |
1322 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1323 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-5), math.rad(80)), .3) | |
1324 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(15)), .3) | |
1325 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(90), math.rad(-60), math.rad(-80)), .55) | |
1326 | RH.C0 = clerp(RH.C0, cn(0.6, -2, .1) * angles(math.rad(-5), math.rad(0), math.rad(3)), .25) | |
1327 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, -.1) * angles(math.rad(5), math.rad(0), math.rad(-3)), .25) | |
1328 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), .3) | |
1329 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), .75) | |
1330 | end | |
1331 | GunA = true | |
1332 | end | |
1333 | end | |
1334 | gyro.Parent = nil | |
1335 | Humanoid.WalkSpeed = 12 | |
1336 | gun=false | |
1337 | gunidle=false | |
1338 | shoot=false | |
1339 | attack=false | |
1340 | end | |
1341 | ||
1342 | function Jikishi() | |
1343 | attack = true | |
1344 | gyro.Parent = RootPart | |
1345 | for i = 0,1,0.1 do | |
1346 | wait() | |
1347 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(3), math.rad(0), math.rad(0)), .3) | |
1348 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1349 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(10)), .3) | |
1350 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-10)), .3) | |
1351 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(3)), .3) | |
1352 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(3), math.rad(0), math.rad(-3)), .3) | |
1353 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 10*i, math.rad(0)), .7) | |
1354 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), -10*i, math.rad(0)), .7) | |
1355 | end | |
1356 | for i = 1,2 do | |
1357 | for i = 0,1,0.3 do | |
1358 | wait() | |
1359 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1360 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1361 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1362 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1363 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .3) | |
1364 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .3) | |
1365 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1366 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1367 | end | |
1368 | ReflectShot(mouse,BarrelA) | |
1369 | so("http://www.roblox.com/asset/?id=199144089", BarrelA, 1, .9) | |
1370 | so("http://www.roblox.com/asset/?id=200633327", BarrelA, 1, 1.2) | |
1371 | so("http://www.roblox.com/asset/?id=200633780", BarrelA, 1, 1.5) | |
1372 | --so("http://www.roblox.com/asset/?id=360087120", Torso, .5, 1) | |
1373 | for i = 0,1,0.35 do | |
1374 | wait() | |
1375 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .4) | |
1376 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(20)), .4) | |
1377 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(-20)), .4) | |
1378 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1379 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(3)), .4) | |
1380 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(20), math.rad(-3)), .4) | |
1381 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1382 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1383 | end | |
1384 | for i = 0,1,0.3 do | |
1385 | wait() | |
1386 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1387 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1388 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1389 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.2) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1390 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(3)), .3) | |
1391 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(-3)), .3) | |
1392 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1393 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1394 | end | |
1395 | ReflectShot(mouse,BarrelB) | |
1396 | so("http://www.roblox.com/asset/?id=199144089", BarrelB, 1, .9) | |
1397 | so("http://www.roblox.com/asset/?id=200633327", BarrelB, 1, 1.2) | |
1398 | so("http://www.roblox.com/asset/?id=200633780", BarrelB, 1, 1.5) | |
1399 | --so("http://www.roblox.com/asset/?id=360087120", Torso, .5, 1) | |
1400 | for i = 0,1,0.35 do | |
1401 | wait() | |
1402 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .4) | |
1403 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-20)), .4) | |
1404 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4) | |
1405 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, -.4) * angles(math.rad(150), math.rad(0), math.rad(20)), .4) | |
1406 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(3)), .4) | |
1407 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, 0) * angles(math.rad(0), math.rad(-20), math.rad(-3)), .4) | |
1408 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1409 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), 0, math.rad(0)), .7) | |
1410 | end | |
1411 | end | |
1412 | gyro.Parent = nil | |
1413 | attack = false | |
1414 | end | |
1415 | ||
1416 | mouse.Button1Down:connect(function() | |
1417 | if gun==true and shoot==false then | |
1418 | shoot=true | |
1419 | gun=false | |
1420 | end | |
1421 | end) | |
1422 | ||
1423 | mouse.KeyDown:connect(function(k) | |
1424 | k = k:lower() | |
1425 | if k=='e' and gun==false and shoot==false and attack==false then | |
1426 | GunStance() | |
1427 | end | |
1428 | if k=='e'and shoot==false then | |
1429 | if gun==true then | |
1430 | gun=false | |
1431 | end | |
1432 | end | |
1433 | if k=='q' and gun==false and shoot==false and attack==false then | |
1434 | Jikishi() | |
1435 | end | |
1436 | end) | |
1437 | ||
1438 | ||
1439 | inputserv.InputBegan:connect(function(k) | |
1440 | if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then | |
1441 | elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then | |
1442 | elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then | |
1443 | elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then | |
1444 | end | |
1445 | end) | |
1446 | ||
1447 | inputserv.InputBegan:connect(function(k) | |
1448 | if k.KeyCode == Enum.KeyCode.Slash then | |
1449 | local fin = nil | |
1450 | typing = true | |
1451 | fin = inputserv.InputBegan:connect(function(k) | |
1452 | if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then | |
1453 | typing = false | |
1454 | fin:disconnect() | |
1455 | end | |
1456 | end) | |
1457 | end | |
1458 | end) | |
1459 | ||
1460 | local ReboundCount = 0 | |
1461 | ||
1462 | function updateskills() | |
1463 | if cooldown1 <= co1 then | |
1464 | cooldown1 = cooldown1 + 1 / 30 | |
1465 | end | |
1466 | if cooldown2 <= co2 then | |
1467 | cooldown2 = cooldown2 + 1 / 30 | |
1468 | end | |
1469 | if cooldown3 <= co3 then | |
1470 | cooldown3 = cooldown3 + 1 / 30 | |
1471 | end | |
1472 | if cooldown4 <= co4 then | |
1473 | cooldown4 = cooldown4 + 1 / 30 | |
1474 | end | |
1475 | if stamina <= maxstamina then | |
1476 | stamina = stamina + recovermana / 30 | |
1477 | end | |
1478 | end | |
1479 | ||
1480 | game:GetService'RunService'.Heartbeat:connect(function() | |
1481 | updateskills() | |
1482 | gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RootPart.CFrame.p).unit * 100) | |
1483 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5) | |
1484 | staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5) | |
1485 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5) | |
1486 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5) | |
1487 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5) | |
1488 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5) | |
1489 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1490 | velocity = RootPart.Velocity.y | |
1491 | sine = sine + change | |
1492 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1493 | Character.Humanoid.WalkSpeed = 16 * speed.Value | |
1494 | if equipped == true or equipped == false then | |
1495 | if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then | |
1496 | Anim = "Jump" | |
1497 | if attack == false then | |
1498 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .25) | |
1499 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .25) | |
1500 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(50)), .25) | |
1501 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), .25) | |
1502 | RH.C0 = clerp(RH.C0, cn(0.4, -1.5, -.5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .25) | |
1503 | LH.C0 = clerp(LH.C0, cn(-0.6, -2, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), .25) | |
1504 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1505 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1506 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1507 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1508 | end | |
1509 | elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then | |
1510 | Anim = "Fall" | |
1511 | if attack == false then | |
1512 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), .25) | |
1513 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .25) | |
1514 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(70)), .25) | |
1515 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-70)), .25) | |
1516 | RH.C0 = clerp(RH.C0, cn(0.6, -1.5, -.3) * angles(math.rad(0), math.rad(0), math.rad(5)), .25) | |
1517 | LH.C0 = clerp(LH.C0, cn(-0.6, -1.8, -.2) * angles(math.rad(0), math.rad(0), math.rad(-5)), .25) | |
1518 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1519 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1520 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1521 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1522 | end | |
1523 | elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then | |
1524 | Anim = "Idle" | |
1525 | if attack == false then | |
1526 | change = 1 | |
1527 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -0.1+0.1*math.cos(sine/25), -0.1+0.05*math.cos(sine/25)) * angles(math.rad(0), math.rad(0), math.rad(-30)), .25) | |
1528 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10+5*math.cos(sine/25)), math.rad(0), math.rad(30)), .25) | |
1529 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.4, -.2) * angles(math.rad(50-5*math.cos(sine/25)), math.rad(0), math.rad(10)), .25) | |
1530 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.4, -.2) * angles(math.rad(50-5*math.cos(sine/25)), math.rad(0), math.rad(-10)), .25) | |
1531 | RH.C0 = clerp(RH.C0, cn(0.7, -1.9-.05*math.cos(sine/25), 0) * angles(math.rad(0), math.rad(30), math.rad(5))* angles(math.rad(-5+1*math.cos(sine/25)), math.rad(0), math.rad(0)), .25) | |
1532 | LH.C0 = clerp(LH.C0, cn(-0.6, -1.9-.05*math.cos(sine/25), 0) * angles(math.rad(0), math.rad(30), math.rad(-3))* angles(math.rad(-3+1*math.cos(sine/25)), math.rad(0), math.rad(0)), .25) | |
1533 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1534 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1535 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1536 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1537 | end | |
1538 | elseif Torsovelocity > 2 and Torsovelocity < 18 and hit ~= nil and stun.Value ~= true then | |
1539 | Anim = "Walk" | |
1540 | if attack == false then | |
1541 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20+1*math.cos(sine/5)), math.rad(0), math.rad(5*math.cos(sine/4.5))), .25) | |
1542 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(-5*math.cos(sine/4.5))), .25) | |
1543 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-40), math.rad(0), math.rad(20+1*math.cos(sine/5))), .25) | |
1544 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20+1*math.cos(sine/5))), .25) | |
1545 | RH.C0 = clerp(RH.C0, cn(0.55, -2, 1*math.cos(sine/4.5)) * angles(math.rad(-50*math.cos(sine/4.5)), math.rad(0), math.rad(3)), .25) | |
1546 | LH.C0 = clerp(LH.C0, cn(-0.55, -2, -1*math.cos(sine/4.5)) * angles(math.rad(50*math.cos(sine/4.5)), math.rad(0), math.rad(-3)), .25) | |
1547 | FakeHandleAweld.C0 = clerp(FakeHandleAweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1548 | FakeHandleBweld.C0 = clerp(FakeHandleBweld.C0, cn(0, 0, .8) * angles(math.rad(0), math.rad(-170), math.rad(0)), .25) | |
1549 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1550 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1551 | end | |
1552 | elseif Torsovelocity >= 18 and hit ~= nil and stun.Value ~= true then | |
1553 | Anim = "Run" | |
1554 | if attack == false then | |
1555 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1556 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1557 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1558 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1559 | RH.C0 = clerp(RH.C0, cn(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1560 | LH.C0 = clerp(LH.C0, cn(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1561 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1562 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1563 | end | |
1564 | elseif stun.Value == true then | |
1565 | if attack == false then | |
1566 | Character.Humanoid.WalkSpeed = 0 | |
1567 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1568 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1569 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1570 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1571 | RH.C0 = clerp(RH.C0, cn(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1572 | LH.C0 = clerp(LH.C0, cn(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .25) | |
1573 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1574 | LW.C1 = clerp(LW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .3) | |
1575 | end | |
1576 | end | |
1577 | end | |
1578 | if sprint == true and stun.Value ~= true and equipped == false and on == false then | |
1579 | Character.Humanoid.WalkSpeed = 20 | |
1580 | elseif sprint == false and stun.Value ~= true then | |
1581 | Character.Humanoid.WalkSpeed = 16 | |
1582 | end | |
1583 | if #Effects > 0 then | |
1584 | for e = 1, #Effects do | |
1585 | if Effects[e] ~= nil then | |
1586 | local Thing = Effects[e] | |
1587 | if Thing ~= nil then | |
1588 | local Part = Thing[1] | |
1589 | local Mode = Thing[2] | |
1590 | local Delay = Thing[3] | |
1591 | local IncX = Thing[4] | |
1592 | local IncY = Thing[5] | |
1593 | local IncZ = Thing[6] | |
1594 | if Thing[1].Transparency <= 1 then | |
1595 | if Thing[2] == "Block1" then | |
1596 | Thing[1].CFrame = Thing[1].CFrame * CFrame.FromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1597 | local Mesh = Thing[1].Mesh | |
1598 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1599 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1600 | elseif Thing[2] == "Cylinder" then | |
1601 | local Mesh = Thing[1].Mesh | |
1602 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1603 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1604 | elseif Thing[2] == "Blood" then | |
1605 | local Mesh = Thing[7] | |
1606 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .5, 0) | |
1607 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1608 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1609 | elseif Thing[2] == "Elec" then | |
1610 | local Mesh = Thing[1].Mesh | |
1611 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1612 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1613 | elseif Thing[2] == "Disappear" then | |
1614 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1615 | end | |
1616 | else | |
1617 | Part.Parent = nil | |
1618 | table.remove(Effects, e) | |
1619 | end | |
1620 | end | |
1621 | end | |
1622 | end | |
1623 | end | |
1624 | for _, lasr in pairs(lasrs) do | |
1625 | for i, v in pairs(lasr[9]) do | |
1626 | if lasr[7][i].Parent then | |
1627 | v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1) | |
1628 | lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1) | |
1629 | if v.Scale.x < 0.1 then | |
1630 | lasr[7][i].Parent = nil | |
1631 | lasr[8][i].Parent = nil | |
1632 | end | |
1633 | end | |
1634 | end | |
1635 | ||
1636 | if lasr[1] then | |
1637 | local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd) | |
1638 | lasr[5] = lasr[5] + (lasr[3] - enz).magnitude | |
1639 | ||
1640 | lasr[7][lasr[6]].Parent = m | |
1641 | lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0) | |
1642 | lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7) | |
1643 | ||
1644 | lasr[8][lasr[6]].Parent = m | |
1645 | lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame | |
1646 | lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3) | |
1647 | ||
1648 | lasr[3] = enz | |
1649 | lasr[6] = lasr[6]%#lasr[7] + 1 | |
1650 | ||
1651 | if hitz then | |
1652 | lasr[4] = lasr[4] + 1 | |
1653 | if lasr[4] == maxRebounds then | |
1654 | lasr[1] = false | |
1655 | so("http://www.roblox.com/asset/?id=200633327", hitz, 1, 2) | |
1656 | damage(hitz.Parent:WaitForChild("Torso"), math.random(5,10), math.random(10,20), 5, 1, RootPart) | |
1657 | print(ReboundCount) | |
1658 | else | |
1659 | local norm = FindSurface(hitz,enz) | |
1660 | lasr[2] = Reflect(lasr[2],norm) | |
1661 | so("http://www.roblox.com/asset/?id=200633327", hitz, 1, 2) | |
1662 | damage(hitz.Parent:WaitForChild("Torso"), math.random(5,10), math.random(10,20), 5, 1, RootPart) | |
1663 | print(ReboundCount) | |
1664 | end | |
1665 | end | |
1666 | if lasr[5] > maxTravelDistance then | |
1667 | lasr[1] = false | |
1668 | end | |
1669 | end | |
1670 | end | |
1671 | end) |