SHOW:
|
|
- or go back to the newest paste.
1 | --//=======================================================================\\-- | |
2 | - | --|| Templates BY Aom[WCR] |
2 | + | --|| Unfinished Banish [ more stuff will be added later ] |
3 | - | --\\====================================================//-- |
3 | + | --\\=======================================================================//-- |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | print(" this script was edited by An ignorant / zach ") | |
6 | warn(" credits goes to the real creator ") | |
7 | warn(" pls dont abuse ") | |
8 | warn(" i beg u ") | |
9 | local Player,game,owner = owner,game | |
10 | local RealPlayer = Player | |
11 | do | |
12 | print("FE Compatibility code by Mokiros") | |
13 | print("This EDIT was made by Zach the script stealer / aka zach so please stop pretending that you made it") | |
14 | local rp = RealPlayer | |
15 | script.Parent = rp.Character | |
16 | ||
17 | --RemoteEvent for communicating | |
18 | local Event = Instance.new("RemoteEvent") | |
19 | Event.Name = "UserInput_Event" | |
20 | ||
21 | --Fake event to make stuff like Mouse.KeyDown work | |
22 | local function fakeEvent() | |
23 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
24 | t.connect = t.Connect | |
25 | return t | |
26 | end | |
27 | ||
28 | --Creating fake input objects with fake variables | |
29 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
30 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
31 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
32 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
33 | end} | |
34 | --Merged 2 functions into one by checking amount of arguments | |
35 | CAS.UnbindAction = CAS.BindAction | |
36 | ||
37 | --This function will trigger the events that have been :Connect()'ed | |
38 | local function te(self,ev,...) | |
39 | local t = m[ev] | |
40 | if t and t._fakeEvent then | |
41 | for _,f in pairs(t.Functions) do | |
42 | f(...) | |
43 | end | |
44 | end | |
45 | end | |
46 | m.TrigEvent = te | |
47 | UIS.TrigEvent = te | |
48 | ||
49 | Event.OnServerEvent:Connect(function(plr,io) | |
50 | if plr~=rp then return end | |
51 | m.Target = io.Target | |
52 | m.Hit = io.Hit | |
53 | if not io.isMouse then | |
54 | local b = io.UserInputState == Enum.UserInputState.Begin | |
55 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
56 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
57 | end | |
58 | for _,t in pairs(CAS.Actions) do | |
59 | for _,k in pairs(t.Keys) do | |
60 | if k==io.KeyCode then | |
61 | t.Function(t.Name,io.UserInputState,io) | |
62 | end | |
63 | end | |
64 | end | |
65 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
66 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
67 | end | |
68 | end) | |
69 | Event.Parent = NLS([==[ | |
70 | local Player = game:GetService("Players").LocalPlayer | |
71 | local Event = script:WaitForChild("UserInput_Event") | |
72 | ||
73 | local Mouse = Player:GetMouse() | |
74 | local UIS = game:GetService("UserInputService") | |
75 | local input = function(io,a) | |
76 | if a then return end | |
77 | --Since InputObject is a client-side instance, we create and pass table instead | |
78 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
79 | end | |
80 | UIS.InputBegan:Connect(input) | |
81 | UIS.InputEnded:Connect(input) | |
82 | ||
83 | local h,t | |
84 | --Give the server mouse data 30 times every second, but only if the values changed | |
85 | --If player is not moving their mouse, client won't fire events | |
86 | while wait(1/30) do | |
87 | if h~=Mouse.Hit or t~=Mouse.Target then | |
88 | h,t=Mouse.Hit,Mouse.Target | |
89 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
90 | end | |
91 | end]==],Player.Character) | |
92 | ||
93 | ----Sandboxed game object that allows the usage of client-side methods and services | |
94 | --Real game object | |
95 | local _rg = game | |
96 | ||
97 | --Metatable for fake service | |
98 | local fsmt = { | |
99 | __index = function(self,k) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s[k] end | |
102 | end, | |
103 | __newindex = function(self,k,v) | |
104 | local s = rawget(self,"_RealService") | |
105 | if s then s[k]=v end | |
106 | end, | |
107 | __call = function(self,...) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then return s(...) end | |
110 | end | |
111 | } | |
112 | local function FakeService(t,RealService) | |
113 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
114 | return setmetatable(t,fsmt) | |
115 | end | |
116 | ||
117 | --Fake game object | |
118 | local g = { | |
119 | GetService = function(self,s) | |
120 | return self[s] | |
121 | end, | |
122 | Players = FakeService({ | |
123 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
124 | },"Players"), | |
125 | UserInputService = FakeService(UIS,"UserInputService"), | |
126 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
127 | } | |
128 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
129 | g.service = g.GetService | |
130 | ||
131 | g.RunService = FakeService({ | |
132 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
133 | BindToRenderStep = function(self,name,_,fun) | |
134 | ||
135 | end, | |
136 | UnbindFromRenderStep = function(self,name) | |
137 | self._btrs[name]:Disconnect() | |
138 | end, | |
139 | },"RunService") | |
140 | ||
141 | setmetatable(g,{ | |
142 | __index=function(self,s) | |
143 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
144 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
145 | end, | |
146 | __newindex = fsmt.__newindex, | |
147 | __call = fsmt.__call | |
148 | }) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = g,g.Players.LocalPlayer | |
151 | end | |
152 | ||
153 | ||
154 | ||
155 | ||
156 | Player = game:GetService("Players").LocalPlayer | |
157 | PlayerGui = Player.PlayerGui | |
158 | Cam = workspace.CurrentCamera | |
159 | Backpack = Player.Backpack | |
160 | Character = Player.Character | |
161 | Humanoid = Character.Humanoid | |
162 | Mouse = Player:GetMouse() | |
163 | RootPart = Character["HumanoidRootPart"] | |
164 | Torso = Character["Torso"] | |
165 | Head = Character["Head"] | |
166 | RightArm = Character["Right Arm"] | |
167 | LeftArm = Character["Left Arm"] | |
168 | RightLeg = Character["Right Leg"] | |
169 | LeftLeg = Character["Left Leg"] | |
170 | RootJoint = RootPart["RootJoint"] | |
171 | Neck = Torso["Neck"] | |
172 | RightShoulder = Torso["Right Shoulder"] | |
173 | LeftShoulder = Torso["Left Shoulder"] | |
174 | RightHip = Torso["Right Hip"] | |
175 | LeftHip = Torso["Left Hip"] | |
176 | ||
177 | - | sick.SoundId = "rbxassetid://1117396305" |
177 | + | |
178 | sick.SoundId = "rbxassetid://2598224585" | |
179 | sick.Looped = true | |
180 | sick.Pitch = 1 | |
181 | sick.Volume = 3 | |
182 | sick.TimePosition = 0 | |
183 | Character.Archivable = true | |
184 | Humanoid.DisplayDistanceType = "None" | |
185 | ||
186 | ||
187 | ---- Testing effect and much more stuffs ---- | |
188 | ||
189 | fire = Instance.new('Fire',hed) -- change the part to where u want it to stick on | |
190 | fire.Color = Color3.new(1,0,0) | |
191 | fire.SecondaryColor = Color3.new(1,0,0) | |
192 | fire.Enabled = true | |
193 | ||
194 | fire = Instance.new('Fire',hed) -- change the part to where u want it to stick on | |
195 | fire.Color = Color3.new(0,1,0) | |
196 | fire.SecondaryColor = Color3.new(0,1,0) | |
197 | fire.Enabled = true | |
198 | ||
199 | fire = Instance.new('Fire',hed) -- change the part to where u want it to stick on | |
200 | fire.Color = Color3.new(0,0,1) | |
201 | fire.SecondaryColor = Color3.new(0,0,1) | |
202 | fire.Enabled = true | |
203 | ||
204 | local naeeym2 = Instance.new("BillboardGui",Character) | |
205 | naeeym2.AlwaysOnTop = true | |
206 | naeeym2.Size = UDim2.new(5,35,2,35) | |
207 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
208 | naeeym2.Adornee = Character.Head | |
209 | naeeym2.Name = "Name" | |
210 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
211 | tecks2.BackgroundTransparency = 1 | |
212 | tecks2.TextScaled = true | |
213 | - | tecks2.Text = "uhh" |
213 | + | |
214 | - | wait(2) |
214 | + | tecks2.Text = "P A I N" |
215 | - | tecks2.Text = "are you sure not to stop?" |
215 | + | |
216 | - | wait(2) |
216 | + | |
217 | - | tecks2.Text = "Hmm" |
217 | + | |
218 | - | wait(2) |
218 | + | |
219 | - | tecks2.Text = "HMMMMMMMMMMMMMMMMM" |
219 | + | |
220 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
221 | tecks2.Parent = naeeym2 | |
222 | ||
223 | IT = Instance.new | |
224 | CF = CFrame.new | |
225 | VT = Vector3.new | |
226 | RAD = math.rad | |
227 | C3 = Color3.new | |
228 | UD2 = UDim2.new | |
229 | BRICKC = BrickColor.new | |
230 | ANGLES = CFrame.Angles | |
231 | EULER = CFrame.fromEulerAnglesXYZ | |
232 | COS = math.cos | |
233 | ACOS = math.acos | |
234 | SIN = math.sin | |
235 | ASIN = math.asin | |
236 | ABS = math.abs | |
237 | MRANDOM = math.random | |
238 | FLOOR = math.floor | |
239 | -------------------- Some other stuff ---------------- | |
240 | local hood = Instance.new("Part") | |
241 | local mesh_4 = Instance.new("FileMesh") | |
242 | local pillar = Instance.new("Part") | |
243 | local rock = Instance.new("Part") | |
244 | local core = Instance.new("Attachment") | |
245 | local emit = Instance.new("ParticleEmitter") | |
246 | local mesh_5 = Instance.new("FileMesh") | |
247 | local rockspike = Instance.new("Part") | |
248 | local mesh_6 = Instance.new("SpecialMesh") | |
249 | local shield = Instance.new("Part") | |
250 | local core_2 = Instance.new("Attachment") | |
251 | local spinepart = Instance.new("Part") | |
252 | local mesh_7 = Instance.new("FileMesh") | |
253 | local pants = Instance.new("Pants") | |
254 | local shirt = Instance.new("Shirt") | |
255 | local emit_2 = Instance.new("ParticleEmitter") | |
256 | local vortex = Instance.new("ParticleEmitter") | |
257 | local wave = Instance.new("ParticleEmitter") | |
258 | ||
259 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
260 | local NEWMESH = IT(MESH) | |
261 | if MESH == "SpecialMesh" then | |
262 | NEWMESH.MeshType = MESHTYPE | |
263 | if MESHID ~= "nil" and MESHID ~= "" then | |
264 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
265 | end | |
266 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
267 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
268 | end | |
269 | end | |
270 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
271 | NEWMESH.Scale = SCALE | |
272 | NEWMESH.Parent = PARENT | |
273 | return NEWMESH | |
274 | end | |
275 | ||
276 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
277 | local NEWPART = IT("Part") | |
278 | NEWPART.formFactor = FORMFACTOR | |
279 | NEWPART.Reflectance = REFLECTANCE | |
280 | NEWPART.Transparency = TRANSPARENCY | |
281 | NEWPART.CanCollide = false | |
282 | NEWPART.Locked = true | |
283 | NEWPART.Anchored = true | |
284 | if ANCHOR == false then | |
285 | NEWPART.Anchored = false | |
286 | end | |
287 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
288 | NEWPART.Name = NAME | |
289 | NEWPART.Size = SIZE | |
290 | NEWPART.Position = Torso.Position | |
291 | NEWPART.Material = MATERIAL | |
292 | NEWPART:BreakJoints() | |
293 | NEWPART.Parent = PARENT | |
294 | return NEWPART | |
295 | end | |
296 | ||
297 | --//=================================\\ | |
298 | --|| CUSTOMIZATION | |
299 | --\\=================================// | |
300 | ||
301 | Player_Size = 3 --Size of the player. | |
302 | Animation_Speed = 3 | |
303 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
304 | ||
305 | local Speed = 30 | |
306 | local Effects2 = {} | |
307 | ||
308 | --//=================================\\ | |
309 | --|| END OF CUSTOMIZATION | |
310 | --\\=================================// | |
311 | ||
312 | local function weldBetween(a, b) | |
313 | local weldd = Instance.new("ManualWeld") | |
314 | weldd.Part0 = a | |
315 | weldd.Part1 = b | |
316 | weldd.C0 = CFrame.new() | |
317 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
318 | weldd.Parent = a | |
319 | return weldd | |
320 | end | |
321 | ||
322 | --//=================================\\ | |
323 | --|| USEFUL VALUES | |
324 | --\\=================================// | |
325 | ||
326 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
327 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
328 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
329 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
330 | local CHANGEDEFENSE = 0 | |
331 | local CHANGEDAMAGE = 0 | |
332 | local CHANGEMOVEMENT = 0 | |
333 | local ANIM = "Idle" | |
334 | local ATTACK = false | |
335 | local EQUIPPED = false | |
336 | local HOLD = false | |
337 | local COMBO = 1 | |
338 | local Rooted = false | |
339 | local SINE = 0 | |
340 | local KEYHOLD = false | |
341 | local CHANGE = 2 / Animation_Speed | |
342 | local WALKINGANIM = false | |
343 | local WALK = 0 | |
344 | local VALUE1 = false | |
345 | local VALUE2 = false | |
346 | local ROBLOXIDLEANIMATION = IT("Animation") | |
347 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
348 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
349 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
350 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
351 | WEAPONGUI.Name = "Weapon GUI" | |
352 | local Weapon = IT("Folder", Character) | |
353 | Weapon.Name = "Weapon" | |
354 | local Effects = IT("Folder", Character) | |
355 | Effects.Name = "Effects" | |
356 | local Weapon2 = IT("Folder",Character) | |
357 | Weapon2.Name = "Weapon2" | |
358 | local ANIMATOR = Humanoid.Animator | |
359 | local ANIMATE = Character.Animate | |
360 | local UNANCHOR = true | |
361 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
362 | local SONGS = {534861083,530959353,1534958855,0} | |
363 | local CHOICE = MRANDOM(1,4) | |
364 | local PLAYMAINANIM = true | |
365 | local INTRO = false | |
366 | local TRANSFORMED = false | |
367 | local INSTANT = false | |
368 | local MODE = "GoodCop" | |
369 | ||
370 | --//=================================\\ | |
371 | --\\=================================// | |
372 | ||
373 | ||
374 | --//=================================\\ | |
375 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
376 | --\\=================================// | |
377 | ||
378 | ArtificialHB = Instance.new("BindableEvent", script) | |
379 | ArtificialHB.Name = "ArtificialHB" | |
380 | ||
381 | script:WaitForChild("ArtificialHB") | |
382 | ||
383 | frame = Frame_Speed | |
384 | tf = 0 | |
385 | allowframeloss = false | |
386 | tossremainder = false | |
387 | lastframe = tick() | |
388 | script.ArtificialHB:Fire() | |
389 | ||
390 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
391 | tf = tf + s | |
392 | if tf >= frame then | |
393 | if allowframeloss then | |
394 | script.ArtificialHB:Fire() | |
395 | lastframe = tick() | |
396 | else | |
397 | for i = 1, math.floor(tf / frame) do | |
398 | script.ArtificialHB:Fire() | |
399 | end | |
400 | lastframe = tick() | |
401 | end | |
402 | if tossremainder then | |
403 | tf = 0 | |
404 | else | |
405 | tf = tf - frame * math.floor(tf / frame) | |
406 | end | |
407 | end | |
408 | end) | |
409 | ||
410 | --//=================================\\ | |
411 | --\\=================================// | |
412 | ||
413 | ||
414 | ||
415 | ||
416 | ||
417 | --//=================================\\ | |
418 | --|| SOME FUNCTIONS | |
419 | --\\=================================// | |
420 | ||
421 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
422 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
423 | end | |
424 | ||
425 | function PositiveAngle(NUMBER) | |
426 | if NUMBER >= 0 then | |
427 | NUMBER = 0 | |
428 | end | |
429 | return NUMBER | |
430 | end | |
431 | ||
432 | function NegativeAngle(NUMBER) | |
433 | if NUMBER <= 0 then | |
434 | NUMBER = 0 | |
435 | end | |
436 | return NUMBER | |
437 | end | |
438 | ||
439 | function Swait(NUMBER) | |
440 | if NUMBER == 0 or NUMBER == nil then | |
441 | ArtificialHB.Event:wait() | |
442 | else | |
443 | for i = 1, NUMBER do | |
444 | ArtificialHB.Event:wait() | |
445 | end | |
446 | end | |
447 | end | |
448 | ||
449 | function QuaternionFromCFrame(cf) | |
450 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
451 | local trace = m00 + m11 + m22 | |
452 | if trace > 0 then | |
453 | local s = math.sqrt(1 + trace) | |
454 | local recip = 0.5 / s | |
455 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
456 | else | |
457 | local i = 0 | |
458 | if m11 > m00 then | |
459 | i = 1 | |
460 | end | |
461 | if m22 > (i == 0 and m00 or m11) then | |
462 | i = 2 | |
463 | end | |
464 | if i == 0 then | |
465 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
466 | local recip = 0.5 / s | |
467 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
468 | elseif i == 1 then | |
469 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
470 | local recip = 0.5 / s | |
471 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
472 | elseif i == 2 then | |
473 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
474 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
475 | end | |
476 | end | |
477 | end | |
478 | ||
479 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
480 | local xs, ys, zs = x + x, y + y, z + z | |
481 | local wx, wy, wz = w * xs, w * ys, w * zs | |
482 | local xx = x * xs | |
483 | local xy = x * ys | |
484 | local xz = x * zs | |
485 | local yy = y * ys | |
486 | local yz = y * zs | |
487 | local zz = z * zs | |
488 | 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)) | |
489 | end | |
490 | ||
491 | function QuaternionSlerp(a, b, t) | |
492 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
493 | local startInterp, finishInterp; | |
494 | if cosTheta >= 0.0001 then | |
495 | if (1 - cosTheta) > 0.0001 then | |
496 | local theta = ACOS(cosTheta) | |
497 | local invSinTheta = 1 / SIN(theta) | |
498 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
499 | finishInterp = SIN(t * theta) * invSinTheta | |
500 | else | |
501 | startInterp = 1 - t | |
502 | finishInterp = t | |
503 | end | |
504 | else | |
505 | if (1 + cosTheta) > 0.0001 then | |
506 | local theta = ACOS(-cosTheta) | |
507 | local invSinTheta = 1 / SIN(theta) | |
508 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
509 | finishInterp = SIN(t * theta) * invSinTheta | |
510 | else | |
511 | startInterp = t - 1 | |
512 | finishInterp = t | |
513 | end | |
514 | end | |
515 | 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 | |
516 | end | |
517 | ||
518 | function Clerp(a, b, t) | |
519 | local qa = {QuaternionFromCFrame(a)} | |
520 | local qb = {QuaternionFromCFrame(b)} | |
521 | local ax, ay, az = a.x, a.y, a.z | |
522 | local bx, by, bz = b.x, b.y, b.z | |
523 | local _t = 1 - t | |
524 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
525 | end | |
526 | ||
527 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
528 | local frame = IT("Frame") | |
529 | frame.BackgroundTransparency = TRANSPARENCY | |
530 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
531 | frame.Position = POSITION | |
532 | frame.Size = SIZE | |
533 | frame.BackgroundColor3 = COLOR | |
534 | frame.BorderColor3 = BORDERCOLOR | |
535 | frame.Name = NAME | |
536 | frame.Parent = PARENT | |
537 | return frame | |
538 | end | |
539 | ||
540 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
541 | local label = IT("TextLabel") | |
542 | label.BackgroundTransparency = 1 | |
543 | label.Size = UD2(1, 0, 1, 0) | |
544 | label.Position = UD2(0, 0, 0, 0) | |
545 | label.TextColor3 = TEXTCOLOR | |
546 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
547 | label.TextTransparency = TRANSPARENCY | |
548 | label.FontSize = TEXTFONTSIZE | |
549 | label.Font = TEXTFONT | |
550 | label.BorderSizePixel = BORDERSIZEPIXEL | |
551 | label.TextScaled = false | |
552 | label.Text = TEXT | |
553 | label.Name = NAME | |
554 | label.Parent = PARENT | |
555 | return label | |
556 | end | |
557 | ||
558 | function NoOutlines(PART) | |
559 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
560 | end | |
561 | ||
562 | ||
563 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
564 | local NEWWELD = IT(TYPE) | |
565 | NEWWELD.Part0 = PART0 | |
566 | NEWWELD.Part1 = PART1 | |
567 | NEWWELD.C0 = C0 | |
568 | NEWWELD.C1 = C1 | |
569 | NEWWELD.Parent = PARENT | |
570 | return NEWWELD | |
571 | end | |
572 | ||
573 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
574 | local NEWSOUND = nil | |
575 | coroutine.resume(coroutine.create(function() | |
576 | NEWSOUND = IT("Sound", PARENT) | |
577 | NEWSOUND.Volume = VOLUME | |
578 | NEWSOUND.Pitch = PITCH | |
579 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
580 | Swait() | |
581 | NEWSOUND:play() | |
582 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
583 | end)) | |
584 | return NEWSOUND | |
585 | end | |
586 | ||
587 | function CFrameFromTopBack(at, top, back) | |
588 | local right = top:Cross(back) | |
589 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
590 | end | |
591 | ||
592 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
593 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
594 | local mesh = IT("SpecialMesh",wave) | |
595 | mesh.MeshType = "FileMesh" | |
596 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
597 | mesh.Scale = SIZE | |
598 | mesh.Offset = VT(0,0,0) | |
599 | wave.CFrame = CFRAME | |
600 | coroutine.resume(coroutine.create(function(PART) | |
601 | for i = 1, WAIT do | |
602 | Swait() | |
603 | mesh.Scale = mesh.Scale + GROW | |
604 | if DOESROT == true then | |
605 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
606 | end | |
607 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
608 | if wave.Transparency > 0.99 then | |
609 | wave:remove() | |
610 | end | |
611 | end | |
612 | end)) | |
613 | end | |
614 | ||
615 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
616 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
617 | local mesh = IT("SpecialMesh",wave) | |
618 | mesh.MeshType = "Sphere" | |
619 | mesh.Scale = SIZE | |
620 | mesh.Offset = VT(0,0,0) | |
621 | wave.CFrame = CFRAME | |
622 | coroutine.resume(coroutine.create(function(PART) | |
623 | for i = 1, WAIT do | |
624 | Swait() | |
625 | mesh.Scale = mesh.Scale + GROW | |
626 | wave.Transparency = wave.Transparency + (1/WAIT) | |
627 | if wave.Transparency > 0.99 then | |
628 | wave:remove() | |
629 | end | |
630 | end | |
631 | end)) | |
632 | end | |
633 | ||
634 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
635 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
636 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
637 | wave.CFrame = CFRAME | |
638 | coroutine.resume(coroutine.create(function(PART) | |
639 | for i = 1, WAIT do | |
640 | Swait() | |
641 | mesh.Scale = mesh.Scale * GROW | |
642 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
643 | if wave.Transparency > 0.99 then | |
644 | wave:remove() | |
645 | end | |
646 | end | |
647 | end)) | |
648 | end | |
649 | ||
650 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW) | |
651 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
652 | local mesh = IT("BlockMesh",wave) | |
653 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
654 | coroutine.resume(coroutine.create(function(PART) | |
655 | for i = 1, WAIT do | |
656 | Swait() | |
657 | mesh.Scale = mesh.Scale + GROW | |
658 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
659 | wave.Transparency = wave.Transparency + (1/WAIT) | |
660 | if wave.Transparency > 0.99 then | |
661 | wave:remove() | |
662 | end | |
663 | end | |
664 | end)) | |
665 | end | |
666 | ||
667 | function MakeForm(PART,TYPE) | |
668 | if TYPE == "Cyl" then | |
669 | local MSH = IT("CylinderMesh",PART) | |
670 | elseif TYPE == "Ball" then | |
671 | local MSH = IT("SpecialMesh",PART) | |
672 | MSH.MeshType = "Sphere" | |
673 | elseif TYPE == "Wedge" then | |
674 | local MSH = IT("SpecialMesh",PART) | |
675 | MSH.MeshType = "Wedge" | |
676 | end | |
677 | end | |
678 | ||
679 | function CheckTableForString(Table, String) | |
680 | for i, v in pairs(Table) do | |
681 | if string.find(string.lower(String), string.lower(v)) then | |
682 | return true | |
683 | end | |
684 | end | |
685 | return false | |
686 | end | |
687 | ||
688 | ||
689 | ||
690 | Debris = game:GetService("Debris") | |
691 | ||
692 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
693 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
694 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
695 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
696 | if RayHit and CheckIntangible(RayHit) then | |
697 | if DelayIfHit then | |
698 | wait() | |
699 | end | |
700 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
701 | end | |
702 | return RayHit, RayPos, RayNormal | |
703 | end | |
704 | ||
705 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
706 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
707 | end | |
708 | ||
709 | function turnto(position) | |
710 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
711 | end | |
712 | ||
713 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
714 | PLAYMAINANIM = false | |
715 | if WhichPose == "Cast1" then | |
716 | for i=0, Time, 0.1 / Animation_Speed do | |
717 | Swait() | |
718 | if Magic == true then | |
719 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"White".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
720 | end | |
721 | if Gyro ~= nil and Gyro ~= false then | |
722 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
723 | end | |
724 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
725 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
726 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
727 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
728 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
729 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
730 | end | |
731 | elseif WhichPose == "Cast2" then | |
732 | for i=0, Time, 0.1 / Animation_Speed do | |
733 | Swait() | |
734 | if Magic == true then | |
735 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"White".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
736 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Whtie".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
737 | end | |
738 | if Gyro ~= nil and Gyro ~= false then | |
739 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
740 | end | |
741 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
742 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
743 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
744 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
745 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
746 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
747 | end | |
748 | elseif WhichPose == "RightArmUp" then | |
749 | for i=0, Time, 0.1 / Animation_Speed do | |
750 | Swait() | |
751 | if Magic == true then | |
752 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"White".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
753 | end | |
754 | if Gyro ~= nil and Gyro ~= false then | |
755 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
756 | end | |
757 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
758 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
759 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
760 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
761 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
762 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
763 | end | |
764 | elseif WhichPose == "Taunt" then | |
765 | for i=0, Time, 0.1 / Animation_Speed do | |
766 | Swait() | |
767 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
768 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
769 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
770 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
771 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
772 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
773 | end | |
774 | CreateSound(221057812,Torso,10,1,false) | |
775 | for i=0, Time*2, 0.1 / Animation_Speed do | |
776 | Swait() | |
777 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
778 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
779 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
780 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
781 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
782 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
783 | end | |
784 | for i=0, Time, 0.1 / Animation_Speed do | |
785 | Swait() | |
786 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
790 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
792 | end | |
793 | elseif WhichPose == "Prepare key" then | |
794 | for i=0, Time, 0.1 / Animation_Speed do | |
795 | Swait() | |
796 | if Gyro ~= nil and Gyro ~= false then | |
797 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
798 | end | |
799 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
800 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
801 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
802 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
803 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
804 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
805 | end | |
806 | elseif WhichPose == "Turn key" then | |
807 | for i=0, Time, 0.1 / Animation_Speed do | |
808 | Swait() | |
809 | if Gyro ~= nil and Gyro ~= false then | |
810 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
811 | end | |
812 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
813 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
814 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
815 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
816 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
817 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
818 | end | |
819 | end | |
820 | PLAYMAINANIM = true | |
821 | end | |
822 | ||
823 | --//=================================\\ | |
824 | --|| SPEECH | |
825 | --\\=================================// | |
826 | ||
827 | function Chatter(Text,Timer) | |
828 | local chat = coroutine.wrap(function() | |
829 | if Character:FindFirstChild("SpeechBoard")~= nil then | |
830 | Character:FindFirstChild("SpeechBoard"):destroy() | |
831 | end | |
832 | local naeeym2 = IT("BillboardGui",Character) | |
833 | naeeym2.Size = UD2(0,100,0,40) | |
834 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
835 | naeeym2.Adornee = Character.Head | |
836 | naeeym2.Name = "SpeechBoard" | |
837 | naeeym2.AlwaysOnTop = true | |
838 | local tecks2 = IT("TextLabel",naeeym2) | |
839 | tecks2.BackgroundTransparency = 1 | |
840 | tecks2.BorderSizePixel = 0 | |
841 | tecks2.Text = "" | |
842 | tecks2.Font = "Legacy" | |
843 | tecks2.TextSize = 15 | |
844 | tecks2.TextStrokeTransparency = 1 | |
845 | tecks2.TextColor3 = Color3.new(255,0,0) | |
846 | tecks2.TextStrokeColor3 = Color3.new(255,0,0) | |
847 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
848 | for i = 1,string.len(Text),1 do | |
849 | CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false) | |
850 | tecks2.Text = string.sub(Text,1,i) | |
851 | wait(Timer) | |
852 | end | |
853 | wait(1) | |
854 | naeeym2:Destroy() | |
855 | end) | |
856 | chat() | |
857 | end | |
858 | ||
859 | function chatfunc(text,waitt) | |
860 | local chat = coroutine.wrap(function() | |
861 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
862 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
863 | end | |
864 | local naeeym2 = Instance.new("BillboardGui",Character) | |
865 | naeeym2.Size = UDim2.new(0,100,0,40) | |
866 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
867 | naeeym2.Adornee = Character.Head | |
868 | naeeym2.Name = "TalkingBillBoard" | |
869 | naeeym2.AlwaysOnTop = true | |
870 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
871 | tecks2.BackgroundTransparency = 1 | |
872 | tecks2.BorderSizePixel = 0 | |
873 | tecks2.Text = "" | |
874 | tecks2.Font = "SciFi" | |
875 | tecks2.TextSize = 30 | |
876 | tecks2.TextStrokeTransparency = 1 | |
877 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
878 | tecks2.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
879 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
880 | for i = 1,string.len(text),1 do | |
881 | tecks2.Text = string.sub(text,1,i) | |
882 | Swait() | |
883 | end | |
884 | wait(waitt) | |
885 | coroutine.resume(coroutine.create(function() | |
886 | for i = 1, 10 do | |
887 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
888 | Swait() | |
889 | end | |
890 | naeeym2:Destroy() | |
891 | end)) | |
892 | end) | |
893 | chat() | |
894 | end | |
895 | ||
896 | --// Start Stuff for Banishing \\-- | |
897 | ||
898 | local TOBANISH = {} | |
899 | ||
900 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
901 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
902 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
903 | end | |
904 | ||
905 | function printbye(Name) | |
906 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your life is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
907 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
908 | end | |
909 | ||
910 | function Banish(Foe) | |
911 | if Foe then | |
912 | coroutine.resume(coroutine.create(function() | |
913 | --if game.Players:FindFirstChild(Foe.Name) then | |
914 | table.insert(TOBANISH,Foe.Name) | |
915 | printbye(Foe.Name) | |
916 | --end | |
917 | Foe.Archivable = true | |
918 | local CLONE = Foe:Clone() | |
919 | Foe:Destroy() | |
920 | CLONE.Parent = Effects | |
921 | CLONE:BreakJoints() | |
922 | local MATERIALS = {"Glass","Neon"} | |
923 | for _, c in pairs(CLONE:GetDescendants()) do | |
924 | if c:IsA("BasePart") then | |
925 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
926 | CreateSound(340722848, c, 10, 1, false) | |
927 | end | |
928 | c.Anchored = true | |
929 | c.Transparency = c.Transparency + 0.2 | |
930 | c.Material = MATERIALS[MRANDOM(1,2)] | |
931 | c.Color = C3(0,255,0) | |
932 | if c.ClassName == "MeshPart" then | |
933 | c.TextureID = "" | |
934 | end | |
935 | if c:FindFirstChildOfClass("SpecialMesh") then | |
936 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
937 | end | |
938 | if c:FindFirstChildOfClass("Decal") then | |
939 | c:FindFirstChildOfClass("Decal"):remove() | |
940 | end | |
941 | c.Name = "Banished" | |
942 | c.CanCollide = false | |
943 | else | |
944 | c:remove() | |
945 | end | |
946 | end | |
947 | local A = false | |
948 | for i = 1, 35 do | |
949 | if A == false then | |
950 | A = true | |
951 | elseif A == true then | |
952 | A = false | |
953 | end | |
954 | for _, c in pairs(CLONE:GetDescendants()) do | |
955 | if c:IsA("BasePart") then | |
956 | c.Anchored = true | |
957 | c.Material = MATERIALS[MRANDOM(1,2)] | |
958 | c.Transparency = c.Transparency + 0.8/35 | |
959 | if A == false then | |
960 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
961 | elseif A == true then | |
962 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
963 | end | |
964 | end | |
965 | end | |
966 | Swait() | |
967 | end | |
968 | CLONE:remove() | |
969 | end)) | |
970 | end | |
971 | end | |
972 | ||
973 | function BANNEAREST(POS,RANGE) | |
974 | for i,v in ipairs(workspace:GetChildren()) do | |
975 | local body = v:GetChildren() | |
976 | for part = 1, #body do | |
977 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
978 | if(body[part].Position - POS).Magnitude < RANGE then | |
979 | if v:FindFirstChildOfClass("Humanoid") then | |
980 | Banish(v) | |
981 | if game.Players:FindFirstChild(v.Name) then | |
982 | local Value = IT("BoolValue",Delete) | |
983 | Value.Name = v.Name | |
984 | end | |
985 | end | |
986 | end | |
987 | end | |
988 | end | |
989 | end | |
990 | end | |
991 | ||
992 | workspace.ChildAdded:connect(function(instance) | |
993 | for BANISH = 1, #TOBANISH do | |
994 | if TOBANISH[BANISH] ~= nil then | |
995 | if instance.Name == TOBANISH[BANISH] then | |
996 | coroutine.resume(coroutine.create(function() | |
997 | printbye(instance.Name) | |
998 | instance:ClearAllChildren() | |
999 | Debris:AddItem(instance,0.0005) | |
1000 | end)) | |
1001 | end | |
1002 | end | |
1003 | end | |
1004 | end) | |
1005 | ||
1006 | function SpawnTrail(FROM,TO,BIG) | |
1007 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
1008 | MakeForm(TRAIL,"Cyl") | |
1009 | local DIST = (FROM - TO).Magnitude | |
1010 | if BIG == true then | |
1011 | TRAIL.Size = VT(10,DIST,10) | |
1012 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0)) |
1012 | + | |
1013 | TRAIL.Size = VT(0.25,DIST,0.25) | |
1014 | end | |
1015 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1016 | coroutine.resume(coroutine.create(function() | |
1017 | for i = 1, 5 do | |
1018 | Swait() | |
1019 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1020 | end | |
1021 | TRAIL:remove() | |
1022 | end)) | |
1023 | end | |
1024 | ||
1025 | function WACKYEFFECT(Table) | |
1026 | local TYPE = (Table.EffectType or "Sphere") | |
1027 | local SIZE = (Table.Size or VT(1,1,1)) | |
1028 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1029 | local TRANSPARENCY = (Table.Transparency or 0) | |
1030 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1031 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1032 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1033 | local ROTATION1 = (Table.RotationX or 0) | |
1034 | local ROTATION2 = (Table.RotationY or 0) | |
1035 | local ROTATION3 = (Table.RotationZ or 0) | |
1036 | local MATERIAL = (Table.Material or "Neon") | |
1037 | local COLOR = (Table.Color or C3(0,255,0)) | |
1038 | local TIME = (Table.Time or 45) | |
1039 | local SOUNDID = (Table.SoundID or nil) | |
1040 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1041 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1042 | coroutine.resume(coroutine.create(function() | |
1043 | local PLAYSSOUND = false | |
1044 | local SOUND = nil | |
1045 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1046 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1047 | PLAYSSOUND = true | |
1048 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1049 | end | |
1050 | EFFECT.Color = COLOR | |
1051 | local MSH = nil | |
1052 | if TYPE == "Sphere" then | |
1053 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1054 | elseif TYPE == "Block" then | |
1055 | MSH = IT("BlockMesh",EFFECT) | |
1056 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1057 | elseif TYPE == "Wave" then | |
1058 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1059 | elseif TYPE == "Ring" then | |
1060 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1061 | elseif TYPE == "Slash" then | |
1062 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1063 | elseif TYPE == "Round Slash" then | |
1064 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1065 | elseif TYPE == "Swirl" then | |
1066 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1067 | elseif TYPE == "Skull" then | |
1068 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1069 | elseif TYPE == "Crystal" then | |
1070 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1071 | end | |
1072 | if MSH ~= nil then | |
1073 | local MOVESPEED = nil | |
1074 | if MOVEDIRECTION ~= nil then | |
1075 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1076 | end | |
1077 | local GROWTH = SIZE - ENDSIZE | |
1078 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1079 | if TYPE == "Block" then | |
1080 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1081 | else | |
1082 | EFFECT.CFrame = CFRAME | |
1083 | end | |
1084 | for LOOP = 1, TIME+1 do | |
1085 | Swait() | |
1086 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1087 | if TYPE == "Wave" then | |
1088 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1089 | end | |
1090 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1091 | if TYPE == "Block" then | |
1092 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1093 | else | |
1094 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1095 | end | |
1096 | if MOVEDIRECTION ~= nil then | |
1097 | local ORI = EFFECT.Orientation | |
1098 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1099 | EFFECT.Orientation = ORI | |
1100 | end | |
1101 | end | |
1102 | if PLAYSSOUND == false then | |
1103 | EFFECT:remove() | |
1104 | else | |
1105 | SOUND.Stopped:Connect(function() | |
1106 | EFFECT:remove() | |
1107 | end) | |
1108 | end | |
1109 | else | |
1110 | if PLAYSSOUND == false then | |
1111 | EFFECT:remove() | |
1112 | else | |
1113 | repeat Swait() until SOUND.Playing == false | |
1114 | EFFECT:remove() | |
1115 | end | |
1116 | end | |
1117 | end)) | |
1118 | end | |
1119 | ||
1120 | -- \\ End Stuff for Banishing //-- | |
1121 | ||
1122 | --//=================================\\ | |
1123 | --|| WEAPON CREATION | |
1124 | --\\=================================// | |
1125 | local Particle = IT("ParticleEmitter",nil) | |
1126 | Particle.Enabled = false | |
1127 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1128 | Particle.LightEmission = 0.5 | |
1129 | Particle.Rate = 150 | |
1130 | Particle.ZOffset = 0.2 | |
1131 | Particle.Rotation = NumberRange.new(-180, 180) | |
1132 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1133 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1134 | Particle.Color = ColorSequence.new(C3(255,128,0),C3(0,155,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191)) | |
1135 | ||
1136 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1137 | function ParticleEmitter(Table) | |
1138 | local PRTCL = Particle:Clone() | |
1139 | local Speed = Table.Speed or 5 | |
1140 | local Drag = Table.Drag or 0 | |
1141 | local Size1 = Table.Size1 or 1 | |
1142 | local Size2 = Table.Size2 or 5 | |
1143 | local Lifetime1 = Table.Lifetime1 or 1 | |
1144 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1145 | local Parent = Table.Parent or Torso | |
1146 | local Emit = Table.Emit or 100 | |
1147 | local Offset = Table.Offset or 360 | |
1148 | local Acel = Table.Acel or VT(0,0,0) | |
1149 | local Enabled = Table.Enabled or false | |
1150 | PRTCL.Parent = Parent | |
1151 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1152 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1153 | PRTCL.Speed = NumberRange.new(Speed) | |
1154 | PRTCL.VelocitySpread = Offset | |
1155 | PRTCL.Drag = Drag | |
1156 | PRTCL.Acceleration = Acel | |
1157 | if Enabled == false then | |
1158 | PRTCL:Emit(Emit) | |
1159 | Debris:AddItem(PRTCL,Lifetime2) | |
1160 | else | |
1161 | PRTCL.Enabled = true | |
1162 | end | |
1163 | return PRTCL | |
1164 | end | |
1165 | ||
1166 | ||
1167 | armor = Instance.new("Part") | |
1168 | armormesh = Instance.new("SpecialMesh") | |
1169 | armor.Anchored = false | |
1170 | armor.CanCollide = false | |
1171 | armor.Size = Vector3.new(1.4, 0.7, 1.3) | |
1172 | armor.BrickColor = BrickColor.new("Black") | |
1173 | armor.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1174 | armor.Material = Enum.Material.SmoothPlastic | |
1175 | armor.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1176 | armor.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1177 | armor.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1178 | armor.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1179 | armor.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1180 | armor.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1181 | armor.Parent = Character | |
1182 | armor.CFrame = CFrame.new(-87.19, 0.42, -26.37) * CFrame.Angles(0, 0, 0) | |
1183 | armormesh.MeshId = "rbxassetid://840131767" | |
1184 | armormesh.MeshType = Enum.MeshType.FileMesh | |
1185 | armormesh.Parent = armor | |
1186 | local wlf4 = Instance.new("Weld",armor) | |
1187 | wlf4.Part0 = armor | |
1188 | wlf4.Part1 = Torso | |
1189 | wlf4.C0 = wlf4.C0 * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)) | |
1190 | wlf4.C1 = CFrame.new(0,0,0) | |
1191 | ||
1192 | ||
1193 | ||
1194 | local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1195 | CreateMesh("SpecialMesh", GUN, "FileMesh", "94219391", "94219470", VT(0.7, 0.7, 0.8), VT(0,0,0)) | |
1196 | local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167)), CF(0, 0, 0)) | |
1197 | ||
1198 | local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false) | |
1199 | CreateMesh("SpecialMesh", GUN2, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0)) | |
1200 | local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
1201 | ||
1202 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1203 | MakeForm(Part,"Wedge") | |
1204 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1205 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1206 | MakeForm(Part,"Wedge") | |
1207 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1208 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1209 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1210 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1211 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1212 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1213 | MakeForm(Part,"Cyl") | |
1214 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1215 | for i = 1, 8 do | |
1216 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1217 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1218 | end | |
1219 | ||
1220 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1221 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1222 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1223 | MakeForm(Part,"Wedge") | |
1224 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1225 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1226 | MakeForm(Part,"Wedge") | |
1227 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1228 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1229 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1230 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1231 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1232 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1233 | MakeForm(Part,"Cyl") | |
1234 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1235 | for i = 1, 8 do | |
1236 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1237 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1238 | end | |
1239 | ||
1240 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1241 | MakeForm(Part,"Cyl") | |
1242 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1243 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1244 | MakeForm(Part,"Ball") | |
1245 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1246 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1247 | MakeForm(Part,"Wedge") | |
1248 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1249 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1250 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1251 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1252 | MakeForm(Part,"Cyl") | |
1253 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1254 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1255 | MakeForm(Part,"Cyl") | |
1256 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1257 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1258 | MakeForm(Part,"Cyl") | |
1259 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1260 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1261 | MakeForm(Part,"Wedge") | |
1262 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1263 | local LASTPART = Handle | |
1264 | for i = 1, 10 do | |
1265 | if LASTPART == Handle then | |
1266 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1267 | LASTPART = Part | |
1268 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1269 | else | |
1270 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1271 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1272 | LASTPART = Part | |
1273 | end | |
1274 | end | |
1275 | ||
1276 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1277 | MakeForm(Barrel,"Cyl") | |
1278 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1279 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1280 | MakeForm(Part,"Cyl") | |
1281 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1282 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1283 | MakeForm(Part,"Wedge") | |
1284 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1285 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1286 | MakeForm(Hole,"Cyl") | |
1287 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1288 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1289 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1290 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1291 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1292 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1293 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1294 | coroutine.resume(coroutine.create(function() | |
1295 | while wait() do | |
1296 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1297 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1298 | end | |
1299 | end)) | |
1300 | ||
1301 | --W2-- | |
1302 | ||
1303 | local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1304 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1305 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1306 | MakeForm(Part,"Wedge") | |
1307 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1308 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1309 | MakeForm(Part,"Wedge") | |
1310 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1311 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1312 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1313 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1314 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1315 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1316 | MakeForm(Part,"Cyl") | |
1317 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1318 | for i = 1, 8 do | |
1319 | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1320 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1321 | end | |
1322 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1323 | MakeForm(Part,"Cyl") | |
1324 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1325 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1326 | MakeForm(Part,"Ball") | |
1327 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1328 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1329 | MakeForm(Part,"Wedge") | |
1330 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1331 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1332 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1333 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1334 | MakeForm(Part,"Cyl") | |
1335 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1336 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1337 | MakeForm(Part,"Cyl") | |
1338 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1339 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1340 | MakeForm(Part,"Cyl") | |
1341 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1342 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1343 | MakeForm(Part,"Wedge") | |
1344 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(135), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1345 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1346 | MakeForm(Part,"Cyl") | |
1347 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1348 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1349 | MakeForm(Part,"Wedge") | |
1350 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1351 | local LASTPART = Handle | |
1352 | for i = 1, 10 do | |
1353 | if LASTPART == Handle then | |
1354 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1355 | LASTPART = Part | |
1356 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1357 | else | |
1358 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1359 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1360 | LASTPART = Part | |
1361 | end | |
1362 | end | |
1363 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe", VT(0.2,0.5,0.2),false) | |
1364 | MakeForm(Part,"Wedge") | |
1365 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-125), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1366 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe2", VT(0.2,0.5,0.2),false) | |
1367 | MakeForm(Part,"Wedge") | |
1368 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(125), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1369 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe3", VT(0.2,0.5,0.2),false) | |
1370 | MakeForm(Part,"Wedge") | |
1371 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-145), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1372 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe4", VT(0.2,0.5,0.2),false) | |
1373 | MakeForm(Part,"Wedge") | |
1374 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(145), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
1375 | ||
1376 | local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,5,0.15),false) | |
1377 | MakeForm(Barrel,"Cyl") | |
1378 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1379 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1380 | MakeForm(Part,"Cyl") | |
1381 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1382 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1383 | MakeForm(Part,"Wedge") | |
1384 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 2.4, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1385 | local RHole = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1386 | MakeForm(RHole,"Cyl") | |
1387 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, RHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1388 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1389 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1390 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1391 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1392 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1393 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1394 | ||
1395 | ||
1396 | ||
1397 | ||
1398 | ||
1399 | ||
1400 | coroutine.resume(coroutine.create(function() | |
1401 | while wait() do | |
1402 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1403 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1404 | end | |
1405 | end)) | |
1406 | ||
1407 | local BODY = {} | |
1408 | ||
1409 | for _, c in pairs(Character:GetDescendants()) do | |
1410 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1411 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1412 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1413 | end | |
1414 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
1415 | elseif c:IsA("JointInstance") then | |
1416 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
1417 | end | |
1418 | end | |
1419 | ||
1420 | for e = 1, #BODY do | |
1421 | if BODY[e] ~= nil then | |
1422 | local STUFF = BODY[e] | |
1423 | local PART = STUFF[1] | |
1424 | local PARENT = STUFF[2] | |
1425 | local MATERIAL = STUFF[3] | |
1426 | local COLOR = STUFF[4] | |
1427 | local TRANSPARENCY = STUFF[5] | |
1428 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1429 | PART.Material = MATERIAL | |
1430 | PART.Color = COLOR | |
1431 | PART.Transparency = TRANSPARENCY | |
1432 | end | |
1433 | PART.AncestryChanged:Connect(function() | |
1434 | PART.Parent = PARENT | |
1435 | end) | |
1436 | end | |
1437 | end | |
1438 | ||
1439 | function refit() | |
1440 | Character.Parent = workspace | |
1441 | for e = 1, #BODY do | |
1442 | if BODY[e] ~= nil then | |
1443 | local STUFF = BODY[e] | |
1444 | local PART = STUFF[1] | |
1445 | local PARENT = STUFF[2] | |
1446 | local MATERIAL = STUFF[3] | |
1447 | local COLOR = STUFF[4] | |
1448 | local TRANSPARENCY = STUFF[5] | |
1449 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1450 | PART.Material = MATERIAL | |
1451 | PART.Color = COLOR | |
1452 | PART.Transparency = TRANSPARENCY | |
1453 | end | |
1454 | if PART.Parent ~= PARENT then | |
1455 | Humanoid:remove() | |
1456 | PART.Parent = PARENT | |
1457 | Humanoid = IT("Humanoid",Character) | |
1458 | end | |
1459 | end | |
1460 | end | |
1461 | end | |
1462 | ||
1463 | for _, c in pairs(Weapon:GetDescendants()) do | |
1464 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1465 | c.Material = "Glass" | |
1466 | c.Color = C3(0,0,0) | |
1467 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1468 | c.Color = C3(0,0,0) | |
1469 | c.Material = "Neon" | |
1470 | end | |
1471 | end | |
1472 | ||
1473 | for _, c in pairs(Weapon2:GetDescendants()) do | |
1474 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1475 | c.Material = "Glass" | |
1476 | c.Color = C3(0,0,0) | |
1477 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1478 | c.Color = C3(1,0,0) | |
1479 | c.Material = "Neon" | |
1480 | end | |
1481 | end | |
1482 | ||
1483 | Weapon.Parent = Character | |
1484 | Weapon2.Parent = nil | |
1485 | for _, c in pairs(Weapon:GetChildren()) do | |
1486 | if c.ClassName == "Part" then | |
1487 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1488 | end | |
1489 | end | |
1490 | ||
1491 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1492 | local SKILLFONT = "Arcade" | |
1493 | local SKILLTEXTSIZE = 7 | |
1494 | ||
1495 | Humanoid.Died:connect(function() | |
1496 | ATTACK = true | |
1497 | end) | |
1498 | ||
1499 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1500 | ||
1501 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] Shoot [T] Taunt [F] transform", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1502 | ||
1503 | ||
1504 | ||
1505 | function printbye(Name) | |
1506 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1507 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1508 | end | |
1509 | ||
1510 | workspace.ChildAdded:connect(function(instance) | |
1511 | for BANISH = 1, #TOBANISH do | |
1512 | if TOBANISH[BANISH] ~= nil then | |
1513 | if instance.Name == TOBANISH[BANISH] then | |
1514 | coroutine.resume(coroutine.create(function() | |
1515 | printbye(instance.Name) | |
1516 | instance:ClearAllChildren() | |
1517 | Debris:AddItem(instance,0.0005) | |
1518 | end)) | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | end) | |
1523 | ------------------------------Editing Stuffs------------------------------------- | |
1524 | ||
1525 | ||
1526 | --//=================================\\ | |
1527 | --|| WEAPON CREATION 2 | |
1528 | --\\=================================// | |
1529 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "New yeller", "Scarf", VT(1,1,1),false) | |
1530 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
1531 | PRT.Color = C3(1,1,1) | |
1532 | for i = 1, 35 do | |
1533 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
1534 | FACE.Color = C3(0,0,0) | |
1535 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1536 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1537 | end | |
1538 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1539 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
1540 | MakeForm(Eye,"Ball") | |
1541 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1542 | ||
1543 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1544 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
1545 | MakeForm(Eye,"Ball") | |
1546 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "New yeller", "Hat", VT(2,0.2,2),false) | |
1553 | MakeForm(HAT1,"Cyl") | |
1554 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
1555 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "New yeller", "Hat", VT(2.01,0.15,2.01),false) | |
1556 | BELT.Color = C3(15/255,15/255,15/255) | |
1557 | MakeForm(BELT,"Cyl") | |
1558 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1559 | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "New yeller", "Hat", VT(1.3,2.2,1.3),false) | |
1560 | MakeForm(HAT2,"Cyl") | |
1561 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
1562 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "New yeller", "Hat", VT(1.31,0.2,1.31),false) | |
1563 | BELT.Color = C3(15/255,15/255,15/255) | |
1564 | MakeForm(BELT,"Cyl") | |
1565 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1566 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Gem", VT(0.25,0.25,0.1),false) | |
1567 | MakeForm(GEM,"Ball") | |
1568 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
1569 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false) | |
1570 | MakeForm(GEM,"Ball") | |
1571 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
1572 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "New yeller", "Gem", VT(0.1,0.25,0.25),false) | |
1573 | MakeForm(GEM,"Ball") | |
1574 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1575 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Gem", VT(0.1,0.25,0.25),false) | |
1576 | MakeForm(GEM,"Ball") | |
1577 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1578 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1579 | BELT.Color = C3(15/255,15/255,15/255) | |
1580 | MakeForm(BELT,"Cyl") | |
1581 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
1582 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1583 | BELT.Color = C3(15/255,15/255,15/255) | |
1584 | MakeForm(BELT,"Cyl") | |
1585 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
1586 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1587 | BELT.Color = C3(15/255,15/255,15/255) | |
1588 | MakeForm(BELT,"Cyl") | |
1589 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
1590 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1591 | BELT.Color = C3(15/255,15/255,15/255) | |
1592 | MakeForm(BELT,"Cyl") | |
1593 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
1594 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
1595 | MakeForm(BELT,"Ball") | |
1596 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
1597 | ||
1598 | local top = Instance.new("Shirt") | |
1599 | top.ShirtTemplate = "rbxassetid://676428254" | |
1600 | top.Parent = Character | |
1601 | top.Name = "Cloth" | |
1602 | local bottom = Instance.new("Pants") | |
1603 | bottom.PantsTemplate = "rbxassetid://676428351" | |
1604 | bottom.Parent = Character | |
1605 | bottom.Name = "Cloth" | |
1606 | ||
1607 | ||
1608 | --//=================================\\ | |
1609 | --|| DAMAGING | |
1610 | --\\=================================// | |
1611 | ||
1612 | function ApplyDamage(Humanoid,Damage,OneShot) | |
1613 | Damage = Damage * DAMAGEMULTIPLIER | |
1614 | local DEAD = false | |
1615 | if Humanoid.Health < 2000 and OneShot == false then | |
1616 | if Humanoid.Health - Damage > 0 then | |
1617 | Humanoid.Health = Humanoid.Health - Damage | |
1618 | else | |
1619 | Humanoid.Parent:BreakJoints() | |
1620 | DEAD = true | |
1621 | end | |
1622 | else | |
1623 | DEAD = true | |
1624 | Humanoid.Parent:BreakJoints() | |
1625 | end | |
1626 | if DEAD == true then | |
1627 | local PARTS = {} | |
1628 | for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do | |
1629 | if CHILD:IsA("BasePart") then | |
1630 | table.insert(PARTS,CHILD) | |
1631 | end | |
1632 | end | |
1633 | coroutine.resume(coroutine.create(function() | |
1634 | wait(2) | |
1635 | repeat | |
1636 | Swait() | |
1637 | local PIECE = nil | |
1638 | if MRANDOM(1,5) == 1 then | |
1639 | for E = 1, #PARTS do | |
1640 | if MRANDOM(1,5) == 1 then | |
1641 | PIECE = PARTS[E] | |
1642 | table.remove(PARTS,E) | |
1643 | break | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | if PIECE ~= nil then | |
1648 | if PIECE.Name == "Head" then | |
1649 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
1650 | else | |
1651 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
1652 | end | |
1653 | PIECE:remove() | |
1654 | end | |
1655 | until #PARTS == 0 | |
1656 | end)) | |
1657 | end | |
1658 | end | |
1659 | ||
1660 | ||
1661 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
1662 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1663 | defence.Name = ("HitBy"..Player.Name) | |
1664 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1665 | Damage = Damage * DAMAGEMULTIPLIER | |
1666 | if Humanoid.Health ~= 0 then | |
1667 | local CritChance = MRANDOM(1,100) | |
1668 | if Damage > Humanoid.Health then | |
1669 | Damage = math.ceil(Humanoid.Health) | |
1670 | if Damage == 0 then | |
1671 | Damage = 0.1 | |
1672 | end | |
1673 | end | |
1674 | Humanoid.Health = Humanoid.Health - Damage | |
1675 | end | |
1676 | end | |
1677 | ||
1678 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
1679 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1680 | defence.Name = ("HitBy"..Player.Name) | |
1681 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1682 | Damage = Damage * DAMAGEMULTIPLIER | |
1683 | if Humanoid.Health ~= 0 then | |
1684 | local CritChance = MRANDOM(1,100) | |
1685 | if Damage > Humanoid.Health then | |
1686 | Damage = math.ceil(Humanoid.Health) | |
1687 | if Damage == 0 then | |
1688 | Damage = 0.1 | |
1689 | end | |
1690 | end | |
1691 | Humanoid.Health = Humanoid.Health - Damage | |
1692 | end | |
1693 | end | |
1694 | ||
1695 | function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1696 | local CHILDREN = workspace:GetDescendants() | |
1697 | for index, CHILD in pairs(CHILDREN) do | |
1698 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1699 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1700 | if HUM then | |
1701 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1702 | if TORSO then | |
1703 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1704 | if INSTAKILL == true then | |
1705 | CHILD:BreakJoints() | |
1706 | else | |
1707 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1708 | ApplyDamage(HUM,DMG,TORSO) | |
1709 | end | |
1710 | if FLING > 0 then | |
1711 | for _, c in pairs(CHILD:GetChildren()) do | |
1712 | if c:IsA("BasePart") then | |
1713 | local bv = Instance.new("BodyVelocity") | |
1714 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1715 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1716 | bv.Parent = c | |
1717 | Debris:AddItem(bv,0.05) | |
1718 | end | |
1719 | end | |
1720 | end | |
1721 | end | |
1722 | end | |
1723 | end | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | ||
1728 | function CameraEnshaking(Length, Intensity) | |
1729 | coroutine.resume(coroutine.create(function() | |
1730 | local intensity = 1 * Intensity | |
1731 | local rotM = 0.01 * Intensity | |
1732 | for i = 0, Length, 0.1 do | |
1733 | Swait() | |
1734 | intensity = intensity - 0.05 * Intensity / Length | |
1735 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1736 | Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) | |
1737 | Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM) | |
1738 | end | |
1739 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
1740 | end)) | |
1741 | end | |
1742 | ||
1743 | function KillChildren(v) | |
1744 | v:BreakJoints() | |
1745 | for _, c in pairs(v:GetChildren()) do | |
1746 | if c:IsA("BasePart") then | |
1747 | if c.Transparency < 1 then | |
1748 | if c:FindFirstChildOfClass("Decal") then | |
1749 | c:FindFirstChildOfClass("Decal"):remove() | |
1750 | end | |
1751 | particles(c) | |
1752 | c.PE.Enabled = true | |
1753 | c.Parent = Effects | |
1754 | c.CanCollide = false | |
1755 | c.Material = "Neon" | |
1756 | c.Color = C3(1,0,0) | |
1757 | c.Transparency = 1 | |
1758 | local grav = Instance.new("BodyPosition",c) | |
1759 | grav.P = 20000 | |
1760 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1761 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1762 | grav.Name = "GravityForce" | |
1763 | coroutine.resume(coroutine.create(function() | |
1764 | for i = 1, 20 do | |
1765 | Swait() | |
1766 | c.Transparency = c.Transparency + 1/20 | |
1767 | end | |
1768 | c.PE.Enabled = false | |
1769 | Debris:AddItem(c,2) | |
1770 | end)) | |
1771 | end | |
1772 | end | |
1773 | - | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Lime green", "MeteorCenter", VT(5,5,5)*SIZE) |
1773 | + | |
1774 | end | |
1775 | ||
1776 | function ApplyAoE(POSITION,RANGE) | |
1777 | local CHILDREN = workspace:GetDescendants() | |
1778 | for index, CHILD in pairs(CHILDREN) do | |
1779 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1780 | local LISTED = false | |
1781 | for LIST = 1, #WHITELIST do | |
1782 | if WHITELIST[LIST] ~= nil then | |
1783 | if CHILD.Name == WHITELIST[LIST] then | |
1784 | LISTED = true | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | if LISTED == false then | |
1789 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1790 | if HUM then | |
1791 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1792 | if TORSO then | |
1793 | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then | |
1794 | KillChildren(CHILD) | |
1795 | end | |
1796 | end | |
1797 | end | |
1798 | end | |
1799 | end | |
1800 | end | |
1801 | end | |
1802 | ||
1803 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
1804 | coroutine.resume(coroutine.create(function() | |
1805 | local METEOR = IT("Model",Effects) | |
1806 | METEOR.Name = "Meteorite" | |
1807 | - | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1807 | + | |
1808 | - | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) |
1808 | + | |
1809 | - | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1809 | + | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really red", "MeteorCenter", VT(5,5,5)*SIZE) |
1810 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1811 | for i = 1, 15 do | |
1812 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE) | |
1813 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1814 | end | |
1815 | if ISDEBREE ~= true then | |
1816 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1817 | else | |
1818 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1819 | end | |
1820 | local IMPACT = false | |
1821 | CreateSound(463593339, CENTER, 10, 0.6) | |
1822 | if SIZE >= 3.5 then | |
1823 | for i = 1, MRANDOM(3,7) do | |
1824 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
1825 | end | |
1826 | end | |
1827 | for i = 1, 200 do | |
1828 | Swait() | |
1829 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
1830 | if HITFLOOR == nil then | |
1831 | local ORI = CENTER.Orientation | |
1832 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1833 | else | |
1834 | if HITFLOOR.Anchored == true then | |
1835 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
1836 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
1837 | end | |
1838 | IMPACT = true | |
1839 | break | |
1840 | end | |
1841 | end | |
1842 | if IMPACT == true then | |
1843 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1844 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
1845 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1846 | ApplyAoE(CENTER.Position,30*SIZE) | |
1847 | end | |
1848 | METEOR:remove() | |
1849 | end)) | |
1850 | end | |
1851 | ||
1852 | function ApplyAoE4(POSITION,RANGE,BRUTAL) | |
1853 | local CHILDREN = workspace:GetDescendants() | |
1854 | for index, CHILD in pairs(CHILDREN) do | |
1855 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1856 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1857 | if HUM then | |
1858 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1859 | if TORSO then | |
1860 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1861 | if BRUTAL == true then | |
1862 | Kill(CHILD) | |
1863 | else | |
1864 | CHILD:BreakJoints() | |
1865 | end | |
1866 | end | |
1867 | end | |
1868 | end | |
1869 | end | |
1870 | end | |
1871 | end | |
1872 | ||
1873 | function Kill(Char) | |
1874 | local NewCharacter = IT("Model",Effects) | |
1875 | NewCharacter.Name = "Ow im ded ;-;" | |
1876 | for _, c in pairs(Char:GetDescendants()) do | |
1877 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1878 | c:BreakJoints() | |
1879 | c.Material = "Glass" | |
1880 | c.Color = C3(1,0,0) | |
1881 | c.CanCollide = true | |
1882 | c.Transparency = 0.3 | |
1883 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1884 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1885 | end | |
1886 | if c.Name == "Head" then | |
1887 | c:ClearAllChildren() | |
1888 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1889 | end | |
1890 | if c.ClassName == "MeshPart" then | |
1891 | c.TextureID = "" | |
1892 | end | |
1893 | if c:FindFirstChildOfClass("BodyPosition") then | |
1894 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1895 | end | |
1896 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1897 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1898 | end | |
1899 | c.Parent = NewCharacter | |
1900 | c.Name = "DeadPart" | |
1901 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1902 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1903 | end | |
1904 | end | |
1905 | Char:remove() | |
1906 | Debris:AddItem(NewCharacter,5) | |
1907 | end | |
1908 | ||
1909 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1910 | local CHILDREN = workspace:GetDescendants() | |
1911 | for index, CHILD in pairs(CHILDREN) do | |
1912 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1913 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1914 | if HUM then | |
1915 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1916 | if TORSO then | |
1917 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1918 | if BRUTAL == true then | |
1919 | Kill(CHILD) | |
1920 | else | |
1921 | CHILD:BreakJoints() | |
1922 | end | |
1923 | end | |
1924 | end | |
1925 | end | |
1926 | end | |
1927 | end | |
1928 | end | |
1929 | ||
1930 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1931 | local CHILDREN = workspace:GetDescendants() | |
1932 | for index, CHILD in pairs(CHILDREN) do | |
1933 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1934 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1935 | if HUM then | |
1936 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1937 | if TORSO then | |
1938 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1939 | if BRUTAL == true then | |
1940 | Kill(CHILD) | |
1941 | else | |
1942 | CHILD:BreakJoints() | |
1943 | end | |
1944 | end | |
1945 | end | |
1946 | end | |
1947 | end | |
1948 | end | |
1949 | end | |
1950 | ||
1951 | function Banish(Foe) | |
1952 | if Foe then | |
1953 | coroutine.resume(coroutine.create(function() | |
1954 | --if game.Players:FindFirstChild(Foe.Name) then | |
1955 | table.insert(TOBANISH,Foe.Name) | |
1956 | printbye(Foe.Name) | |
1957 | --end | |
1958 | Foe.Archivable = true | |
1959 | local CLONE = Foe:Clone() | |
1960 | Foe:Destroy() | |
1961 | CLONE.Parent = Effects | |
1962 | CLONE:BreakJoints() | |
1963 | local MATERIALS = {"Glass","Neon"} | |
1964 | for _, c in pairs(CLONE:GetDescendants()) do | |
1965 | if c:IsA("BasePart") then | |
1966 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1967 | CreateSound(138271815, c, 10, 1, false) | |
1968 | end | |
1969 | c.Anchored = true | |
1970 | c.Transparency = c.Transparency + 0.2 | |
1971 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1972 | c.Color = C3(1,0,0) | |
1973 | if c.ClassName == "MeshPart" then | |
1974 | c.TextureID = "" | |
1975 | end | |
1976 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1977 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1978 | end | |
1979 | if c:FindFirstChildOfClass("Decal") then | |
1980 | c:FindFirstChildOfClass("Decal"):remove() | |
1981 | end | |
1982 | c.Name = "Banished" | |
1983 | c.CanCollide = false | |
1984 | else | |
1985 | c:remove() | |
1986 | end | |
1987 | end | |
1988 | local A = false | |
1989 | for i = 1, 35 do | |
1990 | if A == false then | |
1991 | A = true | |
1992 | elseif A == true then | |
1993 | A = false | |
1994 | end | |
1995 | for _, c in pairs(CLONE:GetDescendants()) do | |
1996 | if c:IsA("BasePart") then | |
1997 | c.Anchored = true | |
1998 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1999 | c.Transparency = c.Transparency + 0.8/35 | |
2000 | if A == false then | |
2001 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2002 | elseif A == true then | |
2003 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2004 | end | |
2005 | end | |
2006 | end | |
2007 | Swait() | |
2008 | end | |
2009 | CLONE:remove() | |
2010 | end)) | |
2011 | end | |
2012 | end | |
2013 | ||
2014 | ||
2015 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
2016 | local CHILDREN = workspace:GetDescendants() | |
2017 | for index, CHILD in pairs(CHILDREN) do | |
2018 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2019 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2020 | if HUM then | |
2021 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2022 | if TORSO then | |
2023 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2024 | if ISBANISH == true then | |
2025 | Banish(CHILD) | |
2026 | else | |
2027 | if ISBANISH == "Gravity" then | |
2028 | HUM.PlatformStand = true | |
2029 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2030 | local grav = Instance.new("BodyPosition",TORSO) | |
2031 | grav.D = 15 | |
2032 | grav.P = 20000 | |
2033 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2034 | - | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
2034 | + | |
2035 | - | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
2035 | + | |
2036 | - | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
2036 | + | |
2037 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
2038 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
2039 | - | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
2039 | + | |
2040 | else | |
2041 | HUM.PlatformStand = false | |
2042 | end | |
2043 | end | |
2044 | elseif ISBANISH == "Gravity" then | |
2045 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2046 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
2047 | HUM.PlatformStand = false | |
2048 | end | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | end | |
2053 | end | |
2054 | end | |
2055 | ||
2056 | function SpawnSmite(POS) | |
2057 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
2058 | local EMITPOS = HITPOS | |
2059 | if HITFLOOR ~= nil then | |
2060 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
2061 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
2062 | EMITPOS = HITPOS | |
2063 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
2064 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
2065 | EMITPOS = HITPOS | |
2066 | end | |
2067 | end | |
2068 | if HITFLOOR ~= nil then | |
2069 | ApplyAoE(EMITPOS,10) | |
2070 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
2071 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2072 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2073 | for i = 1, 5 do | |
2074 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
2075 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
2076 | end | |
2077 | end | |
2078 | end | |
2079 | ||
2080 | --//=================================\\ | |
2081 | --|| TRANSFORMATIONS | |
2082 | --\\=================================// | |
2083 | ||
2084 | function Switch() | |
2085 | ATTACK = true | |
2086 | Rooted = true | |
2087 | if MODE == "GoodCop" then | |
2088 | CreateSound("649634100", Head, 10, 0.5) | |
2089 | for i = 0, 3, 0.1 / Animation_Speed do | |
2090 | Swait() | |
2091 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2092 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2093 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2094 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2095 | - | MODE = "BadCop" |
2095 | + | |
2096 | - | tecks2.Text = "..." |
2096 | + | |
2097 | - | wait(1) |
2097 | + | |
2098 | - | tecks2.Text = "I gave you a chance to stop" |
2098 | + | |
2099 | - | wait(2) |
2099 | + | |
2100 | - | tecks2.Text = "now say good bye" |
2100 | + | |
2101 | - | wait(2) |
2101 | + | |
2102 | - | tecks2.Text = "P A I N" |
2102 | + | |
2103 | - | sick.SoundId = "rbxassetid://378796558" |
2103 | + | |
2104 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2105 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2106 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2107 | end | |
2108 | Weapon.Parent = nil | |
2109 | Weapon2.Parent = Character | |
2110 | for i = 0, 1, 0.1 / Animation_Speed do | |
2111 | Swait() | |
2112 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed) | |
2113 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2114 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2115 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2116 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2117 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2118 | end | |
2119 | - | tecks2.Text = "uhh" |
2119 | + | |
2120 | - | wait(2) |
2120 | + | |
2121 | - | tecks2.Text = "are you sure not to stop?" |
2121 | + | |
2122 | - | wait(2) |
2122 | + | |
2123 | - | tecks2.Text = "Hmm" |
2123 | + | |
2124 | - | wait(2) |
2124 | + | |
2125 | - | tecks2.Text = "HMMMMMMMMMMMMMMMMM" |
2125 | + | |
2126 | - | sick.SoundId = "rbxassetid://1117396305" |
2126 | + | |
2127 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2128 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2129 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2130 | end | |
2131 | MODE = "BadCop" | |
2132 | tecks2.Text = "ENRAGED" | |
2133 | sick.SoundId = "rbxassetid://632100439" | |
2134 | sick.TimePosition = 0 | |
2135 | elseif MODE == "BadCop" then | |
2136 | CreateSound(2783294896, Torso, 4, 1.3, false) | |
2137 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2138 | Swait() | |
2139 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2140 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2141 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.4, 0.75, -0.3) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2142 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2143 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2144 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2145 | end | |
2146 | MODE = "GoodCop" | |
2147 | Weapon.Parent = Character | |
2148 | Weapon2.Parent = nil | |
2149 | tecks2.Text = "P A I N" | |
2150 | sick.SoundId = "rbxassetid://2598224585" | |
2151 | sick.TimePosition = 22 | |
2152 | end | |
2153 | ATTACK = false | |
2154 | Rooted = false | |
2155 | end | |
2156 | ||
2157 | ||
2158 | --//=================================\\ | |
2159 | --|| ATTACK FUNCTIONS AND STUFF | |
2160 | --\\=================================// | |
2161 | ||
2162 | function Intro() | |
2163 | ATTACK = true | |
2164 | Rooted = true | |
2165 | repeat | |
2166 | Swait() | |
2167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2169 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
2170 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2171 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2172 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2173 | until sick.TimePosition > 1 | |
2174 | repeat | |
2175 | Swait() | |
2176 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2177 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2178 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2179 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2180 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2181 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2182 | until sick.TimePosition > 1 | |
2183 | repeat | |
2184 | Swait() | |
2185 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2186 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2187 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2188 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2189 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2190 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2191 | until sick.TimePosition > 1 | |
2192 | tecks2.TextTransparency = 0 | |
2193 | for i = 1, 100 do | |
2194 | Swait() | |
2195 | ||
2196 | ||
2197 | end | |
2198 | TRANSFORMED = true | |
2199 | ATTACK = false | |
2200 | Rooted = false | |
2201 | end | |
2202 | ||
2203 | function Shot1() | |
2204 | ATTACK = true | |
2205 | Rooted = false | |
2206 | for i=0, 0.4, 0.05 / Animation_Speed do | |
2207 | Swait() | |
2208 | turnto(Mouse.Hit.p) | |
2209 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
2210 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = RHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
2210 | + | |
2211 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 1463566014, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2211 | + | |
2212 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2213 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2214 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2215 | end | |
2216 | repeat | |
2217 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2218 | Swait() | |
2219 | turnto(Mouse.Hit.p) | |
2220 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
2221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed) | |
2222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, -0.4) * ANGLES(RAD(170), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2224 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2226 | end | |
2227 | local HIT,POS = CastProperRay(RHole.Position, Mouse.Hit.p, 1000, Character) | |
2228 | SpawnTrail(RHole.Position,POS) | |
2229 | if HIT ~= nil then | |
2230 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2231 | Banish(HIT.Parent) | |
2232 | end | |
2233 | end | |
2234 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = RHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2235 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2236 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2237 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "ForceField", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2238 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
2239 | for i=0, 0.3, 0.05 / Animation_Speed do | |
2240 | Swait() | |
2241 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(60)), 0.5 / Animation_Speed) | |
2242 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.25 / Animation_Speed) | |
2243 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2244 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.6, -0.4) * ANGLES(RAD(172), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2245 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2246 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2247 | end | |
2248 | until KEYHOLD == false | |
2249 | ATTACK = false | |
2250 | Rooted = false | |
2251 | end | |
2252 | ||
2253 | function Shot2() | |
2254 | ATTACK = true | |
2255 | Rooted = false | |
2256 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2257 | Swait() | |
2258 | turnto(Mouse.Hit.p) | |
2259 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2260 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2261 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
2261 | + | |
2262 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2263 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2264 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2265 | end | |
2266 | repeat | |
2267 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2268 | Swait() | |
2269 | turnto(Mouse.Hit.p) | |
2270 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2271 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2272 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2273 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2274 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2275 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2276 | end | |
2277 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2278 | SpawnTrail(Hole.Position,POS) | |
2279 | if HIT ~= nil then | |
2280 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2281 | Kill(HIT.Parent) | |
2282 | end | |
2283 | end | |
2284 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2285 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 3184041930, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2286 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2287 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2288 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
2289 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2290 | Swait() | |
2291 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2292 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2293 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2294 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2295 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2296 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2297 | end | |
2298 | until KEYHOLD == false | |
2299 | ATTACK = false | |
2300 | Rooted = false | |
2301 | end | |
2302 | ||
2303 | function ScrewThis() | |
2304 | ATTACK = true | |
2305 | Rooted = true | |
2306 | Weapon.Parent = nil | |
2307 | sick.Volume = 0 | |
2308 | CreateSound("137473066", Effects, 10, 0.9) | |
2309 | CreateSound(137473066, Effects, 10, 1, false) | |
2310 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2311 | Swait() | |
2312 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2316 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2317 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2318 | end | |
2319 | CreateSound(363808674, Effects, 10, 1, false) | |
2320 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2321 | Swait() | |
2322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
2324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2326 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2328 | end | |
2329 | CreateSound(363808674, Effects, 10, 1, false) | |
2330 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2331 | Swait() | |
2332 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2333 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2334 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2335 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2336 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2337 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2338 | end | |
2339 | CreateSound(363808674, Effects, 10, 1, false) | |
2340 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2341 | Swait() | |
2342 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2343 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
2344 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2345 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2346 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2347 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2348 | end | |
2349 | CreateSound(363808674, Effects, 10, 1, false) | |
2350 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2351 | Swait() | |
2352 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2353 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2354 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2355 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2356 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2357 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2358 | end | |
2359 | CreateSound(363808674, Effects, 10, 1, false) | |
2360 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2361 | Swait() | |
2362 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2363 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
2364 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2365 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2366 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2367 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2368 | end | |
2369 | Weapon.Parent = Character | |
2370 | sick.Volume = 2 | |
2371 | ATTACK = false | |
2372 | Rooted = false | |
2373 | end | |
2374 | ||
2375 | function Taunt() | |
2376 | ATTACK = true | |
2377 | Rooted = true | |
2378 | local L = CreateSound(2738830850,Head,8,1.1,false) | |
2379 | L.EmitterSize = 25 | |
2380 | for i = 1, 20 do | |
2381 | Swait() | |
2382 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2383 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2384 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2385 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2386 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2387 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2388 | end | |
2389 | for i = 1, 40 do | |
2390 | Swait() | |
2391 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2392 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) | |
2393 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2394 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2395 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2396 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2397 | end | |
2398 | for i = 1, 60 do | |
2399 | Swait() | |
2400 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2401 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2402 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2403 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2404 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2405 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2406 | end | |
2407 | for i = 1, 60 do | |
2408 | Swait() | |
2409 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2410 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) | |
2411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2413 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2414 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2415 | end | |
2416 | for i = 1, 90 do | |
2417 | Swait() | |
2418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2420 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2421 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2422 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2423 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2424 | end | |
2425 | for i = 1, 72 do | |
2426 | Swait() | |
2427 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2428 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) | |
2429 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2430 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2431 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2432 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2433 | end | |
2434 | for i = 1, 96 do | |
2435 | Swait() | |
2436 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2437 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2438 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2439 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2440 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2441 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2442 | end | |
2443 | for i = 1, 98 do | |
2444 | Swait() | |
2445 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2446 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed) | |
2447 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2448 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2449 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2450 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2451 | end | |
2452 | ATTACK = false | |
2453 | Rooted = false | |
2454 | end | |
2455 | --//=================================\\ | |
2456 | --|| ASSIGN THINGS TO KEYS | |
2457 | --\\=================================// | |
2458 | ||
2459 | function MouseDown(Mouse) | |
2460 | if ATTACK == false then | |
2461 | ||
2462 | end | |
2463 | end | |
2464 | ||
2465 | function MouseUp(Mouse) | |
2466 | HOLD = false | |
2467 | end | |
2468 | ||
2469 | function KeyDown(Key) | |
2470 | KEYHOLD = true | |
2471 | if TRANSFORMED == true and Rooted == false then | |
2472 | if Key == "f" and ATTACK == false then | |
2473 | Switch() | |
2474 | end | |
2475 | ||
2476 | ||
2477 | if Key == "e" and ATTACK == false then | |
2478 | if MODE == "GoodCop" then | |
2479 | Shot2() | |
2480 | elseif MODE == "BadCop" then | |
2481 | Shot1() | |
2482 | end | |
2483 | end | |
2484 | ||
2485 | if Key == "t" and ATTACK == false then | |
2486 | if MODE == "GoodCop" then | |
2487 | ScrewThis() | |
2488 | elseif MODE == "BadCop" then | |
2489 | Taunt() | |
2490 | end | |
2491 | end | |
2492 | ||
2493 | end | |
2494 | ||
2495 | if Key == "9" and ATTACK == false then | |
2496 | CreateSound("135017578", Effects, 5, 1) | |
2497 | end | |
2498 | end | |
2499 | ||
2500 | function KeyUp(Key) | |
2501 | KEYHOLD = false | |
2502 | end | |
2503 | ||
2504 | Mouse.Button1Down:connect(function(NEWKEY) | |
2505 | MouseDown(NEWKEY) | |
2506 | end) | |
2507 | Mouse.Button1Up:connect(function(NEWKEY) | |
2508 | MouseUp(NEWKEY) | |
2509 | end) | |
2510 | Mouse.KeyDown:connect(function(NEWKEY) | |
2511 | KeyDown(NEWKEY) | |
2512 | end) | |
2513 | Mouse.KeyUp:connect(function(NEWKEY) | |
2514 | KeyUp(NEWKEY) | |
2515 | end) | |
2516 | ||
2517 | --//=================================\\ | |
2518 | --\\=================================// | |
2519 | ||
2520 | ||
2521 | function unanchor() | |
2522 | if UNANCHOR == true then | |
2523 | RootPart.Anchored = false | |
2524 | end | |
2525 | for _, c in pairs(Weapon:GetChildren()) do | |
2526 | if c.ClassName == "Part" then | |
2527 | c.Anchored = false | |
2528 | end | |
2529 | end | |
2530 | end | |
2531 | ||
2532 | ||
2533 | --//=================================\\ | |
2534 | --|| WRAP THE WHOLE SCRIPT UP | |
2535 | --\\=================================// | |
2536 | ||
2537 | Humanoid.Changed:connect(function(Jump) | |
2538 | if Jump == "Jump" and (Disable_Jump == true) then | |
2539 | Humanoid.Jump = false | |
2540 | end | |
2541 | end) | |
2542 | ||
2543 | while true do | |
2544 | Swait() | |
2545 | script.Parent = WEAPONGUI | |
2546 | ANIMATE.Parent = nil | |
2547 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2548 | v:Stop(); | |
2549 | end | |
2550 | SINE = SINE + CHANGE | |
2551 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2552 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2553 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2554 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2555 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2556 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2557 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2558 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
2559 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed) | |
2560 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2561 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2562 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2563 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed) | |
2564 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed) | |
2565 | end | |
2566 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2567 | ANIM = "Jump" | |
2568 | if ATTACK == false then | |
2569 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2570 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2571 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2572 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2573 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2574 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2575 | end | |
2576 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2577 | ANIM = "Fall" | |
2578 | if ATTACK == false then | |
2579 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2580 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2581 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2582 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2583 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2584 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2585 | end | |
2586 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2587 | ANIM = "Idle" | |
2588 | if ATTACK == false then | |
2589 | if MODE == "GoodCop" then | |
2590 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2591 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2592 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2593 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2594 | RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2595 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2596 | elseif MODE == "BadCop" then | |
2597 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) | |
2598 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
2599 | if MRANDOM(1,7) == 1 then | |
2600 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
2601 | end | |
2602 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2603 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2604 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2605 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2606 | end | |
2607 | end | |
2608 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2609 | ANIM = "Walk" | |
2610 | if ATTACK == false then | |
2611 | if MODE == "GoodCop" then | |
2612 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2613 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2614 | elseif MODE == "BadCop" then | |
2615 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2616 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2617 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, -0.15) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2618 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
2619 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2620 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2621 | end | |
2622 | end | |
2623 | end | |
2624 | Humanoid.DisplayDistanceType = "None" | |
2625 | unanchor() | |
2626 | tecks2.TextColor3 = BrickColor.Random().Color | |
2627 | tecks2.TextStrokeColor3 = BrickColor.Random().Color | |
2628 | Humanoid.MaxHealth = "inf" | |
2629 | Humanoid.Health = "inf" | |
2630 | if Rooted == false then | |
2631 | Disable_Jump = false | |
2632 | Humanoid.WalkSpeed = Speed | |
2633 | elseif Rooted == true then | |
2634 | Disable_Jump = true | |
2635 | Humanoid.WalkSpeed = 0 | |
2636 | end | |
2637 | Humanoid.PlatformStand = false | |
2638 | if INTRO == false and INSTANT == false then | |
2639 | INTRO = true | |
2640 | coroutine.resume(coroutine.create(function() | |
2641 | sick:Play() | |
2642 | Intro() | |
2643 | end)) | |
2644 | end | |
2645 | if INSTANT == true then | |
2646 | if TRANSFORMED == false then | |
2647 | sick.TimePosition = 60 | |
2648 | sick:Play() | |
2649 | end | |
2650 | TRANSFORMED = true | |
2651 | end | |
2652 | script.Parent = PlayerGui | |
2653 | Character.Parent = workspace | |
2654 | Humanoid.Parent = Character | |
2655 | end | |
2656 | --//=================================\\ | |
2657 | --\\=================================// | |
2658 | ||
2659 | ||
2660 | ||
2661 | ||
2662 | ||
2663 | --//====================================================\\-- | |
2664 | --|| END OF SCRIPT | |
2665 | --\\====================================================//-- |