SHOW:
|
|
- or go back to the newest paste.
1 | --Join my discord server.---------------------------------------------------------------- | |
2 | --Original by Shackluster.--------------------------------------------------------------- | |
3 | --Enjoy the edit! :D.-------------------------------------------------------------------- | |
4 | --Join here: https://discordapp.com/channels/506798328995119114/506798328995119116------- | |
5 | ----------------------------------------------------------------------------------------- | |
6 | ------Update 27/12/2018!----------------------------------------------------- | |
7 | ----------------------------------------------------------------------------------------- | |
8 | -- This script has convert to FE by who i don't know? | |
9 | ||
10 | ----------------------------------------------------- | |
11 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
12 | local Player,game,owner = owner,game | |
13 | local RealPlayer = Player | |
14 | do | |
15 | print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!") | |
16 | local rp = RealPlayer | |
17 | script.Parent = rp.Character | |
18 | ||
19 | --RemoteEvent for communicating | |
20 | local Event = Instance.new("RemoteEvent") | |
21 | Event.Name = "UserInput_Event" | |
22 | ||
23 | --Fake event to make stuff like Mouse.KeyDown work | |
24 | local function fakeEvent() | |
25 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
26 | t.connect = t.Connect | |
27 | return t | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
32 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
33 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
34 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
35 | end} | |
36 | --Merged 2 functions into one by checking amount of arguments | |
37 | CAS.UnbindAction = CAS.BindAction | |
38 | ||
39 | --This function will trigger the events that have been :Connect()'ed | |
40 | local function te(self,ev,...) | |
41 | local t = m[ev] | |
42 | if t and t._fakeEvent then | |
43 | for _,f in pairs(t.Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | end | |
48 | m.TrigEvent = te | |
49 | UIS.TrigEvent = te | |
50 | ||
51 | Event.OnServerEvent:Connect(function(plr,io) | |
52 | if plr~=rp then return end | |
53 | m.Target = io.Target | |
54 | m.Hit = io.Hit | |
55 | if not io.isMouse then | |
56 | local b = io.UserInputState == Enum.UserInputState.Begin | |
57 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
58 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
59 | end | |
60 | for _,t in pairs(CAS.Actions) do | |
61 | for _,k in pairs(t.Keys) do | |
62 | if k==io.KeyCode then | |
63 | t.Function(t.Name,io.UserInputState,io) | |
64 | end | |
65 | end | |
66 | end | |
67 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
68 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
69 | end | |
70 | end) | |
71 | Event.Parent = NLS([==[ | |
72 | local Player = game:GetService("Players").LocalPlayer | |
73 | local Event = script:WaitForChild("UserInput_Event") | |
74 | ||
75 | local Mouse = Player:GetMouse() | |
76 | local UIS = game:GetService("UserInputService") | |
77 | local input = function(io,a) | |
78 | if a then return end | |
79 | --Since InputObject is a client-side instance, we create and pass table instead | |
80 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
81 | end | |
82 | UIS.InputBegan:Connect(input) | |
83 | UIS.InputEnded:Connect(input) | |
84 | ||
85 | local h,t | |
86 | --Give the server mouse data 30 times every second, but only if the values changed | |
87 | --If player is not moving their mouse, client won't fire events | |
88 | while wait(1/30) do | |
89 | if h~=Mouse.Hit or t~=Mouse.Target then | |
90 | h,t=Mouse.Hit,Mouse.Target | |
91 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
92 | end | |
93 | end]==],Player.Character) | |
94 | ||
95 | ----Sandboxed game object that allows the usage of client-side methods and services | |
96 | --Real game object | |
97 | local _rg = game | |
98 | ||
99 | --Metatable for fake service | |
100 | local fsmt = { | |
101 | __index = function(self,k) | |
102 | local s = rawget(self,"_RealService") | |
103 | if s then return s[k] end | |
104 | end, | |
105 | __newindex = function(self,k,v) | |
106 | local s = rawget(self,"_RealService") | |
107 | if s then s[k]=v end | |
108 | end, | |
109 | __call = function(self,...) | |
110 | local s = rawget(self,"_RealService") | |
111 | if s then return s(...) end | |
112 | end | |
113 | } | |
114 | local function FakeService(t,RealService) | |
115 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
116 | return setmetatable(t,fsmt) | |
117 | end | |
118 | ||
119 | --Fake game object | |
120 | local g = { | |
121 | GetService = function(self,s) | |
122 | return self[s] | |
123 | end, | |
124 | Players = FakeService({ | |
125 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
126 | },"Players"), | |
127 | UserInputService = FakeService(UIS,"UserInputService"), | |
128 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | ||
133 | g.RunService = FakeService({ | |
134 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
135 | BindToRenderStep = function(self,name,_,fun) | |
136 | ||
137 | end, | |
138 | UnbindFromRenderStep = function(self,name) | |
139 | self._btrs[name]:Disconnect() | |
140 | end, | |
141 | },"RunService") | |
142 | ||
143 | setmetatable(g,{ | |
144 | __index=function(self,s) | |
145 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
146 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
147 | end, | |
148 | __newindex = fsmt.__newindex, | |
149 | __call = fsmt.__call | |
150 | }) | |
151 | --Changing owner to fake player object to support owner:GetMouse() | |
152 | game,owner = g,g.Players.LocalPlayer | |
153 | end | |
154 | ||
155 | script:ClearAllChildren() | |
156 | wait(0.2) | |
157 | ||
158 | Player = game:GetService("Players").LocalPlayer | |
159 | PlayerGui = Player.PlayerGui | |
160 | Cam = workspace.CurrentCamera | |
161 | Backpack = Player.Backpack | |
162 | Character = Player.Character | |
163 | Humanoid = Character.Humanoid | |
164 | Mouse = Player:GetMouse() | |
165 | RootPart = Character["HumanoidRootPart"] | |
166 | Torso = Character["Torso"] | |
167 | Head = Character["Head"] | |
168 | RightArm = Character["Right Arm"] | |
169 | LeftArm = Character["Left Arm"] | |
170 | RightLeg = Character["Right Leg"] | |
171 | LeftLeg = Character["Left Leg"] | |
172 | RootJoint = RootPart["RootJoint"] | |
173 | Neck = Torso["Neck"] | |
174 | RightShoulder = Torso["Right Shoulder"] | |
175 | LeftShoulder = Torso["Left Shoulder"] | |
176 | RightHip = Torso["Right Hip"] | |
177 | LeftHip = Torso["Left Hip"] | |
178 | print('User: '..Player.Name) | |
179 | print('Go bust those Criminals') | |
180 | local sick = Instance.new("Sound",Character) | |
181 | sick.Parent = Character | |
182 | sick:resume() | |
183 | sick.Volume = 10 | |
184 | - | sick.Pitch = 0 |
184 | + | sick.Pitch = 0.75 |
185 | sick.Looped = true | |
186 | sick.SoundId = "rbxassetid://561833161" | |
187 | sick.Name = "" | |
188 | -------------Name Tag Stuff.------------------------ | |
189 | local naeeym = Instance.new("BillboardGui",Character) | |
190 | naeeym.Size = UDim2.new(0,100,0,40) | |
191 | naeeym.StudsOffset = Vector3.new(0,2,0) | |
192 | naeeym.Adornee = Character.Head | |
193 | local tecks = Instance.new("TextLabel",naeeym) | |
194 | tecks.BackgroundTransparency = 1 | |
195 | tecks.BorderSizePixel = 0 | |
196 | tecks.Text = "Holy spirit" | |
197 | tecks.Font = "Arcade" | |
198 | tecks.FontSize = "Size24" | |
199 | tecks.TextStrokeTransparency = 0 | |
200 | tecks.TextStrokeColor3 = Color3.new(1,1,1) | |
201 | tecks.TextColor3 = Color3.new(1,1,1) | |
202 | tecks.Size = UDim2.new(1,0,0.5,0) | |
203 | ---------------------------------------------------- | |
204 | ||
205 | IT = Instance.new | |
206 | CF = CFrame.new | |
207 | VT = Vector3.new | |
208 | RAD = math.rad | |
209 | C3 = Color3.new | |
210 | UD2 = UDim2.new | |
211 | BRICKC = BrickColor.new | |
212 | ANGLES = CFrame.Angles | |
213 | EULER = CFrame.fromEulerAnglesXYZ | |
214 | COS = math.cos | |
215 | ACOS = math.acos | |
216 | SIN = math.sin | |
217 | ASIN = math.asin | |
218 | ABS = math.abs | |
219 | MRANDOM = math.random | |
220 | FLOOR = math.floor | |
221 | ||
222 | local sky = Instance.new('Sky', game:GetService'Lighting') | |
223 | sky.SkyboxBk = "rbxassetid://48020371" | |
224 | sky.SkyboxDn = "rbxassetid://48020144" | |
225 | sky.SkyboxFt = "rbxassetid://48020234" | |
226 | sky.SkyboxLf = "rbxassetid://48020211" | |
227 | sky.SkyboxRt = "rbxassetid://48020254" | |
228 | sky.SkyboxUp = "rbxassetid://48020383" | |
229 | sky.StarCount = 3000 | |
230 | sky.SunAngularSize = 0 | |
231 | sky.MoonAngularSize = 11 | |
232 | sky.MoonTextureId = "rbxasset://sky/moon.jpg" | |
233 | sky.CelestialBodiesShown = false | |
234 | ||
235 | Character["Body Colors"].HeadColor = BrickColor.new("Institutional white") | |
236 | Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white") | |
237 | Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white") | |
238 | Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white") | |
239 | Character["Body Colors"].LeftLegColor = BrickColor.new("Institutional white") | |
240 | Character["Body Colors"].RightLegColor = BrickColor.new("Institutional white") | |
241 | ||
242 | --//=================================\\ | |
243 | --|| USEFUL VALUES | |
244 | --\\=================================// | |
245 | ||
246 | Player_Size = 1 | |
247 | Animation_Speed = 3 | |
248 | local FORCERESET = false | |
249 | local Effects2 = {} | |
250 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
251 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
252 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
253 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
254 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
255 | local DAMAGEMULTIPLIER = 1 | |
256 | local SIZE = 1 | |
257 | local ANIM = "Idle" | |
258 | local ATTACK = false | |
259 | local EQUIPPED = false | |
260 | local HOLD = false | |
261 | local COMBO = 1 | |
262 | local Rooted = false | |
263 | local SINE = 0 | |
264 | local KEYHOLD = false | |
265 | local CHANGE = 2 / Animation_Speed | |
266 | local WALKINGANIM = false | |
267 | local VALUE1 = false | |
268 | local VALUE2 = false | |
269 | local ROBLOXIDLEANIMATION = IT("Animation") | |
270 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
271 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
272 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
273 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
274 | WEAPONGUI.Name = "BanishV3Gui" | |
275 | local Weapon = IT("Model") | |
276 | Weapon.Name = "Adds" | |
277 | local Effects = IT("Folder", Weapon) | |
278 | Effects.Name = "Effects" | |
279 | local ANIMATOR = Humanoid.Animator | |
280 | local ANIMATE = Character:FindFirstChild("Animate") | |
281 | local UNANCHOR = true | |
282 | local TOBANISH = {} | |
283 | local ROAR = {528589078,528589175,528589274,528589382} | |
284 | script.Parent = PlayerGui | |
285 | ||
286 | --//=================================\\ | |
287 | --\\=================================// | |
288 | ||
289 | local Speed = 18 | |
290 | ||
291 | --//=================================\\ | |
292 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
293 | --\\=================================// | |
294 | ||
295 | ArtificialHB = Instance.new("BindableEvent", script) | |
296 | ArtificialHB.Name = "ArtificialHB" | |
297 | ||
298 | script:WaitForChild("ArtificialHB") | |
299 | ||
300 | frame = Frame_Speed | |
301 | tf = 0 | |
302 | allowframeloss = false | |
303 | tossremainder = false | |
304 | lastframe = tick() | |
305 | script.ArtificialHB:Fire() | |
306 | ||
307 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
308 | tf = tf + s | |
309 | if tf >= frame then | |
310 | if allowframeloss then | |
311 | script.ArtificialHB:Fire() | |
312 | lastframe = tick() | |
313 | else | |
314 | for i = 1, math.floor(tf / frame) do | |
315 | script.ArtificialHB:Fire() | |
316 | end | |
317 | lastframe = tick() | |
318 | end | |
319 | if tossremainder then | |
320 | tf = 0 | |
321 | else | |
322 | tf = tf - frame * math.floor(tf / frame) | |
323 | end | |
324 | end | |
325 | end) | |
326 | ||
327 | --//=================================\\ | |
328 | --\\=================================// | |
329 | ||
330 | --//=================================\\ | |
331 | --|| SOME FUNCTIONS | |
332 | --\\=================================// | |
333 | ||
334 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
335 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
336 | end | |
337 | ||
338 | function PositiveAngle(NUMBER) | |
339 | if NUMBER >= 0 then | |
340 | NUMBER = 0 | |
341 | end | |
342 | return NUMBER | |
343 | end | |
344 | ||
345 | function NegativeAngle(NUMBER) | |
346 | if NUMBER <= 0 then | |
347 | NUMBER = 0 | |
348 | end | |
349 | return NUMBER | |
350 | end | |
351 | ||
352 | function Swait(NUMBER) | |
353 | if NUMBER == 0 or NUMBER == nil then | |
354 | ArtificialHB.Event:wait() | |
355 | else | |
356 | for i = 1, NUMBER do | |
357 | ArtificialHB.Event:wait() | |
358 | end | |
359 | end | |
360 | end | |
361 | ||
362 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
363 | local NEWMESH = IT(MESH) | |
364 | if MESH == "SpecialMesh" then | |
365 | NEWMESH.MeshType = MESHTYPE | |
366 | if MESHID ~= "nil" and MESHID ~= "" then | |
367 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
368 | end | |
369 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
370 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
371 | end | |
372 | end | |
373 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
374 | NEWMESH.Scale = SCALE | |
375 | NEWMESH.Parent = PARENT | |
376 | return NEWMESH | |
377 | end | |
378 | ||
379 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
380 | local NEWPART = IT("Part") | |
381 | NEWPART.formFactor = FORMFACTOR | |
382 | NEWPART.Reflectance = REFLECTANCE | |
383 | NEWPART.Transparency = TRANSPARENCY | |
384 | NEWPART.CanCollide = false | |
385 | NEWPART.Locked = true | |
386 | NEWPART.Anchored = true | |
387 | if ANCHOR == false then | |
388 | NEWPART.Anchored = false | |
389 | end | |
390 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
391 | NEWPART.Name = NAME | |
392 | NEWPART.Size = SIZE | |
393 | NEWPART.Position = Torso.Position | |
394 | NEWPART.Material = MATERIAL | |
395 | NEWPART:BreakJoints() | |
396 | NEWPART.Parent = PARENT | |
397 | return NEWPART | |
398 | end | |
399 | ||
400 | local function weldBetween(a, b) | |
401 | local weldd = Instance.new("ManualWeld") | |
402 | weldd.Part0 = a | |
403 | weldd.Part1 = b | |
404 | weldd.C0 = CFrame.new() | |
405 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
406 | weldd.Parent = a | |
407 | return weldd | |
408 | end | |
409 | ||
410 | ||
411 | function QuaternionFromCFrame(cf) | |
412 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
413 | local trace = m00 + m11 + m22 | |
414 | if trace > 0 then | |
415 | local s = math.sqrt(1 + trace) | |
416 | local recip = 0.5 / s | |
417 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
418 | else | |
419 | local i = 0 | |
420 | if m11 > m00 then | |
421 | i = 1 | |
422 | end | |
423 | if m22 > (i == 0 and m00 or m11) then | |
424 | i = 2 | |
425 | end | |
426 | if i == 0 then | |
427 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
428 | local recip = 0.5 / s | |
429 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
430 | elseif i == 1 then | |
431 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
432 | local recip = 0.5 / s | |
433 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
434 | elseif i == 2 then | |
435 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
436 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
437 | end | |
438 | end | |
439 | end | |
440 | ||
441 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
442 | local xs, ys, zs = x + x, y + y, z + z | |
443 | local wx, wy, wz = w * xs, w * ys, w * zs | |
444 | local xx = x * xs | |
445 | local xy = x * ys | |
446 | local xz = x * zs | |
447 | local yy = y * ys | |
448 | local yz = y * zs | |
449 | local zz = z * zs | |
450 | 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)) | |
451 | end | |
452 | ||
453 | function QuaternionSlerp(a, b, t) | |
454 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
455 | local startInterp, finishInterp; | |
456 | if cosTheta >= 0.0001 then | |
457 | if (1 - cosTheta) > 0.0001 then | |
458 | local theta = ACOS(cosTheta) | |
459 | local invSinTheta = 1 / SIN(theta) | |
460 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
461 | finishInterp = SIN(t * theta) * invSinTheta | |
462 | else | |
463 | startInterp = 1 - t | |
464 | finishInterp = t | |
465 | end | |
466 | else | |
467 | if (1 + cosTheta) > 0.0001 then | |
468 | local theta = ACOS(-cosTheta) | |
469 | local invSinTheta = 1 / SIN(theta) | |
470 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
471 | finishInterp = SIN(t * theta) * invSinTheta | |
472 | else | |
473 | startInterp = t - 1 | |
474 | finishInterp = t | |
475 | end | |
476 | end | |
477 | 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 | |
478 | end | |
479 | ||
480 | function Clerp(a, b, t) | |
481 | local qa = {QuaternionFromCFrame(a)} | |
482 | local qb = {QuaternionFromCFrame(b)} | |
483 | local ax, ay, az = a.x, a.y, a.z | |
484 | local bx, by, bz = b.x, b.y, b.z | |
485 | local _t = 1 - t | |
486 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
487 | end | |
488 | ||
489 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
490 | local frame = IT("Frame") | |
491 | frame.BackgroundTransparency = TRANSPARENCY | |
492 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
493 | frame.Position = POSITION | |
494 | frame.Size = SIZE | |
495 | frame.BackgroundColor3 = COLOR | |
496 | frame.BorderColor3 = BORDERCOLOR | |
497 | frame.Name = NAME | |
498 | frame.Parent = PARENT | |
499 | return frame | |
500 | end | |
501 | ||
502 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
503 | local label = IT("TextLabel") | |
504 | label.BackgroundTransparency = 1 | |
505 | label.Size = UD2(1, 0, 1, 0) | |
506 | label.Position = UD2(0, 0, 0, 0) | |
507 | label.TextColor3 = TEXTCOLOR | |
508 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
509 | label.TextTransparency = TRANSPARENCY | |
510 | label.FontSize = TEXTFONTSIZE | |
511 | label.Font = TEXTFONT | |
512 | label.BorderSizePixel = BORDERSIZEPIXEL | |
513 | label.TextScaled = false | |
514 | label.Text = TEXT | |
515 | label.Name = NAME | |
516 | label.Parent = PARENT | |
517 | return label | |
518 | end | |
519 | ||
520 | function NoOutlines(PART) | |
521 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
522 | end | |
523 | ||
524 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
525 | local NEWWELD = IT(TYPE) | |
526 | NEWWELD.Part0 = PART0 | |
527 | NEWWELD.Part1 = PART1 | |
528 | NEWWELD.C0 = C0 | |
529 | NEWWELD.C1 = C1 | |
530 | NEWWELD.Parent = PARENT | |
531 | return NEWWELD | |
532 | end | |
533 | local S = IT("Sound") | |
534 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
535 | local NEWSOUND = nil | |
536 | coroutine.resume(coroutine.create(function() | |
537 | NEWSOUND = S:Clone() | |
538 | NEWSOUND.Parent = PARENT | |
539 | NEWSOUND.Volume = VOLUME | |
540 | NEWSOUND.Pitch = PITCH | |
541 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
542 | NEWSOUND:play() | |
543 | if DOESLOOP == true then | |
544 | NEWSOUND.Looped = true | |
545 | else | |
546 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
547 | NEWSOUND:remove() | |
548 | end | |
549 | end)) | |
550 | return NEWSOUND | |
551 | end | |
552 | ||
553 | function CFrameFromTopBack(at, top, back) | |
554 | local right = top:Cross(back) | |
555 | 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) | |
556 | end | |
557 | ||
558 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
559 | function WACKYEFFECT(Table) | |
560 | local TYPE = (Table.EffectType or "Sphere") | |
561 | local SIZE = (Table.Size or VT(1,1,1)) | |
562 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
563 | local TRANSPARENCY = (Table.Transparency or 0) | |
564 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
565 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
566 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
567 | local ROTATION1 = (Table.RotationX or 0) | |
568 | local ROTATION2 = (Table.RotationY or 0) | |
569 | local ROTATION3 = (Table.RotationZ or 0) | |
570 | local MATERIAL = (Table.Material or "Neon") | |
571 | local COLOR = (Table.Color or C3(1,1,1)) | |
572 | local TIME = (Table.Time or 45) | |
573 | local SOUNDID = (Table.SoundID or nil) | |
574 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
575 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
576 | coroutine.resume(coroutine.create(function() | |
577 | local PLAYSSOUND = false | |
578 | local SOUND = nil | |
579 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
580 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
581 | PLAYSSOUND = true | |
582 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
583 | end | |
584 | EFFECT.Color = COLOR | |
585 | local MSH = nil | |
586 | if TYPE == "Sphere" then | |
587 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
588 | elseif TYPE == "Block" then | |
589 | MSH = IT("BlockMesh",EFFECT) | |
590 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
591 | elseif TYPE == "Wave" then | |
592 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
593 | elseif TYPE == "Ring" then | |
594 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
595 | elseif TYPE == "Slash" then | |
596 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
597 | elseif TYPE == "Round Slash" then | |
598 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
599 | elseif TYPE == "Swirl" then | |
600 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
601 | elseif TYPE == "Skull" then | |
602 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
603 | elseif TYPE == "Crystal" then | |
604 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
605 | end | |
606 | if MSH ~= nil then | |
607 | local MOVESPEED = nil | |
608 | if MOVEDIRECTION ~= nil then | |
609 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
610 | end | |
611 | local GROWTH = SIZE - ENDSIZE | |
612 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
613 | if TYPE == "Block" then | |
614 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
615 | else | |
616 | EFFECT.CFrame = CFRAME | |
617 | end | |
618 | for LOOP = 1, TIME+1 do | |
619 | Swait() | |
620 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
621 | if TYPE == "Wave" then | |
622 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
623 | end | |
624 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
625 | if TYPE == "Block" then | |
626 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
627 | else | |
628 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
629 | end | |
630 | if MOVEDIRECTION ~= nil then | |
631 | local ORI = EFFECT.Orientation | |
632 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
633 | EFFECT.Orientation = ORI | |
634 | end | |
635 | end | |
636 | if PLAYSSOUND == false then | |
637 | EFFECT:remove() | |
638 | else | |
639 | SOUND.Stopped:Connect(function() | |
640 | EFFECT:remove() | |
641 | end) | |
642 | end | |
643 | else | |
644 | if PLAYSSOUND == false then | |
645 | EFFECT:remove() | |
646 | else | |
647 | repeat Swait() until SOUND.Playing == false | |
648 | EFFECT:remove() | |
649 | end | |
650 | end | |
651 | end)) | |
652 | end | |
653 | ||
654 | function MakeForm(PART,TYPE) | |
655 | if TYPE == "Cyl" then | |
656 | local MSH = IT("CylinderMesh",PART) | |
657 | elseif TYPE == "Ball" then | |
658 | local MSH = IT("SpecialMesh",PART) | |
659 | MSH.MeshType = "Sphere" | |
660 | elseif TYPE == "Wedge" then | |
661 | local MSH = IT("SpecialMesh",PART) | |
662 | MSH.MeshType = "Wedge" | |
663 | end | |
664 | end | |
665 | ||
666 | function SpawnTrail(FROM,TO,BIG) | |
667 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
668 | MakeForm(TRAIL,"Cyl") | |
669 | local DIST = (FROM - TO).Magnitude | |
670 | if BIG == true then | |
671 | TRAIL.Size = VT(4.5,DIST,4.5) | |
672 | else | |
673 | TRAIL.Size = VT(4.5,DIST,4.5) | |
674 | end | |
675 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
676 | coroutine.resume(coroutine.create(function() | |
677 | for i = 1, 5 do | |
678 | Swait() | |
679 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
680 | end | |
681 | TRAIL:remove() | |
682 | end)) | |
683 | end | |
684 | ||
685 | function SpawnTrail0(FROM,TO,BIG) | |
686 | local TRAIL0 = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(1,1,1)) | |
687 | MakeForm(TRAIL0,"Cyl") | |
688 | local DIST = (FROM - TO).Magnitude | |
689 | if BIG == true then | |
690 | TRAIL0.Size = VT(0.75,DIST,0.75) | |
691 | else | |
692 | TRAIL0.Size = VT(0.65,DIST,0.65) | |
693 | end | |
694 | TRAIL0.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
695 | coroutine.resume(coroutine.create(function() | |
696 | for i = 1, 5 do | |
697 | Swait() | |
698 | TRAIL0.Transparency = TRAIL0.Transparency + 0.1 | |
699 | end | |
700 | TRAIL0:remove() | |
701 | end)) | |
702 | end | |
703 | ||
704 | Debris = game:GetService("Debris") | |
705 | ||
706 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
707 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
708 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
709 | end | |
710 | ||
711 | function turnto(position) | |
712 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
713 | end | |
714 | ||
715 | function swait(num) | |
716 | if num == 0 or num == nil then | |
717 | ArtificialHB.Event:wait() | |
718 | else | |
719 | for i = 0, num do | |
720 | ArtificialHB.Event:wait() | |
721 | end | |
722 | end | |
723 | end | |
724 | ||
725 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
726 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
727 | local mesh = IT("SpecialMesh",wave) | |
728 | mesh.MeshType = "FileMesh" | |
729 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
730 | mesh.Scale = SIZE | |
731 | mesh.Offset = VT(0,0,0) | |
732 | wave.CFrame = CFRAME | |
733 | coroutine.resume(coroutine.create(function(PART) | |
734 | for i = 1, WAIT do | |
735 | Swait() | |
736 | mesh.Scale = mesh.Scale + GROW | |
737 | if DOESROT == true then | |
738 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
739 | end | |
740 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
741 | if wave.Transparency > 0.99 then | |
742 | wave:remove() | |
743 | end | |
744 | end | |
745 | end)) | |
746 | end | |
747 | ||
748 | function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW) | |
749 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
750 | local mesh = IT("SpecialMesh",wave) | |
751 | mesh.MeshType = "Sphere" | |
752 | mesh.Scale = SIZE | |
753 | mesh.Offset = VT(0,0,0) | |
754 | wave.CFrame = CFRAME | |
755 | coroutine.resume(coroutine.create(function(PART) | |
756 | for i = 1, WAIT do | |
757 | Swait() | |
758 | mesh.Scale = mesh.Scale + GROW | |
759 | wave.Transparency = wave.Transparency + (1/WAIT) | |
760 | if wave.Transparency > 0.99 then | |
761 | wave:remove() | |
762 | end | |
763 | end | |
764 | end)) | |
765 | end | |
766 | ||
767 | function chatfunc(text) | |
768 | local chat = coroutine.wrap(function() | |
769 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
770 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
771 | end | |
772 | local Bill = Instance.new("BillboardGui",Character) | |
773 | Bill.Size = UDim2.new(0,100,0,40) | |
774 | Bill.StudsOffset = Vector3.new(0,3,0) | |
775 | Bill.Adornee = Character.Head | |
776 | Bill.Name = "TalkingBillBoard" | |
777 | local Hehe = Instance.new("TextLabel",Bill) | |
778 | Hehe.BackgroundTransparency = 1 | |
779 | Hehe.BorderSizePixel = 0 | |
780 | Hehe.Text = "" | |
781 | Hehe.Font = "Fantasy" | |
782 | Hehe.TextSize = 40 | |
783 | Hehe.TextStrokeTransparency = 0 | |
784 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
785 | coroutine.resume(coroutine.create(function() | |
786 | while Hehe ~= nil do | |
787 | swait() | |
788 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
789 | Hehe.Rotation = math.random(-5,5) | |
790 | Hehe.TextColor3 = Color3.new(17,17,17) | |
791 | Hehe.TextStrokeColor3 = Color3.new(17,17,17) | |
792 | end | |
793 | end)) | |
794 | for i = 1,string.len(text),1 do | |
795 | swait() | |
796 | Hehe.Text = string.sub(text,1,i) | |
797 | end | |
798 | swait(90)--Re[math.random(1, 93)] | |
799 | for i = 0, 1, .025 do | |
800 | swait() | |
801 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
802 | Hehe.TextStrokeTransparency = i | |
803 | Hehe.TextTransparency = i | |
804 | end | |
805 | Bill:Destroy() | |
806 | end) | |
807 | chat() | |
808 | end | |
809 | ||
810 | function CheckTableForString(Table, String) | |
811 | for i, v in pairs(Table) do | |
812 | if string.find(string.lower(String), string.lower(v)) then | |
813 | return true | |
814 | end | |
815 | end | |
816 | return false | |
817 | end | |
818 | ||
819 | function CheckIntangible(Hit) | |
820 | local ProjectileNames = { | |
821 | "Water", | |
822 | "Arrow", | |
823 | "Projectile", | |
824 | "Effect", | |
825 | "Rail", | |
826 | "Lightning", | |
827 | "Bullet" | |
828 | } | |
829 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
830 | return true | |
831 | end | |
832 | return false | |
833 | end | |
834 | ||
835 | --//=================================\\ | |
836 | --|| WEAPON CREATION | |
837 | --\\=================================// | |
838 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "New yeller", "Scarf", VT(1,1,1),false) | |
839 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
840 | PRT.Color = C3(1,1,1) | |
841 | for i = 1, 35 do | |
842 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
843 | FACE.Color = C3(0,0,0) | |
844 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
845 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
846 | end | |
847 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
848 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Deep orange", "Eye", VT(0.1,1,1)/2,false) | |
849 | MakeForm(Eye,"Ball") | |
850 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
851 | ||
852 | function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT) | |
853 | if FLOOR ~= nil then | |
854 | coroutine.resume(coroutine.create(function() | |
855 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0)) | |
856 | PART.CFrame = CF(POSITION) | |
857 | for i = 1, 45 do | |
858 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
859 | RingPiece.Material = FLOOR.Material | |
860 | RingPiece.Color = FLOOR.Color | |
861 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
862 | Debris:AddItem(RingPiece, SWAIT) | |
863 | end | |
864 | PART:remove() | |
865 | end)) | |
866 | end | |
867 | end | |
868 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH) | |
869 | if FLOOR ~= nil then | |
870 | for i = 1, AMOUNT do | |
871 | do | |
872 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
873 | DEBREE.Material = FLOOR.Material | |
874 | DEBREE.Color = FLOOR.Color | |
875 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
876 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH)) | |
877 | coroutine.resume(coroutine.create(function() | |
878 | Swait(15) | |
879 | DEBREE.Parent = workspace | |
880 | DEBREE.CanCollide = true | |
881 | Debris:AddItem(DEBREE, SWAIT) | |
882 | end)) | |
883 | end | |
884 | end | |
885 | end | |
886 | end | |
887 | ||
888 | local Particle = IT("ParticleEmitter",nil) | |
889 | Particle.Enabled = false | |
890 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
891 | Particle.LightEmission = 0.88 | |
892 | Particle.Rate = 250 | |
893 | Particle.ZOffset = 0.2 | |
894 | Particle.Rotation = NumberRange.new(-180, 180) | |
895 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
896 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
897 | Particle.Color = ColorSequence.new(C3(255,255,255),C3(255,255,255)) | |
898 | ||
899 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
900 | function ParticleEmitter(Table) | |
901 | local PRTCL = Particle:Clone() | |
902 | local Speed = Table.Speed or 5 | |
903 | local Drag = Table.Drag or 0 | |
904 | local Size1 = Table.Size1 or 1 | |
905 | local Size2 = Table.Size2 or 5 | |
906 | local Lifetime1 = Table.Lifetime1 or 1 | |
907 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
908 | local Parent = Table.Parent or Torso | |
909 | local Emit = Table.Emit or 100 | |
910 | local Offset = Table.Offset or 360 | |
911 | local Acel = Table.Acel or VT(0,0,0) | |
912 | local Enabled = Table.Enabled or false | |
913 | PRTCL.Parent = Parent | |
914 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
915 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
916 | PRTCL.Speed = NumberRange.new(Speed) | |
917 | PRTCL.VelocitySpread = Offset | |
918 | PRTCL.Drag = Drag | |
919 | PRTCL.Acceleration = Acel | |
920 | if Enabled == false then | |
921 | PRTCL:Emit(Emit) | |
922 | Debris:AddItem(PRTCL,Lifetime2) | |
923 | else | |
924 | PRTCL.Enabled = true | |
925 | end | |
926 | return PRTCL | |
927 | end | |
928 | ||
929 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
930 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
931 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
932 | MakeForm(Part,"Wedge") | |
933 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
934 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
935 | MakeForm(Part,"Wedge") | |
936 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
937 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
938 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
939 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
940 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
941 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
942 | MakeForm(Part,"Cyl") | |
943 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
944 | for i = 1, 8 do | |
945 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
946 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
947 | end | |
948 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
949 | MakeForm(Part,"Cyl") | |
950 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
951 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
952 | MakeForm(Part,"Ball") | |
953 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
954 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
955 | MakeForm(Part,"Wedge") | |
956 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
957 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
958 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
959 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
960 | MakeForm(Part,"Cyl") | |
961 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
962 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
963 | MakeForm(Part,"Cyl") | |
964 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
965 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
966 | MakeForm(Part,"Cyl") | |
967 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
968 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
969 | MakeForm(Part,"Wedge") | |
970 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
971 | local LASTPART = Handle | |
972 | for i = 1, 10 do | |
973 | if LASTPART == Handle then | |
974 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
975 | LASTPART = Part | |
976 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
977 | else | |
978 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
979 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
980 | LASTPART = Part | |
981 | end | |
982 | end | |
983 | ||
984 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
985 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
986 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
987 | MakeForm(Part,"Wedge") | |
988 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
989 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
990 | MakeForm(Part,"Wedge") | |
991 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
992 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
993 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
994 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
995 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
996 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
997 | MakeForm(Part,"Cyl") | |
998 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
999 | for i = 1, 8 do | |
1000 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1001 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1002 | end | |
1003 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1004 | MakeForm(Part,"Cyl") | |
1005 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1006 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1007 | MakeForm(Part,"Ball") | |
1008 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1009 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1010 | MakeForm(Part,"Wedge") | |
1011 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1012 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1013 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1014 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1015 | MakeForm(Part,"Cyl") | |
1016 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1017 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1018 | MakeForm(Part,"Cyl") | |
1019 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1020 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1021 | MakeForm(Part,"Cyl") | |
1022 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1023 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1024 | MakeForm(Part,"Wedge") | |
1025 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1026 | local LASTPART = Handle | |
1027 | for i = 1, 10 do | |
1028 | if LASTPART == Handle then | |
1029 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1030 | LASTPART = Part | |
1031 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1032 | else | |
1033 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1034 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1035 | LASTPART = Part | |
1036 | end | |
1037 | end | |
1038 | ||
1039 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1040 | MakeForm(Barrel,"Cyl") | |
1041 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1042 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1043 | MakeForm(Part,"Cyl") | |
1044 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1045 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1046 | MakeForm(Part,"Wedge") | |
1047 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1048 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1049 | MakeForm(Hole,"Cyl") | |
1050 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1051 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1052 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1053 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1054 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1055 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1056 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1057 | coroutine.resume(coroutine.create(function() | |
1058 | while wait() do | |
1059 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1060 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1061 | end | |
1062 | end)) | |
1063 | ||
1064 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1065 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1066 | ||
1067 | for _, c in pairs(Weapon:GetDescendants()) do | |
1068 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1069 | c.Material = "Glass" | |
1070 | c.Color = C3(0,0,0) | |
1071 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1072 | c.Color = C3(1,1,1) | |
1073 | c.Material = "Neon" | |
1074 | end | |
1075 | end | |
1076 | ||
1077 | Weapon.Parent = Character | |
1078 | for _, c in pairs(Weapon:GetChildren()) do | |
1079 | if c.ClassName == "Part" then | |
1080 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1081 | end | |
1082 | end | |
1083 | ||
1084 | local SKILLTEXTCOLOR = C3(1,1,1) | |
1085 | local SKILLFONT = "Bodoni" | |
1086 | local SKILLTEXTSIZE = 5 | |
1087 | ||
1088 | Humanoid.Died:connect(function() | |
1089 | ATTACK = true | |
1090 | end) | |
1091 | Humanoid.Died:connect(function() | |
1092 | Humanoid.Parent = nil | |
1093 | chatfunc("I don't have any crimes to DIE!") | |
1094 | ApplyAoE(RootPart, 955, 9999, 9999, 9999, true) | |
1095 | Humanoid.Name = "DEAD!" | |
1096 | Humanoid.MaxHealth = 16e+16 | |
1097 | Humanoid.Health = 16e+16 | |
1098 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really white",VT(10,10,10)) | |
1099 | CreateSound("178452217", Effects, 10, 1) | |
1100 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Institutional white",VT(500,500,500)) | |
1101 | end) | |
1102 | ||
1103 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1104 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1105 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1106 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1107 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.20, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1108 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.03, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1109 | ||
1110 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Z - Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
1111 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "X - Pure Heaven", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1112 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "F - Heaven's Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1113 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "V - Gates Of Darkness", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1114 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "C - ROAR", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1115 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "n - Switch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1116 | ||
1117 | workspace.ChildAdded:connect(function(instance) | |
1118 | for BANISH = 1, #TOBANISH do | |
1119 | if TOBANISH[BANISH] ~= nil then | |
1120 | if instance.Name == TOBANISH[BANISH] then | |
1121 | coroutine.resume(coroutine.create(function() | |
1122 | printbye(instance.Name) | |
1123 | instance:ClearAllChildren() | |
1124 | Debris:AddItem(instance,0.0005) | |
1125 | end)) | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | end) | |
1130 | ------- testing stuffs -------------- | |
1131 | --//=================================\\ | |
1132 | --|| TRANSFORMATIONS | |
1133 | --\\=================================// | |
1134 | ||
1135 | function Switch() | |
1136 | ATTACK = true | |
1137 | Rooted = true | |
1138 | if MODE == "GoodCop" then | |
1139 | CreateSound("649634100", Head, 10, 0.5) | |
1140 | for i = 0, 3, 0.1 / Animation_Speed do | |
1141 | Swait() | |
1142 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1143 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1144 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1145 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1146 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1147 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1148 | end | |
1149 | CreateSound("289842971", RightArm, 10, 1) | |
1150 | for i = 0, 6, 0.1 / Animation_Speed do | |
1151 | Swait() | |
1152 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed) | |
1153 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1154 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1155 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1156 | 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) | |
1157 | 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) | |
1158 | end | |
1159 | Weapon.Parent = nil | |
1160 | Weapon2.Parent = Character | |
1161 | for i = 0, 1, 0.1 / Animation_Speed do | |
1162 | Swait() | |
1163 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed) | |
1164 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1165 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1166 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1167 | 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) | |
1168 | - | game.Workspace.Base.BrickColor = BrickColor.new ("Gold") |
1168 | + | |
1169 | end | |
1170 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1171 | Swait() | |
1172 | 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) | |
1173 | 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) | |
1174 | if MRANDOM(1,7) == 1 then | |
1175 | 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) | |
1176 | end | |
1177 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1178 | 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) | |
1179 | 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) | |
1180 | 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) | |
1181 | end | |
1182 | MODE = "BadCop" | |
1183 | tecks2.Text = "Death" | |
1184 | sick.SoundId = "rbxassetid://561833161" | |
1185 | sick.TimePosition = 0 | |
1186 | elseif MODE == "BadCop" then | |
1187 | CreateSound(147722227, Torso, 4, 1.3, false) | |
1188 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1189 | Swait() | |
1190 | 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) | |
1191 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1192 | 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) | |
1193 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1194 | 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) | |
1195 | 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) | |
1196 | end | |
1197 | MODE = "GoodCop" | |
1198 | Weapon.Parent = Character | |
1199 | Weapon2.Parent = nil | |
1200 | tecks2.Text = "Holy spirit" | |
1201 | sick.SoundId = "rbxassetid://996980700" | |
1202 | sick.TimePosition = 22 | |
1203 | end | |
1204 | ATTACK = false | |
1205 | Rooted = false | |
1206 | end | |
1207 | ||
1208 | ||
1209 | hand1Determination = Instance.new("Model", char) | |
1210 | hand1Determination.Name ="Red" | |
1211 | hand2Perseverance = Instance.new("Model", char) | |
1212 | hand2Perseverance.Name ="Purple" | |
1213 | hand3Patience = Instance.new("Model", char) | |
1214 | hand3Patience.Name = "Cyan" | |
1215 | hand4Integrity = Instance.new("Model", char) | |
1216 | hand4Integrity.Name = "Blue" | |
1217 | hand5Bravery = Instance.new("Model", char) | |
1218 | hand5Bravery.Name = "Orange" | |
1219 | hand6Justice = Instance.new("Model", char) | |
1220 | hand6Justice.Name = "Yellow" | |
1221 | hand7Kindness = Instance.new("Model", char) | |
1222 | hand7Kindness.Name = "Green" | |
1223 | ||
1224 | ||
1225 | fire = Instance.new('Fire',RightLeg) -- change the part to where u want it to stick on | |
1226 | fire.Color = Color3.new(1,1,1) | |
1227 | fire.SecondaryColor = Color3.new(1,1,1) | |
1228 | fire.Enabled = true | |
1229 | ||
1230 | fire = Instance.new('Fire',RightArm) -- change the part to where u want it to stick on | |
1231 | fire.Color = Color3.new(1,1,1) | |
1232 | fire.SecondaryColor = Color3.new(1,1,1) | |
1233 | fire.Enabled = true | |
1234 | ||
1235 | game.Workspace.Base.Material = "Plastic" | |
1236 | game.Workspace.Base.BrickColor = BrickColor.new ("New yeller") | |
1237 | game.Workspace.Base.Transparency = 0 | |
1238 | ||
1239 | ||
1240 | ||
1241 | --//=================================\\ | |
1242 | --|| DAMAGING | |
1243 | --\\=================================// | |
1244 | ||
1245 | function Banish(Foe) | |
1246 | if Foe then | |
1247 | coroutine.resume(coroutine.create(function() | |
1248 | --if game.Players:FindFirstChild(Foe.Name) then | |
1249 | table.insert(TOBANISH,Foe.Name) | |
1250 | printbye(Foe.Name) | |
1251 | --end | |
1252 | Foe.Archivable = true | |
1253 | local CLONE = Foe:Clone() | |
1254 | Foe:Destroy() | |
1255 | CLONE.Parent = Effects | |
1256 | CLONE:BreakJoints() | |
1257 | local MATERIALS = {"Glass","Neon"} | |
1258 | for _, c in pairs(CLONE:GetDescendants()) do | |
1259 | if c:IsA("BasePart") then | |
1260 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1261 | CreateSound(340722848, c, 10, 1, false) | |
1262 | end | |
1263 | c.Anchored = true | |
1264 | c.Transparency = c.Transparency + 0.2 | |
1265 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1266 | c.Color = C3(1 ,1 ,1) | |
1267 | if c.ClassName == "MeshPart" then | |
1268 | c.TextureID = "" | |
1269 | end | |
1270 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1271 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1272 | end | |
1273 | if c:FindFirstChildOfClass("Decal") then | |
1274 | c:FindFirstChildOfClass("Decal"):remove() | |
1275 | end | |
1276 | c.Name = "Banished" | |
1277 | c.CanCollide = false | |
1278 | else | |
1279 | c:remove() | |
1280 | end | |
1281 | end | |
1282 | local A = false | |
1283 | for i = 1, 35 do | |
1284 | if A == false then | |
1285 | A = true | |
1286 | elseif A == true then | |
1287 | A = false | |
1288 | end | |
1289 | for _, c in pairs(CLONE:GetDescendants()) do | |
1290 | if c:IsA("BasePart") then | |
1291 | c.Anchored = true | |
1292 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1293 | c.Transparency = c.Transparency + 0.8/35 | |
1294 | if A == false then | |
1295 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1296 | elseif A == true then | |
1297 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1298 | end | |
1299 | end | |
1300 | end | |
1301 | Swait() | |
1302 | end | |
1303 | CLONE:remove() | |
1304 | end)) | |
1305 | end | |
1306 | end | |
1307 | ||
1308 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1309 | local CHILDREN = workspace:GetDescendants() | |
1310 | for index, CHILD in pairs(CHILDREN) do | |
1311 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1312 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1313 | if HUM then | |
1314 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1315 | if TORSO then | |
1316 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1317 | if ISBANISH == true then | |
1318 | Banish(CHILD) | |
1319 | else | |
1320 | if ISBANISH == "Gravity" then | |
1321 | HUM.PlatformStand = true | |
1322 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1323 | local grav = Instance.new("BodyPosition",TORSO) | |
1324 | grav.D = 15 | |
1325 | grav.P = 20000 | |
1326 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1327 | grav.position = TORSO.Position | |
1328 | grav.Name = "V3BanishForce"..Player.Name | |
1329 | else | |
1330 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1331 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1332 | end | |
1333 | else | |
1334 | HUM.PlatformStand = false | |
1335 | end | |
1336 | end | |
1337 | elseif ISBANISH == "Gravity" then | |
1338 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1339 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1340 | HUM.PlatformStand = false | |
1341 | end | |
1342 | end | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | function recurse(root,callback,i) | |
1349 | i= i or 0 | |
1350 | for _,v in pairs(root:GetChildren()) do | |
1351 | i = i + 1 | |
1352 | callback(i,v) | |
1353 | ||
1354 | if #v:GetChildren() > 0 then | |
1355 | i = recurse(v,callback,i) | |
1356 | end | |
1357 | end | |
1358 | ||
1359 | return i | |
1360 | end | |
1361 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
1362 | attachmentName = attachmentName.."RigAttachment" | |
1363 | local constraint = Instance.new(className.."Constraint") | |
1364 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
1365 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
1366 | constraint.Name = "RagdollConstraint"..part1.Name | |
1367 | ||
1368 | for _,propertyData in next,properties or {} do | |
1369 | constraint[propertyData[1]] = propertyData[2] | |
1370 | end | |
1371 | ||
1372 | constraint.Parent = character | |
1373 | end | |
1374 | function getAttachment0(character, attachmentName) | |
1375 | for _,child in next,character:GetChildren() do | |
1376 | local attachment = child:FindFirstChild(attachmentName) | |
1377 | if attachment then | |
1378 | return attachment | |
1379 | end | |
1380 | end | |
1381 | end | |
1382 | ||
1383 | function ArtificialHitbox(Part) | |
1384 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
1385 | HITBOX.CanCollide = true | |
1386 | HITBOX.CFrame = Part.CFrame | |
1387 | weldBetween(Part,HITBOX) | |
1388 | end | |
1389 | function R15Ragdoll(character,KeepArms) | |
1390 | character:BreakJoints() | |
1391 | coroutine.resume(coroutine.create(function() | |
1392 | recurse(character, function(_,v) | |
1393 | if v:IsA("Attachment") then | |
1394 | v.Axis = Vector3.new(0, 1, 0) | |
1395 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
1396 | v.Rotation = Vector3.new(0, 0, 0) | |
1397 | end | |
1398 | end) | |
1399 | for _,child in next,character:GetChildren() do | |
1400 | if child:IsA("Accoutrement") then | |
1401 | for _,part in next,child:GetChildren() do | |
1402 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
1403 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
1404 | local attachment0 = getAttachment0(character,attachment1.Name) | |
1405 | if attachment0 and attachment1 then | |
1406 | local constraint = Instance.new("HingeConstraint") | |
1407 | constraint.Attachment0 = attachment0 | |
1408 | constraint.Attachment1 = attachment1 | |
1409 | constraint.LimitsEnabled = true | |
1410 | constraint.UpperAngle = 0 | |
1411 | constraint.LowerAngle = 0 | |
1412 | constraint.Parent = character | |
1413 | end | |
1414 | ArtificialHitbox(part) | |
1415 | elseif part.Name == "HumanoidRootPart" then | |
1416 | part:remove() | |
1417 | end | |
1418 | end | |
1419 | end | |
1420 | end | |
1421 | ||
1422 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
1423 | {"LimitsEnabled",true}; | |
1424 | {"UpperAngle",5}; | |
1425 | }) | |
1426 | if character:FindFirstChild("Head") then | |
1427 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
1428 | {"LimitsEnabled",true}; | |
1429 | {"UpperAngle",15}; | |
1430 | }) | |
1431 | end | |
1432 | ||
1433 | local handProperties = { | |
1434 | {"LimitsEnabled", true}; | |
1435 | {"UpperAngle",0}; | |
1436 | {"LowerAngle",0}; | |
1437 | } | |
1438 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
1439 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
1440 | ||
1441 | local shinProperties = { | |
1442 | {"LimitsEnabled", true}; | |
1443 | {"UpperAngle", 0}; | |
1444 | {"LowerAngle", -75}; | |
1445 | } | |
1446 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
1447 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
1448 | ||
1449 | local footProperties = { | |
1450 | {"LimitsEnabled", true}; | |
1451 | {"UpperAngle", 15}; | |
1452 | {"LowerAngle", -45}; | |
1453 | } | |
1454 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
1455 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
1456 | if KeepArms == true then | |
1457 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
1458 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
1459 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
1460 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
1461 | end | |
1462 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
1463 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
1464 | Debris:AddItem(character,5) | |
1465 | end)) | |
1466 | end | |
1467 | ||
1468 | function Ragdoll(Character2,CharTorso,KeepArms) | |
1469 | coroutine.resume(coroutine.create(function() | |
1470 | Character2:BreakJoints() | |
1471 | local hum = Character2:findFirstChild("Humanoid") | |
1472 | hum:remove() | |
1473 | local function Scan(ch) | |
1474 | local e | |
1475 | for e = 1,#ch do | |
1476 | Scan(ch[e]:GetChildren()) | |
1477 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1478 | ch[e]:remove() | |
1479 | end | |
1480 | end | |
1481 | end | |
1482 | local NEWHUM = IT("Humanoid") | |
1483 | NEWHUM.Name = "Corpse" | |
1484 | NEWHUM.Health = 0 | |
1485 | NEWHUM.MaxHealth = 0 | |
1486 | NEWHUM.PlatformStand = true | |
1487 | NEWHUM.Parent = Character2 | |
1488 | NEWHUM.DisplayDistanceType = "None" | |
1489 | ||
1490 | local ch = Character2:GetChildren() | |
1491 | local i | |
1492 | for i = 1,#ch do | |
1493 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1494 | ch[i]:remove() | |
1495 | end | |
1496 | end | |
1497 | ||
1498 | local Torso2 = Character2.Torso | |
1499 | local movevector = Vector3.new() | |
1500 | ||
1501 | if Torso2 then | |
1502 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1503 | local Head = Character2:FindFirstChild("Head") | |
1504 | if Head then | |
1505 | local Neck = Instance.new("Weld") | |
1506 | Neck.Name = "Neck" | |
1507 | Neck.Part0 = Torso2 | |
1508 | Neck.Part1 = Head | |
1509 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1510 | Neck.C1 = CFrame.new() | |
1511 | Neck.Parent = Torso2 | |
1512 | ||
1513 | end | |
1514 | local Limb = Character2:FindFirstChild("Right Arm") | |
1515 | if Limb and KeepArms == true then | |
1516 | ||
1517 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1518 | local Joint = Instance.new("Glue") | |
1519 | Joint.Name = "RightShoulder" | |
1520 | Joint.Part0 = Torso2 | |
1521 | Joint.Part1 = Limb | |
1522 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1523 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1524 | Joint.Parent = Torso2 | |
1525 | ||
1526 | local B = Instance.new("Part") | |
1527 | B.TopSurface = 0 | |
1528 | B.BottomSurface = 0 | |
1529 | B.formFactor = "Symmetric" | |
1530 | B.Size = Vector3.new(1, 1, 1) | |
1531 | B.Transparency = 1 | |
1532 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1533 | B.Parent = Character2 | |
1534 | local W = Instance.new("Weld") | |
1535 | W.Part0 = Limb | |
1536 | W.Part1 = B | |
1537 | W.C0 = CFrame.new(0, -0.5, 0) | |
1538 | W.Parent = Limb | |
1539 | ||
1540 | end | |
1541 | local Limb = Character2:FindFirstChild("Left Arm") | |
1542 | if Limb and KeepArms == true then | |
1543 | ||
1544 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1545 | local Joint = Instance.new("Glue") | |
1546 | Joint.Name = "LeftShoulder" | |
1547 | Joint.Part0 = Torso2 | |
1548 | Joint.Part1 = Limb | |
1549 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1550 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1551 | Joint.Parent = Torso2 | |
1552 | ||
1553 | local B = Instance.new("Part") | |
1554 | B.TopSurface = 0 | |
1555 | B.BottomSurface = 0 | |
1556 | B.formFactor = "Symmetric" | |
1557 | B.Size = Vector3.new(1, 1, 1) | |
1558 | B.Transparency = 1 | |
1559 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1560 | B.Parent = Character2 | |
1561 | local W = Instance.new("Weld") | |
1562 | W.Part0 = Limb | |
1563 | W.Part1 = B | |
1564 | W.C0 = CFrame.new(0, -0.5, 0) | |
1565 | W.Parent = Limb | |
1566 | ||
1567 | end | |
1568 | local Limb = Character2:FindFirstChild("Right Leg") | |
1569 | if Limb then | |
1570 | ||
1571 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1572 | local Joint = Instance.new("Glue") | |
1573 | Joint.Name = "RightHip" | |
1574 | Joint.Part0 = Torso2 | |
1575 | Joint.Part1 = Limb | |
1576 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1577 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1578 | Joint.Parent = Torso2 | |
1579 | ||
1580 | local B = Instance.new("Part") | |
1581 | B.TopSurface = 0 | |
1582 | B.BottomSurface = 0 | |
1583 | B.formFactor = "Symmetric" | |
1584 | B.Size = Vector3.new(1, 1, 1) | |
1585 | B.Transparency = 1 | |
1586 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1587 | B.Parent = Character2 | |
1588 | local W = Instance.new("Weld") | |
1589 | W.Part0 = Limb | |
1590 | W.Part1 = B | |
1591 | W.C0 = CFrame.new(0, -0.5, 0) | |
1592 | W.Parent = Limb | |
1593 | ||
1594 | end | |
1595 | local Limb = Character2:FindFirstChild("Left Leg") | |
1596 | if Limb then | |
1597 | ||
1598 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1599 | local Joint = Instance.new("Glue") | |
1600 | Joint.Name = "LeftHip" | |
1601 | Joint.Part0 = Torso2 | |
1602 | Joint.Part1 = Limb | |
1603 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1604 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1605 | Joint.Parent = Torso2 | |
1606 | ||
1607 | local B = Instance.new("Part") | |
1608 | B.TopSurface = 0 | |
1609 | B.BottomSurface = 0 | |
1610 | B.formFactor = "Symmetric" | |
1611 | B.Size = Vector3.new(1, 1, 1) | |
1612 | B.Transparency = 1 | |
1613 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1614 | B.Parent = Character2 | |
1615 | local W = Instance.new("Weld") | |
1616 | W.Part0 = Limb | |
1617 | W.Part1 = B | |
1618 | W.C0 = CFrame.new(0, -0.5, 0) | |
1619 | W.Parent = Limb | |
1620 | ||
1621 | end | |
1622 | --[ | |
1623 | local Bar = Instance.new("Part") | |
1624 | Bar.TopSurface = 0 | |
1625 | Bar.BottomSurface = 0 | |
1626 | Bar.formFactor = "Symmetric" | |
1627 | Bar.Size = Vector3.new(1, 1, 1) | |
1628 | Bar.Transparency = 1 | |
1629 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1630 | Bar.Parent = Character2 | |
1631 | local Weld = Instance.new("Weld") | |
1632 | Weld.Part0 = Torso2 | |
1633 | Weld.Part1 = Bar | |
1634 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1635 | Weld.Parent = Torso2 | |
1636 | --]] | |
1637 | end | |
1638 | Character2.Parent = workspace | |
1639 | Debris:AddItem(Character2,5) | |
1640 | ||
1641 | return Character2,Torso2 | |
1642 | end)) | |
1643 | end | |
1644 | ||
1645 | --//=================================\\ | |
1646 | --|| ATTACK FUNCTIONS AND STUFF | |
1647 | --\\=================================// | |
1648 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1649 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1650 | local mesh = IT("SpecialMesh",wave) | |
1651 | mesh.MeshType = "Sphere" | |
1652 | mesh.Scale = SIZE | |
1653 | mesh.Offset = VT(0,0,0) | |
1654 | wave.CFrame = CFRAME | |
1655 | coroutine.resume(coroutine.create(function(PART) | |
1656 | for i = 1, WAIT do | |
1657 | Swait() | |
1658 | mesh.Scale = mesh.Scale + GROW | |
1659 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1660 | if wave.Transparency > 0.99 then | |
1661 | wave:remove() | |
1662 | end | |
1663 | end | |
1664 | end)) | |
1665 | end | |
1666 | function Roar() | |
1667 | ATTACK = true | |
1668 | Rooted = true | |
1669 | local VIOLENCE = 1 | |
1670 | FORCEIDLE = true | |
1671 | FORCEIDLE = false | |
1672 | if VIOLENCE <= 10 then | |
1673 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(2,2,2)) | |
1674 | for i=0, 1, 0.1 / Animation_Speed do | |
1675 | Swait() | |
1676 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1677 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1678 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(22)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1679 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-22)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1680 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1681 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1682 | end | |
1683 | local TAUNT = CreateSound(ROAR[MRANDOM(1,#ROAR)], Head, 100, 1, false) | |
1684 | repeat Swait() until TAUNT.TimeLength > 0 | |
1685 | repeat | |
1686 | Swait() | |
1687 | ApplyAoE(Head.Position,15,0,0,200,false) | |
1688 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1689 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2}) | |
1690 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2}) | |
1691 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
1692 | TAUNT.Parent = Head | |
1693 | Swait() | |
1694 | TAUNT.Parent = Head | |
1695 | local CHILDREN = workspace:GetDescendants() | |
1696 | for index, CHILD in pairs(CHILDREN) do | |
1697 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1698 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1699 | if HUM then | |
1700 | local TORSO = CHILD:FindFirstChild("Head") | |
1701 | if TORSO then | |
1702 | if (TORSO.Position - Head.Position).Magnitude <= 999 then | |
1703 | WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1704 | TORSO:remove() | |
1705 | if CHILD:FindFirstChild("Torso") then | |
1706 | Ragdoll(CHILD,Torso,true) | |
1707 | elseif CHILD:FindFirstChild("UpperTorso") then | |
1708 | R15Ragdoll(CHILD,true) | |
1709 | end | |
1710 | end | |
1711 | end | |
1712 | end | |
1713 | end | |
1714 | end | |
1715 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, -0.2*SIZE, -0.1*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1716 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
1717 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(42)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1718 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(-42)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1719 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1720 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(45), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1721 | until TAUNT.TimePosition > TAUNT.TimeLength - 2 | |
1722 | end | |
1723 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1724 | ATTACK = false | |
1725 | Rooted = false | |
1726 | end | |
1727 | function Shot() | |
1728 | ATTACK = true | |
1729 | Rooted = false | |
1730 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1731 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1732 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1733 | Swait() | |
1734 | turnto(Mouse.Hit.p) | |
1735 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1736 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1737 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1738 | 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) | |
1739 | 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) | |
1740 | end | |
1741 | repeat | |
1742 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1743 | Swait() | |
1744 | turnto(Mouse.Hit.p) | |
1745 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1746 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1747 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1748 | 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) | |
1749 | 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) | |
1750 | end | |
1751 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1752 | SpawnTrail0(Hole.Position,POS) | |
1753 | if HIT ~= nil then | |
1754 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1755 | Banish(HIT.Parent) | |
1756 | end | |
1757 | end | |
1758 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(4,4,4).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1759 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = 0.95, SoundVolume = 10}) | |
1760 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8}) | |
1761 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8}) | |
1762 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1763 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2}) | |
1764 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2}) | |
1765 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1766 | Swait() | |
1767 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1768 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1769 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1770 | 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) | |
1771 | 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) | |
1772 | end | |
1773 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Really white",VT(5,5,5)) | |
1774 | until KEYHOLD == false | |
1775 | ATTACK = false | |
1776 | Rooted = false | |
1777 | end | |
1778 | function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
1779 | if FLOOR ~= nil then | |
1780 | coroutine.resume(coroutine.create(function() | |
1781 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0)) | |
1782 | PART.CFrame = CF(POSITION) | |
1783 | for i = 1, 45 do | |
1784 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE) | |
1785 | RingPiece.Material = FLOOR.Material | |
1786 | RingPiece.Color = FLOOR.Color | |
1787 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1788 | Debris:AddItem(RingPiece,SWAIT) | |
1789 | end | |
1790 | PART:remove() | |
1791 | end)) | |
1792 | end | |
1793 | end | |
1794 | ||
1795 | function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
1796 | if FLOOR ~= nil then | |
1797 | for i = 1, AMOUNT do | |
1798 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false) | |
1799 | DEBREE.Material = FLOOR.Material | |
1800 | DEBREE.Color = FLOOR.Color | |
1801 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1802 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH)) | |
1803 | coroutine.resume(coroutine.create(function() | |
1804 | Swait(15) | |
1805 | DEBREE.Parent = workspace | |
1806 | DEBREE.CanCollide = true | |
1807 | Debris:AddItem(DEBREE,SWAIT) | |
1808 | end)) | |
1809 | end | |
1810 | end | |
1811 | end | |
1812 | function Pure_Heaven() | |
1813 | chatfunc("The Light of Heaven will make sense!") | |
1814 | ATTACK = true | |
1815 | Rooted = true | |
1816 | for i = 1, 15 do | |
1817 | Swait() | |
1818 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1819 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
1820 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1821 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1822 | end | |
1823 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1824 | Swait() | |
1825 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1826 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1827 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1828 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1829 | end | |
1830 | coroutine.resume(coroutine.create(function() | |
1831 | local POS = Mouse.Hit.p | |
1832 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Strike", VT(0,0,0)) | |
1833 | MakeForm(RAY,"Cyl") | |
1834 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Strike", VT(0,0,0)) | |
1835 | MakeForm(SPHERE,"Ball") | |
1836 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Navy blue", "Strike", VT(0,0,0)) | |
1837 | MakeForm(SHIELD,"Ball") | |
1838 | SHIELD.CFrame = CF(POS) | |
1839 | RAY.CFrame = CF(POS) | |
1840 | SPHERE.CFrame = CF(POS) | |
1841 | CreateSound(440145570, SPHERE, 15, 0.5, false) | |
1842 | CreateSound(415700134, SPHERE, 15, 0.5, false) | |
1843 | for i = 1, 200 do | |
1844 | Swait() | |
1845 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1846 | RAY.Size = RAY.Size + VT(0.5,0,0.5) | |
1847 | SPHERE.Size = SPHERE.Size + VT(1.5,1.5,1.5) | |
1848 | SHIELD.Size = SPHERE.Size + VT(2.5,2.5,2.5) | |
1849 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1850 | end | |
1851 | for i = 1, 45 do | |
1852 | Swait() | |
1853 | RAY.Transparency = RAY.Transparency + 1/45 | |
1854 | SPHERE.Transparency = RAY.Transparency | |
1855 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1856 | end | |
1857 | RAY:remove() | |
1858 | SHIELD:remove() | |
1859 | SPHERE:remove() | |
1860 | end)) | |
1861 | for i=0, 1, 0.1 / Animation_Speed do | |
1862 | Swait() | |
1863 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1864 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1865 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1866 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1867 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1868 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1869 | end | |
1870 | ATTACK = false | |
1871 | Rooted = false | |
1872 | end | |
1873 | function printbye(Name) | |
1874 | local MESSAGES = {"do not resist, ","you dont have permission to live anymore, ","this ends here, ","heaven is not the place for someone like you, "} | |
1875 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1876 | end | |
1877 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1878 | MakeForm(RightHole,"Cyl") | |
1879 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1880 | MakeForm(LeftHole,"Cyl") | |
1881 | function Gates_Of_Darkness() | |
1882 | chatfunc("this ends here") | |
1883 | CreateSound(0, Torso, 10, 1, false) | |
1884 | ATTACK = true | |
1885 | Rooted = true | |
1886 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1887 | Swait() | |
1888 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1889 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1890 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1891 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1892 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1893 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1894 | end | |
1895 | local DONE = false | |
1896 | local GATE = nil | |
1897 | local GATESPIN = true | |
1898 | coroutine.resume(coroutine.create(function() | |
1899 | repeat | |
1900 | Swait() | |
1901 | if GATE ~= nil then | |
1902 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1903 | end | |
1904 | until GATESPIN == false | |
1905 | end)) | |
1906 | coroutine.resume(coroutine.create(function() | |
1907 | repeat | |
1908 | Swait() | |
1909 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1910 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1911 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1912 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1913 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1914 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1915 | until DONE == true | |
1916 | Swait(50) | |
1917 | for i = 1, 35 do | |
1918 | Swait(4) | |
1919 | local FIRED = false | |
1920 | local CHILDREN = workspace:GetDescendants() | |
1921 | for index, CHILD in pairs(CHILDREN) do | |
1922 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1923 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1924 | if HUM then | |
1925 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1926 | if TORSO then | |
1927 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1928 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1929 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1930 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
1931 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1932 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1933 | Banish(CHILD) | |
1934 | FIRED = true | |
1935 | break | |
1936 | end | |
1937 | end | |
1938 | end | |
1939 | end | |
1940 | end | |
1941 | if FIRED == false then | |
1942 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1943 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
1944 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1945 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1946 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1947 | if HITBOD ~= nil then | |
1948 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1949 | Banish(HITBOD.Parent) | |
1950 | end | |
1951 | end | |
1952 | end | |
1953 | end | |
1954 | for i = 1, 35 do | |
1955 | Swait(4) | |
1956 | local FIRED = false | |
1957 | local CHILDREN = workspace:GetDescendants() | |
1958 | for index, CHILD in pairs(CHILDREN) do | |
1959 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1960 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1961 | if HUM then | |
1962 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1963 | if TORSO then | |
1964 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1965 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1966 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1967 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
1968 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1969 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1970 | Banish(CHILD) | |
1971 | FIRED = true | |
1972 | break | |
1973 | end | |
1974 | end | |
1975 | end | |
1976 | end | |
1977 | end | |
1978 | if FIRED == false then | |
1979 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1980 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
1981 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1982 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1983 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1984 | if HITBOD ~= nil then | |
1985 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1986 | Banish(HITBOD.Parent) | |
1987 | end | |
1988 | end | |
1989 | end | |
1990 | end | |
1991 | for i = 1, 35 do | |
1992 | Swait(4) | |
1993 | local FIRED = false | |
1994 | local CHILDREN = workspace:GetDescendants() | |
1995 | for index, CHILD in pairs(CHILDREN) do | |
1996 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1997 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1998 | if HUM then | |
1999 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2000 | if TORSO then | |
2001 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2002 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2003 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2004 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2005 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2006 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2007 | Banish(CHILD) | |
2008 | FIRED = true | |
2009 | break | |
2010 | end | |
2011 | end | |
2012 | end | |
2013 | end | |
2014 | end | |
2015 | if FIRED == false then | |
2016 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2017 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2018 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2019 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2020 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2021 | if HITBOD ~= nil then | |
2022 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2023 | Banish(HITBOD.Parent) | |
2024 | end | |
2025 | end | |
2026 | end | |
2027 | end | |
2028 | for i = 1, 35 do | |
2029 | Swait(4) | |
2030 | local FIRED = false | |
2031 | local CHILDREN = workspace:GetDescendants() | |
2032 | for index, CHILD in pairs(CHILDREN) do | |
2033 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2034 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2035 | if HUM then | |
2036 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2037 | if TORSO then | |
2038 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2039 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2040 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2041 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2042 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2043 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2044 | Banish(CHILD) | |
2045 | FIRED = true | |
2046 | break | |
2047 | end | |
2048 | end | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | if FIRED == false then | |
2053 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2054 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2055 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2056 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2057 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2058 | if HITBOD ~= nil then | |
2059 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2060 | Banish(HITBOD.Parent) | |
2061 | end | |
2062 | end | |
2063 | end | |
2064 | end | |
2065 | for i = 1, 35 do | |
2066 | Swait(4) | |
2067 | local FIRED = false | |
2068 | local CHILDREN = workspace:GetDescendants() | |
2069 | for index, CHILD in pairs(CHILDREN) do | |
2070 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2071 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2072 | if HUM then | |
2073 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2074 | if TORSO then | |
2075 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2076 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2077 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2078 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2079 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2080 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2081 | Banish(CHILD) | |
2082 | FIRED = true | |
2083 | break | |
2084 | end | |
2085 | end | |
2086 | end | |
2087 | end | |
2088 | end | |
2089 | if FIRED == false then | |
2090 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2091 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2092 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2093 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2094 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2095 | if HITBOD ~= nil then | |
2096 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2097 | Banish(HITBOD.Parent) | |
2098 | end | |
2099 | end | |
2100 | end | |
2101 | end | |
2102 | for i = 1, 35 do | |
2103 | Swait(4) | |
2104 | local FIRED = false | |
2105 | local CHILDREN = workspace:GetDescendants() | |
2106 | for index, CHILD in pairs(CHILDREN) do | |
2107 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2108 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2109 | if HUM then | |
2110 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2111 | if TORSO then | |
2112 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2113 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2114 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2115 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2116 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2117 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2118 | Banish(CHILD) | |
2119 | FIRED = true | |
2120 | break | |
2121 | end | |
2122 | end | |
2123 | end | |
2124 | end | |
2125 | end | |
2126 | if FIRED == false then | |
2127 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2128 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2129 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2130 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2131 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2132 | if HITBOD ~= nil then | |
2133 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2134 | Banish(HITBOD.Parent) | |
2135 | end | |
2136 | end | |
2137 | end | |
2138 | end | |
2139 | for i = 1, 35 do | |
2140 | Swait(4) | |
2141 | local FIRED = false | |
2142 | local CHILDREN = workspace:GetDescendants() | |
2143 | for index, CHILD in pairs(CHILDREN) do | |
2144 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2145 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2146 | if HUM then | |
2147 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2148 | if TORSO then | |
2149 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2150 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2151 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2152 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2153 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2154 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2155 | Banish(CHILD) | |
2156 | FIRED = true | |
2157 | break | |
2158 | end | |
2159 | end | |
2160 | end | |
2161 | end | |
2162 | end | |
2163 | if FIRED == false then | |
2164 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2165 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2166 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2167 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2168 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2169 | if HITBOD ~= nil then | |
2170 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2171 | Banish(HITBOD.Parent) | |
2172 | end | |
2173 | end | |
2174 | end | |
2175 | end | |
2176 | for i = 1, 35 do | |
2177 | Swait(4) | |
2178 | local FIRED = false | |
2179 | local CHILDREN = workspace:GetDescendants() | |
2180 | for index, CHILD in pairs(CHILDREN) do | |
2181 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2182 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2183 | if HUM then | |
2184 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2185 | if TORSO then | |
2186 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2187 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2188 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2189 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2190 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2191 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2192 | Banish(CHILD) | |
2193 | FIRED = true | |
2194 | break | |
2195 | end | |
2196 | end | |
2197 | end | |
2198 | end | |
2199 | end | |
2200 | if FIRED == false then | |
2201 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2202 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2203 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2204 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2205 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2206 | if HITBOD ~= nil then | |
2207 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2208 | Banish(HITBOD.Parent) | |
2209 | end | |
2210 | end | |
2211 | end | |
2212 | end | |
2213 | for i = 1, 35 do | |
2214 | Swait(4) | |
2215 | local FIRED = false | |
2216 | local CHILDREN = workspace:GetDescendants() | |
2217 | for index, CHILD in pairs(CHILDREN) do | |
2218 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2219 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2220 | if HUM then | |
2221 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2222 | if TORSO then | |
2223 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2224 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2225 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2226 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2227 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2228 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2229 | Banish(CHILD) | |
2230 | FIRED = true | |
2231 | break | |
2232 | end | |
2233 | end | |
2234 | end | |
2235 | end | |
2236 | end | |
2237 | if FIRED == false then | |
2238 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2239 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2240 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2241 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2242 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2243 | if HITBOD ~= nil then | |
2244 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2245 | Banish(HITBOD.Parent) | |
2246 | end | |
2247 | end | |
2248 | end | |
2249 | end | |
2250 | for i = 1, 35 do | |
2251 | Swait(4) | |
2252 | local FIRED = false | |
2253 | local CHILDREN = workspace:GetDescendants() | |
2254 | for index, CHILD in pairs(CHILDREN) do | |
2255 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2256 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2257 | if HUM then | |
2258 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2259 | if TORSO then | |
2260 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2261 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2262 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2263 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2264 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2265 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2266 | Banish(CHILD) | |
2267 | FIRED = true | |
2268 | break | |
2269 | end | |
2270 | end | |
2271 | end | |
2272 | end | |
2273 | end | |
2274 | if FIRED == false then | |
2275 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2276 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2277 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2278 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2279 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2280 | if HITBOD ~= nil then | |
2281 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2282 | Banish(HITBOD.Parent) | |
2283 | end | |
2284 | end | |
2285 | end | |
2286 | end | |
2287 | for i = 1, 35 do | |
2288 | Swait(4) | |
2289 | local FIRED = false | |
2290 | local CHILDREN = workspace:GetDescendants() | |
2291 | for index, CHILD in pairs(CHILDREN) do | |
2292 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2293 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2294 | if HUM then | |
2295 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2296 | if TORSO then | |
2297 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2298 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2299 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2300 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2301 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2302 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2303 | Banish(CHILD) | |
2304 | FIRED = true | |
2305 | break | |
2306 | end | |
2307 | end | |
2308 | end | |
2309 | end | |
2310 | end | |
2311 | if FIRED == false then | |
2312 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2313 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2314 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2315 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2316 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2317 | if HITBOD ~= nil then | |
2318 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2319 | Banish(HITBOD.Parent) | |
2320 | end | |
2321 | end | |
2322 | end | |
2323 | end | |
2324 | for i = 1, 35 do | |
2325 | Swait(4) | |
2326 | local FIRED = false | |
2327 | local CHILDREN = workspace:GetDescendants() | |
2328 | for index, CHILD in pairs(CHILDREN) do | |
2329 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2330 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2331 | if HUM then | |
2332 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2333 | if TORSO then | |
2334 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2335 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2336 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2337 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2338 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2339 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2340 | Banish(CHILD) | |
2341 | FIRED = true | |
2342 | break | |
2343 | end | |
2344 | end | |
2345 | end | |
2346 | end | |
2347 | end | |
2348 | if FIRED == false then | |
2349 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2350 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2351 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2352 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2353 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2354 | if HITBOD ~= nil then | |
2355 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2356 | Banish(HITBOD.Parent) | |
2357 | end | |
2358 | end | |
2359 | end | |
2360 | end | |
2361 | for i = 1, 35 do | |
2362 | Swait(4) | |
2363 | local FIRED = false | |
2364 | local CHILDREN = workspace:GetDescendants() | |
2365 | for index, CHILD in pairs(CHILDREN) do | |
2366 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2367 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2368 | if HUM then | |
2369 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2370 | if TORSO then | |
2371 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2372 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2373 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2374 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2375 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2376 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2377 | Banish(CHILD) | |
2378 | FIRED = true | |
2379 | break | |
2380 | end | |
2381 | end | |
2382 | end | |
2383 | end | |
2384 | end | |
2385 | if FIRED == false then | |
2386 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2387 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2388 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2389 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2390 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2391 | if HITBOD ~= nil then | |
2392 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2393 | Banish(HITBOD.Parent) | |
2394 | end | |
2395 | end | |
2396 | end | |
2397 | end | |
2398 | for i = 1, 35 do | |
2399 | Swait(4) | |
2400 | local FIRED = false | |
2401 | local CHILDREN = workspace:GetDescendants() | |
2402 | for index, CHILD in pairs(CHILDREN) do | |
2403 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2404 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2405 | if HUM then | |
2406 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2407 | if TORSO then | |
2408 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2409 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2410 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2411 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2412 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2413 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2414 | Banish(CHILD) | |
2415 | FIRED = true | |
2416 | break | |
2417 | end | |
2418 | end | |
2419 | end | |
2420 | end | |
2421 | end | |
2422 | if FIRED == false then | |
2423 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2424 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2425 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2426 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2427 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2428 | if HITBOD ~= nil then | |
2429 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2430 | Banish(HITBOD.Parent) | |
2431 | end | |
2432 | end | |
2433 | end | |
2434 | end | |
2435 | for i = 1, 35 do | |
2436 | Swait(4) | |
2437 | local FIRED = false | |
2438 | local CHILDREN = workspace:GetDescendants() | |
2439 | for index, CHILD in pairs(CHILDREN) do | |
2440 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2441 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2442 | if HUM then | |
2443 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2444 | if TORSO then | |
2445 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2446 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2447 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2448 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2449 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2450 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2451 | Banish(CHILD) | |
2452 | FIRED = true | |
2453 | break | |
2454 | end | |
2455 | end | |
2456 | end | |
2457 | end | |
2458 | end | |
2459 | if FIRED == false then | |
2460 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2461 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2462 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2463 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2464 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2465 | if HITBOD ~= nil then | |
2466 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2467 | Banish(HITBOD.Parent) | |
2468 | end | |
2469 | end | |
2470 | end | |
2471 | end | |
2472 | for i = 1, 35 do | |
2473 | Swait(4) | |
2474 | local FIRED = false | |
2475 | local CHILDREN = workspace:GetDescendants() | |
2476 | for index, CHILD in pairs(CHILDREN) do | |
2477 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2478 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2479 | if HUM then | |
2480 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2481 | if TORSO then | |
2482 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2483 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2484 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2485 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2486 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2487 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2488 | Banish(CHILD) | |
2489 | FIRED = true | |
2490 | break | |
2491 | end | |
2492 | end | |
2493 | end | |
2494 | end | |
2495 | end | |
2496 | if FIRED == false then | |
2497 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2498 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2499 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2500 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2501 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2502 | if HITBOD ~= nil then | |
2503 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2504 | Banish(HITBOD.Parent) | |
2505 | end | |
2506 | end | |
2507 | end | |
2508 | end | |
2509 | for i = 1, 35 do | |
2510 | Swait(4) | |
2511 | local FIRED = false | |
2512 | local CHILDREN = workspace:GetDescendants() | |
2513 | for index, CHILD in pairs(CHILDREN) do | |
2514 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2515 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2516 | if HUM then | |
2517 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2518 | if TORSO then | |
2519 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2520 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2521 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2522 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2523 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2524 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2525 | Banish(CHILD) | |
2526 | FIRED = true | |
2527 | break | |
2528 | end | |
2529 | end | |
2530 | end | |
2531 | end | |
2532 | end | |
2533 | if FIRED == false then | |
2534 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2535 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2536 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2537 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2538 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2539 | if HITBOD ~= nil then | |
2540 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2541 | Banish(HITBOD.Parent) | |
2542 | end | |
2543 | end | |
2544 | end | |
2545 | end | |
2546 | for i = 1, 35 do | |
2547 | Swait(4) | |
2548 | local FIRED = false | |
2549 | local CHILDREN = workspace:GetDescendants() | |
2550 | for index, CHILD in pairs(CHILDREN) do | |
2551 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2552 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2553 | if HUM then | |
2554 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2555 | if TORSO then | |
2556 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2557 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2558 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2559 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2560 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2561 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2562 | Banish(CHILD) | |
2563 | FIRED = true | |
2564 | break | |
2565 | end | |
2566 | end | |
2567 | end | |
2568 | end | |
2569 | end | |
2570 | if FIRED == false then | |
2571 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2572 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2573 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2574 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2575 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2576 | if HITBOD ~= nil then | |
2577 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2578 | Banish(HITBOD.Parent) | |
2579 | end | |
2580 | end | |
2581 | end | |
2582 | end | |
2583 | for i = 1, 35 do | |
2584 | Swait(4) | |
2585 | local FIRED = false | |
2586 | local CHILDREN = workspace:GetDescendants() | |
2587 | for index, CHILD in pairs(CHILDREN) do | |
2588 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2589 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2590 | if HUM then | |
2591 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2592 | if TORSO then | |
2593 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2594 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2595 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2596 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2597 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2598 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2599 | Banish(CHILD) | |
2600 | FIRED = true | |
2601 | break | |
2602 | end | |
2603 | end | |
2604 | end | |
2605 | end | |
2606 | end | |
2607 | if FIRED == false then | |
2608 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2609 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2610 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2611 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2612 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2613 | if HITBOD ~= nil then | |
2614 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2615 | Banish(HITBOD.Parent) | |
2616 | end | |
2617 | end | |
2618 | end | |
2619 | end | |
2620 | for i = 1, 35 do | |
2621 | Swait(4) | |
2622 | local FIRED = false | |
2623 | local CHILDREN = workspace:GetDescendants() | |
2624 | for index, CHILD in pairs(CHILDREN) do | |
2625 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2626 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2627 | if HUM then | |
2628 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2629 | if TORSO then | |
2630 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2631 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2632 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2633 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2634 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2635 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2636 | Banish(CHILD) | |
2637 | FIRED = true | |
2638 | break | |
2639 | end | |
2640 | end | |
2641 | end | |
2642 | end | |
2643 | end | |
2644 | if FIRED == false then | |
2645 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2646 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2647 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2648 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2649 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2650 | if HITBOD ~= nil then | |
2651 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2652 | Banish(HITBOD.Parent) | |
2653 | end | |
2654 | end | |
2655 | end | |
2656 | end | |
2657 | for i = 1, 35 do | |
2658 | Swait(4) | |
2659 | local FIRED = false | |
2660 | local CHILDREN = workspace:GetDescendants() | |
2661 | for index, CHILD in pairs(CHILDREN) do | |
2662 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2663 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2664 | if HUM then | |
2665 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2666 | if TORSO then | |
2667 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2668 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2669 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2670 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2671 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2672 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2673 | Banish(CHILD) | |
2674 | FIRED = true | |
2675 | break | |
2676 | end | |
2677 | end | |
2678 | end | |
2679 | end | |
2680 | end | |
2681 | if FIRED == false then | |
2682 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2683 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2684 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2685 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2686 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2687 | if HITBOD ~= nil then | |
2688 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2689 | Banish(HITBOD.Parent) | |
2690 | end | |
2691 | end | |
2692 | end | |
2693 | end | |
2694 | for i = 1, 35 do | |
2695 | Swait(4) | |
2696 | local FIRED = false | |
2697 | local CHILDREN = workspace:GetDescendants() | |
2698 | for index, CHILD in pairs(CHILDREN) do | |
2699 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2700 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2701 | if HUM then | |
2702 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2703 | if TORSO then | |
2704 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2705 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2706 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2707 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2708 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2709 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2710 | Banish(CHILD) | |
2711 | FIRED = true | |
2712 | break | |
2713 | end | |
2714 | end | |
2715 | end | |
2716 | end | |
2717 | end | |
2718 | if FIRED == false then | |
2719 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2720 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2721 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2722 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2723 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2724 | if HITBOD ~= nil then | |
2725 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2726 | Banish(HITBOD.Parent) | |
2727 | end | |
2728 | end | |
2729 | end | |
2730 | end | |
2731 | for i = 1, 35 do | |
2732 | Swait(4) | |
2733 | local FIRED = false | |
2734 | local CHILDREN = workspace:GetDescendants() | |
2735 | for index, CHILD in pairs(CHILDREN) do | |
2736 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2737 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2738 | if HUM then | |
2739 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2740 | if TORSO then | |
2741 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2742 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2743 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2744 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2745 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2746 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2747 | Banish(CHILD) | |
2748 | FIRED = true | |
2749 | break | |
2750 | end | |
2751 | end | |
2752 | end | |
2753 | end | |
2754 | end | |
2755 | if FIRED == false then | |
2756 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2757 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2758 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2759 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2760 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2761 | if HITBOD ~= nil then | |
2762 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2763 | Banish(HITBOD.Parent) | |
2764 | end | |
2765 | end | |
2766 | end | |
2767 | end | |
2768 | for i = 1, 35 do | |
2769 | Swait(4) | |
2770 | local FIRED = false | |
2771 | local CHILDREN = workspace:GetDescendants() | |
2772 | for index, CHILD in pairs(CHILDREN) do | |
2773 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2774 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2775 | if HUM then | |
2776 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2777 | if TORSO then | |
2778 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2779 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2780 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2781 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2782 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2783 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2784 | Banish(CHILD) | |
2785 | FIRED = true | |
2786 | break | |
2787 | end | |
2788 | end | |
2789 | end | |
2790 | end | |
2791 | end | |
2792 | if FIRED == false then | |
2793 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2794 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6}) | |
2795 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2796 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2797 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2798 | if HITBOD ~= nil then | |
2799 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2800 | Banish(HITBOD.Parent) | |
2801 | end | |
2802 | end | |
2803 | end | |
2804 | end | |
2805 | for i = 1, 45 do | |
2806 | Swait() | |
2807 | GATE.Size = GATE.Size - VT(10,0,10) | |
2808 | end | |
2809 | GATESPIN = false | |
2810 | GATE:remove() | |
2811 | end)) | |
2812 | Swait(15) | |
2813 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2814 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0)) | |
2815 | local DECAL = IT("Decal",GATE) | |
2816 | DECAL.Texture = "http://www.roblox.com/asset/?id=62270888" | |
2817 | DECAL.Face = "Top" | |
2818 | GATE.CFrame = CF(HITPOS) | |
2819 | CreateSound(0, GATE, 7, 1.3, false) | |
2820 | for i = 1, 45 do | |
2821 | Swait() | |
2822 | GATE.Size = GATE.Size + VT(10,0,10) | |
2823 | end | |
2824 | CreateSound(213603013, RightHole, 7, 1, false) | |
2825 | CreateSound(213603013, LeftHole, 7, 1, false) | |
2826 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2827 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2828 | ATTACK = false | |
2829 | Rooted = false | |
2830 | DONE = true | |
2831 | end | |
2832 | function Taunt() | |
2833 | ATTACK = true | |
2834 | Rooted = true | |
2835 | CreateSound("907333406", Head, 10, 0.9) | |
2836 | sick:Stop() | |
2837 | Weapon.Parent = nil | |
2838 | for i = 1, 3 do | |
2839 | for i = 0, 0.7, 0.14 / Animation_Speed do | |
2840 | Swait() | |
2841 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
2843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
2844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5) | |
2845 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2846 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2847 | end | |
2848 | for i = 0, 0.7, 0.14 / Animation_Speed do | |
2849 | Swait() | |
2850 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
2852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
2853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5) | |
2854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2856 | end | |
2857 | end | |
2858 | sick:Play() | |
2859 | Weapon.Parent = Character | |
2860 | ATTACK = false | |
2861 | Rooted = false | |
2862 | end | |
2863 | ||
2864 | --//=================================\\ | |
2865 | --|| ASSIGN THINGS TO KEYS | |
2866 | --\\=================================// | |
2867 | ||
2868 | function MouseDown(Mouse) | |
2869 | if ATTACK == false then | |
2870 | end | |
2871 | end | |
2872 | ||
2873 | function MouseUp(Mouse) | |
2874 | HOLD = false | |
2875 | end | |
2876 | ||
2877 | function KeyDown(Key) | |
2878 | KEYHOLD = true | |
2879 | if Key == "z" and ATTACK == false then | |
2880 | Shot() | |
2881 | end | |
2882 | ||
2883 | if Key == "f" and ATTACK == false then | |
2884 | chatfunc("If you decided to be a Good Person then go to Afterlife...") | |
2885 | TOBANISH = {} | |
2886 | end | |
2887 | ||
2888 | if Key == "t" and ATTACK == false then | |
2889 | Taunt() | |
2890 | end | |
2891 | ||
2892 | if Key == "c" and ATTACK == false then | |
2893 | Roar() | |
2894 | end | |
2895 | ||
2896 | if Key == "n" and ATTACK == false then | |
2897 | Switch() | |
2898 | end | |
2899 | ||
2900 | if Key == "q" and ATTACK == false then | |
2901 | for i=0, 0.5, 0.08 / Animation_Speed do | |
2902 | Swait() | |
2903 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2904 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2905 | end | |
2906 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
2907 | local pos = RootPart.Position | |
2908 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos) | |
2909 | end | |
2910 | ||
2911 | if Key == "x" and ATTACK == false then | |
2912 | Pure_Heaven() | |
2913 | end | |
2914 | ||
2915 | if Key == "v" and ATTACK == false then | |
2916 | Gates_Of_Darkness() | |
2917 | end | |
2918 | end | |
2919 | ||
2920 | function KeyUp(Key) | |
2921 | KEYHOLD = false | |
2922 | end | |
2923 | ||
2924 | Mouse.Button1Down:connect(function(NEWKEY) | |
2925 | MouseDown(NEWKEY) | |
2926 | end) | |
2927 | Mouse.Button1Up:connect(function(NEWKEY) | |
2928 | MouseUp(NEWKEY) | |
2929 | end) | |
2930 | Mouse.KeyDown:connect(function(NEWKEY) | |
2931 | KeyDown(NEWKEY) | |
2932 | end) | |
2933 | Mouse.KeyUp:connect(function(NEWKEY) | |
2934 | KeyUp(NEWKEY) | |
2935 | end) | |
2936 | ||
2937 | --//=================================\\ | |
2938 | --\\=================================// | |
2939 | ||
2940 | ||
2941 | function unanchor() | |
2942 | if UNANCHOR == true then | |
2943 | g = Character:GetChildren() | |
2944 | for i = 1, #g do | |
2945 | if g[i].ClassName == "Part" then | |
2946 | g[i].Anchored = false | |
2947 | end | |
2948 | end | |
2949 | end | |
2950 | end | |
2951 | ||
2952 | ||
2953 | --//=================================\\ | |
2954 | --|| WRAP THE WHOLE SCRIPT UP | |
2955 | --\\=================================// | |
2956 | ||
2957 | Humanoid.Changed:connect(function(Jump) | |
2958 | if Jump == "Jump" and (Disable_Jump == true) then | |
2959 | Humanoid.Jump = false | |
2960 | end | |
2961 | end) | |
2962 | ||
2963 | sick.AncestryChanged:Connect(function() | |
2964 | sick.Parent = Character | |
2965 | end) | |
2966 | ||
2967 | local FF = IT("ForceField", Character) | |
2968 | FF.Visible = false | |
2969 | ||
2970 | while true do | |
2971 | Swait() | |
2972 | script.Parent = WEAPONGUI | |
2973 | ANIMATE.Parent = nil | |
2974 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2975 | v:Stop(); | |
2976 | end | |
2977 | SINE = SINE + CHANGE | |
2978 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2979 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2980 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2981 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2982 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2983 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2984 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2985 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2986 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2987 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2988 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2989 | 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) | |
2990 | 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.2 / Animation_Speed) | |
2991 | 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.2 / Animation_Speed) | |
2992 | end | |
2993 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2994 | ANIM = "Jump" | |
2995 | if ATTACK == false then | |
2996 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2997 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2998 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2999 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3000 | 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) | |
3001 | 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) | |
3002 | end | |
3003 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3004 | ANIM = "Fall" | |
3005 | if ATTACK == false then | |
3006 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3007 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3008 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3009 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3010 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3011 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3012 | end | |
3013 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3014 | ANIM = "Idle" | |
3015 | if ATTACK == false then | |
3016 | 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) | |
3017 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
3018 | 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) | |
3019 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3020 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3021 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3022 | end | |
3023 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3024 | ANIM = "Walk" | |
3025 | if ATTACK == false then | |
3026 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3027 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3028 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3029 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3030 | end | |
3031 | end | |
3032 | unanchor() | |
3033 | Humanoid.MaxHealth = 16e+16 | |
3034 | Humanoid.Health = 16e+16 | |
3035 | if Rooted == false then | |
3036 | Disable_Jump = false | |
3037 | Humanoid.WalkSpeed = Speed | |
3038 | elseif Rooted == true then | |
3039 | Disable_Jump = true | |
3040 | Humanoid.WalkSpeed = 0 | |
3041 | end | |
3042 | if Head:FindFirstChild("face") then | |
3043 | Head.face.Texture = "rbxassetid://0" | |
3044 | end | |
3045 | end | |
3046 | ||
3047 | --//=================================\\ | |
3048 | --\\=================================// | |
3049 | ||
3050 | ||
3051 | ||
3052 | ||
3053 | ||
3054 | --//====================================================\\-- | |
3055 | --|| END OF SCRIPT | |
3056 | --\\====================================================//-- |