SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | - | Player = game.Players:WaitForChild(_G.target) |
3 | + | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").wormybag9035 | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | - | local Reason = 'Get outta here.' |
67 | + | if a then return end |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | wait(0.2) | |
87 | ||
88 | Player = game:GetService("Players").wormybag9035 | |
89 | PlayerGui = Player.PlayerGui | |
90 | Cam = workspace.CurrentCamera | |
91 | Backpack = Player.Backpack | |
92 | Character = Player.Character | |
93 | Humanoid = Character.Humanoid | |
94 | RootPart = Character["HumanoidRootPart"] | |
95 | Torso = Character["Torso"] | |
96 | Head = Character["Head"] | |
97 | RightArm = Character["Right Arm"] | |
98 | LeftArm = Character["Left Arm"] | |
99 | RightLeg = Character["Right Leg"] | |
100 | LeftLeg = Character["Left Leg"] | |
101 | RootJoint = RootPart["RootJoint"] | |
102 | Neck = Torso["Neck"] | |
103 | RightShoulder = Torso["Right Shoulder"] | |
104 | LeftShoulder = Torso["Left Shoulder"] | |
105 | RightHip = Torso["Right Hip"] | |
106 | LeftHip = Torso["Left Hip"] | |
107 | local TIME = 0 | |
108 | local sick = Instance.new("Sound",Torso) | |
109 | sick:Play() | |
110 | sick.SoundId = "rbxassetid://1359036559" | |
111 | IT = Instance.new | |
112 | CF = CFrame.new | |
113 | VT = Vector3.new | |
114 | RAD = math.rad | |
115 | C3 = Color3.new | |
116 | UD2 = UDim2.new | |
117 | BRICKC = BrickColor.new | |
118 | ANGLES = CFrame.Angles | |
119 | EULER = CFrame.fromEulerAnglesXYZ | |
120 | COS = math.cos | |
121 | ACOS = math.acos | |
122 | SIN = math.sin | |
123 | ASIN = math.asin | |
124 | ABS = math.abs | |
125 | MRANDOM = math.random | |
126 | FLOOR = math.floor | |
127 | ||
128 | --//=================================\\ | |
129 | --|| USEFUL VALUES | |
130 | --\\=================================// | |
131 | ||
132 | Animation_Speed = 3 | |
133 | Player_Size = 1 | |
134 | local FORCERESET = false | |
135 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
136 | local Speed = 16 | |
137 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
138 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
139 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
140 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
141 | local NECKO = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
142 | local DAMAGEMULTIPLIER = 1 | |
143 | local ANIM = "Idle" | |
144 | local ATTACK = false | |
145 | local EQUIPPED = false | |
146 | local HOLD = false | |
147 | local COMBO = 1 | |
148 | local Rooted = false | |
149 | local SINE = 0 | |
150 | local KEYHOLD = false | |
151 | local CHANGE = 2 / Animation_Speed | |
152 | local WALKINGANIM = false | |
153 | local VALUE1 = false | |
154 | local VALUE2 = false | |
155 | local ROBLOXIDLEANIMATION = IT("Animation") | |
156 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
157 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
158 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
159 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
160 | WEAPONGUI.Name = "BanishV3Gui" | |
161 | local Weapon = IT("Model") | |
162 | Weapon.Name = "Adds" | |
163 | local Effects = IT("Folder", Weapon) | |
164 | Effects.Name = "Effects" | |
165 | local ANIMATOR = Humanoid.Animator | |
166 | local ANIMATE = Character:FindFirstChild("Animate") | |
167 | local UNANCHOR = true | |
168 | local TOBANISH = {} | |
169 | script.Parent = PlayerGui | |
170 | local reason = "U so ugly" | |
171 | local r = 255 | |
172 | local g = 0 | |
173 | local b = 0 | |
174 | local Int = 0 | |
175 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
176 | coroutine.resume(coroutine.create(function() | |
177 | while wait(0.05) do | |
178 | Swait() | |
179 | if Int == #Colours then Int = 0 end | |
180 | Int = Int + 1 | |
181 | end | |
182 | end)) | |
183 | ||
184 | ||
185 | ||
186 | coroutine.resume(coroutine.create(function() | |
187 | while wait() do | |
188 | for i = 0, 254/5 do | |
189 | Swait() | |
190 | g = g + 5 | |
191 | end | |
192 | for i = 0, 254/5 do | |
193 | Swait() | |
194 | r = r - 5 | |
195 | end | |
196 | for i = 0, 254/5 do | |
197 | Swait() | |
198 | b = b + 5 | |
199 | end | |
200 | for i = 0, 254/5 do | |
201 | Swait() | |
202 | g = g - 5 | |
203 | end | |
204 | for i = 0, 254/5 do | |
205 | Swait() | |
206 | r = r + 5 | |
207 | end | |
208 | for i = 0, 254/5 do | |
209 | Swait() | |
210 | b = b - 5 | |
211 | end | |
212 | end | |
213 | end)) | |
214 | local MODE = "GOD" | |
215 | ||
216 | --//=================================\\ | |
217 | --\\=================================// | |
218 | ||
219 | ||
220 | --//=================================\\ | |
221 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
222 | --\\=================================// | |
223 | ||
224 | ArtificialHB = Instance.new("BindableEvent", script) | |
225 | ArtificialHB.Name = "ArtificialHB" | |
226 | ||
227 | script:WaitForChild("ArtificialHB") | |
228 | ||
229 | frame = Frame_Speed | |
230 | tf = 0 | |
231 | allowframeloss = false | |
232 | tossremainder = false | |
233 | lastframe = tick() | |
234 | script.ArtificialHB:Fire() | |
235 | ||
236 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
237 | tf = tf + s | |
238 | if tf >= frame then | |
239 | if allowframeloss then | |
240 | script.ArtificialHB:Fire() | |
241 | lastframe = tick() | |
242 | else | |
243 | for i = 1, math.floor(tf / frame) do | |
244 | script.ArtificialHB:Fire() | |
245 | end | |
246 | lastframe = tick() | |
247 | end | |
248 | if tossremainder then | |
249 | tf = 0 | |
250 | else | |
251 | tf = tf - frame * math.floor(tf / frame) | |
252 | end | |
253 | end | |
254 | end) | |
255 | ||
256 | --//=================================\\ | |
257 | --\\=================================// | |
258 | ||
259 | --//=================================\\ | |
260 | --|| SOME FUNCTIONS | |
261 | --\\=================================// | |
262 | ||
263 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
264 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
265 | end | |
266 | ||
267 | function PositiveAngle(NUMBER) | |
268 | if NUMBER >= 0 then | |
269 | NUMBER = 0 | |
270 | end | |
271 | return NUMBER | |
272 | end | |
273 | ||
274 | function NegativeAngle(NUMBER) | |
275 | if NUMBER <= 0 then | |
276 | NUMBER = 0 | |
277 | end | |
278 | return NUMBER | |
279 | end | |
280 | ||
281 | function Swait(NUMBER) | |
282 | if NUMBER == 0 or NUMBER == nil then | |
283 | ArtificialHB.Event:wait() | |
284 | else | |
285 | for i = 1, NUMBER do | |
286 | ArtificialHB.Event:wait() | |
287 | end | |
288 | end | |
289 | end | |
290 | ||
291 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
292 | local NEWMESH = IT(MESH) | |
293 | if MESH == "SpecialMesh" then | |
294 | NEWMESH.MeshType = MESHTYPE | |
295 | if MESHID ~= "nil" and MESHID ~= "" then | |
296 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
297 | end | |
298 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
299 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
300 | end | |
301 | end | |
302 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
303 | NEWMESH.Scale = SCALE | |
304 | NEWMESH.Parent = PARENT | |
305 | return NEWMESH | |
306 | end | |
307 | ||
308 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
309 | local NEWPART = IT("Part") | |
310 | NEWPART.formFactor = FORMFACTOR | |
311 | NEWPART.Reflectance = REFLECTANCE | |
312 | NEWPART.Transparency = TRANSPARENCY | |
313 | NEWPART.CanCollide = false | |
314 | NEWPART.Locked = true | |
315 | NEWPART.Anchored = true | |
316 | if ANCHOR == false then | |
317 | NEWPART.Anchored = false | |
318 | end | |
319 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
320 | NEWPART.Name = NAME | |
321 | NEWPART.Size = SIZE | |
322 | NEWPART.Position = Torso.Position | |
323 | NEWPART.Material = MATERIAL | |
324 | NEWPART:BreakJoints() | |
325 | NEWPART.Parent = PARENT | |
326 | return NEWPART | |
327 | end | |
328 | ||
329 | local function weldBetween(a, b) | |
330 | local weldd = Instance.new("ManualWeld") | |
331 | weldd.Part0 = a | |
332 | weldd.Part1 = b | |
333 | weldd.C0 = CFrame.new() | |
334 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
335 | weldd.Parent = a | |
336 | return weldd | |
337 | end | |
338 | ||
339 | ||
340 | function QuaternionFromCFrame(cf) | |
341 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
342 | local trace = m00 + m11 + m22 | |
343 | if trace > 0 then | |
344 | local s = math.sqrt(1 + trace) | |
345 | local recip = 0.5 / s | |
346 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
347 | else | |
348 | local i = 0 | |
349 | if m11 > m00 then | |
350 | i = 1 | |
351 | end | |
352 | if m22 > (i == 0 and m00 or m11) then | |
353 | i = 2 | |
354 | end | |
355 | if i == 0 then | |
356 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
357 | local recip = 0.5 / s | |
358 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
359 | elseif i == 1 then | |
360 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
361 | local recip = 0.5 / s | |
362 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
363 | elseif i == 2 then | |
364 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
365 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
366 | end | |
367 | end | |
368 | end | |
369 | ||
370 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
371 | local xs, ys, zs = x + x, y + y, z + z | |
372 | local wx, wy, wz = w * xs, w * ys, w * zs | |
373 | local xx = x * xs | |
374 | local xy = x * ys | |
375 | local xz = x * zs | |
376 | local yy = y * ys | |
377 | local yz = y * zs | |
378 | local zz = z * zs | |
379 | 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)) | |
380 | end | |
381 | ||
382 | function QuaternionSlerp(a, b, t) | |
383 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
384 | local startInterp, finishInterp; | |
385 | if cosTheta >= 0.0001 then | |
386 | if (1 - cosTheta) > 0.0001 then | |
387 | local theta = ACOS(cosTheta) | |
388 | local invSinTheta = 1 / SIN(theta) | |
389 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
390 | finishInterp = SIN(t * theta) * invSinTheta | |
391 | else | |
392 | startInterp = 1 - t | |
393 | finishInterp = t | |
394 | end | |
395 | else | |
396 | if (1 + cosTheta) > 0.0001 then | |
397 | local theta = ACOS(-cosTheta) | |
398 | local invSinTheta = 1 / SIN(theta) | |
399 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
400 | finishInterp = SIN(t * theta) * invSinTheta | |
401 | else | |
402 | startInterp = t - 1 | |
403 | finishInterp = t | |
404 | end | |
405 | end | |
406 | 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 | |
407 | end | |
408 | ||
409 | function Clerp(a, b, t) | |
410 | local qa = {QuaternionFromCFrame(a)} | |
411 | local qb = {QuaternionFromCFrame(b)} | |
412 | local ax, ay, az = a.x, a.y, a.z | |
413 | local bx, by, bz = b.x, b.y, b.z | |
414 | local _t = 1 - t | |
415 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
416 | end | |
417 | ||
418 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
419 | local frame = IT("Frame") | |
420 | frame.BackgroundTransparency = TRANSPARENCY | |
421 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
422 | frame.Position = POSITION | |
423 | frame.Size = SIZE | |
424 | frame.BackgroundColor3 = COLOR | |
425 | frame.BorderColor3 = BORDERCOLOR | |
426 | frame.Name = NAME | |
427 | frame.Parent = PARENT | |
428 | return frame | |
429 | end | |
430 | ||
431 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
432 | local label = IT("TextLabel") | |
433 | label.BackgroundTransparency = 1 | |
434 | label.Size = UD2(1, 0, 1, 0) | |
435 | label.Position = UD2(0, 0, 0, 0) | |
436 | label.TextColor3 = TEXTCOLOR | |
437 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
438 | label.TextTransparency = TRANSPARENCY | |
439 | label.FontSize = TEXTFONTSIZE | |
440 | label.Font = TEXTFONT | |
441 | label.BorderSizePixel = BORDERSIZEPIXEL | |
442 | label.TextScaled = false | |
443 | label.Text = TEXT | |
444 | label.Name = NAME | |
445 | label.Parent = PARENT | |
446 | return label | |
447 | end | |
448 | ||
449 | function NoOutlines(PART) | |
450 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
451 | end | |
452 | ||
453 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
454 | local NEWWELD = IT(TYPE) | |
455 | NEWWELD.Part0 = PART0 | |
456 | NEWWELD.Part1 = PART1 | |
457 | NEWWELD.C0 = C0 | |
458 | NEWWELD.C1 = C1 | |
459 | NEWWELD.Parent = PARENT | |
460 | return NEWWELD | |
461 | end | |
462 | ||
463 | local S = IT("Sound") | |
464 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
465 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.1, "Salmon", "Trail", VT(0,0,0)) |
465 | + | |
466 | coroutine.resume(coroutine.create(function() | |
467 | NEWSOUND = S:Clone() | |
468 | NEWSOUND.Parent = PARENT | |
469 | - | TRAIL.Size = VT(0.5,DIST,0.5) |
469 | + | |
470 | NEWSOUND.Pitch = PITCH | |
471 | - | TRAIL.Size = VT(0.25,DIST,0.25) |
471 | + | |
472 | NEWSOUND:play() | |
473 | if DOESLOOP == true then | |
474 | NEWSOUND.Looped = true | |
475 | - | for i = 1, 5 do |
475 | + | |
476 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
477 | - | TRAIL.Transparency = TRAIL.Transparency + 0.1 |
477 | + | |
478 | end | |
479 | end)) | |
480 | return NEWSOUND | |
481 | end | |
482 | ||
483 | local S = IT("Sound") | |
484 | local E = IT("EchoSoundEffect") | |
485 | function CreateEchoSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
486 | local NEWSOUND = nil | |
487 | local ECHO = nil | |
488 | coroutine.resume(coroutine.create(function() | |
489 | NEWSOUND = S:Clone() | |
490 | NEWSOUND.Parent = PARENT | |
491 | NEWSOUND.Volume = VOLUME | |
492 | NEWSOUND.Pitch = PITCH | |
493 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
494 | NEWSOUND:play() | |
495 | ECHO = E:Clone() | |
496 | ECHO.Parent = NEWSOUND | |
497 | ECHO.Delay = 0.25 | |
498 | if DOESLOOP == true then | |
499 | NEWSOUND.Looped = true | |
500 | - | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) |
500 | + | |
501 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
502 | NEWSOUND:remove() | |
503 | end | |
504 | end)) | |
505 | return NEWSOUND | |
506 | end | |
507 | - | Particle.Color = ColorSequence.new(Color3.fromRGB(98,37,209),Color3.fromRGB(255, 134, 134)) |
507 | + | |
508 | function CFrameFromTopBack(at, top, back) | |
509 | local right = top:Cross(back) | |
510 | 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) | |
511 | end | |
512 | ||
513 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
514 | function WACKYEFFECT(Table) | |
515 | local TYPE = (Table.EffectType or "Sphere") | |
516 | local SIZE = (Table.Size or VT(1,1,1)) | |
517 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
518 | local TRANSPARENCY = (Table.Transparency or 0) | |
519 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
520 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
521 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
522 | local ROTATION1 = (Table.RotationX or 0) | |
523 | local ROTATION2 = (Table.RotationY or 0) | |
524 | local ROTATION3 = (Table.RotationZ or 0) | |
525 | local MATERIAL = (Table.Material or "Neon") | |
526 | local COLOR = (Table.Color or C3(1,1,1)) | |
527 | local TIME = (Table.Time or 45) | |
528 | local SOUNDID = (Table.SoundID or nil) | |
529 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
530 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
531 | coroutine.resume(coroutine.create(function() | |
532 | local PLAYSSOUND = false | |
533 | local SOUND = nil | |
534 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
535 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
536 | PLAYSSOUND = true | |
537 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
538 | end | |
539 | - | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false) |
539 | + | |
540 | local MSH = nil | |
541 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) |
541 | + | |
542 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
543 | elseif TYPE == "Block" then | |
544 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false) |
544 | + | |
545 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
546 | elseif TYPE == "Wave" then | |
547 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false) |
547 | + | |
548 | elseif TYPE == "Ring" then | |
549 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) |
549 | + | |
550 | elseif TYPE == "Slash" then | |
551 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) |
551 | + | |
552 | elseif TYPE == "Round Slash" then | |
553 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
554 | elseif TYPE == "Swirl" then | |
555 | - | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) |
555 | + | |
556 | elseif TYPE == "Skull" then | |
557 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
558 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false) |
558 | + | |
559 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
560 | end | |
561 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false) |
561 | + | |
562 | local MOVESPEED = nil | |
563 | if MOVEDIRECTION ~= nil then | |
564 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false) |
564 | + | |
565 | end | |
566 | local GROWTH = SIZE - ENDSIZE | |
567 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false) |
567 | + | |
568 | if TYPE == "Block" then | |
569 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false) |
569 | + | |
570 | else | |
571 | EFFECT.CFrame = CFRAME | |
572 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false) |
572 | + | |
573 | for LOOP = 1, TIME+1 do | |
574 | Swait() | |
575 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false) |
575 | + | |
576 | if TYPE == "Wave" then | |
577 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
578 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) |
578 | + | |
579 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
580 | if TYPE == "Block" then | |
581 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
582 | else | |
583 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
584 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.1,0.2,0),false) |
584 | + | |
585 | if MOVEDIRECTION ~= nil then | |
586 | local ORI = EFFECT.Orientation | |
587 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
588 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.1,0.05,0),false) |
588 | + | |
589 | end | |
590 | end | |
591 | if PLAYSSOUND == false then | |
592 | EFFECT:remove() | |
593 | else | |
594 | - | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false) |
594 | + | |
595 | EFFECT:remove() | |
596 | end) | |
597 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false) |
597 | + | |
598 | else | |
599 | if PLAYSSOUND == false then | |
600 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false) |
600 | + | |
601 | else | |
602 | repeat Swait() until SOUND.Playing == false | |
603 | - | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Eye", VT(0.125,0,0.125),false) |
603 | + | |
604 | end | |
605 | end | |
606 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0,0,0),false) |
606 | + | |
607 | end | |
608 | ||
609 | - | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Really black", "Eye", VT(0,0,0),false) |
609 | + | |
610 | if TYPE == "Cyl" then | |
611 | local MSH = IT("CylinderMesh",PART) | |
612 | elseif TYPE == "Ball" then | |
613 | local MSH = IT("SpecialMesh",PART) | |
614 | MSH.MeshType = "Sphere" | |
615 | elseif TYPE == "Wedge" then | |
616 | local MSH = IT("SpecialMesh",PART) | |
617 | MSH.MeshType = "Wedge" | |
618 | end | |
619 | end | |
620 | ||
621 | function SpawnTrail(FROM,TO,BIG) | |
622 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(3,3,3)) | |
623 | MakeForm(TRAIL,"Cyl") | |
624 | - | c.Material = "Glass" |
624 | + | local cR=255 |
625 | local cG=0 | |
626 | local cB=0 | |
627 | - | c.Color = Color3.fromRGB(255, 134, 134) |
627 | + | local flg5=1 local omgidk=1 |
628 | local add=15 | |
629 | game:GetService("RunService").Heartbeat:Connect(function() | |
630 | if omgidk>10000 then omgidk=0 end | |
631 | omgidk=omgidk+1 | |
632 | if cR>=255 then flg5=1 end | |
633 | if cG>=255 then flg5=2 end | |
634 | if cB>=255 then flg5=3 end | |
635 | if flg5==1 then cR=cR-add cG=cG+add end | |
636 | if flg5==2 then cG=cG-add cB=cB+add end | |
637 | if flg5==3 then cB=cB-add cR=cR+add end | |
638 | color=Color3.fromRGB(cR,cG,cB) | |
639 | - | local SKILLTEXTCOLOR = Color3.fromRGB(255, 134, 134) |
639 | + | TRAIL.Color = color |
640 | - | local SKILLFONT = "Antique" |
640 | + | |
641 | local DIST = (FROM - TO).Magnitude | |
642 | if BIG == true then | |
643 | TRAIL.Size = VT(3,DIST,3) | |
644 | else | |
645 | TRAIL.Size = VT(3,DIST,3) | |
646 | end | |
647 | - | --[[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") |
647 | + | |
648 | - | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
648 | + | |
649 | for i = 1, 55 do | |
650 | Swait() | |
651 | TRAIL.Transparency = TRAIL.Transparency + 0.01 | |
652 | end | |
653 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") |
653 | + | |
654 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") |
654 | + | |
655 | end | |
656 | ||
657 | Debris = game:GetService("Debris") | |
658 | ||
659 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
660 | - | local MESSAGES = {"Woops I shot you", "Oh nu", "LOOOOOOOOOOOL", "Oopsie a big bad trap shot you", "WAsn't me", "D: where did you go"} |
660 | + | |
661 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
662 | end | |
663 | ||
664 | function turnto(position) | |
665 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
666 | end | |
667 | ||
668 | --//=================================\\ | |
669 | --|| WEAPON CREATION | |
670 | --\\=================================// | |
671 | - | local plr = game:service'Players':GetPlayerFromCharacter(Foe) |
671 | + | |
672 | - | if plr then |
672 | + | |
673 | - | plr:Kick(Reason) |
673 | + | |
674 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0.0,1),NumberSequenceKeypoint.new(1,1),NumberSequenceKeypoint.new(1,1)}) | |
675 | - | printbye(Foe.Name) |
675 | + | |
676 | Particle.Rate = 150 | |
677 | Particle.ZOffset = 0.2 | |
678 | Particle.Rotation = NumberRange.new(-180, 180) | |
679 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
680 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
681 | Particle.Color = ColorSequence.new(C3(0,0,0)) | |
682 | ||
683 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
684 | function ParticleEmitter(Table) | |
685 | - | CreateSound(1333149768, c, 10, 1, false) |
685 | + | |
686 | local Speed = Table.Speed or 5 | |
687 | local Drag = Table.Drag or 0 | |
688 | local Size1 = Table.Size1 or 1 | |
689 | local Size2 = Table.Size2 or 5 | |
690 | - | c.Color = Color3.fromRGB(255, 134, 134) |
690 | + | |
691 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
692 | local Parent = Table.Parent or Torso | |
693 | local Emit = Table.Emit or 100 | |
694 | local Offset = Table.Offset or 360 | |
695 | local Acel = Table.Acel or VT(0,0,0) | |
696 | local Enabled = Table.Enabled or false | |
697 | PRTCL.Parent = Parent | |
698 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
699 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
700 | PRTCL.Speed = NumberRange.new(Speed) | |
701 | PRTCL.VelocitySpread = Offset | |
702 | PRTCL.Drag = Drag | |
703 | PRTCL.Acceleration = Acel | |
704 | if Enabled == false then | |
705 | PRTCL:Emit(Emit) | |
706 | Debris:AddItem(PRTCL,Lifetime2) | |
707 | else | |
708 | PRTCL.Enabled = true | |
709 | end | |
710 | return PRTCL | |
711 | end | |
712 | ||
713 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
714 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
715 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
716 | MakeForm(Part,"Wedge") | |
717 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
718 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
719 | MakeForm(Part,"Wedge") | |
720 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
721 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
722 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
723 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
724 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
725 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
726 | MakeForm(Part,"Cyl") | |
727 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
728 | for i = 1, 8 do | |
729 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
730 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
731 | end | |
732 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
733 | MakeForm(Part,"Cyl") | |
734 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
735 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
736 | MakeForm(Part,"Ball") | |
737 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
738 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
739 | MakeForm(Part,"Wedge") | |
740 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
741 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
742 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
743 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
744 | - | if ISBANISH == "Gravity" then |
744 | + | |
745 | - | HUM.PlatformStand = true |
745 | + | |
746 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
746 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) |
747 | - | local grav = Instance.new("BodyPosition",TORSO) |
747 | + | |
748 | - | grav.D = 15 |
748 | + | |
749 | - | grav.P = 20000 |
749 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) |
750 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
750 | + | |
751 | - | grav.position = TORSO.Position |
751 | + | |
752 | - | grav.Name = "V3BanishForce"..Player.Name |
752 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) |
753 | - | else |
753 | + | |
754 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) |
754 | + | |
755 | - | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) |
755 | + | |
756 | - | end |
756 | + | |
757 | - | else |
757 | + | |
758 | - | HUM.PlatformStand = false |
758 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) |
759 | LASTPART = Part | |
760 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
761 | - | elseif ISBANISH == "Gravity" then |
761 | + | |
762 | - | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then |
762 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) |
763 | - | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() |
763 | + | |
764 | - | HUM.PlatformStand = false |
764 | + | |
765 | end | |
766 | end | |
767 | ||
768 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
769 | MakeForm(Barrel,"Cyl") | |
770 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
771 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
772 | MakeForm(Part,"Cyl") | |
773 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
774 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
775 | MakeForm(Part,"Wedge") | |
776 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
777 | - | function Banisher_Bullet() |
777 | + | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) |
778 | MakeForm(Hole,"Cyl") | |
779 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
780 | - | for i=0, 0.01, 0.1 / Animation_Speed do |
780 | + | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) |
781 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
782 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
783 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
784 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
785 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
786 | ||
787 | coroutine.resume(coroutine.create(function() | |
788 | while wait() do | |
789 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
790 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
791 | - | for i=0, 0.01, 0.1 / Animation_Speed do |
791 | + | |
792 | end)) | |
793 | local cR=255 | |
794 | local cG=0 | |
795 | local cB=0 | |
796 | local flg5=1 local omgidk=1 | |
797 | local add=15 | |
798 | game:GetService("RunService").Heartbeat:Connect(function() | |
799 | if omgidk>10000 then omgidk=0 end | |
800 | omgidk=omgidk+1 | |
801 | if cR>=255 then flg5=1 end | |
802 | if cG>=255 then flg5=2 end | |
803 | if cB>=255 then flg5=3 end | |
804 | if flg5==1 then cR=cR-add cG=cG+add end | |
805 | - | Banish(HIT.Parent) |
805 | + | if flg5==2 then cG=cG-add cB=cB+add end |
806 | if flg5==3 then cB=cB-add cR=cR+add end | |
807 | color=Color3.fromRGB(cR,cG,cB) | |
808 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), 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 = Color3.fromRGB(255, 134, 134), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
808 | + | |
809 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3,0,3), Size2 = VT(1,0,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(255, 134, 134), SoundID = 1028044973, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
809 | + | |
810 | - | 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 = Color3.fromRGB(255, 134, 134), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
810 | + | while wait(0.1) do |
811 | - | 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 = Color3.fromRGB(255, 134, 134), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
811 | + | |
812 | - | for i=0, 0.001, 0.1 / Animation_Speed do |
812 | + | if Int == #Colours then Int = 0 end |
813 | Int = Int + 1 | |
814 | for _, c in pairs(Weapon:GetDescendants()) do | |
815 | if c.ClassName == "Part" and c.Name == "Eye" then | |
816 | c.Color = color | |
817 | elseif c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
818 | c.Color = color | |
819 | ||
820 | end | |
821 | end | |
822 | RightArm.BrickColor = BrickColor.new(color) | |
823 | end | |
824 | end)) | |
825 | ||
826 | ||
827 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
828 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
829 | ||
830 | ||
831 | for _, c in pairs(Weapon:GetDescendants()) do | |
832 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
833 | c.Material = "Neon" | |
834 | c.Color = C3(0,0,0) | |
835 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
836 | c.Color = Color3.new(1,1,1) | |
837 | c.Material = "Neon" | |
838 | end | |
839 | end | |
840 | ||
841 | Weapon.Parent = Character | |
842 | - | Banisher_Bullet() |
842 | + | |
843 | if c.ClassName == "Part" then | |
844 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
845 | - | if Key == "b" and ATTACK == false then |
845 | + | |
846 | end | |
847 | ||
848 | local SKILLTEXTCOLOR = C3(1,1,1) | |
849 | local SKILLFONT = "SourceSansLight" | |
850 | local SKILLTEXTSIZE = 7 | |
851 | ||
852 | Humanoid.Died:connect(function() | |
853 | ATTACK = true | |
854 | end) | |
855 | ||
856 | 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") | |
857 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
858 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
859 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
860 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
861 | ]] | |
862 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Edit by miyerajelo lololo", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
863 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
864 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
865 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
866 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
867 | ]] | |
868 | function printbye(Name) | |
869 | 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, "} | |
870 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
871 | end | |
872 | ||
873 | workspace.ChildAdded:connect(function(instance) | |
874 | - | |
874 | + | for BANISH = 1, #TOBANISH do |
875 | - | Player.Chatted:connect(function(m) |
875 | + | if TOBANISH[BANISH] ~= nil then |
876 | - | if(m:sub(1,7) == 'reason/')then |
876 | + | if instance.Name == TOBANISH[BANISH] then |
877 | - | Reason = m:sub(8) or 'None!' |
877 | + | coroutine.resume(coroutine.create(function() |
878 | printbye(instance.Name) | |
879 | instance:ClearAllChildren() | |
880 | Debris:AddItem(instance,0.0005) | |
881 | end)) | |
882 | end | |
883 | end | |
884 | end | |
885 | end) | |
886 | ||
887 | function Chatter(Text, Timer) | |
888 | local chat = coroutine.wrap(function() | |
889 | if Character:FindFirstChild("SpeechBoard") ~= nil then | |
890 | Character:FindFirstChild("SpeechBoard"):destroy() | |
891 | end | |
892 | local naeeym2 = IT("BillboardGui", Character) | |
893 | naeeym2.Size = UD2(0, 100, 0, 40) | |
894 | naeeym2.StudsOffset = VT(0, 2, 0) | |
895 | naeeym2.Adornee = Character.Head | |
896 | naeeym2.Name = "SpeechBoard" | |
897 | naeeym2.AlwaysOnTop = true | |
898 | local tecks2 = IT("TextLabel", naeeym2) | |
899 | tecks2.BackgroundTransparency = 1 | |
900 | tecks2.BorderSizePixel = 0 | |
901 | tecks2.Text = "" | |
902 | tecks2.Font = "Legacy" | |
903 | tecks2.TextSize = 15 | |
904 | tecks2.TextStrokeTransparency = 0 | |
905 | tecks2.TextColor3 = color | |
906 | tecks2.TextStrokeColor3 = C3(0, 0, 0) | |
907 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
908 | local FINISHED = false | |
909 | coroutine.resume(coroutine.create(function() | |
910 | - | wait() |
910 | + | for i = 1, string.len(Text) do |
911 | if naeeym2.Parent ~= Character then | |
912 | FINISHED = true | |
913 | end | |
914 | CreateSound(418252437, Head, 7, MRANDOM(8, 12) / 15, false) | |
915 | tecks2.Text = string.sub(Text, 1, i) | |
916 | Swait(Timer) | |
917 | end | |
918 | FINISHED = true | |
919 | end)) | |
920 | repeat | |
921 | wait() | |
922 | until FINISHED == true | |
923 | wait(1) | |
924 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
924 | + | naeeym2.Name = "FadingDialogue" |
925 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
925 | + | for i = 1, 45 do |
926 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
926 | + | |
927 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
927 | + | naeeym2.StudsOffset = naeeym2.StudsOffset + VT(0, (2 - 0.044444444444444446 * i) / 45, 0) |
928 | tecks2.TextTransparency = tecks2.TextTransparency + 0.022222222222222223 | |
929 | tecks2.TextStrokeTransparency = tecks2.TextTransparency | |
930 | end | |
931 | naeeym2:Destroy() | |
932 | end) | |
933 | chat() | |
934 | end | |
935 | ||
936 | Player.chatted:connect(Chatter) | |
937 | ||
938 | ||
939 | --//=================================\\ | |
940 | --|| DAMAGING | |
941 | --\\=================================// | |
942 | local rip = {} | |
943 | function Ban(ha) | |
944 | if ha then | |
945 | g = game.Players:GetPlayers() | |
946 | local kickfolder = IT("Folder",Effects) | |
947 | Chatter('I have got you now, '..ha.Name..'.') | |
948 | local Players = game.Players:WaitForChild(_G.target) | |
949 | local lol = Players:FindFirstChild(ha.Name) | |
950 | if Players:FindFirstChild(ha.Name) then | |
951 | lol:Kick(reason) | |
952 | end | |
953 | if Players:FindFirstChild(ha.Name) then | |
954 | lol:Kick(reason) | |
955 | end | |
956 | if Players:FindFirstChild(ha.Name) then | |
957 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) |
957 | + | lol:Kick(reason) |
958 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) |
958 | + | |
959 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
959 | + | if Players:FindFirstChild(ha.Name) then |
960 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
960 | + | lol:Kick(reason) |
961 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
961 | + | |
962 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
962 | + | if Players:FindFirstChild(ha.Name) then |
963 | lol:Kick(reason) | |
964 | end | |
965 | if Players:FindFirstChild(ha.Name) then | |
966 | lol:Kick(reason) | |
967 | end | |
968 | - | 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) |
968 | + | if Players:FindFirstChild("Milo_Hero") then |
969 | ||
970 | - | 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) |
970 | + | end |
971 | end | |
972 | table.insert(rip,ha.Name) | |
973 | end | |
974 | ||
975 | local function Check(yey) | |
976 | for i = 1, #rip do | |
977 | if yey.Name == rip[i] then | |
978 | yey:Kick("U still ugly") | |
979 | end | |
980 | end | |
981 | end | |
982 | ||
983 | ||
984 | game.Players.PlayerAdded:connect(function() | |
985 | for i,v in pairs(game.Players:GetPlayers())do | |
986 | - | sick:resume() |
986 | + | Check(v) |
987 | - | sick.Volume = 5 |
987 | + | end |
988 | end) | |
989 | - | sick.SoundId = "rbxassetid://252305196" |
989 | + | |
990 | - | sick.Name = "BanishV3Music" |
990 | + | |
991 | function Banish(Foe) | |
992 | if Foe then | |
993 | coroutine.resume(coroutine.create(function() | |
994 | table.insert(TOBANISH,Foe.Name) | |
995 | Foe.Archivable = true | |
996 | local CLONE = Foe:Clone() | |
997 | Foe:Destroy() | |
998 | CLONE.Parent = Effects | |
999 | CLONE:BreakJoints() | |
1000 | local MATERIALS = {"Glass","Neon"} | |
1001 | for _, c in pairs(CLONE:GetDescendants()) do | |
1002 | if c:IsA("BasePart") then | |
1003 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1004 | CreateSound(340722848, c, 10, 1, false) | |
1005 | end | |
1006 | c.Anchored = true | |
1007 | c.Transparency = c.Transparency + 0.2 | |
1008 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1009 | c.Color = color | |
1010 | if c.ClassName == "MeshPart" then | |
1011 | c.TextureID = "" | |
1012 | end | |
1013 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1014 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1015 | end | |
1016 | if c:FindFirstChildOfClass("Decal") then | |
1017 | c:FindFirstChildOfClass("Decal"):remove() | |
1018 | end | |
1019 | c.Name = "Banished" | |
1020 | c.CanCollide = false | |
1021 | else | |
1022 | c:remove() | |
1023 | end | |
1024 | end | |
1025 | local A = false | |
1026 | for i = 1, 35 do | |
1027 | if A == false then | |
1028 | A = true | |
1029 | elseif A == true then | |
1030 | A = false | |
1031 | end | |
1032 | for _, c in pairs(CLONE:GetDescendants()) do | |
1033 | if c:IsA("BasePart") then | |
1034 | c.Anchored = true | |
1035 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1036 | c.Transparency = c.Transparency + 0.8/35 | |
1037 | if A == false then | |
1038 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1039 | elseif A == true then | |
1040 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1041 | end | |
1042 | end | |
1043 | end | |
1044 | Swait() | |
1045 | end | |
1046 | CLONE:remove() | |
1047 | end)) | |
1048 | end | |
1049 | end | |
1050 | ||
1051 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1052 | local CHILDREN = workspace:GetDescendants() | |
1053 | for index, CHILD in pairs(CHILDREN) do | |
1054 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1055 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1056 | if HUM then | |
1057 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1058 | if TORSO then | |
1059 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1060 | if ISBANISH == true then | |
1061 | Banish(CHILD) | |
1062 | else | |
1063 | if ISBANISH == "rip" then | |
1064 | CreateSound(511340819,CHILD,1,1,false) | |
1065 | CHILD:BreakJoints() | |
1066 | local RIP = Instance.new("BodyVelocity", CHILD.Torso) | |
1067 | RIP.Velocity = CHILD.Torso.CFrame.lookVector * -754 | |
1068 | RIP.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1069 | end | |
1070 | end | |
1071 | end | |
1072 | end | |
1073 | end | |
1074 | end | |
1075 | end | |
1076 | end | |
1077 | ||
1078 | ||
1079 | function KickAoE(POSITION,RANGE,BRUTAL) | |
1080 | local CHILDREN = workspace:GetDescendants() | |
1081 | for index, CHILD in pairs(CHILDREN) do | |
1082 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1083 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1084 | if HUM then | |
1085 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1086 | if TORSO then | |
1087 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1088 | if BRUTAL == true then | |
1089 | ||
1090 | Ban(CHILD) | |
1091 | else | |
1092 | CHILD:BreakJoints() | |
1093 | end | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | end | |
1099 | end | |
1100 | ||
1101 | ||
1102 | ||
1103 | --//=================================\\ | |
1104 | --|| ATTACK FUNCTIONS AND STUFF | |
1105 | --\\=================================// | |
1106 | ||
1107 | function tohS() | |
1108 | ATTACK = true | |
1109 | Rooted = false | |
1110 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1111 | Swait() | |
1112 | turnto(Mouse.Hit.p) | |
1113 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1114 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1115 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1116 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1117 | 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) | |
1118 | 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) | |
1119 | end | |
1120 | repeat | |
1121 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1122 | Swait() | |
1123 | turnto(Mouse.Hit.p) | |
1124 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1125 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1126 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1127 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1128 | 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) | |
1129 | 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) | |
1130 | end | |
1131 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1132 | SpawnTrail(Hole.Position,POS) | |
1133 | if HIT ~= nil then | |
1134 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1135 | Banish(HIT) | |
1136 | end | |
1137 | end | |
1138 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,1,3), Size2 = VT(10,3,10), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 40, RotationY = -40, RotationZ = 0, Material = "Neon", Color = color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1139 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,1,3), Size2 = VT(10,3,10), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 40, RotationY = 40, RotationZ = 0, Material = "Neon", Color = color, SoundID = 341336138, SoundPitch = 1, SoundVolume = 8}) | |
1140 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(10,10,10), 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 = color, SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1141 | WACKYEFFECT({Time = 25, EffectType = "SPhere", Size = VT(3,3,3), Size2 = VT(10,10,10), 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 = color, SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1142 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1143 | Swait() | |
1144 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1145 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1146 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1147 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1148 | 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) | |
1149 | 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) | |
1150 | end | |
1151 | until KEYHOLD == false | |
1152 | ATTACK = false | |
1153 | Rooted = false | |
1154 | end | |
1155 | ||
1156 | ||
1157 | ||
1158 | ||
1159 | function Shot() | |
1160 | ATTACK = true | |
1161 | Rooted = false | |
1162 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1163 | Swait() | |
1164 | turnto(Mouse.Hit.p) | |
1165 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1166 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1167 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1168 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1169 | 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) | |
1170 | 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) | |
1171 | end | |
1172 | repeat | |
1173 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1174 | Swait() | |
1175 | turnto(Mouse.Hit.p) | |
1176 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1177 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1178 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1179 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1180 | 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) | |
1181 | 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) | |
1182 | end | |
1183 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1184 | SpawnTrail(Hole.Position,POS) | |
1185 | KickAoE(POS,5,true) | |
1186 | if HIT ~= nil then | |
1187 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1188 | ||
1189 | end | |
1190 | end | |
1191 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,1,3), Size2 = VT(10,3,10), 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 = color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1192 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,1,3), Size2 = VT(10,3,10), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = color, SoundID = 341336138, SoundPitch = 1, SoundVolume = 8}) | |
1193 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(10,10,10), 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 = color, SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1194 | WACKYEFFECT({Time = 25, EffectType = "SPhere", Size = VT(3,3,3), Size2 = VT(10,10,10), 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 = color, SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1195 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1196 | Swait() | |
1197 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1198 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1199 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1200 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1201 | 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) | |
1202 | 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) | |
1203 | end | |
1204 | until KEYHOLD == false | |
1205 | ATTACK = false | |
1206 | Rooted = false | |
1207 | end | |
1208 | local SIZE = 1 | |
1209 | ||
1210 | ||
1211 | function ripperinoes() | |
1212 | ATTACK = true | |
1213 | Rooted = true | |
1214 | for i=0, 1, 0.1 / Animation_Speed do | |
1215 | Swait() | |
1216 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1217 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1218 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1219 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1220 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1221 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1222 | end | |
1223 | local DONE = false | |
1224 | local GATE = nil | |
1225 | local GATESPIN = true | |
1226 | coroutine.resume(coroutine.create(function() | |
1227 | repeat | |
1228 | Swait() | |
1229 | if GATE ~= nil then | |
1230 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1231 | end | |
1232 | until GATESPIN == false | |
1233 | end)) | |
1234 | coroutine.resume(coroutine.create(function() | |
1235 | repeat | |
1236 | Swait() | |
1237 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1238 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1239 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1240 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1241 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1242 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1243 | until DONE == true | |
1244 | Swait(50) | |
1245 | for i = 1, 35 do | |
1246 | Swait(4) | |
1247 | local FIRED = false | |
1248 | local CHILDREN = workspace:GetDescendants() | |
1249 | for index, CHILD in pairs(CHILDREN) do | |
1250 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1251 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1252 | if HUM then | |
1253 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1254 | if TORSO then | |
1255 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1256 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1257 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1258 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1259 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1260 | ||
1261 | FIRED = true | |
1262 | break | |
1263 | end | |
1264 | end | |
1265 | end | |
1266 | end | |
1267 | end | |
1268 | if FIRED == false then | |
1269 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1270 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = color, SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
1271 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1272 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1273 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1274 | if HITBOD ~= nil then | |
1275 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1276 | ||
1277 | end | |
1278 | end | |
1279 | end | |
1280 | end | |
1281 | for i = 1, 45 do | |
1282 | Swait() | |
1283 | GATE.Size = GATE.Size - VT(3,0,3) | |
1284 | end | |
1285 | GATESPIN = false | |
1286 | GATE:remove() | |
1287 | end)) | |
1288 | Swait(15) | |
1289 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1290 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) | |
1291 | local DECAL = IT("Decal",GATE) | |
1292 | DECAL.Texture = "http://www.roblox.com/asset/?id=1258741631" | |
1293 | DECAL.Face = "Top" | |
1294 | GATE.CFrame = CF(HITPOS) | |
1295 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1296 | for i = 1, 45 do | |
1297 | Swait() | |
1298 | GATE.Size = GATE.Size + VT(3,0,3) | |
1299 | end | |
1300 | CreateSound(145080998, Hole, 7, 1, false) | |
1301 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1302 | ATTACK = false | |
1303 | Rooted = false | |
1304 | DONE = true | |
1305 | end | |
1306 | ||
1307 | ||
1308 | function AttackTemplate() | |
1309 | ATTACK = true | |
1310 | Rooted = false | |
1311 | for i=0, 1, 0.1 / Animation_Speed do | |
1312 | Swait() | |
1313 | 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) | |
1314 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1315 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1316 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1317 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1318 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1319 | end | |
1320 | ATTACK = false | |
1321 | Rooted = false | |
1322 | end | |
1323 | ||
1324 | function RIPHAHA() | |
1325 | ATTACK = true | |
1326 | Rooted = false | |
1327 | CreateSound(847061203,RightArm,5,1,false) | |
1328 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = color, SoundID = nil, SoundPitch = 1, SoundVolume = 8}) | |
1329 | wait(0.3) | |
1330 | Weapon.Parent = nil | |
1331 | for i=0, 1, 0.1 / Animation_Speed do | |
1332 | Swait() | |
1333 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 / Animation_Speed) | |
1334 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1335 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1336 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1337 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1338 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1339 | end | |
1340 | ApplyAoE(RightArm.Position + VT(0,0,0.5),5,"rip") | |
1341 | for i=0, 1, 0.1 / Animation_Speed do | |
1342 | Swait() | |
1343 | 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) | |
1344 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1345 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1346 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1347 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1348 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1349 | end | |
1350 | Weapon.Parent = Character | |
1351 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = color, SoundID = 847061203, SoundPitch = 1, SoundVolume = 8}) | |
1352 | CreateSound(847061203,RightArm,5,1,false) | |
1353 | ATTACK = false | |
1354 | Rooted = false | |
1355 | end | |
1356 | ||
1357 | ||
1358 | function heh() | |
1359 | ATTACK = true | |
1360 | Rooted = true | |
1361 | sick:Pause() | |
1362 | local Srewd = Instance.new("Sound",Torso) | |
1363 | Srewd.SoundId = "rbxassetid://1058417264" | |
1364 | Srewd.Volume = 5 | |
1365 | Srewd:Play() | |
1366 | repeat | |
1367 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1368 | Swait() | |
1369 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), 0.15 / Animation_Speed) | |
1370 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1371 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1372 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1373 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1374 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1375 | end | |
1376 | until Srewd.Playing == false | |
1377 | for i = 0, 1, 1 / Animation_Speed do | |
1378 | Swait() | |
1379 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1380 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) | |
1381 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1382 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1383 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed) | |
1384 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1385 | end | |
1386 | ApplyAoE(Torso.Position,30,"rip") | |
1387 | CreateEchoSound(440431180,Torso,1,1,false) | |
1388 | for i = 1, 5 do | |
1389 | WACKYEFFECT({ | |
1390 | Time = 25, | |
1391 | EffectType = "Wave", | |
1392 | Size = VT(5, 3, 5), | |
1393 | Size2 = VT(15 + i * 3, 3, 15 + i * 3), | |
1394 | Transparency = 0.7, | |
1395 | Transparency2 = 1, | |
1396 | CFrame = CF(RightLeg.CFrame * CF(0, -1.05 * SIZE, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
1397 | MoveToPos = nil, | |
1398 | RotationX = 0, | |
1399 | RotationY = 0, | |
1400 | RotationZ = 0, | |
1401 | Material = "Neon", | |
1402 | Color = color, | |
1403 | SoundID = nil, | |
1404 | SoundPitch = nil, | |
1405 | SoundVolume = nil | |
1406 | }) | |
1407 | end | |
1408 | wait(0.3) | |
1409 | sick:Resume() | |
1410 | ATTACK = false | |
1411 | Rooted = false | |
1412 | end | |
1413 | ||
1414 | ||
1415 | function Change() | |
1416 | if MODE == "GOD" then | |
1417 | MODE = "NRM" | |
1418 | sick.SoundId = "rbxassetid://1296208488" | |
1419 | elseif MODE == "NRM" then | |
1420 | MODE = "GOD" | |
1421 | sick.SoundId = "rbxassetid://1359036559" | |
1422 | end | |
1423 | end | |
1424 | ||
1425 | --//=================================\\ | |
1426 | --|| ASSIGN THINGS TO KEYS | |
1427 | --\\=================================// | |
1428 | ||
1429 | function MouseDown(Mouse) | |
1430 | if ATTACK == false then | |
1431 | end | |
1432 | end | |
1433 | ||
1434 | function MouseUp(Mouse) | |
1435 | HOLD = false | |
1436 | end | |
1437 | ||
1438 | function KeyDown(Key) | |
1439 | KEYHOLD = true | |
1440 | if Key == "q" and ATTACK == false then | |
1441 | Change() | |
1442 | end | |
1443 | if MODE == "GOD" then | |
1444 | if Key == "z" and ATTACK == false then | |
1445 | Shot() | |
1446 | end | |
1447 | ||
1448 | if Key == "f" and ATTACK == false then | |
1449 | heh() | |
1450 | end | |
1451 | ||
1452 | if Key == "c" and ATTACK == false then | |
1453 | warn('Hello, your username is '..Player.Name) | |
1454 | end | |
1455 | ||
1456 | if Key == "v" and ATTACK == false then | |
1457 | end | |
1458 | ||
1459 | if Key == "x" and ATTACK == false then | |
1460 | ripperinoes() | |
1461 | end | |
1462 | elseif MODE == "NRM" then | |
1463 | if Key == "z" and ATTACK == false then | |
1464 | tohS() | |
1465 | end | |
1466 | if Key == "f" and ATTACK == false then | |
1467 | RIPHAHA() | |
1468 | end | |
1469 | end | |
1470 | end | |
1471 | ||
1472 | function KeyUp(Key) | |
1473 | KEYHOLD = false | |
1474 | end | |
1475 | ||
1476 | Mouse.Button1Down:connect(function(NEWKEY) | |
1477 | MouseDown(NEWKEY) | |
1478 | end) | |
1479 | Mouse.Button1Up:connect(function(NEWKEY) | |
1480 | MouseUp(NEWKEY) | |
1481 | end) | |
1482 | Mouse.KeyDown:connect(function(NEWKEY) | |
1483 | KeyDown(NEWKEY) | |
1484 | end) | |
1485 | Mouse.KeyUp:connect(function(NEWKEY) | |
1486 | KeyUp(NEWKEY) | |
1487 | end) | |
1488 | ||
1489 | --//=================================\\ | |
1490 | --\\=================================// | |
1491 | ||
1492 | ||
1493 | function unanchor() | |
1494 | if UNANCHOR == true then | |
1495 | g = Character:GetChildren() | |
1496 | for i = 1, #g do | |
1497 | if g[i].ClassName == "Part" then | |
1498 | g[i].Anchored = false | |
1499 | end | |
1500 | end | |
1501 | end | |
1502 | end | |
1503 | ||
1504 | ||
1505 | --//=================================\\ | |
1506 | --|| WRAP THE WHOLE SCRIPT UP | |
1507 | --\\=================================// | |
1508 | ||
1509 | Humanoid.Changed:connect(function(Jump) | |
1510 | if Jump == "Jump" and (Disable_Jump == true) then | |
1511 | Humanoid.Jump = false | |
1512 | end | |
1513 | end) | |
1514 | ||
1515 | local CONNECT = nil | |
1516 | ||
1517 | while true do | |
1518 | Swait() | |
1519 | ANIMATE.Parent = nil | |
1520 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1521 | Humanoid = IT("Humanoid",Character) | |
1522 | end | |
1523 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1524 | v:Stop(); | |
1525 | end | |
1526 | SINE = SINE + CHANGE | |
1527 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1528 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1529 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1530 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1531 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1532 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (16 / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1533 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (16 / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1534 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / 16) - 0.15 * COS(SINE / 16*2), -0.125 * COS(SINE / 16) +0.2+ 0.2 * COS(SINE / 16)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / 16))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1535 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / 16) - 0.15 * COS(SINE / 16*2), 0.125 * COS(SINE / 16) +0.2+ -0.2 * COS(SINE / 16)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / 16))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1536 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1537 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1538 | 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) | |
1539 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1540 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1541 | end | |
1542 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1543 | ANIM = "Jump" | |
1544 | if ATTACK == false then | |
1545 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1546 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1547 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1548 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1549 | 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) | |
1550 | 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) | |
1551 | end | |
1552 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1553 | ANIM = "Fall" | |
1554 | if ATTACK == false then | |
1555 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1556 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1557 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1558 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1559 | 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) | |
1560 | 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) | |
1561 | end | |
1562 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1563 | ANIM = "Idle" | |
1564 | if MODE == "GOD" then | |
1565 | if ATTACK == false then | |
1566 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1567 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1568 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1569 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1570 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1571 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1572 | end | |
1573 | elseif MODE == "NRM" then | |
1574 | if ATTACK == false then | |
1575 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 0.15 / Animation_Speed) | |
1576 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-65)), 0.15 / Animation_Speed) | |
1577 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 + 0.1 * COS(SINE / 12) * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1578 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 + 0.1 * COS(SINE / 12) * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1579 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9 + 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
1580 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 + 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
1581 | end | |
1582 | end | |
1583 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1584 | ANIM = "Walk" | |
1585 | if MODE == "GOD" then | |
1586 | if ATTACK == false then | |
1587 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1588 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (16 / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1589 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1590 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / 16)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1591 | 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) | |
1592 | 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) | |
1593 | end | |
1594 | elseif MODE == "NRM" then | |
1595 | if ATTACK == false then | |
1596 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1597 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (16 / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1598 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1599 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / 16)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1600 | 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) | |
1601 | 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) | |
1602 | end | |
1603 | end | |
1604 | end | |
1605 | unanchor() | |
1606 | Humanoid.MaxHealth = "inf" | |
1607 | Humanoid.Health = "inf" | |
1608 | if Rooted == false then | |
1609 | Disable_Jump = false | |
1610 | Humanoid.WalkSpeed = Speed | |
1611 | elseif Rooted == true then | |
1612 | Disable_Jump = true | |
1613 | Humanoid.WalkSpeed = 0 | |
1614 | end | |
1615 | sick.Parent = Torso | |
1616 | sick.Volume = 8.2 | |
1617 | sick.Pitch = 1 | |
1618 | sick.Name = "Dead" | |
1619 | Humanoid.Name = "HELLO VOID" | |
1620 | Humanoid.WalkSpeed = 30 | |
1621 | end | |
1622 | ||
1623 | --//=================================\\ | |
1624 | --\\=================================// | |
1625 | ||
1626 | ||
1627 | ||
1628 | ||
1629 | ||
1630 | --//====================================================\\-- | |
1631 | --|| END OF SCRIPT | |
1632 | --\\====================================================//-- |