SHOW:
|
|
- or go back to the newest paste.
1 | print("Dont ever Leak This You Bullshit I Will Really Sent Some Nuclear Bomb There") | |
2 | print("Im Not An German i Just Make This For My Bestfriend :D") | |
3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
4 | local Player,game,owner = owner,game | |
5 | local RealPlayer = Player | |
6 | do | |
7 | print("FE Compatibility code by Mokiros") | |
8 | local rp = RealPlayer | |
9 | script.Parent = rp.Character | |
10 | ||
11 | --RemoteEvent for communicating | |
12 | local Event = Instance.new("RemoteEvent") | |
13 | Event.Name = "UserInput_Event" | |
14 | ||
15 | --Fake event to make stuff like Mouse.KeyDown work | |
16 | local function fakeEvent() | |
17 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
18 | t.connect = t.Connect | |
19 | return t | |
20 | end | |
21 | ||
22 | --Creating fake input objects with fake variables | |
23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
27 | end} | |
28 | --Merged 2 functions into one by checking amount of arguments | |
29 | CAS.UnbindAction = CAS.BindAction | |
30 | ||
31 | --This function will trigger the events that have been :Connect()'ed | |
32 | local function te(self,ev,...) | |
33 | local t = m[ev] | |
34 | if t and t._fakeEvent then | |
35 | for _,f in pairs(t.Functions) do | |
36 | f(...) | |
37 | end | |
38 | end | |
39 | end | |
40 | m.TrigEvent = te | |
41 | UIS.TrigEvent = te | |
42 | ||
43 | Event.OnServerEvent:Connect(function(plr,io) | |
44 | if plr~=rp then return end | |
45 | m.Target = io.Target | |
46 | m.Hit = io.Hit | |
47 | if not io.isMouse then | |
48 | local b = io.UserInputState == Enum.UserInputState.Begin | |
49 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
50 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
51 | end | |
52 | for _,t in pairs(CAS.Actions) do | |
53 | for _,k in pairs(t.Keys) do | |
54 | if k==io.KeyCode then | |
55 | t.Function(t.Name,io.UserInputState,io) | |
56 | end | |
57 | end | |
58 | end | |
59 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
60 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
61 | end | |
62 | end) | |
63 | Event.Parent = NLS([==[ | |
64 | local Player = game:GetService("Players").LocalPlayer | |
65 | local Event = script:WaitForChild("UserInput_Event") | |
66 | local Mouse = Player:GetMouse() | |
67 | local UIS = game:GetService("UserInputService") | |
68 | local input = function(io,a) | |
69 | if a then return end | |
70 | --Since InputObject is a client-side instance, we create and pass table instead | |
71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
72 | end | |
73 | UIS.InputBegan:Connect(input) | |
74 | UIS.InputEnded:Connect(input) | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
145 | local Plrs = S.Players | |
146 | local Plr = owner | |
147 | local Char = Plr.Character | |
148 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
149 | local RArm = Char["Right Arm"] | |
150 | local LArm = Char["Left Arm"] | |
151 | local RLeg = Char["Right Leg"] | |
152 | local LLeg = Char["Left Leg"] | |
153 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
154 | local RootPart = Char:FindFirstChild'HumanoidRootPart' | |
155 | local rootj = Root.RootJoint | |
156 | local Torso = Char.Torso | |
157 | local Tors = Char.Torso | |
158 | local Head = Char.Head | |
159 | local NeutralAnims = true | |
160 | local Attack = false | |
161 | local BloodPuddles = {} | |
162 | local Effects = {} | |
163 | local Debounces = {Debounces={}} | |
164 | local Mouse = Plr:GetMouse() | |
165 | local Hit = {} | |
166 | local Sine = 0 | |
167 | local sine = 0 | |
168 | local Change = 1 | |
169 | local IT = Instance.new | |
170 | Cos = math.cos | |
171 | local Rooted = false | |
172 | local PlayMusic = true | |
173 | local CF = CFrame.new | |
174 | local VT = Vector3.new | |
175 | local RAD = math.rad | |
176 | local C3 = Color3.new | |
177 | local UD2 = UDim2.new | |
178 | local BRICKC = BrickColor.new | |
179 | local ANGLES = CFrame.Angles | |
180 | local EULER = CFrame.fromEulerAnglesXYZ | |
181 | local COS = math.cos | |
182 | local ACOS = math.acos | |
183 | local SIN = math.sin | |
184 | local ASIN = math.asin | |
185 | local ABS = math.abs | |
186 | local MRANDOM = math.random | |
187 | local FLOOR = math.floor | |
188 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
189 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
190 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
191 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
192 | local R3 = {N=Region3.new} | |
193 | local De = S.Debris | |
194 | local WS = workspace | |
195 | local Lght = S.Lighting | |
196 | local RepS = S.ReplicatedStorage | |
197 | local IN = Instance.new | |
198 | local CSK = ColorSequenceKeypoint.new | |
199 | local CS = ColorSequence.new | |
200 | local OneShotAttack = false | |
201 | plr = game.Players.LocalPlayer | |
202 | char = plr.Character | |
203 | hum = char.Humanoid | |
204 | t = char.Torso | |
205 | h = char.Head | |
206 | ra = char["Right Arm"] | |
207 | la = char["Left Arm"] | |
208 | rl = char["Right Leg"] | |
209 | ll = char["Left Leg"] | |
210 | tors = char.Torso | |
211 | lleg = char["Left Leg"] | |
212 | root = char.HumanoidRootPart | |
213 | hed = char.Head | |
214 | rleg = char["Right Leg"] | |
215 | rarm = char["Right Arm"] | |
216 | larm = char["Left Arm"] | |
217 | vt = Vector3.new | |
218 | bc = BrickColor.new | |
219 | br = BrickColor.random | |
220 | it = Instance.new | |
221 | cf = CFrame.new | |
222 | ||
223 | function createpart(parent,transparency,reflectance,material,brickcolor) | |
224 | local p = Instance.new("Part") | |
225 | p.Parent = parent | |
226 | p.Size = Vector3.new(1,1,1) | |
227 | p.Transparency = transparency | |
228 | p.Reflectance = reflectance | |
229 | p.CanCollide = false | |
230 | p.Locked = true | |
231 | p.BrickColor = brickcolor | |
232 | p.Material = material | |
233 | return p | |
234 | end | |
235 | ||
236 | function createmesh(parent,meshtype,x1,y1,z1) | |
237 | local mesh = Instance.new("SpecialMesh",parent) | |
238 | mesh.MeshType = meshtype | |
239 | mesh.Scale = Vector3.new(x1,y1,z1) | |
240 | return mesh | |
241 | end | |
242 | ||
243 | ||
244 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
245 | local mesh = Instance.new("SpecialMesh",parent) | |
246 | mesh.MeshType = "FileMesh" | |
247 | mesh.MeshId = meshid | |
248 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
249 | mesh.Scale = Vector3.new(x1,y1,z1) | |
250 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
251 | return mesh | |
252 | end | |
253 | ||
254 | ||
255 | function createweld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
256 | local weld = Instance.new("Weld") | |
257 | weld.Parent = parent | |
258 | weld.Part0 = part0 | |
259 | weld.Part1 = part1 | |
260 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
261 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
262 | return weld | |
263 | end | |
264 | local m = Instance.new("Model",char) | |
265 | m.Name = "wot" | |
266 | ||
267 | --// Instance Creation Functions \\-- | |
268 | ||
269 | function swait(num) | |
270 | if num == 0 or num == nil then | |
271 | game:service("RunService").Stepped:wait(0) | |
272 | else | |
273 | for i = 0, num do | |
274 | game:service("RunService").Stepped:wait(0) | |
275 | end | |
276 | end | |
277 | end | |
278 | ||
279 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
280 | local NSound = nil | |
281 | coroutine.resume(coroutine.create(function() | |
282 | NSound = Instance.new("Sound", PARENT) | |
283 | NSound.Volume = VOLUME | |
284 | NSound.Pitch = PITCH | |
285 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
286 | swait() | |
287 | NSound:play() | |
288 | game:GetService("Debris"):AddItem(NSound, 10) | |
289 | end)) | |
290 | return NSound | |
291 | end | |
292 | ||
293 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
294 | local mesh = Instance.new("SpecialMesh",parent) | |
295 | mesh.MeshType = "FileMesh" | |
296 | mesh.MeshId = meshid | |
297 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
298 | mesh.Scale = Vector3.new(x1,y1,z1) | |
299 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
300 | return mesh | |
301 | end | |
302 | ||
303 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
304 | local Sound = IN("Sound") | |
305 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
306 | Sound.Pitch = pitch or 1 | |
307 | Sound.Volume = volume or 1 | |
308 | Sound.Looped = looped or false | |
309 | if(autoPlay)then | |
310 | coroutine.wrap(function() | |
311 | repeat wait() until Sound.IsLoaded | |
312 | Sound.Playing = autoPlay or false | |
313 | end)() | |
314 | end | |
315 | if(not looped and effect)then | |
316 | Sound.Stopped:connect(function() | |
317 | Sound.Volume = 0 | |
318 | Sound:destroy() | |
319 | end) | |
320 | elseif(effect)then | |
321 | warn("Sound can't be looped and a sound effect!") | |
322 | end | |
323 | Sound.Parent =parent or Torso | |
324 | return Sound | |
325 | end | |
326 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
327 | local part = IN("Part") | |
328 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
329 | part.Material = (material or Enum.Material.SmoothPlastic) | |
330 | part.TopSurface,part.BottomSurface=10,10 | |
331 | part.Size = (size or V3.N(1,1,1)) | |
332 | part.CFrame = (cframe or CF.N(0,0,0)) | |
333 | part.Anchored = (anchored or false) | |
334 | part.CanCollide = (cancollide or false) | |
335 | part.Parent = (parent or Char) | |
336 | return part | |
337 | end | |
338 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
339 | local part = IN("SpecialMesh") | |
340 | part.MeshId = meshid or "" | |
341 | part.TextureId = textid or "" | |
342 | part.Scale = scale or V3.N(1,1,1) | |
343 | part.Offset = offset or V3.N(0,0,0) | |
344 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
345 | part.Parent = parent | |
346 | return part | |
347 | end | |
348 | ||
349 | NewInstance = function(instance,parent,properties) | |
350 | local inst = Instance.new(instance,parent) | |
351 | if(properties)then | |
352 | for i,v in next, properties do | |
353 | pcall(function() inst[i] = v end) | |
354 | end | |
355 | end | |
356 | return inst; | |
357 | end | |
358 | ||
359 | New = function(Object, Parent, Name, Data) | |
360 | local Object = Instance.new(Object) | |
361 | for Index, Value in pairs(Data or {}) do | |
362 | Object[Index] = Value | |
363 | end | |
364 | Object.Parent = Parent | |
365 | Object.Name = Name | |
366 | return Object | |
367 | end | |
368 | ||
369 | --// Extended ROBLOX tables \\-- | |
370 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) | |
371 | ||
372 | local Effects = IN("Folder",Char) | |
373 | Effects.Name = "Effects" | |
374 | ||
375 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
376 | ||
377 | local wld = Instance.new("Weld", wp1) | |
378 | ||
379 | wld.Part0 = wp0 | |
380 | ||
381 | wld.Part1 = wp1 | |
382 | ||
383 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
384 | ||
385 | return wld | |
386 | ||
387 | end | |
388 | ||
389 | function weld(model) | |
390 | local parts,last = {} | |
391 | local function scan(parent) | |
392 | for _,v in pairs(parent:GetChildren()) do | |
393 | if (v:IsA("BasePart")) then | |
394 | if (last) then | |
395 | local w = Instance.new("Weld") | |
396 | w.Name = ("%s_Weld"):format(v.Name) | |
397 | w.Part0,w.Part1 = last,v | |
398 | w.C0 = last.CFrame:inverse() | |
399 | w.C1 = v.CFrame:inverse() | |
400 | w.Parent = last | |
401 | end | |
402 | last = v | |
403 | table.insert(parts,v) | |
404 | end | |
405 | scan(v) | |
406 | end | |
407 | end | |
408 | scan(model) | |
409 | for _,v in pairs(parts) do | |
410 | v.Anchored = false | |
411 | v.Locked = true | |
412 | v.Anchored = false | |
413 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
414 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
415 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
416 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
417 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
418 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
419 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
420 | end | |
421 | end | |
422 | ||
423 | local maincolor = BrickColor.random() | |
424 | ||
425 | coroutine.resume(coroutine.create(function() | |
426 | while true do | |
427 | swait(2) | |
428 | maincolor = BrickColor.random() | |
429 | end | |
430 | end)) | |
431 | ||
432 | local Character = game.Players.LocalPlayer.Character | |
433 | ||
434 | local plr = game:service'Players'.LocalPlayer | |
435 | print('Local User is '..plr.Name) | |
436 | local char = plr.Character | |
437 | local hum = char.Humanoid | |
438 | local ra = char["Right Arm"] | |
439 | local la= char["Left Arm"] | |
440 | local rl= char["Right Leg"] | |
441 | local ll = char["Left Leg"] | |
442 | local hed = char.Head | |
443 | local root = char.HumanoidRootPart | |
444 | local rootj = root.RootJoint | |
445 | local tors = char.Torso | |
446 | local mouse = plr:GetMouse() | |
447 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
448 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
449 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
450 | ------------------------------------------------------- | |
451 | --Start Good Stuff-- | |
452 | ------------------------------------------------------- | |
453 | CF = CFrame.new | |
454 | angles = CFrame.Angles | |
455 | attack = false | |
456 | Euler = CFrame.fromEulerAnglesXYZ | |
457 | Rad = math.rad | |
458 | IT = Instance.new | |
459 | BrickC = BrickColor.new | |
460 | Cos = math.cos | |
461 | Acos = math.acos | |
462 | Sin = math.sin | |
463 | Asin = math.asin | |
464 | Abs = math.abs | |
465 | Mrandom = math.random | |
466 | Floor = math.floor | |
467 | ------------------------------------------------------- | |
468 | --End Good Stuff-- | |
469 | ------------------------------------------------------- | |
470 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
471 | RSH, LSH = nil, nil | |
472 | RW = Instance.new("Weld") | |
473 | LW = Instance.new("Weld") | |
474 | RH = tors["Right Hip"] | |
475 | LH = tors["Left Hip"] | |
476 | RSH = tors["Right Shoulder"] | |
477 | LSH = tors["Left Shoulder"] | |
478 | RSH.Parent = nil | |
479 | LSH.Parent = nil | |
480 | RW.Name = "RW" | |
481 | RW.Part0 = tors | |
482 | RW.C0 = CF(1.5, 0.5, 0) | |
483 | RW.C1 = CF(0, 0.5, 0) | |
484 | RW.Part1 = ra | |
485 | RW.Parent = tors | |
486 | LW.Name = "LW" | |
487 | LW.Part0 = tors | |
488 | LW.C0 = CF(-1.5, 0.5, 0) | |
489 | LW.C1 = CF(0, 0.5, 0) | |
490 | LW.Part1 = la | |
491 | LW.Parent = tors | |
492 | Effects = {} | |
493 | ||
494 | ------------------------------------------------------- | |
495 | --Start HeartBeat-- | |
496 | ------------------------------------------------------- | |
497 | ArtificialHB = Instance.new("BindableEvent", script) | |
498 | ArtificialHB.Name = "Heartbeat" | |
499 | script:WaitForChild("Heartbeat") | |
500 | ||
501 | frame = 1 / 60 | |
502 | tf = 0 | |
503 | allowframeloss = false | |
504 | tossremainder = false | |
505 | ||
506 | ||
507 | lastframe = tick() | |
508 | script.Heartbeat:Fire() | |
509 | ||
510 | ||
511 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
512 | tf = tf + s | |
513 | if tf >= frame then | |
514 | if allowframeloss then | |
515 | script.Heartbeat:Fire() | |
516 | lastframe = tick() | |
517 | else | |
518 | for i = 1, math.floor(tf / frame) do | |
519 | script.Heartbeat:Fire() | |
520 | end | |
521 | lastframe = tick() | |
522 | end | |
523 | if tossremainder then | |
524 | tf = 0 | |
525 | else | |
526 | tf = tf - frame * math.floor(tf / frame) | |
527 | end | |
528 | end | |
529 | end) | |
530 | ------------------------------------------------------- | |
531 | --End HeartBeat-- | |
532 | ------------------------------------------------------- | |
533 | ||
534 | ------------------------------------------------------- | |
535 | --Start Important Functions-- | |
536 | ------------------------------------------------------- | |
537 | ||
538 | function Swait(NUMBER) | |
539 | if NUMBER == 0 or NUMBER == nil then | |
540 | ArtificialHB.Event:wait() | |
541 | else | |
542 | for i = 1, NUMBER do | |
543 | ArtificialHB.Event:wait() | |
544 | end | |
545 | end | |
546 | end | |
547 | ||
548 | function thread(f) | |
549 | coroutine.resume(coroutine.create(f)) | |
550 | end | |
551 | function clerp(a, b, t) | |
552 | local qa = { | |
553 | QuaternionFromCFrame(a) | |
554 | } | |
555 | local qb = { | |
556 | QuaternionFromCFrame(b) | |
557 | } | |
558 | local ax, ay, az = a.x, a.y, a.z | |
559 | local bx, by, bz = b.x, b.y, b.z | |
560 | local _t = 1 - t | |
561 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
562 | end | |
563 | ---------------------------------------------------------------------------- | |
564 | ||
565 | function lerp(a, b, t) | |
566 | return a + (b - a)*t | |
567 | end | |
568 | ||
569 | ---------------------------------------------------------------------------- | |
570 | ||
571 | function Lerp(c1,c2,al) | |
572 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
573 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
574 | for i,v in pairs(com1) do | |
575 | com1[i] = v+(com2[i]-v)*al | |
576 | end | |
577 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
578 | end | |
579 | ||
580 | ---------------------------------------------------------------------------- | |
581 | ||
582 | function QuaternionFromCFrame(cf) | |
583 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
584 | local trace = m00 + m11 + m22 | |
585 | if trace > 0 then | |
586 | local s = math.sqrt(1 + trace) | |
587 | local recip = 0.5 / s | |
588 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
589 | else | |
590 | local i = 0 | |
591 | if m00 < m11 then | |
592 | i = 1 | |
593 | end | |
594 | if m22 > (i == 0 and m00 or m11) then | |
595 | i = 2 | |
596 | end | |
597 | if i == 0 then | |
598 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
599 | local recip = 0.5 / s | |
600 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
601 | elseif i == 1 then | |
602 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
603 | local recip = 0.5 / s | |
604 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
605 | elseif i == 2 then | |
606 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
607 | local recip = 0.5 / s | |
608 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
609 | end | |
610 | end | |
611 | end | |
612 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
613 | local xs, ys, zs = x + x, y + y, z + z | |
614 | local wx, wy, wz = w * xs, w * ys, w * zs | |
615 | local xx = x * xs | |
616 | local xy = x * ys | |
617 | local xz = x * zs | |
618 | local yy = y * ys | |
619 | local yz = y * zs | |
620 | local zz = z * zs | |
621 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
622 | end | |
623 | function QuaternionSlerp(a, b, t) | |
624 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
625 | local startInterp, finishInterp | |
626 | if cosTheta >= 1.0E-4 then | |
627 | if 1 - cosTheta > 1.0E-4 then | |
628 | local theta = math.acos(cosTheta) | |
629 | local invSinTheta = 1 / Sin(theta) | |
630 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
631 | finishInterp = Sin(t * theta) * invSinTheta | |
632 | else | |
633 | startInterp = 1 - t | |
634 | finishInterp = t | |
635 | end | |
636 | elseif 1 + cosTheta > 1.0E-4 then | |
637 | local theta = math.acos(-cosTheta) | |
638 | local invSinTheta = 1 / Sin(theta) | |
639 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
640 | finishInterp = Sin(t * theta) * invSinTheta | |
641 | else | |
642 | startInterp = t - 1 | |
643 | finishInterp = t | |
644 | end | |
645 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
646 | end | |
647 | function rayCast(Position, Direction, Range, Ignore) | |
648 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
649 | end | |
650 | local RbxUtility = LoadLibrary("RbxUtility") | |
651 | local Create = RbxUtility.Create | |
652 | ||
653 | ------------------------------------------------------- | |
654 | --Start Damage Function-- | |
655 | ------------------------------------------------------- | |
656 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
657 | if hit.Parent == nil then | |
658 | return | |
659 | end | |
660 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
661 | for _, v in pairs(hit.Parent:children()) do | |
662 | if v:IsA("Humanoid") then | |
663 | h = v | |
664 | end | |
665 | end | |
666 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
667 | ||
668 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
669 | end | |
670 | ||
671 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
672 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
673 | if hit.Parent.DebounceHit.Value == true then | |
674 | return | |
675 | end | |
676 | end | |
677 | if insta == true then | |
678 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
679 | end | |
680 | local c = Create("ObjectValue"){ | |
681 | Name = "creator", | |
682 | Value = game:service("Players").LocalPlayer, | |
683 | Parent = h, | |
684 | } | |
685 | game:GetService("Debris"):AddItem(c, .5) | |
686 | if HitSound ~= nil and HitPitch ~= nil then | |
687 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
688 | end | |
689 | local Damage = math.random(minim, maxim) | |
690 | local blocked = false | |
691 | local block = hit.Parent:findFirstChild("Block") | |
692 | if block ~= nil then | |
693 | if block.className == "IntValue" then | |
694 | if block.Value > 0 then | |
695 | blocked = true | |
696 | block.Value = block.Value - 1 | |
697 | print(block.Value) | |
698 | end | |
699 | end | |
700 | end | |
701 | if blocked == false then | |
702 | h.Health = h.Health - Damage | |
703 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, maincolor.Color) | |
704 | else | |
705 | h.Health = h.Health - (Damage / 2) | |
706 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, maincolor.Color) | |
707 | end | |
708 | if Type == "Knockdown" then | |
709 | local hum = hit.Parent.Humanoid | |
710 | hum.PlatformStand = true | |
711 | coroutine.resume(coroutine.create(function(HHumanoid) | |
712 | swait(1) | |
713 | HHumanoid.PlatformStand = false | |
714 | end), hum) | |
715 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
716 | local bodvol = Create("BodyVelocity"){ | |
717 | velocity = angle * knockback, | |
718 | P = 5000, | |
719 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
720 | Parent = hit, | |
721 | } | |
722 | local rl = Create("BodyAngularVelocity"){ | |
723 | P = 3000, | |
724 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
725 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
726 | Parent = hit, | |
727 | } | |
728 | game:GetService("Debris"):AddItem(bodvol, .5) | |
729 | game:GetService("Debris"):AddItem(rl, .5) | |
730 | elseif Type == "Normal" then | |
731 | local vp = Create("BodyVelocity"){ | |
732 | P = 500, | |
733 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
734 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
735 | } | |
736 | if knockback > 0 then | |
737 | vp.Parent = hit.Parent.Torso | |
738 | end | |
739 | game:GetService("Debris"):AddItem(vp, .5) | |
740 | elseif Type == "Up" then | |
741 | local bodyVelocity = Create("BodyVelocity"){ | |
742 | velocity = Vector3.new(0, 20, 0), | |
743 | P = 5000, | |
744 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
745 | Parent = hit, | |
746 | } | |
747 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
748 | elseif Type == "DarkUp" then | |
749 | coroutine.resume(coroutine.create(function() | |
750 | for i = 0, 1, 0.1 do | |
751 | swait() | |
752 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
753 | end | |
754 | end)) | |
755 | local bodyVelocity = Create("BodyVelocity"){ | |
756 | velocity = Vector3.new(0, 20, 0), | |
757 | P = 5000, | |
758 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
759 | Parent = hit, | |
760 | } | |
761 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
762 | elseif Type == "Snare" then | |
763 | local bp = Create("BodyPosition"){ | |
764 | P = 2000, | |
765 | D = 100, | |
766 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
767 | position = hit.Parent.Torso.Position, | |
768 | Parent = hit.Parent.Torso, | |
769 | } | |
770 | game:GetService("Debris"):AddItem(bp, 1) | |
771 | elseif Type == "Freeze" then | |
772 | local BodPos = Create("BodyPosition"){ | |
773 | P = 50000, | |
774 | D = 1000, | |
775 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
776 | position = hit.Parent.Torso.Position, | |
777 | Parent = hit.Parent.Torso, | |
778 | } | |
779 | local BodGy = Create("BodyGyro") { | |
780 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
781 | P = 20e+003, | |
782 | Parent = hit.Parent.Torso, | |
783 | cframe = hit.Parent.Torso.CFrame, | |
784 | } | |
785 | hit.Parent.Torso.Anchored = true | |
786 | coroutine.resume(coroutine.create(function(Part) | |
787 | swait(1.5) | |
788 | Part.Anchored = false | |
789 | end), hit.Parent.Torso) | |
790 | game:GetService("Debris"):AddItem(BodPos, 3) | |
791 | game:GetService("Debris"):AddItem(BodGy, 3) | |
792 | end | |
793 | local debounce = Create("BoolValue"){ | |
794 | Name = "DebounceHit", | |
795 | Parent = hit.Parent, | |
796 | Value = true, | |
797 | } | |
798 | game:GetService("Debris"):AddItem(debounce, Delay) | |
799 | c = Create("ObjectValue"){ | |
800 | Name = "creator", | |
801 | Value = Player, | |
802 | Parent = h, | |
803 | } | |
804 | game:GetService("Debris"):AddItem(c, .5) | |
805 | end | |
806 | end | |
807 | ------------------------------------------------------- | |
808 | --End Damage Function-- | |
809 | ------------------------------------------------------- | |
810 | ||
811 | ------------------------------------------------------- | |
812 | --Start Damage Function Customization-- | |
813 | ------------------------------------------------------- | |
814 | function ShowDamage(Pos, Text, Time, Color) | |
815 | local Rate = (1 / 30) | |
816 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
817 | local Text = (Text or "") | |
818 | local Time = (Time or 2) | |
819 | local Color = (Color or Color3.new(1, 0, 1)) | |
820 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
821 | EffectPart.Anchored = true | |
822 | local BillboardGui = Create("BillboardGui"){ | |
823 | Size = UDim2.new(3, 0, 3, 0), | |
824 | Adornee = EffectPart, | |
825 | Parent = EffectPart, | |
826 | } | |
827 | local TextLabel = Create("TextLabel"){ | |
828 | BackgroundTransparency = 1, | |
829 | Size = UDim2.new(1, 0, 1, 0), | |
830 | Text = Text, | |
831 | Font = "Highway", | |
832 | TextColor3 = Color, | |
833 | TextScaled = true, | |
834 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
835 | Parent = BillboardGui, | |
836 | } | |
837 | game.Debris:AddItem(EffectPart, (Time)) | |
838 | EffectPart.Parent = game:GetService("Workspace") | |
839 | delay(0, function() | |
840 | local Frames = (Time / Rate) | |
841 | for Frame = 1, Frames do | |
842 | wait(Rate) | |
843 | local Percent = (Frame / Frames) | |
844 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
845 | TextLabel.TextTransparency = Percent | |
846 | end | |
847 | if EffectPart and EffectPart.Parent then | |
848 | EffectPart:Destroy() | |
849 | end | |
850 | end) | |
851 | end | |
852 | ------------------------------------------------------- | |
853 | --End Damage Function Customization-- | |
854 | ------------------------------------------------------- | |
855 | ||
856 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
857 | for _, c in pairs(workspace:children()) do | |
858 | local hum = c:findFirstChild("Humanoid") | |
859 | if hum ~= nil then | |
860 | local head = c:findFirstChild("Head") | |
861 | if head ~= nil then | |
862 | local targ = head.Position - Part.Position | |
863 | local mag = targ.magnitude | |
864 | if magni >= mag and c.Name ~= plr.Name then | |
865 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
866 | end | |
867 | end | |
868 | end | |
869 | end | |
870 | end | |
871 | ||
872 | ||
873 | CFuncs = { | |
874 | Part = { | |
875 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
876 | local Part = Create("Part")({ | |
877 | Parent = Parent, | |
878 | Reflectance = Reflectance, | |
879 | Transparency = Transparency, | |
880 | CanCollide = false, | |
881 | Locked = true, | |
882 | BrickColor = BrickColor.new(tostring(BColor)), | |
883 | Name = Name, | |
884 | Size = Size, | |
885 | Material = Material | |
886 | }) | |
887 | RemoveOutlines(Part) | |
888 | return Part | |
889 | end | |
890 | }, | |
891 | Mesh = { | |
892 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
893 | local Msh = Create(Mesh)({ | |
894 | Parent = Part, | |
895 | Offset = OffSet, | |
896 | Scale = Scale | |
897 | }) | |
898 | if Mesh == "SpecialMesh" then | |
899 | Msh.MeshType = MeshType | |
900 | Msh.MeshId = MeshId | |
901 | end | |
902 | return Msh | |
903 | end | |
904 | }, | |
905 | Mesh = { | |
906 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
907 | local Msh = Create(Mesh)({ | |
908 | Parent = Part, | |
909 | Offset = OffSet, | |
910 | Scale = Scale | |
911 | }) | |
912 | if Mesh == "SpecialMesh" then | |
913 | Msh.MeshType = MeshType | |
914 | Msh.MeshId = MeshId | |
915 | end | |
916 | return Msh | |
917 | end | |
918 | }, | |
919 | Weld = { | |
920 | Create = function(Parent, Part0, Part1, C0, C1) | |
921 | local Weld = Create("Weld")({ | |
922 | Parent = Parent, | |
923 | Part0 = Part0, | |
924 | Part1 = Part1, | |
925 | C0 = C0, | |
926 | C1 = C1 | |
927 | }) | |
928 | return Weld | |
929 | end | |
930 | }, | |
931 | Sound = { | |
932 | Create = function(id, par, vol, pit) | |
933 | coroutine.resume(coroutine.create(function() | |
934 | local S = Create("Sound")({ | |
935 | Volume = vol, | |
936 | Pitch = pit or 1, | |
937 | SoundId = id, | |
938 | Parent = par or workspace | |
939 | }) | |
940 | wait() | |
941 | S:play() | |
942 | game:GetService("Debris"):AddItem(S, 6) | |
943 | end)) | |
944 | end | |
945 | }, | |
946 | ParticleEmitter = { | |
947 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
948 | local fp = Create("ParticleEmitter")({ | |
949 | Parent = Parent, | |
950 | Color = ColorSequence.new(Color1, Color2), | |
951 | LightEmission = LightEmission, | |
952 | Size = Size, | |
953 | Texture = Texture, | |
954 | Transparency = Transparency, | |
955 | ZOffset = ZOffset, | |
956 | Acceleration = Accel, | |
957 | Drag = Drag, | |
958 | LockedToPart = LockedToPart, | |
959 | VelocityInheritance = VelocityInheritance, | |
960 | EmissionDirection = EmissionDirection, | |
961 | Enabled = Enabled, | |
962 | Lifetime = LifeTime, | |
963 | Rate = Rate, | |
964 | Rotation = Rotation, | |
965 | RotSpeed = RotSpeed, | |
966 | Speed = Speed, | |
967 | VelocitySpread = VelocitySpread | |
968 | }) | |
969 | return fp | |
970 | end | |
971 | } | |
972 | } | |
973 | function RemoveOutlines(part) | |
974 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
975 | end | |
976 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
977 | local Part = Create("Part")({ | |
978 | formFactor = FormFactor, | |
979 | Parent = Parent, | |
980 | Reflectance = Reflectance, | |
981 | Transparency = Transparency, | |
982 | CanCollide = false, | |
983 | Locked = true, | |
984 | BrickColor = BrickColor.new(tostring(BColor)), | |
985 | Name = Name, | |
986 | Size = Size, | |
987 | Material = Material | |
988 | }) | |
989 | RemoveOutlines(Part) | |
990 | return Part | |
991 | end | |
992 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
993 | local Msh = Create(Mesh)({ | |
994 | Parent = Part, | |
995 | Offset = OffSet, | |
996 | Scale = Scale | |
997 | }) | |
998 | if Mesh == "SpecialMesh" then | |
999 | Msh.MeshType = MeshType | |
1000 | Msh.MeshId = MeshId | |
1001 | end | |
1002 | return Msh | |
1003 | end | |
1004 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1005 | local Weld = Create("Weld")({ | |
1006 | Parent = Parent, | |
1007 | Part0 = Part0, | |
1008 | Part1 = Part1, | |
1009 | C0 = C0, | |
1010 | C1 = C1 | |
1011 | }) | |
1012 | return Weld | |
1013 | end | |
1014 | ||
1015 | ------------------------------------------------------- | |
1016 | --Start Effect Function-- | |
1017 | ------------------------------------------------------- | |
1018 | EffectModel = Instance.new("Model", char) | |
1019 | Effects = { | |
1020 | Block = { | |
1021 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1022 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1023 | prt.Anchored = true | |
1024 | prt.CFrame = cframe | |
1025 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1026 | game:GetService("Debris"):AddItem(prt, 10) | |
1027 | if Type == 1 or Type == nil then | |
1028 | table.insert(Effects, { | |
1029 | prt, | |
1030 | "Block1", | |
1031 | delay, | |
1032 | x3, | |
1033 | y3, | |
1034 | z3, | |
1035 | msh | |
1036 | }) | |
1037 | elseif Type == 2 then | |
1038 | table.insert(Effects, { | |
1039 | prt, | |
1040 | "Block2", | |
1041 | delay, | |
1042 | x3, | |
1043 | y3, | |
1044 | z3, | |
1045 | msh | |
1046 | }) | |
1047 | else | |
1048 | table.insert(Effects, { | |
1049 | prt, | |
1050 | "Block3", | |
1051 | delay, | |
1052 | x3, | |
1053 | y3, | |
1054 | z3, | |
1055 | msh | |
1056 | }) | |
1057 | end | |
1058 | end | |
1059 | }, | |
1060 | Sphere = { | |
1061 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1062 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1063 | prt.Anchored = true | |
1064 | prt.CFrame = cframe | |
1065 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1066 | game:GetService("Debris"):AddItem(prt, 10) | |
1067 | table.insert(Effects, { | |
1068 | prt, | |
1069 | "Cylinder", | |
1070 | delay, | |
1071 | x3, | |
1072 | y3, | |
1073 | z3, | |
1074 | msh | |
1075 | }) | |
1076 | end | |
1077 | }, | |
1078 | Cylinder = { | |
1079 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1080 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1081 | prt.Anchored = true | |
1082 | prt.CFrame = cframe | |
1083 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1084 | game:GetService("Debris"):AddItem(prt, 10) | |
1085 | table.insert(Effects, { | |
1086 | prt, | |
1087 | "Cylinder", | |
1088 | delay, | |
1089 | x3, | |
1090 | y3, | |
1091 | z3, | |
1092 | msh | |
1093 | }) | |
1094 | end | |
1095 | }, | |
1096 | Wave = { | |
1097 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1098 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1099 | prt.Anchored = true | |
1100 | prt.CFrame = cframe | |
1101 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
1102 | game:GetService("Debris"):AddItem(prt, 10) | |
1103 | table.insert(Effects, { | |
1104 | prt, | |
1105 | "Cylinder", | |
1106 | delay, | |
1107 | x3 / 60, | |
1108 | y3 / 60, | |
1109 | z3 / 60, | |
1110 | msh | |
1111 | }) | |
1112 | end | |
1113 | }, | |
1114 | Ring = { | |
1115 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1116 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1117 | prt.Anchored = true | |
1118 | prt.CFrame = cframe | |
1119 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1120 | game:GetService("Debris"):AddItem(prt, 10) | |
1121 | table.insert(Effects, { | |
1122 | prt, | |
1123 | "Cylinder", | |
1124 | delay, | |
1125 | x3, | |
1126 | y3, | |
1127 | z3, | |
1128 | msh | |
1129 | }) | |
1130 | end | |
1131 | }, | |
1132 | Break = { | |
1133 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1134 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1135 | prt.Anchored = true | |
1136 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1137 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1138 | local num = math.random(10, 50) / 1000 | |
1139 | game:GetService("Debris"):AddItem(prt, 10) | |
1140 | table.insert(Effects, { | |
1141 | prt, | |
1142 | "Shatter", | |
1143 | num, | |
1144 | prt.CFrame, | |
1145 | math.random() - math.random(), | |
1146 | 0, | |
1147 | math.random(50, 100) / 100 | |
1148 | }) | |
1149 | end | |
1150 | }, | |
1151 | Spiral = { | |
1152 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1153 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1154 | prt.Anchored = true | |
1155 | prt.CFrame = cframe | |
1156 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1157 | game:GetService("Debris"):AddItem(prt, 10) | |
1158 | table.insert(Effects, { | |
1159 | prt, | |
1160 | "Cylinder", | |
1161 | delay, | |
1162 | x3, | |
1163 | y3, | |
1164 | z3, | |
1165 | msh | |
1166 | }) | |
1167 | end | |
1168 | }, | |
1169 | Push = { | |
1170 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1171 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1172 | prt.Anchored = true | |
1173 | prt.CFrame = cframe | |
1174 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1175 | game:GetService("Debris"):AddItem(prt, 10) | |
1176 | table.insert(Effects, { | |
1177 | prt, | |
1178 | "Cylinder", | |
1179 | delay, | |
1180 | x3, | |
1181 | y3, | |
1182 | z3, | |
1183 | msh | |
1184 | }) | |
1185 | end | |
1186 | } | |
1187 | } | |
1188 | ------------------------------------------------------- | |
1189 | --End Effect Function-- | |
1190 | ------------------------------------------------------- | |
1191 | ||
1192 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1193 | local NSound = nil | |
1194 | coroutine.resume(coroutine.create(function() | |
1195 | NSound = Instance.new("Sound", PARENT) | |
1196 | NSound.Volume = VOLUME | |
1197 | NSound.Pitch = PITCH | |
1198 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1199 | swait() | |
1200 | NSound:play() | |
1201 | game:GetService("Debris"):AddItem(NSound, 10) | |
1202 | end)) | |
1203 | return NSound | |
1204 | end | |
1205 | ||
1206 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1207 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1208 | prt.Anchored = true | |
1209 | prt.CFrame = cframe | |
1210 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1211 | game:GetService("Debris"):AddItem(prt, 10) | |
1212 | if Type == 1 or Type == nil then | |
1213 | table.insert(Effects, { | |
1214 | prt, | |
1215 | "Block1", | |
1216 | delay, | |
1217 | x3, | |
1218 | y3, | |
1219 | z3, | |
1220 | msh | |
1221 | }) | |
1222 | elseif Type == 2 then | |
1223 | table.insert(Effects, { | |
1224 | prt, | |
1225 | "Block2", | |
1226 | delay, | |
1227 | x3, | |
1228 | y3, | |
1229 | z3, | |
1230 | msh | |
1231 | }) | |
1232 | elseif Type == 3 then | |
1233 | table.insert(Effects, { | |
1234 | prt, | |
1235 | "Block3", | |
1236 | delay, | |
1237 | x3, | |
1238 | y3, | |
1239 | z3, | |
1240 | msh | |
1241 | }) | |
1242 | end | |
1243 | end | |
1244 | ||
1245 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1246 | local fp=Instance.new("Part") | |
1247 | fp.formFactor=formfactor | |
1248 | fp.Parent=parent | |
1249 | fp.Reflectance=reflectance | |
1250 | fp.Transparency=transparency | |
1251 | fp.CanCollide=false | |
1252 | fp.Locked=true | |
1253 | fp.BrickColor=brickcolor | |
1254 | fp.Name=name | |
1255 | fp.Size=size | |
1256 | fp.Position=tors.Position | |
1257 | RemoveOutlines(fp) | |
1258 | fp.Material="SmoothPlastic" | |
1259 | fp:BreakJoints() | |
1260 | return fp | |
1261 | end | |
1262 | ||
1263 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1264 | local mesh=Instance.new(Mesh) | |
1265 | mesh.Parent=part | |
1266 | if Mesh=="SpecialMesh" then | |
1267 | mesh.MeshType=meshtype | |
1268 | if meshid~="nil" then | |
1269 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1270 | end | |
1271 | end | |
1272 | mesh.Offset=offset | |
1273 | mesh.Scale=scale | |
1274 | return mesh | |
1275 | end | |
1276 | ||
1277 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1278 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1279 | prt.Anchored = true | |
1280 | prt.Material = "Neon" | |
1281 | prt.CFrame = cframe | |
1282 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1283 | game:GetService("Debris"):AddItem(prt, 5) | |
1284 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1285 | local rtype = rottype | |
1286 | for i = 0, 1, delay do | |
1287 | swait() | |
1288 | if rtype == 1 then | |
1289 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1290 | elseif rtype == 2 then | |
1291 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1292 | end | |
1293 | prt.Transparency = i | |
1294 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1295 | end | |
1296 | Part.Parent = nil | |
1297 | end), prt, msh) | |
1298 | end | |
1299 | ||
1300 | ||
1301 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1302 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1303 | prt.Anchored = true | |
1304 | prt.Material = "Neon" | |
1305 | prt.CFrame = cframe | |
1306 | prt.CFrame = prt.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1307 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1308 | game:GetService("Debris"):AddItem(prt, 5) | |
1309 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1310 | for i = 0, 1, delay do | |
1311 | swait() | |
1312 | Part.CFrame = Part.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1313 | Part.Transparency = i | |
1314 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1315 | end | |
1316 | Part.Parent = nil | |
1317 | end), prt, msh) | |
1318 | end | |
1319 | ||
1320 | ||
1321 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1322 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1323 | prt.Anchored = true | |
1324 | prt.Material = "Neon" | |
1325 | prt.CFrame = cframe | |
1326 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, 0.01)) | |
1327 | game:GetService("Debris"):AddItem(prt, 5) | |
1328 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1329 | local rtype = rottype | |
1330 | for i = 0, 1, delay do | |
1331 | swait() | |
1332 | if rtype == 1 then | |
1333 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1334 | elseif rtype == 2 then | |
1335 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1336 | end | |
1337 | prt.Transparency = i | |
1338 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, 0) | |
1339 | end | |
1340 | Part.Parent = nil | |
1341 | end), prt, msh) | |
1342 | end | |
1343 | ||
1344 | function Eviscerate(dude) | |
1345 | if dude.Name ~= char then | |
1346 | local bgf = IT("BodyGyro", dude.Head) | |
1347 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1348 | local val = IT("BoolValue", dude) | |
1349 | val.Name = "IsHit" | |
1350 | local ds = coroutine.wrap(function() | |
1351 | dude:WaitForChild("Head"):BreakJoints() | |
1352 | wait(0.5) | |
1353 | target = nil | |
1354 | coroutine.resume(coroutine.create(function() | |
1355 | for i, v in pairs(dude:GetChildren()) do | |
1356 | if v:IsA("Accessory") then | |
1357 | v:Destroy() | |
1358 | end | |
1359 | if v:IsA("Humanoid") then | |
1360 | v:Destroy() | |
1361 | end | |
1362 | if v:IsA("CharacterMesh") then | |
1363 | v:Destroy() | |
1364 | end | |
1365 | if v:IsA("Model") then | |
1366 | v:Destroy() | |
1367 | end | |
1368 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1369 | for x, o in pairs(v:GetChildren()) do | |
1370 | if o:IsA("Decal") then | |
1371 | o:Destroy() | |
1372 | end | |
1373 | end | |
1374 | coroutine.resume(coroutine.create(function() | |
1375 | v.Material = "Neon" | |
1376 | v.CanCollide = false | |
1377 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1378 | PartEmmit1.LightEmission = 1 | |
1379 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1380 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1381 | PartEmmit1.Rate = 150 | |
1382 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1383 | PartEmmit1.Size = NumberSequence.new({ | |
1384 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1385 | NumberSequenceKeypoint.new(1, 0, 0) | |
1386 | }) | |
1387 | PartEmmit1.Transparency = NumberSequence.new({ | |
1388 | NumberSequenceKeypoint.new(0, 0, 0), | |
1389 | NumberSequenceKeypoint.new(1, 1, 0) | |
1390 | }) | |
1391 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1392 | PartEmmit1.VelocitySpread = 30000 | |
1393 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1394 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1395 | local BodPoss = IT("BodyPosition", v) | |
1396 | BodPoss.P = 3000 | |
1397 | BodPoss.D = 1000 | |
1398 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1399 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1400 | v.Color = maincolor.Color | |
1401 | coroutine.resume(coroutine.create(function() | |
1402 | for i = 0, 49 do | |
1403 | swait(1) | |
1404 | v.Transparency = v.Transparency + 0.08 | |
1405 | end | |
1406 | wait(0.5) | |
1407 | PartEmmit1.Enabled = false | |
1408 | wait(3) | |
1409 | v:Destroy() | |
1410 | dude:Destroy() | |
1411 | end)) | |
1412 | end)) | |
1413 | end | |
1414 | end | |
1415 | end)) | |
1416 | end) | |
1417 | ds() | |
1418 | end | |
1419 | end | |
1420 | ||
1421 | function OneShot(dude) | |
1422 | OneShotAttack = true | |
1423 | if dude.Name ~= char then | |
1424 | local bgf = IT("BodyGyro", dude.Head) | |
1425 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1426 | local val = IT("BoolValue", dude) | |
1427 | val.Name = "IsHit" | |
1428 | local ds = coroutine.wrap(function() | |
1429 | dude:WaitForChild("Head"):BreakJoints() | |
1430 | wait(0.5) | |
1431 | target = nil | |
1432 | coroutine.resume(coroutine.create(function() | |
1433 | for i, v in pairs(dude:GetChildren()) do | |
1434 | if v:IsA("Accessory") then | |
1435 | v:Destroy() | |
1436 | end | |
1437 | if v:IsA("Humanoid") then | |
1438 | v:Destroy() | |
1439 | end | |
1440 | if v:IsA("CharacterMesh") then | |
1441 | v:Destroy() | |
1442 | end | |
1443 | if v:IsA("Model") then | |
1444 | v:Destroy() | |
1445 | end | |
1446 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1447 | for x, o in pairs(v:GetChildren()) do | |
1448 | if o:IsA("Decal") then | |
1449 | o:Destroy() | |
1450 | end | |
1451 | end | |
1452 | coroutine.resume(coroutine.create(function() | |
1453 | v.Material = "Neon" | |
1454 | v.CanCollide = false | |
1455 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1456 | PartEmmit1.LightEmission = 1 | |
1457 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1458 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1459 | PartEmmit1.Rate = 150 | |
1460 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1461 | PartEmmit1.Size = NumberSequence.new({ | |
1462 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1463 | NumberSequenceKeypoint.new(1, 0, 0) | |
1464 | }) | |
1465 | PartEmmit1.Transparency = NumberSequence.new({ | |
1466 | NumberSequenceKeypoint.new(0, 0, 0), | |
1467 | NumberSequenceKeypoint.new(1, 1, 0) | |
1468 | }) | |
1469 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1470 | PartEmmit1.VelocitySpread = 30000 | |
1471 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1472 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1473 | local BodPoss = IT("BodyPosition", v) | |
1474 | BodPoss.P = 3000 | |
1475 | BodPoss.D = 1000 | |
1476 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1477 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1478 | v.Color = maincolor.Color | |
1479 | coroutine.resume(coroutine.create(function() | |
1480 | for i = 0, 49 do | |
1481 | swait(1) | |
1482 | v.Transparency = v.Transparency + 0.08 | |
1483 | end | |
1484 | wait(0.5) | |
1485 | PartEmmit1.Enabled = false | |
1486 | wait(3) | |
1487 | v:Destroy() | |
1488 | dude:Destroy() | |
1489 | end)) | |
1490 | end)) | |
1491 | end | |
1492 | end | |
1493 | end)) | |
1494 | end) | |
1495 | ds() | |
1496 | end | |
1497 | OneShotAttack = false | |
1498 | end | |
1499 | ||
1500 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1501 | if SinglePlayer then | |
1502 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1503 | end | |
1504 | local List = {} | |
1505 | for i, v in pairs(workspace:GetChildren()) do | |
1506 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1507 | table.insert(List, v) | |
1508 | end | |
1509 | end | |
1510 | return List | |
1511 | end | |
1512 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
1513 | local type = type | |
1514 | local rng = Instance.new("Part", char) | |
1515 | rng.Anchored = true | |
1516 | rng.BrickColor = color | |
1517 | rng.CanCollide = false | |
1518 | rng.FormFactor = 3 | |
1519 | rng.Name = "Ring" | |
1520 | rng.Material = "Neon" | |
1521 | rng.Size = Vector3.new(1, 1, 1) | |
1522 | rng.Transparency = 0 | |
1523 | rng.TopSurface = 0 | |
1524 | rng.BottomSurface = 0 | |
1525 | rng.CFrame = pos | |
1526 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1527 | local rngm = Instance.new("SpecialMesh", rng) | |
1528 | rngm.MeshType = "Sphere" | |
1529 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1530 | local scaler2 = 1 | |
1531 | local speeder = FastSpeed | |
1532 | if type == "Add" then | |
1533 | scaler2 = 1 * value | |
1534 | elseif type == "Divide" then | |
1535 | scaler2 = 1 / value | |
1536 | end | |
1537 | coroutine.resume(coroutine.create(function() | |
1538 | for i = 0, 10 / bonuspeed, 0.1 do | |
1539 | swait() | |
1540 | if type == "Add" then | |
1541 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1542 | elseif type == "Divide" then | |
1543 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1544 | end | |
1545 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1546 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1547 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1548 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1549 | end | |
1550 | rng:Destroy() | |
1551 | end)) | |
1552 | end | |
1553 | ------------------------------------------------------- | |
1554 | --End Important Functions-- | |
1555 | ------------------------------------------------------- | |
1556 | Head.face.Texture = "rbxassetid://404306534" | |
1557 | ||
1558 | --[[ | |
1559 | Thanks for using Build-To-Lua by jarredbcv. | |
1560 | ]]-- | |
1561 | New = function(Object, Parent, Name, Data) | |
1562 | local Object = Instance.new(Object) | |
1563 | for Index, Value in pairs(Data or {}) do | |
1564 | Object[Index] = Value | |
1565 | end | |
1566 | Object.Parent = Parent | |
1567 | Object.Name = Name | |
1568 | return Object | |
1569 | end | |
1570 | ||
1571 | Knife = New("Model",char,"Knife",{}) | |
1572 | Handle = New("Part",Knife,"Handle",{BrickColor = BrickColor.new("Bright green"),Transparency = 1,Transparency = 1,Size = Vector3.new(1.65882361, 1.99058843, 1.65882361),CFrame = CFrame.new(82.2077255, 1.57540321, 117.400002, 0, 0, -1, 1, 0, 0, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.294118, 0.592157, 0.294118),}) | |
1573 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.200000003, 1.20000005),}) | |
1574 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.46481109, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1575 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1576 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110592127, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1577 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.2456055, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1578 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.466666669, 0.0666666701),}) | |
1579 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 0.962120056, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1580 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.5110245, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1581 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1582 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.69670105, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1583 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.9533539, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1584 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1585 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.254371643, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1586 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745453, 1.6859839, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1587 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),}) | |
1588 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110580683, 0, 0.0331802368, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1589 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9108047, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1590 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.24000001, 0.0800000057, 0.24000001),}) | |
1591 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, -1.70307922, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1592 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745529, 1.46481287, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1593 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),}) | |
1594 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110590339, 0, 0.0331726074, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1595 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.3957291, 1.57539487, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1596 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1597 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-8.34465027e-06, 0, -0.18800354, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1598 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.0465393, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1599 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.13333334, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1600 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 1.16118622, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1601 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9550476, 1.57542157, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1602 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.220000014, 0.0733333379, 0.220000014),}) | |
1603 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.83582306e-05, 0, -1.74732208, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1604 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9707947, 1.57539833, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1605 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 0.0666666701, 0.333333343),}) | |
1606 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-4.88758087e-06, 0, -0.763069153, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1607 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9311295, 1.94298697, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1608 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),}) | |
1609 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(0.367583752, 0, -0.723403931, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1610 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.1571426, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1611 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.200000018, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1612 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, 1.05058289, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1613 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.8380737, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1614 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1615 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, -0.630348206, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1616 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.57540166, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1617 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),}) | |
1618 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-1.54972076e-06, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1619 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.424202, 1.57539666, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1620 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 1.4000001, 0.200000003),}) | |
1621 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-6.55651093e-06, 0, -1.21647644, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1622 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.0150146, 1.21046209, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1623 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),}) | |
1624 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(-0.36494112, 0, -0.807289124, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1625 | ||
1626 | ||
1627 | ||
1628 | for _,v in next, Knife:GetChildren() do | |
1629 | if v:IsA'BasePart' then | |
1630 | v.CanCollide = false | |
1631 | end | |
1632 | end | |
1633 | ||
1634 | NewInstance = function(instance,parent,properties) | |
1635 | local inst = Instance.new(instance,parent) | |
1636 | if(properties)then | |
1637 | for i,v in next, properties do | |
1638 | pcall(function() inst[i] = v end) | |
1639 | end | |
1640 | end | |
1641 | return inst; | |
1642 | end | |
1643 | ||
1644 | local HW = NewInstance('Weld',char,{Part0=la,Part1=Handle,C0 = CFrame.new(0,-1,1.3)*CFrame.Angles(math.rad(0),0,math.rad(90))}) | |
1645 | local Hitbox = New("Part",Knife,"Hitbox",{Size=Vector3.new(1,2,1),CanCollide=false,Transparency=1}) | |
1646 | local HitboxWeld = New("Weld",Knife,"Weldie",{Part0=Hitbox,Part1=Handle,C0=CFrame.new(0,-1,0)}) | |
1647 | ||
1648 | Knife = New("Model",char,"Knife",{}) | |
1649 | Handle = New("Part",Knife,"Handle",{BrickColor = BrickColor.new("Bright green"),Transparency = 1,Transparency = 1,Size = Vector3.new(1.65882361, 1.99058843, 1.65882361),CFrame = CFrame.new(82.2077255, 1.57540321, 117.400002, 0, 0, -1, 1, 0, 0, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.294118, 0.592157, 0.294118),}) | |
1650 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.200000003, 1.20000005),}) | |
1651 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.46481109, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1652 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1653 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110592127, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1654 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.2456055, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1655 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.466666669, 0.0666666701),}) | |
1656 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 0.962120056, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1657 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.5110245, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1658 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1659 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.69670105, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1660 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.9533539, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1661 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1662 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, 0.254371643, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1663 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745453, 1.6859839, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1664 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),}) | |
1665 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110580683, 0, 0.0331802368, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1666 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9108047, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1667 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.24000001, 0.0800000057, 0.24000001),}) | |
1668 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, -1.70307922, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1669 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 1.32705891, 1.65882361),CFrame = CFrame.new(82.1745529, 1.46481287, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1670 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 1.16666663, 0.0666666701),}) | |
1671 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-0.110590339, 0, 0.0331726074, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1672 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.3957291, 1.57539487, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1673 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1674 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-8.34465027e-06, 0, -0.18800354, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1675 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.0465393, 1.685987, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1676 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.13333334, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1677 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0.110583782, 0, 1.16118622, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1678 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.9550476, 1.57542157, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1679 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.220000014, 0.0733333379, 0.220000014),}) | |
1680 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.83582306e-05, 0, -1.74732208, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1681 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9707947, 1.57539833, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1682 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 0.0666666701, 0.333333343),}) | |
1683 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-4.88758087e-06, 0, -0.763069153, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1684 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.9311295, 1.94298697, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1685 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),}) | |
1686 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(0.367583752, 0, -0.723403931, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1687 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.1571426, 1.57541645, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1688 | Mesh = New("SpecialMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.200000018, 0.0666666701),MeshType = Enum.MeshType.Wedge,}) | |
1689 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(1.32322311e-05, 0, 1.05058289, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1690 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(82.8380737, 1.57540321, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1691 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.333333343, 0.0666666701),}) | |
1692 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(0, 0, -0.630348206, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1693 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Really red"),Reflectance = 0.40000000596046,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(81.3119583, 1.57540166, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),}) | |
1694 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.0666666701, 0.266666681, 0.0666666701),}) | |
1695 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-1.54972076e-06, 0, 0.895767212, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1696 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.424202, 1.57539666, 117.400002, 4.80000017e-05, -1, -2.3040001e-09, 4.80000017e-05, 0, 1, -1, -4.80000017e-05, 4.80000017e-05),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1697 | Mesh = New("CylinderMesh",Brick,"Mesh",{Scale = Vector3.new(0.200000003, 1.4000001, 0.200000003),}) | |
1698 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 4.80000017e-05, 4.80000017e-05, -1, -1, 0, -4.80000017e-05, -2.3040001e-09, 1, 4.80000017e-05),C1 = CFrame.new(-6.55651093e-06, 0, -1.21647644, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1699 | Brick = New("Part",Knife,"Brick",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1.65882361, 0.663529456, 1.65882361),CFrame = CFrame.new(83.0150146, 1.21046209, 117.400002, 0.406722844, -0.913551688, -3.65672458e-05, -0.913551688, -0.406722814, 2.31264985e-05, -3.59999867e-05, 2.39999936e-05, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1700 | Mesh = New("BlockMesh",Brick,"Mesh",{Scale = Vector3.new(0.13333334, 0.0666666701, 0.200000003),}) | |
1701 | mot = New("Motor",Brick,"mot",{Part0 = Brick,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.406722844, -0.913551688, -3.59999867e-05, -0.913551688, -0.406722814, 2.39999936e-05, -3.65672458e-05, 2.31264985e-05, -1),C1 = CFrame.new(-0.36494112, 0, -0.807289124, 0, 1, 0, 0, 0, -1, -1, 0, 0),}) | |
1702 | ||
1703 | local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-1,1.3)*CFrame.Angles(math.rad(0),0,math.rad(90))}) | |
1704 | local Hitbox = New("Part",Knife,"Hitbox",{Size=Vector3.new(1,2,1),CanCollide=false,Transparency=1}) | |
1705 | local HitboxWeld = New("Weld",Knife,"Weldie",{Part0=Hitbox,Part1=Handle,C0=CFrame.new(0,-1,0)}) | |
1706 | ||
1707 | New = function(Object, Parent, Name, Data) | |
1708 | local Object = Instance.new(Object) | |
1709 | for Index, Value in pairs(Data or {}) do | |
1710 | Object[Index] = Value | |
1711 | end | |
1712 | Object.Parent = Parent | |
1713 | Object.Name = Name | |
1714 | return Object | |
1715 | end | |
1716 | ||
1717 | Gaunty = New("Model",char,"Gaunty",{}) | |
1718 | Handle = New("Part",Gaunty,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1, 1.26999998, 1),CFrame = CFrame.new(-5.67319345, 3.02064276, -77.6615906, 0.999894261, 0.010924357, 0.00963267777, -0.0110270018, 0.999882579, 0.0106679145, -0.00951499958, -0.0107729975, 0.999897003),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1719 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1720 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765579, 3.62595344, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1721 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161155701, 0.603512526, 0.00862884521, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1722 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 3.62595367, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1723 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471122265, 0.600126028, 0.00564575195, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1724 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.5176549, 3.62595415, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1725 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812294, 0.606899738, 0.0116195679, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1726 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765471, 3.62595463, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1727 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.448780537, 0.610177517, 0.014503479, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1728 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1729 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.459102631, -0.489744425, -0.00598144531, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1730 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765627, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1731 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149136543, -0.486357927, -0.00299835205, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1732 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.51765537, 2.53595448, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1733 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160831451, -0.48297143, -1.52587891e-05, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1734 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765566, 2.53595424, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1735 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460799217, -0.479694128, 0.00286865234, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1736 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.66865063, 3.64553881, -77.6613617, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1737 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1738 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(-0.00235080719, 0.624869347, 0.00694274902, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1739 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 3.73544312, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1740 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1741 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.000443935394, 0.714845657, 0.00408172607, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1742 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480446, 3.52554965, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1743 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1744 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00275993347, 0.504870415, 0.0118331909, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1745 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.6686511, 2.55553746, -77.6613541, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1746 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1747 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00966835022, -0.465003252, -0.00468444824, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1748 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 2.64544272, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1749 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1750 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0124630928, -0.375026226, -0.00754547119, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1751 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480494, 2.43554902, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1752 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1753 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0147790909, -0.585001707, 0.000205993652, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1754 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595463, -78.1079407, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1755 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.0018901825, 0.61005497, -0.439842224, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1756 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595558, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1757 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00464963913, 0.606931448, -0.149864197, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1758 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595606, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1759 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00278997421, 0.603431463, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1760 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595654, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1761 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00554895401, 0.600307703, 0.470123291, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1762 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595638, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1763 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0064702034, -0.489563704, 0.458496094, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1764 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595614, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1765 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00922966003, -0.486439705, 0.168525696, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1766 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265558, 2.53595638, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1767 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00736999512, -0.482939243, -0.161483765, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1768 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 2.53595614, -78.1079254, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1769 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0101289749, -0.479815245, -0.451454163, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1770 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765547, 3.62595677, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1771 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00554943085, 0.600307941, 0.47013092, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1772 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 3.62595701, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1773 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00278949738, 0.603432655, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1774 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1775 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.000350952148, 0.606987953, -0.149810791, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1776 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1777 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00311040878, 0.61011219, -0.439788818, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1778 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595734, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1779 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0151295662, -0.479759216, -0.451416016, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1780 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1781 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0123701096, -0.482883692, -0.161437988, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1782 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.4879227, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1783 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00923013687, -0.48643899, 0.168533325, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1784 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595686, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1785 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00647068024, -0.489563227, 0.458503723, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1786 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765478, 3.62595701, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1787 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471121788, 0.600129128, 0.00566101074, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1788 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765484, 3.62595725, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1789 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161154747, 0.603516102, 0.008644104, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1790 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765442, 3.62595773, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1791 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812771, 0.606903076, 0.0116348267, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1792 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765375, 3.6259582, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1793 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.44878149, 0.610180855, 0.0145187378, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1794 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765327, 2.53595781, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1795 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460801125, -0.47969079, 0.00289154053, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1796 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765299, 2.53595757, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1797 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160833359, -0.48296833, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1798 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765341, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1799 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149133682, -0.486355066, -0.00299072266, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1800 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765383, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1801 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.4591012, -0.489741802, -0.00597381592, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1802 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203499, 3.4509573, -77.7865677, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1803 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00760126114, 0.431732178, -0.120269775, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1804 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203451, 3.45095778, -77.5215683, -1.0000006, -6.18456397e-10, -9.12696123e-08, 6.18456397e-10, 1.0000006, -4.65661287e-09, 8.38190317e-08, 4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1805 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1),C1 = CFrame.new(0.00508022308, 0.428877592, 0.144706726, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1806 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203403, 2.81095791, -77.7865601, -1.0000006, 8.81700544e-08, 3.7252903e-09, -8.69331416e-08, -1.0000006, 4.65661287e-09, -3.7252903e-09, -4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1807 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -8.74227766e-08, 0, 8.74227766e-08, -1, 0, 0, 0, 1),C1 = CFrame.new(0.0146594048, -0.208191872, -0.127082825, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1808 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203356, 2.8209579, -77.5215607, 1.0000006, -8.69331416e-08, 8.38190317e-08, -8.81700544e-08, -1.0000006, -4.65661287e-09, 9.12696123e-08, -4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1809 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, -1, -7.64274186e-15, 8.74227766e-08, 0, -1),C1 = CFrame.new(0.0120282173, -0.201047897, 0.137992859, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1810 | Wedge = New("WedgePart",Gaunty,"Wedge",{BrickColor = BrickColor.new("Black"),Size = Vector3.new(1.1099999, 0.569999993, 1.13),CFrame = CFrame.new(-5.6508193, 4.06113148, -77.6620178, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1811 | mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.0109024048, 1.04061508, 0.010887146, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
1812 | ||
1813 | ||
1814 | NewInstance = function(instance,parent,properties) | |
1815 | local inst = Instance.new(instance,parent) | |
1816 | if(properties)then | |
1817 | for i,v in next, properties do | |
1818 | pcall(function() inst[i] = v end) | |
1819 | end | |
1820 | end | |
1821 | return inst; | |
1822 | end | |
1823 | ||
1824 | local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(0,-.51,0)}) | |
1825 | ||
1826 | for _,v in next, Gaunty:children() do | |
1827 | v.CanCollide = false | |
1828 | end | |
1829 | ||
1830 | ||
1831 | local all, last = {}, nil | |
1832 | ArmourParts = {} | |
1833 | NeonParts = {} | |
1834 | function scan(p) | |
1835 | for _, v in pairs(p:GetChildren()) do | |
1836 | if v:IsA("BasePart") then | |
1837 | if v.BrickColor == BrickColor.new("Black") then | |
1838 | table.insert(ArmourParts, v) | |
1839 | end | |
1840 | if v.BrickColor == BrickColor.new("Institutional white") then | |
1841 | table.insert(NeonParts, v) | |
1842 | end | |
1843 | if last then | |
1844 | local w = Instance.new("Weld") | |
1845 | w.Part0, w.Part1 = last, v | |
1846 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
1847 | w.Parent = last | |
1848 | end | |
1849 | table.insert(all, v) | |
1850 | last = v | |
1851 | end | |
1852 | scan(v) | |
1853 | end | |
1854 | end | |
1855 | scan(Gaunty) | |
1856 | local all2, last2 = {}, nil | |
1857 | ArmourParts2 = {} | |
1858 | NeonParts2 = {} | |
1859 | function scan2(p) | |
1860 | for _, v in pairs(p:GetChildren()) do | |
1861 | if v:IsA("BasePart") then | |
1862 | if v.BrickColor == BrickColor.new("Black") then | |
1863 | table.insert(ArmourParts2, v) | |
1864 | end | |
1865 | if v.BrickColor == BrickColor.new("Institutional white") then | |
1866 | table.insert(NeonParts2, v) | |
1867 | end | |
1868 | if last2 then | |
1869 | local w = Instance.new("Weld") | |
1870 | w.Part0, w.Part1 = last2, v | |
1871 | w.C0 = v.CFrame:toObjectSpace(last2.CFrame):inverse() | |
1872 | w.Parent = last2 | |
1873 | end | |
1874 | table.insert(all2, v) | |
1875 | last2 = v | |
1876 | end | |
1877 | scan2(v) | |
1878 | end | |
1879 | end | |
1880 | for i, v in pairs(ArmourParts) do | |
1881 | v.BrickColor = BrickC("Black") | |
1882 | end | |
1883 | for i, v in pairs(NeonParts) do | |
1884 | v.BrickColor = BrickColor.random() | |
1885 | end | |
1886 | for i, v in pairs(ArmourParts2) do | |
1887 | v.BrickColor = BrickC("Black") | |
1888 | end | |
1889 | for i, v in pairs(NeonParts2) do | |
1890 | v.BrickColor = BrickColor.random() | |
1891 | end | |
1892 | maincolor = BrickColor.random() | |
1893 | local l = game.Lighting | |
1894 | ||
1895 | local sky = Instance.new("Sky",l) | |
1896 | l.TimeOfDay = "00:00:00" | |
1897 | l.Brightness = 1 | |
1898 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
1899 | ||
1900 | jester = Instance.new("Part",Character) | |
1901 | jester.Size = Vector3.new(2,2,2) | |
1902 | jester.CFrame = Head.CFrame | |
1903 | jester.CanCollide = false | |
1904 | jesterWeld = Instance.new("Weld",jester) | |
1905 | jesterWeld.Part0 = jester | |
1906 | jesterWeld.Part1 = Head | |
1907 | jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0) | |
1908 | mjester = Instance.new("SpecialMesh", jester) | |
1909 | mjester.MeshType = "FileMesh" | |
1910 | mjester.Scale = Vector3.new(1.2, 1.3, 1.2) | |
1911 | - | mjester.MeshId,mjester.TextureId = 'rbxassetid://12304915','rbxassetid://149430459' |
1911 | + | mjester.MeshId,mjester.TextureId = 'rbxassetid://3030546036','rbxassetid://3033898741' |
1912 | ||
1913 | shirt = Instance.new("Shirt", Character) | |
1914 | shirt.Name = "Shirt" | |
1915 | pants = Instance.new("Pants", Character) | |
1916 | pants.Name = "Pants" | |
1917 | Character.Shirt.ShirtTemplate = "rbxassetid://178430247"----What Its Just A Shirt | |
1918 | Character.Pants.PantsTemplate = "rbxassetid://178430326" | |
1919 | ||
1920 | for i, v in pairs(game:GetService("Players").LocalPlayer.Character:children()) do | |
1921 | if v:IsA("Accessory") then | |
1922 | v:Destroy() | |
1923 | end | |
1924 | end | |
1925 | ------------------------------------------------------- | |
1926 | --Start Music Option-- | |
1927 | ------------------------------------------------------- | |
1928 | local Music = Instance.new("Sound",tors) | |
1929 | Music.SoundId = "rbxassetid://3154204326" | |
1930 | Music.Volume = 2.5 | |
1931 | Music.Looped = true | |
1932 | Music.Pitch = 1 --Pitcher | |
1933 | ------------------------------------------------------- | |
1934 | --End Music Option-- | |
1935 | ------------------------------------------------------- | |
1936 | ||
1937 | local naeeym2 = Instance.new("BillboardGui",char) | |
1938 | naeeym2.AlwaysOnTop = true | |
1939 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1940 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1941 | naeeym2.Adornee = hed | |
1942 | naeeym2.Name = "Name" | |
1943 | ||
1944 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1945 | tecks2.BackgroundTransparency = 1 | |
1946 | tecks2.TextScaled = true | |
1947 | tecks2.BorderSizePixel = 0 | |
1948 | tecks2.Font = "Arcade" | |
1949 | tecks2.TextSize = 30 | |
1950 | tecks2.TextStrokeTransparency = 0 | |
1951 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1952 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1953 | tecks2.Parent = naeeym2 | |
1954 | ||
1955 | function RecolorTextAndRename(name, col1, col2) | |
1956 | tecks2.TextStrokeColor3 = col2 | |
1957 | tecks2.TextColor3 = col1 | |
1958 | tecks2.Text = name | |
1959 | end | |
1960 | - | RecolorTextAndRename("German Hero", Color3.new(0, 0, 0), BrickColor.random().Color) |
1960 | + | RecolorTextAndRename("Neon", Color3.new(0, 0, 0), BrickColor.random().Color) |
1961 | ||
1962 | coroutine.resume(coroutine.create(function() | |
1963 | while true do | |
1964 | swait(2) | |
1965 | - | RecolorTextAndRename("German Hero", Color3.new(0, 0, 0), BrickColor.random().Color) |
1965 | + | RecolorTextAndRename("Neon", Color3.new(0, 0, 0), BrickColor.random().Color) |
1966 | end | |
1967 | end)) | |
1968 | ||
1969 | function chatfunc(text, color) | |
1970 | local chat = coroutine.wrap(function() | |
1971 | if Character:FindFirstChild("TalkingBillBoard") ~= nil then | |
1972 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1973 | end | |
1974 | local naeeym3 = Instance.new("BillboardGui", Character) | |
1975 | naeeym3.Size = UDim2.new(0, 100, 0, 40) | |
1976 | naeeym3.StudsOffset = Vector3.new(0, 3, 0) | |
1977 | naeeym3.Adornee = Character.Head | |
1978 | naeeym3.Name = "TalkingBillBoard" | |
1979 | local tecks3 = Instance.new("TextLabel", naeeym3) | |
1980 | tecks3.BackgroundTransparency = 1 | |
1981 | tecks3.BorderSizePixel = 0 | |
1982 | tecks3.Text = "" | |
1983 | tecks3.Font = "SciFi" | |
1984 | tecks3.TextSize = 30 | |
1985 | tecks3.TextStrokeTransparency = 0 | |
1986 | tecks3.TextColor3 = color | |
1987 | tecks3.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1988 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
1989 | local tecks4 = Instance.new("TextLabel", naeeym3) | |
1990 | tecks4.BackgroundTransparency = 1 | |
1991 | tecks4.BorderSizePixel = 0 | |
1992 | tecks4.Text = "" | |
1993 | tecks4.Font = "SciFi" | |
1994 | tecks4.TextSize = 30 | |
1995 | tecks4.TextStrokeTransparency = 0 | |
1996 | tecks4.TextColor3 = Color3.new(0, 0, 0) | |
1997 | tecks4.TextStrokeColor3 = color | |
1998 | tecks4.Size = UDim2.new(1, 0, 0.5, 0) | |
1999 | coroutine.resume(coroutine.create(function() | |
2000 | while true do | |
2001 | swait(1) | |
2002 | tecks3.TextColor3 = BrickColor.random().Color | |
2003 | tecks4.TextStrokeColor3 = BrickColor.random().Color | |
2004 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
2005 | tecks4.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
2006 | tecks3.Rotation = math.random(-5, 5) | |
2007 | tecks4.Rotation = math.random(-5, 5) | |
2008 | end | |
2009 | end)) | |
2010 | for i = 1, string.len(text) do | |
2011 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
2012 | tecks3.Text = string.sub(text, 1, i) | |
2013 | tecks4.Text = string.sub(text, 1, i) | |
2014 | swait(1) | |
2015 | end | |
2016 | wait(1) | |
2017 | local randomrot = math.random(1, 2) | |
2018 | if randomrot == 1 then | |
2019 | for i = 1, 50 do | |
2020 | swait() | |
2021 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
2022 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
2023 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
2024 | tecks4.Rotation = tecks2.Rotation + 0.75 | |
2025 | tecks4.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
2026 | tecks4.TextTransparency = tecks2.TextTransparency + 0.04 | |
2027 | end | |
2028 | elseif randomrot == 2 then | |
2029 | for i = 1, 50 do | |
2030 | swait() | |
2031 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
2032 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
2033 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
2034 | tecks4.Rotation = tecks2.Rotation - 0.75 | |
2035 | tecks4.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
2036 | tecks4.TextTransparency = tecks2.TextTransparency + 0.04 | |
2037 | end | |
2038 | end | |
2039 | naeeym3:Destroy() | |
2040 | end) | |
2041 | chat() | |
2042 | end | |
2043 | ||
2044 | ------------------------------------------------------- | |
2045 | --Start Attacks N Stuff-- | |
2046 | ------------------------------------------------------- | |
2047 | local sine=0 | |
2048 | ||
2049 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
2050 | local Hitboxpart = Instance.new("Part", EffectModel) | |
2051 | RemoveOutlines(Hitboxpart) | |
2052 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
2053 | Hitboxpart.CanCollide = false | |
2054 | Hitboxpart.Transparency = 1 | |
2055 | Hitboxpart.Anchored = true | |
2056 | Hitboxpart.CFrame = Pose | |
2057 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
2058 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
2059 | end | |
2060 | wait2 = false | |
2061 | combo = 1 | |
2062 | ||
2063 | mouse.Button1Down:connect(function(key) | |
2064 | if attack == false then | |
2065 | attack = true | |
2066 | hum.WalkSpeed = 3.01 | |
2067 | if combo == 1 and wait2 == false then | |
2068 | wait2 = true | |
2069 | for i = 0, 1.2, 0.1 do | |
2070 | swait() | |
2071 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
2072 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
2073 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
2074 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2075 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
2076 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
2077 | end | |
2078 | CreateSound("138097048", ra, 3, .8) | |
2079 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") | |
2080 | for i = 0, 1.2, 0.1 do | |
2081 | swait() | |
2082 | BlockEffect(maincolor, Handle.CFrame, 21, 41, 21, -2, -3, -2, 0.08, 2) | |
2083 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3) | |
2084 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
2085 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1) | |
2086 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2087 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3) | |
2088 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
2089 | end | |
2090 | combo = 2 | |
2091 | end | |
2092 | if combo == 2 and wait2 == false then | |
2093 | wait2 = true | |
2094 | for i = 0, 1.2, 0.1 do | |
2095 | swait() | |
2096 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3) | |
2097 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
2098 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
2099 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2100 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3) | |
2101 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3) | |
2102 | end | |
2103 | CreateSound("138097048", rl, 3, 1) | |
2104 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal") | |
2105 | for i = 0, 1.6, 0.1 do | |
2106 | swait() | |
2107 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65+255.45*i)), 0.3) | |
2108 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
2109 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(54), math.rad(0), math.rad(35)), 0.1) | |
2110 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-35)), 0.3) | |
2111 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3) | |
2112 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(0)), 0.3) | |
2113 | end | |
2114 | combo = 3 | |
2115 | end | |
2116 | if combo == 3 and wait2 == false then | |
2117 | for i = 0, 1.2, 0.1 do | |
2118 | swait() | |
2119 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
2120 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
2121 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
2122 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2123 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
2124 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
2125 | end | |
2126 | CreateSound("138097048", ra, 3, .8) | |
2127 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
2128 | for i = 0, 1.2, 0.1 do | |
2129 | swait() | |
2130 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3) | |
2131 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
2132 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1) | |
2133 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2134 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
2135 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
2136 | end | |
2137 | Effects.Sphere.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 0.1, 0.1, 0.1, 0.03) | |
2138 | Effects.Ring.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 2, 2, 2, 0.1, 0.1, 0.1, 0.03) | |
2139 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
2140 | for i = 0, 1.2, 0.1 do | |
2141 | swait() | |
2142 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3) | |
2143 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
2144 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1) | |
2145 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
2146 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
2147 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
2148 | end | |
2149 | combo = 1 | |
2150 | end | |
2151 | hum.WalkSpeed = 8 | |
2152 | wait2 = false | |
2153 | attack = false | |
2154 | end | |
2155 | end) | |
2156 | ||
2157 | function Taunt() | |
2158 | attack = true | |
2159 | hum.WalkSpeed = 0 | |
2160 | CreateSound("2113262031", tors, 30, 0.5) | |
2161 | chatfunc("You won't die.", BrickColor.random().Color) | |
2162 | for i = 0,6.2,0.1 do | |
2163 | swait() | |
2164 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2165 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3) | |
2166 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
2167 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2168 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1) | |
2169 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1) | |
2170 | end | |
2171 | for i = 0,6.2,0.1 do | |
2172 | swait() | |
2173 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
2174 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
2175 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15) | |
2176 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15) | |
2177 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1) | |
2178 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1) | |
2179 | end | |
2180 | attack = false | |
2181 | hum.WalkSpeed = 16 | |
2182 | end | |
2183 | ||
2184 | function SkyShot() | |
2185 | local UhhhhThing = New("Part",EffectModel,"ref",{Transparency = 1,Size = Vector3.new(.2,.2,.2),CFrame = tors.CFrame,Anchored = true,CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
2186 | attack = true | |
2187 | hum.WalkSpeed = 3.01 | |
2188 | for i = 0,6.3,0.1 do | |
2189 | swait() | |
2190 | Effects.Block.Create(BrickColor.new(maincolor.Color), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
2191 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2192 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2193 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
2194 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
2195 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1) | |
2196 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
2197 | end | |
2198 | CreateSound("142070127", tors, 10, 1) | |
2199 | Effects.Sphere.Create(BrickColor.new(maincolor.Color), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
2200 | Effects.Sphere.Create(BrickColor.new(maincolor.Color), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
2201 | Effects.Sphere.Create(BrickColor.new(maincolor.Color), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
2202 | Effects.Sphere.Create(BrickColor.new(maincolor.Color), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
2203 | for i = 0,3.8,0.1 do | |
2204 | swait() | |
2205 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2206 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2207 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
2208 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
2209 | RW.C0 = clerp(RW.C0, CF(1.5, .2 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1) | |
2210 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
2211 | end | |
2212 | CreateSound("224339201", tors, 10, 0.5) | |
2213 | for i = 1, 3 do | |
2214 | MagniDamage(UhhhhThing, 100, 1000, 10000, inf, "DarkUp") | |
2215 | UhhhhThing.CFrame = mouse.Hit | |
2216 | Effects.Cylinder.Create(BrickColor.new(maincolor.Color), UhhhhThing.CFrame, .5, 9999, .5, 10, 0, 10, 0.05) | |
2217 | Effects.Block.Create(BrickColor.new(maincolor.Color), UhhhhThing.CFrame, 1, 1, 1, 10, 10, 10, 0.05) | |
2218 | end | |
2219 | UhhhhThing:Destroy() | |
2220 | attack = false | |
2221 | hum.WalkSpeed = 8 | |
2222 | end | |
2223 | ||
2224 | function KarmaSlam() | |
2225 | attack = true | |
2226 | for i = 0,5.2,0.1 do | |
2227 | swait() | |
2228 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2229 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2230 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2231 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2232 | end | |
2233 | CreateSound("331666100", tors, 10, 1) | |
2234 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
2235 | if v:FindFirstChild("Head") then | |
2236 | Eviscerate(v) | |
2237 | end | |
2238 | end | |
2239 | Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -2.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 3.6, 3.6, 3.6, 0.03) | |
2240 | Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 5.6, 5.6, 5.6, 0.03) | |
2241 | Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
2242 | Effects.Ring.Create(BrickColor.new(maincolor.Color), root.CFrame * CF(0, -1.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 10.6, 10, 10, 0.03) | |
2243 | MagniDamage(tors, 12, 40, 60, 10, "Normal") | |
2244 | coroutine.resume(coroutine.create(function() | |
2245 | for i = 0,1.8,0.1 do | |
2246 | swait() | |
2247 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2248 | end | |
2249 | for i = 0,1.8,0.1 do | |
2250 | swait() | |
2251 | hum.CameraOffset = Vector3.new(0,0,0) | |
2252 | end | |
2253 | end)) | |
2254 | for i = 1,4.7,0.1 do | |
2255 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
2256 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
2257 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
2258 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1) | |
2259 | end | |
2260 | chatfunc("DIE!", BrickColor.random().Color) | |
2261 | wait(.6) | |
2262 | attack = false | |
2263 | end | |
2264 | ||
2265 | function PainfulStomp() | |
2266 | for i = 0,0.1,0.1 do | |
2267 | swait() | |
2268 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2269 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2270 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2271 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
2272 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
2273 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
2274 | end | |
2275 | CreateSound("331666100", char, 10, 1) | |
2276 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2277 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2278 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2279 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2280 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
2281 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
2282 | Effects.Ring.Create(BrickColor.Random(), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
2283 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
2284 | if v:FindFirstChild("Head") then | |
2285 | Eviscerate(v) | |
2286 | end | |
2287 | end | |
2288 | coroutine.resume(coroutine.create(function() | |
2289 | for i = 0,2.8,0.1 do | |
2290 | swait() | |
2291 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2292 | end | |
2293 | for i = 0,1.8,0.1 do | |
2294 | swait() | |
2295 | hum.CameraOffset = Vector3.new(0,0,0) | |
2296 | end | |
2297 | end)) | |
2298 | for i = 0,3.7,0.1 do | |
2299 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
2300 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2301 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
2302 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
2303 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2304 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2305 | end | |
2306 | wait(.6) | |
2307 | end | |
2308 | function Drainer() | |
2309 | attack=true | |
2310 | for i = 0,5,0.1 do | |
2311 | swait() | |
2312 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
2313 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3) | |
2314 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
2315 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
2316 | HW.C0=clerp(HW.C0,cf(0,-2,0)*angles(math.rad(90),math.rad(0),math.rad(0)),0.15) | |
2317 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 10, 1000, 10000, 3, "Normal") | |
2318 | end | |
2319 | attack=false | |
2320 | end | |
2321 | ||
2322 | function OnePunch() | |
2323 | local target = nil | |
2324 | local targettorso = nil | |
2325 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2326 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2327 | targetT = mouse.Target.Parent | |
2328 | target = mouse.Target.Parent.Humanoid | |
2329 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2330 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
2331 | end | |
2332 | end | |
2333 | if target ~= nil then | |
2334 | targettorso.Anchored = true | |
2335 | attack = true | |
2336 | hum.WalkSpeed = 0 | |
2337 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
2338 | for i = 0,1.8,0.1 do | |
2339 | swait() | |
2340 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-65)), 0.15) | |
2341 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(65)), 0.3) | |
2342 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2343 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2344 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(35)), 0.1) | |
2345 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2346 | end | |
2347 | OneShot(targetT) | |
2348 | CreateSound("331666100", ra, 4, 1) | |
2349 | CreateSound("180083286", targettorso, 10, 1) | |
2350 | coroutine.resume(coroutine.create(function() | |
2351 | for i = 0,1.8,0.1 do | |
2352 | swait() | |
2353 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2354 | end | |
2355 | for i = 0,1.8,0.1 do | |
2356 | swait() | |
2357 | hum.CameraOffset = Vector3.new(0,0,0) | |
2358 | end | |
2359 | end)) | |
2360 | for i = 0,4.6,0.1 do | |
2361 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2362 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2363 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2364 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2365 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
2366 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2367 | end | |
2368 | wait(.6) | |
2369 | attack = false | |
2370 | hum.WalkSpeed = 8 | |
2371 | end | |
2372 | end | |
2373 | ||
2374 | ------------------------------------------------------- | |
2375 | --End Attacks N Stuff-- | |
2376 | ------------------------------------------------------- | |
2377 | mouse.KeyDown:connect(function(key) | |
2378 | if string.byte(key) == 48 then | |
2379 | Swing = 2 | |
2380 | hum.WalkSpeed = 38.82 | |
2381 | end | |
2382 | end) | |
2383 | mouse.KeyUp:connect(function(key) | |
2384 | if string.byte(key) == 48 then | |
2385 | Swing = 1 | |
2386 | hum.WalkSpeed = 8 | |
2387 | end | |
2388 | end) | |
2389 | ||
2390 | Music.Parent = tors | |
2391 | Music:Play() | |
2392 | ||
2393 | mouse.KeyDown:connect(function(key) | |
2394 | if attack == false then | |
2395 | if key == 't' then | |
2396 | Taunt() | |
2397 | elseif key == 'z' then | |
2398 | OnePunch() | |
2399 | elseif key == 'x' then | |
2400 | SkyShot() | |
2401 | elseif key == 'c' then | |
2402 | KarmaSlam() | |
2403 | elseif key == 'v' then | |
2404 | Drainer() | |
2405 | end | |
2406 | end | |
2407 | end) | |
2408 | ||
2409 | ||
2410 | mouse.KeyDown:connect(function(key) | |
2411 | if attack == false then | |
2412 | if key == 'f' then | |
2413 | PainfulStomp() | |
2414 | end | |
2415 | end | |
2416 | end) | |
2417 | ||
2418 | ------------------------------------------------------- | |
2419 | --Start Animations-- | |
2420 | ------------------------------------------------------- | |
2421 | local equipped = false | |
2422 | local idle = 0 | |
2423 | local change = 1 | |
2424 | local val = 0 | |
2425 | local toim = 0 | |
2426 | local idleanim = 0.4 | |
2427 | local Player_Size = 1 | |
2428 | hum.WalkSpeed = 8 | |
2429 | hum.Animator.Parent = nil | |
2430 | while true do | |
2431 | swait() | |
2432 | Music.Parent = char | |
2433 | sine = sine + change | |
2434 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2435 | local velderp = root.Velocity.y | |
2436 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
2437 | if equipped == true or equipped == false then | |
2438 | if attack == false then | |
2439 | idle = idle + 1 | |
2440 | else | |
2441 | idle = 0 | |
2442 | end | |
2443 | if 1 < root.Velocity.y and hitfloor == nil then | |
2444 | Anim = "Jump" | |
2445 | change = 1 | |
2446 | if attack == false then | |
2447 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
2448 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
2449 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3) | |
2450 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3) | |
2451 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
2452 | RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
2453 | end | |
2454 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2455 | Anim = "Fall" | |
2456 | change = 1 | |
2457 | if attack == false then | |
2458 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
2459 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
2460 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3) | |
2461 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3) | |
2462 | LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
2463 | RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
2464 | end | |
2465 | elseif torvel < 1 and hitfloor ~= nil then | |
2466 | Anim = "Idle" | |
2467 | change = 1 | |
2468 | if attack == false then | |
2469 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2470 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2471 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
2472 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2473 | RW.C0 = clerp(RW.C0, CF(1.1, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(-0), Rad(-30)), 0.1) | |
2474 | LW.C0 = clerp(LW.C0, CF(-1.1, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(30)), 0.1) | |
2475 | end | |
2476 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2477 | Anim = "Walk" | |
2478 | change = .6 | |
2479 | if attack == false then | |
2480 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15) | |
2481 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2482 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2483 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2484 | RW.C0 = clerp(RW.C0, CF(1.1, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(-0), Rad(-30)), 0.1) | |
2485 | LW.C0 = clerp(LW.C0, CF(-1.1, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(30)), 0.1) | |
2486 | end | |
2487 | elseif torvel >= 25 and hitfloor ~= nil then | |
2488 | Anim = "Sprint" | |
2489 | change = 1.35 | |
2490 | if attack == false then | |
2491 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
2492 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2493 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2494 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2495 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
2496 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
2497 | end | |
2498 | end | |
2499 | end | |
2500 | if 0 < #Effects then | |
2501 | for e = 1, #Effects do | |
2502 | if Effects[e] ~= nil then | |
2503 | local Thing = Effects[e] | |
2504 | if Thing ~= nil then | |
2505 | local Part = Thing[1] | |
2506 | local Mode = Thing[2] | |
2507 | local Delay = Thing[3] | |
2508 | local IncX = Thing[4] | |
2509 | local IncY = Thing[5] | |
2510 | local IncZ = Thing[6] | |
2511 | if 1 >= Thing[1].Transparency then | |
2512 | if Thing[2] == "Block1" then | |
2513 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2514 | local Mesh = Thing[1].Mesh | |
2515 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2516 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2517 | elseif Thing[2] == "Block2" then | |
2518 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2519 | local Mesh = Thing[7] | |
2520 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2521 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2522 | elseif Thing[2] == "Block3" then | |
2523 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
2524 | local Mesh = Thing[7] | |
2525 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2526 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2527 | elseif Thing[2] == "Cylinder" then | |
2528 | local Mesh = Thing[1].Mesh | |
2529 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2530 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2531 | elseif Thing[2] == "Blood" then | |
2532 | local Mesh = Thing[7] | |
2533 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2534 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2535 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2536 | elseif Thing[2] == "Elec" then | |
2537 | local Mesh = Thing[1].Mesh | |
2538 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2539 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2540 | elseif Thing[2] == "Disappear" then | |
2541 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2542 | elseif Thing[2] == "Shatter" then | |
2543 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2544 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2545 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2546 | Thing[6] = Thing[6] + Thing[5] | |
2547 | end | |
2548 | else | |
2549 | Part.Parent = nil | |
2550 | table.remove(Effects, e) | |
2551 | end | |
2552 | end | |
2553 | end | |
2554 | end | |
2555 | end | |
2556 | end | |
2557 | ||
2558 | ------------------------------------------------------- | |
2559 | --End Animations And Script-- | |
2560 | ------------------------------------------------------- |