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