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('Enjoy this Edit ;D') |
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.75 |
184 | + | sick.Pitch = 0 |
185 | sick.Looped = true | |
186 | - | sick.SoundId = "rbxassetid://996980700" |
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" |
196 | + | tecks.Text = "Holy spirit" |
197 | - | tecks.Font = "Fantasy" |
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,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
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 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) |
849 | + | |
850 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
851 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Navy blue", "Eye", VT(0.6,0.1,1)/2,false) |
851 | + | |
852 | function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT) | |
853 | - | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) |
853 | + | |
854 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Navy blue", "Eye", VT(0.6,0.1,1)/2,false) |
854 | + | |
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 Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
985 | MakeForm(Barrel,"Cyl") | |
986 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
987 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
988 | MakeForm(Part,"Cyl") | |
989 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
990 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
991 | MakeForm(Part,"Wedge") | |
992 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
993 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
994 | MakeForm(Hole,"Cyl") | |
995 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
996 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
997 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
998 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
999 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1000 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1001 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1002 | coroutine.resume(coroutine.create(function() | |
1003 | while wait() do | |
1004 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1005 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1006 | end | |
1007 | end)) | |
1008 | ||
1009 | 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)}) | |
1010 | --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)}) | |
1011 | ||
1012 | for _, c in pairs(Weapon:GetDescendants()) do | |
1013 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1014 | c.Material = "Glass" | |
1015 | c.Color = C3(0,0,0) | |
1016 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1017 | c.Color = C3(1,1,1) | |
1018 | c.Material = "Neon" | |
1019 | end | |
1020 | end | |
1021 | ||
1022 | Weapon.Parent = Character | |
1023 | for _, c in pairs(Weapon:GetChildren()) do | |
1024 | if c.ClassName == "Part" then | |
1025 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1026 | end | |
1027 | end | |
1028 | ||
1029 | local SKILLTEXTCOLOR = C3(1,1,1) | |
1030 | local SKILLFONT = "Bodoni" | |
1031 | local SKILLTEXTSIZE = 5 | |
1032 | ||
1033 | Humanoid.Died:connect(function() | |
1034 | ATTACK = true | |
1035 | end) | |
1036 | Humanoid.Died:connect(function() | |
1037 | Humanoid.Parent = nil | |
1038 | chatfunc("I don't have any crimes to DIE!") | |
1039 | ApplyAoE(RootPart, 955, 9999, 9999, 9999, true) | |
1040 | Humanoid.Name = "DEAD!" | |
1041 | Humanoid.MaxHealth = 16e+16 | |
1042 | Humanoid.Health = 16e+16 | |
1043 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really white",VT(10,10,10)) | |
1044 | CreateSound("178452217", Effects, 10, 1) | |
1045 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Institutional white",VT(500,500,500)) | |
1046 | end) | |
1047 | ||
1048 | 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") | |
1049 | 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") | |
1050 | 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") | |
1051 | 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") | |
1052 | 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") | |
1053 | 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") | |
1054 | ||
1055 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Z - Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
1056 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "X - Pure Heaven", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1057 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "F - Heaven's Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1058 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "V - Gates Of Darkness", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1059 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "C - ROAR", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1060 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "n - Switch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1061 | ||
1062 | workspace.ChildAdded:connect(function(instance) | |
1063 | for BANISH = 1, #TOBANISH do | |
1064 | if TOBANISH[BANISH] ~= nil then | |
1065 | if instance.Name == TOBANISH[BANISH] then | |
1066 | coroutine.resume(coroutine.create(function() | |
1067 | printbye(instance.Name) | |
1068 | instance:ClearAllChildren() | |
1069 | - | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "Q - Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") |
1069 | + | |
1070 | end)) | |
1071 | end | |
1072 | end | |
1073 | end | |
1074 | end) | |
1075 | ------- testing stuffs -------------- | |
1076 | --//=================================\\ | |
1077 | --|| TRANSFORMATIONS | |
1078 | --\\=================================// | |
1079 | ||
1080 | function Switch() | |
1081 | ATTACK = true | |
1082 | Rooted = true | |
1083 | if MODE == "GoodCop" then | |
1084 | CreateSound("649634100", Head, 10, 0.5) | |
1085 | for i = 0, 3, 0.1 / Animation_Speed do | |
1086 | Swait() | |
1087 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1088 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1089 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1090 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1091 | 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) | |
1092 | 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) | |
1093 | end | |
1094 | CreateSound("289842971", RightArm, 10, 1) | |
1095 | for i = 0, 6, 0.1 / Animation_Speed do | |
1096 | Swait() | |
1097 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed) | |
1098 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1099 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1100 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1101 | 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) | |
1102 | 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) | |
1103 | end | |
1104 | Weapon.Parent = nil | |
1105 | Weapon2.Parent = Character | |
1106 | for i = 0, 1, 0.1 / Animation_Speed do | |
1107 | Swait() | |
1108 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed) | |
1109 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1110 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1111 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1112 | 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) | |
1113 | 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) | |
1114 | end | |
1115 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1116 | Swait() | |
1117 | 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) | |
1118 | 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) | |
1119 | if MRANDOM(1,7) == 1 then | |
1120 | 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) | |
1121 | end | |
1122 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1123 | 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) | |
1124 | 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) | |
1125 | 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) | |
1126 | end | |
1127 | MODE = "BadCop" | |
1128 | tecks2.Text = "Death" | |
1129 | sick.SoundId = "rbxassetid://561833161" | |
1130 | sick.TimePosition = 0 | |
1131 | elseif MODE == "BadCop" then | |
1132 | CreateSound(147722227, Torso, 4, 1.3, false) | |
1133 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1134 | Swait() | |
1135 | 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) | |
1136 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1137 | 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) | |
1138 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1139 | 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) | |
1140 | 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) | |
1141 | end | |
1142 | MODE = "GoodCop" | |
1143 | Weapon.Parent = Character | |
1144 | Weapon2.Parent = nil | |
1145 | tecks2.Text = "Holy spirit" | |
1146 | sick.SoundId = "rbxassetid://996980700" | |
1147 | sick.TimePosition = 22 | |
1148 | end | |
1149 | ATTACK = false | |
1150 | Rooted = false | |
1151 | end | |
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | fire = Instance.new('Fire',RightLeg) -- change the part to where u want it to stick on | |
1158 | fire.Color = Color3.new(1,1,1) | |
1159 | fire.SecondaryColor = Color3.new(1,1,1) | |
1160 | fire.Enabled = true | |
1161 | ||
1162 | fire = Instance.new('Fire',RightArm) -- change the part to where u want it to stick on | |
1163 | fire.Color = Color3.new(1,1,1) | |
1164 | fire.SecondaryColor = Color3.new(1,1,1) | |
1165 | fire.Enabled = true | |
1166 | ||
1167 | game.Workspace.Base.Material = "Plastic" | |
1168 | game.Workspace.Base.BrickColor = BrickColor.new ("Gold") | |
1169 | game.Workspace.Base.Transparency = 0 | |
1170 | ||
1171 | --//=================================\\ | |
1172 | --|| DAMAGING | |
1173 | --\\=================================// | |
1174 | ||
1175 | function Banish(Foe) | |
1176 | if Foe then | |
1177 | coroutine.resume(coroutine.create(function() | |
1178 | --if game.Players:FindFirstChild(Foe.Name) then | |
1179 | table.insert(TOBANISH,Foe.Name) | |
1180 | printbye(Foe.Name) | |
1181 | --end | |
1182 | Foe.Archivable = true | |
1183 | local CLONE = Foe:Clone() | |
1184 | Foe:Destroy() | |
1185 | CLONE.Parent = Effects | |
1186 | CLONE:BreakJoints() | |
1187 | local MATERIALS = {"Glass","Neon"} | |
1188 | for _, c in pairs(CLONE:GetDescendants()) do | |
1189 | if c:IsA("BasePart") then | |
1190 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1191 | CreateSound(340722848, c, 10, 1, false) | |
1192 | end | |
1193 | c.Anchored = true | |
1194 | c.Transparency = c.Transparency + 0.2 | |
1195 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1196 | c.Color = C3(1 ,1 ,1) | |
1197 | if c.ClassName == "MeshPart" then | |
1198 | c.TextureID = "" | |
1199 | end | |
1200 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1201 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1202 | end | |
1203 | if c:FindFirstChildOfClass("Decal") then | |
1204 | c:FindFirstChildOfClass("Decal"):remove() | |
1205 | end | |
1206 | c.Name = "Banished" | |
1207 | c.CanCollide = false | |
1208 | else | |
1209 | c:remove() | |
1210 | end | |
1211 | end | |
1212 | local A = false | |
1213 | for i = 1, 35 do | |
1214 | if A == false then | |
1215 | A = true | |
1216 | elseif A == true then | |
1217 | A = false | |
1218 | end | |
1219 | for _, c in pairs(CLONE:GetDescendants()) do | |
1220 | if c:IsA("BasePart") then | |
1221 | c.Anchored = true | |
1222 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1223 | c.Transparency = c.Transparency + 0.8/35 | |
1224 | if A == false then | |
1225 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1226 | elseif A == true then | |
1227 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1228 | end | |
1229 | end | |
1230 | end | |
1231 | Swait() | |
1232 | end | |
1233 | CLONE:remove() | |
1234 | end)) | |
1235 | end | |
1236 | end | |
1237 | ||
1238 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1239 | local CHILDREN = workspace:GetDescendants() | |
1240 | for index, CHILD in pairs(CHILDREN) do | |
1241 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1242 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1243 | if HUM then | |
1244 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1245 | if TORSO then | |
1246 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1247 | if ISBANISH == true then | |
1248 | Banish(CHILD) | |
1249 | else | |
1250 | if ISBANISH == "Gravity" then | |
1251 | HUM.PlatformStand = true | |
1252 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1253 | local grav = Instance.new("BodyPosition",TORSO) | |
1254 | grav.D = 15 | |
1255 | grav.P = 20000 | |
1256 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1257 | grav.position = TORSO.Position | |
1258 | grav.Name = "V3BanishForce"..Player.Name | |
1259 | else | |
1260 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1261 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1262 | end | |
1263 | else | |
1264 | HUM.PlatformStand = false | |
1265 | end | |
1266 | end | |
1267 | elseif ISBANISH == "Gravity" then | |
1268 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1269 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1270 | HUM.PlatformStand = false | |
1271 | end | |
1272 | end | |
1273 | end | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | end | |
1278 | function recurse(root,callback,i) | |
1279 | i= i or 0 | |
1280 | for _,v in pairs(root:GetChildren()) do | |
1281 | i = i + 1 | |
1282 | callback(i,v) | |
1283 | ||
1284 | if #v:GetChildren() > 0 then | |
1285 | i = recurse(v,callback,i) | |
1286 | end | |
1287 | end | |
1288 | ||
1289 | return i | |
1290 | end | |
1291 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
1292 | attachmentName = attachmentName.."RigAttachment" | |
1293 | local constraint = Instance.new(className.."Constraint") | |
1294 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
1295 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
1296 | constraint.Name = "RagdollConstraint"..part1.Name | |
1297 | ||
1298 | for _,propertyData in next,properties or {} do | |
1299 | constraint[propertyData[1]] = propertyData[2] | |
1300 | end | |
1301 | ||
1302 | constraint.Parent = character | |
1303 | end | |
1304 | function getAttachment0(character, attachmentName) | |
1305 | for _,child in next,character:GetChildren() do | |
1306 | local attachment = child:FindFirstChild(attachmentName) | |
1307 | if attachment then | |
1308 | return attachment | |
1309 | end | |
1310 | end | |
1311 | end | |
1312 | ||
1313 | function ArtificialHitbox(Part) | |
1314 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
1315 | HITBOX.CanCollide = true | |
1316 | HITBOX.CFrame = Part.CFrame | |
1317 | weldBetween(Part,HITBOX) | |
1318 | end | |
1319 | function R15Ragdoll(character,KeepArms) | |
1320 | character:BreakJoints() | |
1321 | coroutine.resume(coroutine.create(function() | |
1322 | recurse(character, function(_,v) | |
1323 | if v:IsA("Attachment") then | |
1324 | v.Axis = Vector3.new(0, 1, 0) | |
1325 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
1326 | v.Rotation = Vector3.new(0, 0, 0) | |
1327 | end | |
1328 | end) | |
1329 | for _,child in next,character:GetChildren() do | |
1330 | if child:IsA("Accoutrement") then | |
1331 | for _,part in next,child:GetChildren() do | |
1332 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
1333 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
1334 | local attachment0 = getAttachment0(character,attachment1.Name) | |
1335 | if attachment0 and attachment1 then | |
1336 | local constraint = Instance.new("HingeConstraint") | |
1337 | constraint.Attachment0 = attachment0 | |
1338 | constraint.Attachment1 = attachment1 | |
1339 | constraint.LimitsEnabled = true | |
1340 | constraint.UpperAngle = 0 | |
1341 | constraint.LowerAngle = 0 | |
1342 | constraint.Parent = character | |
1343 | end | |
1344 | ArtificialHitbox(part) | |
1345 | elseif part.Name == "HumanoidRootPart" then | |
1346 | part:remove() | |
1347 | end | |
1348 | end | |
1349 | end | |
1350 | end | |
1351 | ||
1352 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
1353 | {"LimitsEnabled",true}; | |
1354 | {"UpperAngle",5}; | |
1355 | }) | |
1356 | if character:FindFirstChild("Head") then | |
1357 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
1358 | {"LimitsEnabled",true}; | |
1359 | {"UpperAngle",15}; | |
1360 | }) | |
1361 | end | |
1362 | ||
1363 | local handProperties = { | |
1364 | {"LimitsEnabled", true}; | |
1365 | {"UpperAngle",0}; | |
1366 | {"LowerAngle",0}; | |
1367 | } | |
1368 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
1369 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
1370 | ||
1371 | local shinProperties = { | |
1372 | {"LimitsEnabled", true}; | |
1373 | {"UpperAngle", 0}; | |
1374 | {"LowerAngle", -75}; | |
1375 | } | |
1376 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
1377 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
1378 | ||
1379 | local footProperties = { | |
1380 | {"LimitsEnabled", true}; | |
1381 | {"UpperAngle", 15}; | |
1382 | {"LowerAngle", -45}; | |
1383 | } | |
1384 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
1385 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
1386 | if KeepArms == true then | |
1387 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
1388 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
1389 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
1390 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
1391 | end | |
1392 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
1393 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
1394 | Debris:AddItem(character,5) | |
1395 | end)) | |
1396 | end | |
1397 | ||
1398 | function Ragdoll(Character2,CharTorso,KeepArms) | |
1399 | coroutine.resume(coroutine.create(function() | |
1400 | Character2:BreakJoints() | |
1401 | local hum = Character2:findFirstChild("Humanoid") | |
1402 | hum:remove() | |
1403 | local function Scan(ch) | |
1404 | local e | |
1405 | for e = 1,#ch do | |
1406 | Scan(ch[e]:GetChildren()) | |
1407 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1408 | ch[e]:remove() | |
1409 | end | |
1410 | end | |
1411 | end | |
1412 | local NEWHUM = IT("Humanoid") | |
1413 | NEWHUM.Name = "Corpse" | |
1414 | NEWHUM.Health = 0 | |
1415 | NEWHUM.MaxHealth = 0 | |
1416 | NEWHUM.PlatformStand = true | |
1417 | NEWHUM.Parent = Character2 | |
1418 | NEWHUM.DisplayDistanceType = "None" | |
1419 | ||
1420 | local ch = Character2:GetChildren() | |
1421 | local i | |
1422 | for i = 1,#ch do | |
1423 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1424 | ch[i]:remove() | |
1425 | end | |
1426 | end | |
1427 | ||
1428 | local Torso2 = Character2.Torso | |
1429 | local movevector = Vector3.new() | |
1430 | ||
1431 | if Torso2 then | |
1432 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1433 | local Head = Character2:FindFirstChild("Head") | |
1434 | if Head then | |
1435 | local Neck = Instance.new("Weld") | |
1436 | Neck.Name = "Neck" | |
1437 | Neck.Part0 = Torso2 | |
1438 | Neck.Part1 = Head | |
1439 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1440 | Neck.C1 = CFrame.new() | |
1441 | Neck.Parent = Torso2 | |
1442 | ||
1443 | end | |
1444 | local Limb = Character2:FindFirstChild("Right Arm") | |
1445 | if Limb and KeepArms == true then | |
1446 | ||
1447 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1448 | local Joint = Instance.new("Glue") | |
1449 | Joint.Name = "RightShoulder" | |
1450 | Joint.Part0 = Torso2 | |
1451 | Joint.Part1 = Limb | |
1452 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1453 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1454 | Joint.Parent = Torso2 | |
1455 | ||
1456 | local B = Instance.new("Part") | |
1457 | B.TopSurface = 0 | |
1458 | B.BottomSurface = 0 | |
1459 | B.formFactor = "Symmetric" | |
1460 | B.Size = Vector3.new(1, 1, 1) | |
1461 | B.Transparency = 1 | |
1462 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1463 | B.Parent = Character2 | |
1464 | local W = Instance.new("Weld") | |
1465 | W.Part0 = Limb | |
1466 | W.Part1 = B | |
1467 | W.C0 = CFrame.new(0, -0.5, 0) | |
1468 | W.Parent = Limb | |
1469 | ||
1470 | end | |
1471 | local Limb = Character2:FindFirstChild("Left Arm") | |
1472 | if Limb and KeepArms == true then | |
1473 | ||
1474 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1475 | local Joint = Instance.new("Glue") | |
1476 | Joint.Name = "LeftShoulder" | |
1477 | Joint.Part0 = Torso2 | |
1478 | Joint.Part1 = Limb | |
1479 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1480 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1481 | Joint.Parent = Torso2 | |
1482 | ||
1483 | local B = Instance.new("Part") | |
1484 | B.TopSurface = 0 | |
1485 | B.BottomSurface = 0 | |
1486 | B.formFactor = "Symmetric" | |
1487 | B.Size = Vector3.new(1, 1, 1) | |
1488 | B.Transparency = 1 | |
1489 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1490 | B.Parent = Character2 | |
1491 | local W = Instance.new("Weld") | |
1492 | W.Part0 = Limb | |
1493 | W.Part1 = B | |
1494 | W.C0 = CFrame.new(0, -0.5, 0) | |
1495 | W.Parent = Limb | |
1496 | ||
1497 | end | |
1498 | local Limb = Character2:FindFirstChild("Right Leg") | |
1499 | if Limb then | |
1500 | ||
1501 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1502 | local Joint = Instance.new("Glue") | |
1503 | Joint.Name = "RightHip" | |
1504 | Joint.Part0 = Torso2 | |
1505 | Joint.Part1 = Limb | |
1506 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1507 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1508 | Joint.Parent = Torso2 | |
1509 | ||
1510 | local B = Instance.new("Part") | |
1511 | B.TopSurface = 0 | |
1512 | B.BottomSurface = 0 | |
1513 | B.formFactor = "Symmetric" | |
1514 | B.Size = Vector3.new(1, 1, 1) | |
1515 | B.Transparency = 1 | |
1516 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1517 | B.Parent = Character2 | |
1518 | local W = Instance.new("Weld") | |
1519 | W.Part0 = Limb | |
1520 | W.Part1 = B | |
1521 | W.C0 = CFrame.new(0, -0.5, 0) | |
1522 | W.Parent = Limb | |
1523 | ||
1524 | end | |
1525 | local Limb = Character2:FindFirstChild("Left Leg") | |
1526 | if Limb then | |
1527 | ||
1528 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1529 | local Joint = Instance.new("Glue") | |
1530 | Joint.Name = "LeftHip" | |
1531 | Joint.Part0 = Torso2 | |
1532 | Joint.Part1 = Limb | |
1533 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1534 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1535 | Joint.Parent = Torso2 | |
1536 | ||
1537 | local B = Instance.new("Part") | |
1538 | B.TopSurface = 0 | |
1539 | B.BottomSurface = 0 | |
1540 | B.formFactor = "Symmetric" | |
1541 | B.Size = Vector3.new(1, 1, 1) | |
1542 | B.Transparency = 1 | |
1543 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1544 | B.Parent = Character2 | |
1545 | local W = Instance.new("Weld") | |
1546 | W.Part0 = Limb | |
1547 | W.Part1 = B | |
1548 | W.C0 = CFrame.new(0, -0.5, 0) | |
1549 | W.Parent = Limb | |
1550 | ||
1551 | end | |
1552 | --[ | |
1553 | local Bar = Instance.new("Part") | |
1554 | Bar.TopSurface = 0 | |
1555 | Bar.BottomSurface = 0 | |
1556 | Bar.formFactor = "Symmetric" | |
1557 | Bar.Size = Vector3.new(1, 1, 1) | |
1558 | Bar.Transparency = 1 | |
1559 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1560 | Bar.Parent = Character2 | |
1561 | local Weld = Instance.new("Weld") | |
1562 | Weld.Part0 = Torso2 | |
1563 | Weld.Part1 = Bar | |
1564 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1565 | Weld.Parent = Torso2 | |
1566 | --]] | |
1567 | end | |
1568 | Character2.Parent = workspace | |
1569 | Debris:AddItem(Character2,5) | |
1570 | ||
1571 | return Character2,Torso2 | |
1572 | end)) | |
1573 | end | |
1574 | ||
1575 | --//=================================\\ | |
1576 | --|| ATTACK FUNCTIONS AND STUFF | |
1577 | --\\=================================// | |
1578 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1579 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1580 | local mesh = IT("SpecialMesh",wave) | |
1581 | mesh.MeshType = "Sphere" | |
1582 | mesh.Scale = SIZE | |
1583 | mesh.Offset = VT(0,0,0) | |
1584 | wave.CFrame = CFRAME | |
1585 | coroutine.resume(coroutine.create(function(PART) | |
1586 | for i = 1, WAIT do | |
1587 | Swait() | |
1588 | mesh.Scale = mesh.Scale + GROW | |
1589 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1590 | if wave.Transparency > 0.99 then | |
1591 | wave:remove() | |
1592 | end | |
1593 | end | |
1594 | end)) | |
1595 | end | |
1596 | function Roar() | |
1597 | ATTACK = true | |
1598 | Rooted = true | |
1599 | local VIOLENCE = 1 | |
1600 | FORCEIDLE = true | |
1601 | FORCEIDLE = false | |
1602 | if VIOLENCE <= 10 then | |
1603 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(2,2,2)) | |
1604 | for i=0, 1, 0.1 / Animation_Speed do | |
1605 | Swait() | |
1606 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1607 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1608 | 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) | |
1609 | 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) | |
1610 | 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) | |
1611 | 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) | |
1612 | end | |
1613 | local TAUNT = CreateSound(ROAR[MRANDOM(1,#ROAR)], Head, 100, 1, false) | |
1614 | repeat Swait() until TAUNT.TimeLength > 0 | |
1615 | repeat | |
1616 | Swait() | |
1617 | ApplyAoE(Head.Position,15,0,0,200,false) | |
1618 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1619 | 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}) | |
1620 | 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}) | |
1621 | 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}) | |
1622 | TAUNT.Parent = Head | |
1623 | Swait() | |
1624 | TAUNT.Parent = Head | |
1625 | local CHILDREN = workspace:GetDescendants() | |
1626 | for index, CHILD in pairs(CHILDREN) do | |
1627 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1628 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1629 | if HUM then | |
1630 | local TORSO = CHILD:FindFirstChild("Head") | |
1631 | if TORSO then | |
1632 | if (TORSO.Position - Head.Position).Magnitude <= 999 then | |
1633 | 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}) | |
1634 | TORSO:remove() | |
1635 | if CHILD:FindFirstChild("Torso") then | |
1636 | Ragdoll(CHILD,Torso,true) | |
1637 | elseif CHILD:FindFirstChild("UpperTorso") then | |
1638 | R15Ragdoll(CHILD,true) | |
1639 | end | |
1640 | end | |
1641 | end | |
1642 | end | |
1643 | end | |
1644 | end | |
1645 | 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) | |
1646 | 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) | |
1647 | 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) | |
1648 | 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) | |
1649 | 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) | |
1650 | 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) | |
1651 | until TAUNT.TimePosition > TAUNT.TimeLength - 2 | |
1652 | end | |
1653 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1654 | ATTACK = false | |
1655 | Rooted = false | |
1656 | end | |
1657 | function Shot() | |
1658 | ATTACK = true | |
1659 | Rooted = false | |
1660 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1661 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
1662 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1663 | Swait() | |
1664 | turnto(Mouse.Hit.p) | |
1665 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1666 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1667 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1668 | 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) | |
1669 | 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) | |
1670 | end | |
1671 | repeat | |
1672 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1673 | Swait() | |
1674 | turnto(Mouse.Hit.p) | |
1675 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1676 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1677 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1678 | 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) | |
1679 | 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) | |
1680 | end | |
1681 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1682 | SpawnTrail0(Hole.Position,POS) | |
1683 | if HIT ~= nil then | |
1684 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1685 | Banish(HIT.Parent) | |
1686 | end | |
1687 | end | |
1688 | 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}) | |
1689 | 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}) | |
1690 | 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}) | |
1691 | 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}) | |
1692 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1693 | 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}) | |
1694 | 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}) | |
1695 | for i=0, 0.5, 0.22 / Animation_Speed do | |
1696 | Swait() | |
1697 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1698 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1699 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1700 | 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) | |
1701 | 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) | |
1702 | end | |
1703 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Really white",VT(5,5,5)) | |
1704 | until KEYHOLD == false | |
1705 | ATTACK = false | |
1706 | Rooted = false | |
1707 | end | |
1708 | function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
1709 | if FLOOR ~= nil then | |
1710 | coroutine.resume(coroutine.create(function() | |
1711 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0)) | |
1712 | PART.CFrame = CF(POSITION) | |
1713 | for i = 1, 45 do | |
1714 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE) | |
1715 | RingPiece.Material = FLOOR.Material | |
1716 | RingPiece.Color = FLOOR.Color | |
1717 | 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))) | |
1718 | - | local MESSAGES = {"YOU NOT WORTH TO BE ON HEAVEN, ","God don't like Criminal, ","Go to hell Heaven is not a Place you want to go, ","YOU CAN GO TO HEAVEN BUT IT'S SILENT, "} |
1718 | + | |
1719 | end | |
1720 | PART:remove() | |
1721 | end)) | |
1722 | end | |
1723 | end | |
1724 | ||
1725 | function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
1726 | - | chatfunc("Be Darker...") |
1726 | + | |
1727 | for i = 1, AMOUNT do | |
1728 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false) | |
1729 | DEBREE.Material = FLOOR.Material | |
1730 | DEBREE.Color = FLOOR.Color | |
1731 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1732 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH)) | |
1733 | coroutine.resume(coroutine.create(function() | |
1734 | Swait(15) | |
1735 | DEBREE.Parent = workspace | |
1736 | DEBREE.CanCollide = true | |
1737 | Debris:AddItem(DEBREE,SWAIT) | |
1738 | end)) | |
1739 | end | |
1740 | end | |
1741 | end | |
1742 | function Pure_Heaven() | |
1743 | chatfunc("The Light of Heaven will make sense!") | |
1744 | ATTACK = true | |
1745 | Rooted = true | |
1746 | for i = 1, 15 do | |
1747 | Swait() | |
1748 | 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) | |
1749 | 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) | |
1750 | 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) | |
1751 | 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) | |
1752 | end | |
1753 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1754 | Swait() | |
1755 | 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) | |
1756 | 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) | |
1757 | 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) | |
1758 | 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) | |
1759 | end | |
1760 | coroutine.resume(coroutine.create(function() | |
1761 | local POS = Mouse.Hit.p | |
1762 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Strike", VT(0,0,0)) | |
1763 | MakeForm(RAY,"Cyl") | |
1764 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Strike", VT(0,0,0)) | |
1765 | MakeForm(SPHERE,"Ball") | |
1766 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Navy blue", "Strike", VT(0,0,0)) | |
1767 | MakeForm(SHIELD,"Ball") | |
1768 | SHIELD.CFrame = CF(POS) | |
1769 | RAY.CFrame = CF(POS) | |
1770 | SPHERE.CFrame = CF(POS) | |
1771 | CreateSound(440145570, SPHERE, 15, 0.5, false) | |
1772 | CreateSound(415700134, SPHERE, 15, 0.5, false) | |
1773 | for i = 1, 200 do | |
1774 | Swait() | |
1775 | 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}) | |
1776 | RAY.Size = RAY.Size + VT(0.5,0,0.5) | |
1777 | SPHERE.Size = SPHERE.Size + VT(1.5,1.5,1.5) | |
1778 | SHIELD.Size = SPHERE.Size + VT(2.5,2.5,2.5) | |
1779 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1780 | end | |
1781 | for i = 1, 45 do | |
1782 | Swait() | |
1783 | RAY.Transparency = RAY.Transparency + 1/45 | |
1784 | SPHERE.Transparency = RAY.Transparency | |
1785 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1786 | end | |
1787 | RAY:remove() | |
1788 | SHIELD:remove() | |
1789 | SPHERE:remove() | |
1790 | end)) | |
1791 | for i=0, 1, 0.1 / Animation_Speed do | |
1792 | Swait() | |
1793 | 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) | |
1794 | 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) | |
1795 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1796 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1797 | 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) | |
1798 | 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) | |
1799 | end | |
1800 | ATTACK = false | |
1801 | Rooted = false | |
1802 | end | |
1803 | function printbye(Name) | |
1804 | local MESSAGES = {"do not resist, ","you dont have permission to live anymore, ","this ends here, ","heaven is not the place for someone like you, "} | |
1805 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1806 | end | |
1807 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1808 | MakeForm(RightHole,"Cyl") | |
1809 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1810 | MakeForm(LeftHole,"Cyl") | |
1811 | function Gates_Of_Darkness() | |
1812 | chatfunc("this ends here") | |
1813 | CreateSound(0, Torso, 10, 1, false) | |
1814 | ATTACK = true | |
1815 | Rooted = true | |
1816 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1817 | Swait() | |
1818 | 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) | |
1819 | 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) | |
1820 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1821 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1822 | 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) | |
1823 | 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) | |
1824 | end | |
1825 | local DONE = false | |
1826 | local GATE = nil | |
1827 | local GATESPIN = true | |
1828 | coroutine.resume(coroutine.create(function() | |
1829 | repeat | |
1830 | Swait() | |
1831 | if GATE ~= nil then | |
1832 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1833 | end | |
1834 | until GATESPIN == false | |
1835 | end)) | |
1836 | coroutine.resume(coroutine.create(function() | |
1837 | repeat | |
1838 | Swait() | |
1839 | 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) | |
1840 | 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) | |
1841 | 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) | |
1842 | 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) | |
1843 | 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) | |
1844 | 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) | |
1845 | until DONE == true | |
1846 | Swait(50) | |
1847 | for i = 1, 35 do | |
1848 | Swait(4) | |
1849 | local FIRED = false | |
1850 | local CHILDREN = workspace:GetDescendants() | |
1851 | for index, CHILD in pairs(CHILDREN) do | |
1852 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1853 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1854 | if HUM then | |
1855 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1856 | if TORSO then | |
1857 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1858 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1859 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1860 | 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}) | |
1861 | 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}) | |
1862 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1863 | Banish(CHILD) | |
1864 | FIRED = true | |
1865 | break | |
1866 | end | |
1867 | end | |
1868 | end | |
1869 | end | |
1870 | end | |
1871 | if FIRED == false then | |
1872 | 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))) | |
1873 | 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}) | |
1874 | 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}) | |
1875 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1876 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1877 | if HITBOD ~= nil then | |
1878 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1879 | Banish(HITBOD.Parent) | |
1880 | end | |
1881 | end | |
1882 | end | |
1883 | end | |
1884 | for i = 1, 35 do | |
1885 | Swait(4) | |
1886 | local FIRED = false | |
1887 | local CHILDREN = workspace:GetDescendants() | |
1888 | for index, CHILD in pairs(CHILDREN) do | |
1889 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1890 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1891 | if HUM then | |
1892 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1893 | if TORSO then | |
1894 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1895 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1896 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1897 | 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}) | |
1898 | 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}) | |
1899 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1900 | Banish(CHILD) | |
1901 | FIRED = true | |
1902 | break | |
1903 | end | |
1904 | end | |
1905 | end | |
1906 | end | |
1907 | end | |
1908 | if FIRED == false then | |
1909 | 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))) | |
1910 | 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}) | |
1911 | 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}) | |
1912 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1913 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1914 | if HITBOD ~= nil then | |
1915 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1916 | Banish(HITBOD.Parent) | |
1917 | end | |
1918 | end | |
1919 | end | |
1920 | end | |
1921 | for i = 1, 35 do | |
1922 | Swait(4) | |
1923 | local FIRED = false | |
1924 | local CHILDREN = workspace:GetDescendants() | |
1925 | for index, CHILD in pairs(CHILDREN) do | |
1926 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1927 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1928 | if HUM then | |
1929 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1930 | if TORSO then | |
1931 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1932 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1933 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1934 | 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}) | |
1935 | 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}) | |
1936 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1937 | Banish(CHILD) | |
1938 | FIRED = true | |
1939 | break | |
1940 | end | |
1941 | end | |
1942 | end | |
1943 | end | |
1944 | end | |
1945 | if FIRED == false then | |
1946 | 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))) | |
1947 | 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}) | |
1948 | 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}) | |
1949 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1950 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1951 | if HITBOD ~= nil then | |
1952 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1953 | Banish(HITBOD.Parent) | |
1954 | end | |
1955 | end | |
1956 | end | |
1957 | end | |
1958 | for i = 1, 35 do | |
1959 | Swait(4) | |
1960 | local FIRED = false | |
1961 | local CHILDREN = workspace:GetDescendants() | |
1962 | for index, CHILD in pairs(CHILDREN) do | |
1963 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1964 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1965 | if HUM then | |
1966 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1967 | if TORSO then | |
1968 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1969 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1970 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1971 | 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}) | |
1972 | 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}) | |
1973 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1974 | Banish(CHILD) | |
1975 | FIRED = true | |
1976 | break | |
1977 | end | |
1978 | end | |
1979 | end | |
1980 | end | |
1981 | end | |
1982 | if FIRED == false then | |
1983 | 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))) | |
1984 | 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}) | |
1985 | 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}) | |
1986 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
1987 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1988 | if HITBOD ~= nil then | |
1989 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1990 | Banish(HITBOD.Parent) | |
1991 | end | |
1992 | end | |
1993 | end | |
1994 | end | |
1995 | for i = 1, 35 do | |
1996 | Swait(4) | |
1997 | local FIRED = false | |
1998 | local CHILDREN = workspace:GetDescendants() | |
1999 | for index, CHILD in pairs(CHILDREN) do | |
2000 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2001 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2002 | if HUM then | |
2003 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2004 | if TORSO then | |
2005 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2006 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2007 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2008 | 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}) | |
2009 | 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}) | |
2010 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2011 | Banish(CHILD) | |
2012 | FIRED = true | |
2013 | break | |
2014 | end | |
2015 | end | |
2016 | end | |
2017 | end | |
2018 | end | |
2019 | if FIRED == false then | |
2020 | 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))) | |
2021 | 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}) | |
2022 | 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}) | |
2023 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2024 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2025 | if HITBOD ~= nil then | |
2026 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2027 | Banish(HITBOD.Parent) | |
2028 | end | |
2029 | end | |
2030 | end | |
2031 | end | |
2032 | for i = 1, 35 do | |
2033 | Swait(4) | |
2034 | local FIRED = false | |
2035 | local CHILDREN = workspace:GetDescendants() | |
2036 | for index, CHILD in pairs(CHILDREN) do | |
2037 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2038 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2039 | if HUM then | |
2040 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2041 | if TORSO then | |
2042 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2043 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2044 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2045 | 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}) | |
2046 | 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}) | |
2047 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2048 | Banish(CHILD) | |
2049 | FIRED = true | |
2050 | break | |
2051 | end | |
2052 | end | |
2053 | end | |
2054 | end | |
2055 | end | |
2056 | if FIRED == false then | |
2057 | 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))) | |
2058 | 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}) | |
2059 | 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}) | |
2060 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2061 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2062 | if HITBOD ~= nil then | |
2063 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2064 | Banish(HITBOD.Parent) | |
2065 | end | |
2066 | end | |
2067 | end | |
2068 | end | |
2069 | for i = 1, 35 do | |
2070 | Swait(4) | |
2071 | local FIRED = false | |
2072 | local CHILDREN = workspace:GetDescendants() | |
2073 | for index, CHILD in pairs(CHILDREN) do | |
2074 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2075 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2076 | if HUM then | |
2077 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2078 | if TORSO then | |
2079 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2080 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2081 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2082 | 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}) | |
2083 | 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}) | |
2084 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2085 | Banish(CHILD) | |
2086 | FIRED = true | |
2087 | break | |
2088 | end | |
2089 | end | |
2090 | end | |
2091 | end | |
2092 | end | |
2093 | if FIRED == false then | |
2094 | 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))) | |
2095 | 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}) | |
2096 | 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}) | |
2097 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2098 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2099 | if HITBOD ~= nil then | |
2100 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2101 | Banish(HITBOD.Parent) | |
2102 | end | |
2103 | end | |
2104 | end | |
2105 | end | |
2106 | for i = 1, 35 do | |
2107 | Swait(4) | |
2108 | local FIRED = false | |
2109 | local CHILDREN = workspace:GetDescendants() | |
2110 | for index, CHILD in pairs(CHILDREN) do | |
2111 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2112 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2113 | if HUM then | |
2114 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2115 | if TORSO then | |
2116 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2117 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2118 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2119 | 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}) | |
2120 | 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}) | |
2121 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2122 | Banish(CHILD) | |
2123 | FIRED = true | |
2124 | break | |
2125 | end | |
2126 | end | |
2127 | end | |
2128 | end | |
2129 | end | |
2130 | if FIRED == false then | |
2131 | 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))) | |
2132 | 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}) | |
2133 | 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}) | |
2134 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2135 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2136 | if HITBOD ~= nil then | |
2137 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2138 | Banish(HITBOD.Parent) | |
2139 | end | |
2140 | end | |
2141 | end | |
2142 | end | |
2143 | for i = 1, 35 do | |
2144 | Swait(4) | |
2145 | local FIRED = false | |
2146 | local CHILDREN = workspace:GetDescendants() | |
2147 | for index, CHILD in pairs(CHILDREN) do | |
2148 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2149 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2150 | if HUM then | |
2151 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2152 | if TORSO then | |
2153 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2154 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2155 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2156 | 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}) | |
2157 | 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}) | |
2158 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2159 | Banish(CHILD) | |
2160 | FIRED = true | |
2161 | break | |
2162 | end | |
2163 | end | |
2164 | end | |
2165 | end | |
2166 | end | |
2167 | if FIRED == false then | |
2168 | 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))) | |
2169 | 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}) | |
2170 | 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}) | |
2171 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2172 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2173 | if HITBOD ~= nil then | |
2174 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2175 | Banish(HITBOD.Parent) | |
2176 | end | |
2177 | end | |
2178 | end | |
2179 | end | |
2180 | for i = 1, 35 do | |
2181 | Swait(4) | |
2182 | local FIRED = false | |
2183 | local CHILDREN = workspace:GetDescendants() | |
2184 | for index, CHILD in pairs(CHILDREN) do | |
2185 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2186 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2187 | if HUM then | |
2188 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2189 | if TORSO then | |
2190 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2191 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2192 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2193 | 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}) | |
2194 | 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}) | |
2195 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2196 | Banish(CHILD) | |
2197 | FIRED = true | |
2198 | break | |
2199 | end | |
2200 | end | |
2201 | end | |
2202 | end | |
2203 | end | |
2204 | if FIRED == false then | |
2205 | 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))) | |
2206 | 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}) | |
2207 | 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}) | |
2208 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2209 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2210 | if HITBOD ~= nil then | |
2211 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2212 | Banish(HITBOD.Parent) | |
2213 | end | |
2214 | end | |
2215 | end | |
2216 | end | |
2217 | for i = 1, 35 do | |
2218 | Swait(4) | |
2219 | local FIRED = false | |
2220 | local CHILDREN = workspace:GetDescendants() | |
2221 | for index, CHILD in pairs(CHILDREN) do | |
2222 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2223 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2224 | if HUM then | |
2225 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2226 | if TORSO then | |
2227 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2228 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2229 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2230 | 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}) | |
2231 | 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}) | |
2232 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2233 | Banish(CHILD) | |
2234 | FIRED = true | |
2235 | break | |
2236 | end | |
2237 | end | |
2238 | end | |
2239 | end | |
2240 | end | |
2241 | if FIRED == false then | |
2242 | 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))) | |
2243 | 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}) | |
2244 | 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}) | |
2245 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2246 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2247 | if HITBOD ~= nil then | |
2248 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2249 | Banish(HITBOD.Parent) | |
2250 | end | |
2251 | end | |
2252 | end | |
2253 | end | |
2254 | for i = 1, 35 do | |
2255 | Swait(4) | |
2256 | local FIRED = false | |
2257 | local CHILDREN = workspace:GetDescendants() | |
2258 | for index, CHILD in pairs(CHILDREN) do | |
2259 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2260 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2261 | if HUM then | |
2262 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2263 | if TORSO then | |
2264 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2265 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2266 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2267 | 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}) | |
2268 | 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}) | |
2269 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2270 | Banish(CHILD) | |
2271 | FIRED = true | |
2272 | break | |
2273 | end | |
2274 | end | |
2275 | end | |
2276 | end | |
2277 | end | |
2278 | if FIRED == false then | |
2279 | 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))) | |
2280 | 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}) | |
2281 | 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}) | |
2282 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2283 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2284 | if HITBOD ~= nil then | |
2285 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2286 | Banish(HITBOD.Parent) | |
2287 | end | |
2288 | end | |
2289 | end | |
2290 | end | |
2291 | for i = 1, 35 do | |
2292 | Swait(4) | |
2293 | local FIRED = false | |
2294 | local CHILDREN = workspace:GetDescendants() | |
2295 | for index, CHILD in pairs(CHILDREN) do | |
2296 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2297 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2298 | if HUM then | |
2299 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2300 | if TORSO then | |
2301 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2302 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2303 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2304 | 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}) | |
2305 | 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}) | |
2306 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2307 | Banish(CHILD) | |
2308 | FIRED = true | |
2309 | break | |
2310 | end | |
2311 | end | |
2312 | end | |
2313 | end | |
2314 | end | |
2315 | if FIRED == false then | |
2316 | 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))) | |
2317 | 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}) | |
2318 | 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}) | |
2319 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2320 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2321 | if HITBOD ~= nil then | |
2322 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2323 | Banish(HITBOD.Parent) | |
2324 | end | |
2325 | end | |
2326 | end | |
2327 | end | |
2328 | for i = 1, 35 do | |
2329 | Swait(4) | |
2330 | local FIRED = false | |
2331 | local CHILDREN = workspace:GetDescendants() | |
2332 | for index, CHILD in pairs(CHILDREN) do | |
2333 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2334 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2335 | if HUM then | |
2336 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2337 | if TORSO then | |
2338 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2339 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2340 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2341 | 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}) | |
2342 | 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}) | |
2343 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2344 | Banish(CHILD) | |
2345 | FIRED = true | |
2346 | break | |
2347 | end | |
2348 | end | |
2349 | end | |
2350 | end | |
2351 | end | |
2352 | if FIRED == false then | |
2353 | 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))) | |
2354 | 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}) | |
2355 | 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}) | |
2356 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2357 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2358 | if HITBOD ~= nil then | |
2359 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2360 | Banish(HITBOD.Parent) | |
2361 | end | |
2362 | end | |
2363 | end | |
2364 | end | |
2365 | for i = 1, 35 do | |
2366 | Swait(4) | |
2367 | local FIRED = false | |
2368 | local CHILDREN = workspace:GetDescendants() | |
2369 | for index, CHILD in pairs(CHILDREN) do | |
2370 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2371 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2372 | if HUM then | |
2373 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2374 | if TORSO then | |
2375 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2376 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2377 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2378 | 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}) | |
2379 | 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}) | |
2380 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2381 | Banish(CHILD) | |
2382 | FIRED = true | |
2383 | break | |
2384 | end | |
2385 | end | |
2386 | end | |
2387 | end | |
2388 | end | |
2389 | if FIRED == false then | |
2390 | 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))) | |
2391 | 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}) | |
2392 | 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}) | |
2393 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2394 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2395 | if HITBOD ~= nil then | |
2396 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2397 | Banish(HITBOD.Parent) | |
2398 | end | |
2399 | end | |
2400 | end | |
2401 | end | |
2402 | for i = 1, 35 do | |
2403 | Swait(4) | |
2404 | local FIRED = false | |
2405 | local CHILDREN = workspace:GetDescendants() | |
2406 | for index, CHILD in pairs(CHILDREN) do | |
2407 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2408 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2409 | if HUM then | |
2410 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2411 | if TORSO then | |
2412 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2413 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2414 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2415 | 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}) | |
2416 | 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}) | |
2417 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2418 | Banish(CHILD) | |
2419 | FIRED = true | |
2420 | break | |
2421 | end | |
2422 | end | |
2423 | end | |
2424 | end | |
2425 | end | |
2426 | if FIRED == false then | |
2427 | 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))) | |
2428 | 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}) | |
2429 | 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}) | |
2430 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2431 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2432 | if HITBOD ~= nil then | |
2433 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2434 | Banish(HITBOD.Parent) | |
2435 | end | |
2436 | end | |
2437 | end | |
2438 | end | |
2439 | for i = 1, 35 do | |
2440 | Swait(4) | |
2441 | local FIRED = false | |
2442 | local CHILDREN = workspace:GetDescendants() | |
2443 | for index, CHILD in pairs(CHILDREN) do | |
2444 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2445 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2446 | if HUM then | |
2447 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2448 | if TORSO then | |
2449 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2450 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2451 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2452 | 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}) | |
2453 | 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}) | |
2454 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2455 | Banish(CHILD) | |
2456 | FIRED = true | |
2457 | break | |
2458 | end | |
2459 | end | |
2460 | end | |
2461 | end | |
2462 | end | |
2463 | if FIRED == false then | |
2464 | 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))) | |
2465 | 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}) | |
2466 | 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}) | |
2467 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2468 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2469 | if HITBOD ~= nil then | |
2470 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2471 | Banish(HITBOD.Parent) | |
2472 | end | |
2473 | end | |
2474 | end | |
2475 | end | |
2476 | for i = 1, 35 do | |
2477 | Swait(4) | |
2478 | local FIRED = false | |
2479 | local CHILDREN = workspace:GetDescendants() | |
2480 | for index, CHILD in pairs(CHILDREN) do | |
2481 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2482 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2483 | if HUM then | |
2484 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2485 | if TORSO then | |
2486 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2487 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2488 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2489 | 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}) | |
2490 | 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}) | |
2491 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2492 | Banish(CHILD) | |
2493 | FIRED = true | |
2494 | break | |
2495 | end | |
2496 | end | |
2497 | end | |
2498 | end | |
2499 | end | |
2500 | if FIRED == false then | |
2501 | 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))) | |
2502 | 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}) | |
2503 | 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}) | |
2504 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2505 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2506 | if HITBOD ~= nil then | |
2507 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2508 | Banish(HITBOD.Parent) | |
2509 | end | |
2510 | end | |
2511 | end | |
2512 | end | |
2513 | for i = 1, 35 do | |
2514 | Swait(4) | |
2515 | local FIRED = false | |
2516 | local CHILDREN = workspace:GetDescendants() | |
2517 | for index, CHILD in pairs(CHILDREN) do | |
2518 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2519 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2520 | if HUM then | |
2521 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2522 | if TORSO then | |
2523 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2524 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2525 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2526 | 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}) | |
2527 | 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}) | |
2528 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2529 | Banish(CHILD) | |
2530 | FIRED = true | |
2531 | break | |
2532 | end | |
2533 | end | |
2534 | end | |
2535 | end | |
2536 | end | |
2537 | if FIRED == false then | |
2538 | 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))) | |
2539 | 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}) | |
2540 | 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}) | |
2541 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2542 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2543 | if HITBOD ~= nil then | |
2544 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2545 | Banish(HITBOD.Parent) | |
2546 | end | |
2547 | end | |
2548 | end | |
2549 | end | |
2550 | for i = 1, 35 do | |
2551 | Swait(4) | |
2552 | local FIRED = false | |
2553 | local CHILDREN = workspace:GetDescendants() | |
2554 | for index, CHILD in pairs(CHILDREN) do | |
2555 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2556 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2557 | if HUM then | |
2558 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2559 | if TORSO then | |
2560 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2561 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2562 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2563 | 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}) | |
2564 | 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}) | |
2565 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2566 | Banish(CHILD) | |
2567 | FIRED = true | |
2568 | break | |
2569 | end | |
2570 | end | |
2571 | end | |
2572 | end | |
2573 | end | |
2574 | if FIRED == false then | |
2575 | 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))) | |
2576 | 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}) | |
2577 | 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}) | |
2578 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2579 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2580 | if HITBOD ~= nil then | |
2581 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2582 | Banish(HITBOD.Parent) | |
2583 | end | |
2584 | end | |
2585 | end | |
2586 | end | |
2587 | for i = 1, 35 do | |
2588 | Swait(4) | |
2589 | local FIRED = false | |
2590 | local CHILDREN = workspace:GetDescendants() | |
2591 | for index, CHILD in pairs(CHILDREN) do | |
2592 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2593 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2594 | if HUM then | |
2595 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2596 | if TORSO then | |
2597 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2598 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2599 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2600 | 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}) | |
2601 | 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}) | |
2602 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2603 | Banish(CHILD) | |
2604 | FIRED = true | |
2605 | break | |
2606 | end | |
2607 | end | |
2608 | end | |
2609 | end | |
2610 | end | |
2611 | if FIRED == false then | |
2612 | 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))) | |
2613 | 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}) | |
2614 | 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}) | |
2615 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2616 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2617 | if HITBOD ~= nil then | |
2618 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2619 | Banish(HITBOD.Parent) | |
2620 | end | |
2621 | end | |
2622 | end | |
2623 | end | |
2624 | for i = 1, 35 do | |
2625 | Swait(4) | |
2626 | local FIRED = false | |
2627 | local CHILDREN = workspace:GetDescendants() | |
2628 | for index, CHILD in pairs(CHILDREN) do | |
2629 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2630 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2631 | if HUM then | |
2632 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2633 | if TORSO then | |
2634 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2635 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2636 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2637 | 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}) | |
2638 | 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}) | |
2639 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2640 | Banish(CHILD) | |
2641 | FIRED = true | |
2642 | break | |
2643 | end | |
2644 | end | |
2645 | end | |
2646 | end | |
2647 | end | |
2648 | if FIRED == false then | |
2649 | 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))) | |
2650 | 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}) | |
2651 | 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}) | |
2652 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2653 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2654 | if HITBOD ~= nil then | |
2655 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2656 | Banish(HITBOD.Parent) | |
2657 | end | |
2658 | end | |
2659 | end | |
2660 | end | |
2661 | for i = 1, 35 do | |
2662 | Swait(4) | |
2663 | local FIRED = false | |
2664 | local CHILDREN = workspace:GetDescendants() | |
2665 | for index, CHILD in pairs(CHILDREN) do | |
2666 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2667 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2668 | if HUM then | |
2669 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2670 | if TORSO then | |
2671 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2672 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2673 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2674 | 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}) | |
2675 | 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}) | |
2676 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2677 | Banish(CHILD) | |
2678 | FIRED = true | |
2679 | break | |
2680 | end | |
2681 | end | |
2682 | end | |
2683 | end | |
2684 | end | |
2685 | if FIRED == false then | |
2686 | 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))) | |
2687 | 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}) | |
2688 | 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}) | |
2689 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2690 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2691 | if HITBOD ~= nil then | |
2692 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2693 | Banish(HITBOD.Parent) | |
2694 | end | |
2695 | end | |
2696 | end | |
2697 | end | |
2698 | for i = 1, 35 do | |
2699 | Swait(4) | |
2700 | local FIRED = false | |
2701 | local CHILDREN = workspace:GetDescendants() | |
2702 | for index, CHILD in pairs(CHILDREN) do | |
2703 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2704 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2705 | if HUM then | |
2706 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2707 | if TORSO then | |
2708 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2709 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2710 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2711 | 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}) | |
2712 | 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}) | |
2713 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2714 | Banish(CHILD) | |
2715 | FIRED = true | |
2716 | break | |
2717 | end | |
2718 | end | |
2719 | end | |
2720 | end | |
2721 | end | |
2722 | if FIRED == false then | |
2723 | 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))) | |
2724 | 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}) | |
2725 | 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}) | |
2726 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
2727 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2728 | if HITBOD ~= nil then | |
2729 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2730 | Banish(HITBOD.Parent) | |
2731 | end | |
2732 | end | |
2733 | end | |
2734 | end | |
2735 | for i = 1, 45 do | |
2736 | Swait() | |
2737 | GATE.Size = GATE.Size - VT(10,0,10) | |
2738 | end | |
2739 | GATESPIN = false | |
2740 | GATE:remove() | |
2741 | end)) | |
2742 | Swait(15) | |
2743 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2744 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0)) | |
2745 | local DECAL = IT("Decal",GATE) | |
2746 | DECAL.Texture = "http://www.roblox.com/asset/?id=62270888" | |
2747 | DECAL.Face = "Top" | |
2748 | GATE.CFrame = CF(HITPOS) | |
2749 | CreateSound(0, GATE, 7, 1.3, false) | |
2750 | for i = 1, 45 do | |
2751 | Swait() | |
2752 | GATE.Size = GATE.Size + VT(10,0,10) | |
2753 | end | |
2754 | CreateSound(213603013, RightHole, 7, 1, false) | |
2755 | CreateSound(213603013, LeftHole, 7, 1, false) | |
2756 | 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}) | |
2757 | 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}) | |
2758 | ATTACK = false | |
2759 | Rooted = false | |
2760 | DONE = true | |
2761 | end | |
2762 | function Taunt() | |
2763 | ATTACK = true | |
2764 | Rooted = true | |
2765 | CreateSound("907333406", Head, 10, 0.9) | |
2766 | sick:Stop() | |
2767 | Weapon.Parent = nil | |
2768 | for i = 1, 3 do | |
2769 | for i = 0, 0.7, 0.14 / Animation_Speed do | |
2770 | Swait() | |
2771 | 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) | |
2772 | 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) | |
2773 | 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) | |
2774 | 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) | |
2775 | 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) | |
2776 | 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) | |
2777 | end | |
2778 | for i = 0, 0.7, 0.14 / Animation_Speed do | |
2779 | Swait() | |
2780 | 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) | |
2781 | 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) | |
2782 | 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) | |
2783 | 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) | |
2784 | 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) | |
2785 | 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) | |
2786 | end | |
2787 | end | |
2788 | sick:Play() | |
2789 | Weapon.Parent = Character | |
2790 | ATTACK = false | |
2791 | Rooted = false | |
2792 | end | |
2793 | ||
2794 | --//=================================\\ | |
2795 | --|| ASSIGN THINGS TO KEYS | |
2796 | --\\=================================// | |
2797 | ||
2798 | function MouseDown(Mouse) | |
2799 | if ATTACK == false then | |
2800 | end | |
2801 | end | |
2802 | ||
2803 | function MouseUp(Mouse) | |
2804 | HOLD = false | |
2805 | end | |
2806 | ||
2807 | function KeyDown(Key) | |
2808 | KEYHOLD = true | |
2809 | if Key == "z" and ATTACK == false then | |
2810 | Shot() | |
2811 | end | |
2812 | ||
2813 | if Key == "f" and ATTACK == false then | |
2814 | chatfunc("If you decided to be a Good Person then go to Afterlife...") | |
2815 | TOBANISH = {} | |
2816 | end | |
2817 | ||
2818 | if Key == "t" and ATTACK == false then | |
2819 | Taunt() | |
2820 | end | |
2821 | ||
2822 | if Key == "c" and ATTACK == false then | |
2823 | Roar() | |
2824 | end | |
2825 | ||
2826 | if Key == "n" and ATTACK == false then | |
2827 | Switch() | |
2828 | end | |
2829 | ||
2830 | if Key == "q" and ATTACK == false then | |
2831 | for i=0, 0.5, 0.08 / Animation_Speed do | |
2832 | Swait() | |
2833 | 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) | |
2834 | 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) | |
2835 | end | |
2836 | MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5)) | |
2837 | local pos = RootPart.Position | |
2838 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos) | |
2839 | end | |
2840 | ||
2841 | if Key == "x" and ATTACK == false then | |
2842 | Pure_Heaven() | |
2843 | end | |
2844 | ||
2845 | if Key == "v" and ATTACK == false then | |
2846 | Gates_Of_Darkness() | |
2847 | end | |
2848 | end | |
2849 | ||
2850 | function KeyUp(Key) | |
2851 | KEYHOLD = false | |
2852 | end | |
2853 | ||
2854 | Mouse.Button1Down:connect(function(NEWKEY) | |
2855 | MouseDown(NEWKEY) | |
2856 | end) | |
2857 | Mouse.Button1Up:connect(function(NEWKEY) | |
2858 | MouseUp(NEWKEY) | |
2859 | end) | |
2860 | Mouse.KeyDown:connect(function(NEWKEY) | |
2861 | KeyDown(NEWKEY) | |
2862 | end) | |
2863 | Mouse.KeyUp:connect(function(NEWKEY) | |
2864 | KeyUp(NEWKEY) | |
2865 | end) | |
2866 | ||
2867 | --//=================================\\ | |
2868 | --\\=================================// | |
2869 | ||
2870 | ||
2871 | function unanchor() | |
2872 | if UNANCHOR == true then | |
2873 | g = Character:GetChildren() | |
2874 | for i = 1, #g do | |
2875 | if g[i].ClassName == "Part" then | |
2876 | g[i].Anchored = false | |
2877 | end | |
2878 | end | |
2879 | end | |
2880 | end | |
2881 | ||
2882 | ||
2883 | --//=================================\\ | |
2884 | --|| WRAP THE WHOLE SCRIPT UP | |
2885 | --\\=================================// | |
2886 | ||
2887 | Humanoid.Changed:connect(function(Jump) | |
2888 | if Jump == "Jump" and (Disable_Jump == true) then | |
2889 | Humanoid.Jump = false | |
2890 | end | |
2891 | end) | |
2892 | ||
2893 | sick.AncestryChanged:Connect(function() | |
2894 | sick.Parent = Character | |
2895 | end) | |
2896 | ||
2897 | local FF = IT("ForceField", Character) | |
2898 | FF.Visible = false | |
2899 | ||
2900 | while true do | |
2901 | Swait() | |
2902 | script.Parent = WEAPONGUI | |
2903 | ANIMATE.Parent = nil | |
2904 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2905 | v:Stop(); | |
2906 | end | |
2907 | SINE = SINE + CHANGE | |
2908 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2909 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2910 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2911 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2912 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2913 | 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) | |
2914 | 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) | |
2915 | 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) | |
2916 | 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) | |
2917 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2918 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2919 | 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) | |
2920 | 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) | |
2921 | 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) | |
2922 | end | |
2923 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2924 | ANIM = "Jump" | |
2925 | if ATTACK == false then | |
2926 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2927 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2928 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2929 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2930 | 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) | |
2931 | 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) | |
2932 | end | |
2933 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2934 | ANIM = "Fall" | |
2935 | if ATTACK == false then | |
2936 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2937 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2938 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2940 | 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) | |
2941 | 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) | |
2942 | end | |
2943 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2944 | ANIM = "Idle" | |
2945 | if ATTACK == false then | |
2946 | 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) | |
2947 | 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) | |
2948 | 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) | |
2949 | 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) | |
2950 | 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) | |
2951 | 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) | |
2952 | end | |
2953 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2954 | ANIM = "Walk" | |
2955 | if ATTACK == false then | |
2956 | 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) | |
2957 | 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) | |
2958 | 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) | |
2959 | 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) | |
2960 | end | |
2961 | end | |
2962 | unanchor() | |
2963 | Humanoid.MaxHealth = 16e+16 | |
2964 | Humanoid.Health = 16e+16 | |
2965 | if Rooted == false then | |
2966 | Disable_Jump = false | |
2967 | Humanoid.WalkSpeed = Speed | |
2968 | elseif Rooted == true then | |
2969 | Disable_Jump = true | |
2970 | Humanoid.WalkSpeed = 0 | |
2971 | end | |
2972 | if Head:FindFirstChild("face") then | |
2973 | Head.face.Texture = "rbxassetid://0" | |
2974 | end | |
2975 | end | |
2976 | ||
2977 | --//=================================\\ | |
2978 | --\\=================================// | |
2979 | ||
2980 | ||
2981 | ||
2982 | ||
2983 | ||
2984 | --//====================================================\\-- | |
2985 | --|| END OF SCRIPT | |
2986 | --\\====================================================//-- |