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