SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | ||
87 | local h,t | |
88 | --Give the server mouse data every second frame, but only if the values changed | |
89 | --If player is not moving their mouse, client won't fire events | |
90 | local HB = game:GetService("RunService").Heartbeat | |
91 | while true do | |
92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
93 | h,t=Mouse.Hit,Mouse.Target | |
94 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
95 | end | |
96 | --Wait 2 frames | |
97 | for i=1,2 do | |
98 | HB:Wait() | |
99 | end | |
100 | end]==],script) | |
101 | ||
102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
103 | --Real game object | |
104 | local RealGame = game | |
105 | ||
106 | --Metatable for fake service | |
107 | local FakeService_Metatable = { | |
108 | __index = function(self,k) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then | |
111 | return typeof(s[k])=="function" | |
112 | and function(_,...)return s[k](s,...)end or s[k] | |
113 | end | |
114 | end, | |
115 | __newindex = function(self,k,v) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then s[k]=v end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
122 | return setmetatable(t,FakeService_Metatable) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local FakeGame = { | |
127 | GetService = function(self,s) | |
128 | return rawget(self,s) or RealGame:GetService(s) | |
129 | end, | |
130 | Players = FakeService({ | |
131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | RunService = FakeService({ | |
136 | _btrs = {}, | |
137 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
138 | BindToRenderStep = function(self,name,_,fun) | |
139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
140 | end, | |
141 | UnbindFromRenderStep = function(self,name) | |
142 | self._btrs[name]:Disconnect() | |
143 | end, | |
144 | },"RunService") | |
145 | } | |
146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
147 | FakeGame.service = FakeGame.GetService | |
148 | FakeService(FakeGame,game) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
151 | end | |
152 | ||
153 | --//====================================================\\-- | |
154 | --|| CREATED BY SHACKLUSTER | |
155 | --\\====================================================//-- | |
156 | ||
157 | ||
158 | ||
159 | wait(0.2) | |
160 | ||
161 | ||
162 | ||
163 | Player = game:GetService("Players").LocalPlayer | |
164 | PlayerGui = Player.PlayerGui | |
165 | Cam = workspace.CurrentCamera | |
166 | Backpack = Player.Backpack | |
167 | Character = Player.Character | |
168 | Humanoid = Character.Humanoid | |
169 | Mouse = Player:GetMouse() | |
170 | RootPart = Character["HumanoidRootPart"] | |
171 | Torso = Character["Torso"] | |
172 | Head = Character["Head"] | |
173 | RightArm = Character["Right Arm"] | |
174 | LeftArm = Character["Left Arm"] | |
175 | RightLeg = Character["Right Leg"] | |
176 | LeftLeg = Character["Left Leg"] | |
177 | RootJoint = RootPart["RootJoint"] | |
178 | Neck = Torso["Neck"] | |
179 | RightShoulder = Torso["Right Shoulder"] | |
180 | LeftShoulder = Torso["Left Shoulder"] | |
181 | RightHip = Torso["Right Hip"] | |
182 | LeftHip = Torso["Left Hip"] | |
183 | local sick = Instance.new("Sound",Character) | |
184 | sick.SoundId = "rbxassetid://195900687" | |
185 | sick.Looped = true | |
186 | sick.Pitch = 1 | |
187 | sick.Volume = 3 | |
188 | sick:Play() | |
189 | ||
190 | IT = Instance.new | |
191 | CF = CFrame.new | |
192 | VT = Vector3.new | |
193 | RAD = math.rad | |
194 | C3 = Color3.new | |
195 | UD2 = UDim2.new | |
196 | BRICKC = BrickColor.new | |
197 | ANGLES = CFrame.Angles | |
198 | EULER = CFrame.fromEulerAnglesXYZ | |
199 | COS = math.cos | |
200 | ACOS = math.acos | |
201 | SIN = math.sin | |
202 | ASIN = math.asin | |
203 | ABS = math.abs | |
204 | MRANDOM = math.random | |
205 | FLOOR = math.floor | |
206 | ||
207 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
208 | local NEWMESH = IT(MESH) | |
209 | if MESH == "SpecialMesh" then | |
210 | NEWMESH.MeshType = MESHTYPE | |
211 | if MESHID ~= "nil" and MESHID ~= "" then | |
212 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
213 | end | |
214 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
215 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
216 | end | |
217 | end | |
218 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
219 | NEWMESH.Scale = SCALE | |
220 | NEWMESH.Parent = PARENT | |
221 | return NEWMESH | |
222 | end | |
223 | ||
224 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
225 | local NEWPART = IT("Part") | |
226 | NEWPART.formFactor = FORMFACTOR | |
227 | NEWPART.Reflectance = REFLECTANCE | |
228 | NEWPART.Transparency = TRANSPARENCY | |
229 | NEWPART.CanCollide = false | |
230 | NEWPART.Locked = true | |
231 | NEWPART.Anchored = true | |
232 | if ANCHOR == false then | |
233 | NEWPART.Anchored = false | |
234 | end | |
235 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
236 | NEWPART.Name = NAME | |
237 | NEWPART.Size = SIZE | |
238 | NEWPART.Position = Torso.Position | |
239 | NEWPART.Material = MATERIAL | |
240 | NEWPART:BreakJoints() | |
241 | NEWPART.Parent = PARENT | |
242 | return NEWPART | |
243 | end | |
244 | ||
245 | --//=================================\\ | |
246 | --|| CUSTOMIZATION | |
247 | --\\=================================// | |
248 | ||
249 | Player_Size = 1 --Size of the player. | |
250 | Animation_Speed = 3 | |
251 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
252 | ||
253 | local Speed = 16 | |
254 | local Effects2 = {} | |
255 | ||
256 | --//=================================\\ | |
257 | --|| END OF CUSTOMIZATION | |
258 | --\\=================================// | |
259 | ||
260 | local function weldBetween(a, b) | |
261 | local weldd = Instance.new("ManualWeld") | |
262 | weldd.Part0 = a | |
263 | weldd.Part1 = b | |
264 | weldd.C0 = CFrame.new() | |
265 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
266 | weldd.Parent = a | |
267 | return weldd | |
268 | end | |
269 | ||
270 | --//=================================\\ | |
271 | --|| USEFUL VALUES | |
272 | --\\=================================// | |
273 | ||
274 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
275 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
276 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
277 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
278 | local CHANGEDEFENSE = 0 | |
279 | local CHANGEDAMAGE = 0 | |
280 | local CHANGEMOVEMENT = 0 | |
281 | local ANIM = "Idle" | |
282 | local ATTACK = false | |
283 | local EQUIPPED = false | |
284 | local HOLD = false | |
285 | local COMBO = 1 | |
286 | local Rooted = false | |
287 | local SINE = 0 | |
288 | local KEYHOLD = false | |
289 | local CHANGE = 2 / Animation_Speed | |
290 | local WALKINGANIM = false | |
291 | local WALK = 0 | |
292 | local VALUE1 = false | |
293 | local VALUE2 = false | |
294 | local ROBLOXIDLEANIMATION = IT("Animation") | |
295 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
296 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
297 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
298 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
299 | WEAPONGUI.Name = "Weapon GUI" | |
300 | local Effects = IT("Folder", Character) | |
301 | Effects.Name = "Effects" | |
302 | local ANIMATOR = Humanoid.Animator | |
303 | local ANIMATE = Character.Animate | |
304 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
305 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
306 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
307 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
308 | local UNANCHOR = true | |
309 | ||
310 | local SKILLTEXTCOLOR = C3(0.05,0.05,0.15) | |
311 | ||
312 | --//=================================\\ | |
313 | --\\=================================// | |
314 | ||
315 | ||
316 | --//=================================\\ | |
317 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
318 | --\\=================================// | |
319 | ||
320 | ArtificialHB = Instance.new("BindableEvent", script) | |
321 | ArtificialHB.Name = "ArtificialHB" | |
322 | ||
323 | script:WaitForChild("ArtificialHB") | |
324 | ||
325 | frame = Frame_Speed | |
326 | tf = 0 | |
327 | allowframeloss = false | |
328 | tossremainder = false | |
329 | lastframe = tick() | |
330 | script.ArtificialHB:Fire() | |
331 | ||
332 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
333 | tf = tf + s | |
334 | if tf >= frame then | |
335 | if allowframeloss then | |
336 | script.ArtificialHB:Fire() | |
337 | lastframe = tick() | |
338 | else | |
339 | for i = 1, math.floor(tf / frame) do | |
340 | script.ArtificialHB:Fire() | |
341 | end | |
342 | lastframe = tick() | |
343 | end | |
344 | if tossremainder then | |
345 | tf = 0 | |
346 | else | |
347 | tf = tf - frame * math.floor(tf / frame) | |
348 | end | |
349 | end | |
350 | end) | |
351 | ||
352 | --//=================================\\ | |
353 | --\\=================================// | |
354 | ||
355 | ||
356 | ||
357 | ||
358 | ||
359 | --//=================================\\ | |
360 | --|| SOME FUNCTIONS | |
361 | --\\=================================// | |
362 | ||
363 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
364 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
365 | end | |
366 | ||
367 | function PositiveAngle(NUMBER) | |
368 | if NUMBER >= 0 then | |
369 | NUMBER = 0 | |
370 | end | |
371 | return NUMBER | |
372 | end | |
373 | ||
374 | function NegativeAngle(NUMBER) | |
375 | if NUMBER <= 0 then | |
376 | NUMBER = 0 | |
377 | end | |
378 | return NUMBER | |
379 | end | |
380 | ||
381 | function Swait(NUMBER) | |
382 | if NUMBER == 0 or NUMBER == nil then | |
383 | ArtificialHB.Event:wait() | |
384 | else | |
385 | for i = 1, NUMBER do | |
386 | ArtificialHB.Event:wait() | |
387 | end | |
388 | end | |
389 | end | |
390 | ||
391 | function QuaternionFromCFrame(cf) | |
392 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
393 | local trace = m00 + m11 + m22 | |
394 | if trace > 0 then | |
395 | local s = math.sqrt(1 + trace) | |
396 | local recip = 0.5 / s | |
397 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
398 | else | |
399 | local i = 0 | |
400 | if m11 > m00 then | |
401 | i = 1 | |
402 | end | |
403 | if m22 > (i == 0 and m00 or m11) then | |
404 | i = 2 | |
405 | end | |
406 | if i == 0 then | |
407 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
408 | local recip = 0.5 / s | |
409 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
410 | elseif i == 1 then | |
411 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
412 | local recip = 0.5 / s | |
413 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
414 | elseif i == 2 then | |
415 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
416 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
417 | end | |
418 | end | |
419 | end | |
420 | ||
421 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
422 | local xs, ys, zs = x + x, y + y, z + z | |
423 | local wx, wy, wz = w * xs, w * ys, w * zs | |
424 | local xx = x * xs | |
425 | local xy = x * ys | |
426 | local xz = x * zs | |
427 | local yy = y * ys | |
428 | local yz = y * zs | |
429 | local zz = z * zs | |
430 | 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)) | |
431 | end | |
432 | ||
433 | function QuaternionSlerp(a, b, t) | |
434 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
435 | local startInterp, finishInterp; | |
436 | if cosTheta >= 0.0001 then | |
437 | if (1 - cosTheta) > 0.0001 then | |
438 | local theta = ACOS(cosTheta) | |
439 | local invSinTheta = 1 / SIN(theta) | |
440 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
441 | finishInterp = SIN(t * theta) * invSinTheta | |
442 | else | |
443 | startInterp = 1 - t | |
444 | finishInterp = t | |
445 | end | |
446 | else | |
447 | if (1 + cosTheta) > 0.0001 then | |
448 | local theta = ACOS(-cosTheta) | |
449 | local invSinTheta = 1 / SIN(theta) | |
450 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
451 | finishInterp = SIN(t * theta) * invSinTheta | |
452 | else | |
453 | startInterp = t - 1 | |
454 | finishInterp = t | |
455 | end | |
456 | end | |
457 | 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 | |
458 | end | |
459 | ||
460 | function Clerp(a, b, t) | |
461 | local qa = {QuaternionFromCFrame(a)} | |
462 | local qb = {QuaternionFromCFrame(b)} | |
463 | local ax, ay, az = a.x, a.y, a.z | |
464 | local bx, by, bz = b.x, b.y, b.z | |
465 | local _t = 1 - t | |
466 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
467 | end | |
468 | ||
469 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
470 | local frame = IT("Frame") | |
471 | frame.BackgroundTransparency = TRANSPARENCY | |
472 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
473 | frame.Position = POSITION | |
474 | frame.Size = SIZE | |
475 | frame.BackgroundColor3 = COLOR | |
476 | frame.BorderColor3 = BORDERCOLOR | |
477 | frame.Name = NAME | |
478 | frame.Parent = PARENT | |
479 | return frame | |
480 | end | |
481 | ||
482 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
483 | local label = IT("TextLabel") | |
484 | label.BackgroundTransparency = 1 | |
485 | label.Size = UD2(1, 0, 1, 0) | |
486 | label.Position = UD2(0, 0, 0, 0) | |
487 | label.TextColor3 = TEXTCOLOR | |
488 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
489 | label.TextTransparency = TRANSPARENCY | |
490 | label.FontSize = TEXTFONTSIZE | |
491 | label.Font = TEXTFONT | |
492 | label.BorderSizePixel = BORDERSIZEPIXEL | |
493 | label.TextScaled = false | |
494 | label.Text = TEXT | |
495 | label.Name = NAME | |
496 | label.Parent = PARENT | |
497 | return label | |
498 | end | |
499 | ||
500 | function NoOutlines(PART) | |
501 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
502 | end | |
503 | ||
504 | ||
505 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
506 | local NEWWELD = IT(TYPE) | |
507 | NEWWELD.Part0 = PART0 | |
508 | NEWWELD.Part1 = PART1 | |
509 | NEWWELD.C0 = C0 | |
510 | NEWWELD.C1 = C1 | |
511 | NEWWELD.Parent = PARENT | |
512 | return NEWWELD | |
513 | end | |
514 | ||
515 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
516 | local NEWSOUND = nil | |
517 | coroutine.resume(coroutine.create(function() | |
518 | NEWSOUND = IT("Sound", PARENT) | |
519 | NEWSOUND.Volume = VOLUME | |
520 | NEWSOUND.Pitch = PITCH | |
521 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
522 | Swait() | |
523 | NEWSOUND:play() | |
524 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
525 | end)) | |
526 | return NEWSOUND | |
527 | end | |
528 | ||
529 | function CFrameFromTopBack(at, top, back) | |
530 | local right = top:Cross(back) | |
531 | 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) | |
532 | end | |
533 | ||
534 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
535 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
536 | wave.Color = COLOR | |
537 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
538 | wave.CFrame = CFRAME | |
539 | coroutine.resume(coroutine.create(function(PART) | |
540 | for i = 1, WAIT do | |
541 | Swait() | |
542 | mesh.Scale = mesh.Scale + GROW | |
543 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
544 | if DOESROT == true then | |
545 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
546 | end | |
547 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
548 | if wave.Transparency > 0.99 then | |
549 | wave:remove() | |
550 | end | |
551 | end | |
552 | end)) | |
553 | end | |
554 | ||
555 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
556 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
557 | wave.Color = COLOR | |
558 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, 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 | wave.Transparency = wave.Transparency + (1/WAIT) | |
565 | if wave.Transparency > 0.99 then | |
566 | wave:remove() | |
567 | end | |
568 | end | |
569 | end)) | |
570 | end | |
571 | ||
572 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
573 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
574 | local mesh = nil | |
575 | if KIND == "Base" then | |
576 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
577 | elseif KIND == "Thin" then | |
578 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
579 | elseif KIND == "Round" then | |
580 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
581 | end | |
582 | wave.CFrame = CFRAME | |
583 | coroutine.resume(coroutine.create(function(PART) | |
584 | for i = 1, WAIT do | |
585 | Swait() | |
586 | mesh.Scale = mesh.Scale + GROW/10 | |
587 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
588 | if wave.Transparency > 0.99 then | |
589 | wave:remove() | |
590 | end | |
591 | end | |
592 | end)) | |
593 | end | |
594 | ||
595 | function MakeForm(PART,TYPE) | |
596 | if TYPE == "Cyl" then | |
597 | local MSH = IT("CylinderMesh",PART) | |
598 | elseif TYPE == "Ball" then | |
599 | local MSH = IT("SpecialMesh",PART) | |
600 | MSH.MeshType = "Sphere" | |
601 | elseif TYPE == "Wedge" then | |
602 | local MSH = IT("SpecialMesh",PART) | |
603 | MSH.MeshType = "Wedge" | |
604 | end | |
605 | end | |
606 | ||
607 | function CheckTableForString(Table, String) | |
608 | for i, v in pairs(Table) do | |
609 | if string.find(string.lower(String), string.lower(v)) then | |
610 | return true | |
611 | end | |
612 | end | |
613 | return false | |
614 | end | |
615 | ||
616 | function CheckIntangible(Hit) | |
617 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
618 | if Hit and Hit.Parent then | |
619 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
620 | return true | |
621 | end | |
622 | end | |
623 | return false | |
624 | end | |
625 | ||
626 | Debris = game:GetService("Debris") | |
627 | ||
628 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
629 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
630 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
631 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
632 | if RayHit and CheckIntangible(RayHit) then | |
633 | if DelayIfHit then | |
634 | wait() | |
635 | end | |
636 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
637 | end | |
638 | return RayHit, RayPos, RayNormal | |
639 | end | |
640 | ||
641 | function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
642 | if DoesCourontine == false then | |
643 | local Direction = CF(Part.Position,ToLocation) | |
644 | local Distance = (Part.Position - ToLocation).magnitude | |
645 | for i = 1, AmountOfTime do | |
646 | Swait() | |
647 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
648 | Direction = Part.CFrame | |
649 | end | |
650 | Part:remove() | |
651 | elseif DoesCourontine == true then | |
652 | coroutine.resume(coroutine.create(function() | |
653 | local Direction = CF(Part.Position,ToLocation) | |
654 | local Distance = (Part.Position - ToLocation).magnitude | |
655 | for i = 1, AmountOfTime do | |
656 | Swait() | |
657 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
658 | Direction = Part.CFrame | |
659 | end | |
660 | Part:remove() | |
661 | end)) | |
662 | end | |
663 | end | |
664 | ||
665 | function turnto(position) | |
666 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
667 | end | |
668 | ||
669 | --//=================================\\ | |
670 | --|| WEAPON CREATION | |
671 | --\\=================================// | |
672 | ||
673 | local naeeym2 = Instance.new("BillboardGui",Character) | |
674 | naeeym2.AlwaysOnTop = true | |
675 | naeeym2.Size = UDim2.new(5,35,2,15) | |
676 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
677 | naeeym2.Adornee = Character.Head | |
678 | naeeym2.Name = "Name" | |
679 | naeeym2.PlayerToHideFrom = Player | |
680 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
681 | tecks2.BackgroundTransparency = 1 | |
682 | tecks2.TextScaled = true | |
683 | tecks2.BorderSizePixel = 0 | |
684 | tecks2.Text = "Dominus Astra" | |
685 | tecks2.Font = "Fantasy" | |
686 | tecks2.TextSize = 30 | |
687 | tecks2.TextStrokeTransparency = 0 | |
688 | tecks2.TextColor3 = Color3.new(0.05,0.05,0.15) | |
689 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
690 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
691 | tecks2.Parent = naeeym2 | |
692 | ||
693 | function Transparency(TRANS) | |
694 | tecks2.TextTransparency = TRANS | |
695 | tecks2.TextStrokeTransparency = TRANS | |
696 | for _, c in pairs(Character:GetChildren()) do | |
697 | if c.ClassName == "Part" and c ~= RootPart then | |
698 | c.Transparency = TRANS | |
699 | if c:FindFirstChildOfClass("Decal") then | |
700 | c:FindFirstChildOfClass("Decal").Transparency = TRANS | |
701 | end | |
702 | elseif c.ClassName == "Accessory" then | |
703 | c.Handle.Transparency = TRANS | |
704 | elseif c.ClassName == "Model" then | |
705 | for _, q in pairs(c:GetChildren()) do | |
706 | if q.ClassName == "Part" then | |
707 | q.Transparency = TRANS | |
708 | if q:FindFirstChildOfClass("Decal") then | |
709 | q:FindFirstChildOfClass("Decal").Transparency = TRANS | |
710 | end | |
711 | end | |
712 | end | |
713 | end | |
714 | end | |
715 | end | |
716 | ||
717 | Humanoid.Died:connect(function() | |
718 | Humanoid.Parent = nil | |
719 | Humanoid.MaxHealth = "inf" | |
720 | Humanoid.Health = "inf" | |
721 | refit() | |
722 | Humanoid.Parent = Character | |
723 | CreateSound("907330011", Head, 10, 1.2) | |
724 | end) | |
725 | ||
726 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
727 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
728 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
729 | local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Warp Frame") | |
730 | ||
731 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Lunar Blast", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1") | |
732 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Star Cutter", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2") | |
733 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Supernova", SKILLTEXTCOLOR, 10, "Fantasy", 0, 2, 0, "Text 3") | |
734 | local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Astral Hop", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text Warp") | |
735 | ||
736 | --//=================================\\ | |
737 | --|| DAMAGING | |
738 | --\\=================================// | |
739 | ||
740 | function killnearest(position,range,maxstrength) | |
741 | for i,v in ipairs(workspace:GetChildren()) do | |
742 | local body = v:GetChildren() | |
743 | for part = 1, #body do | |
744 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
745 | if(body[part].Position - position).Magnitude < range then | |
746 | if v.ClassName == "Model" then | |
747 | v:BreakJoints() | |
748 | end | |
749 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
750 | local bv = Instance.new("BodyVelocity") | |
751 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
752 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
753 | bv.Parent = body[part] | |
754 | Debris:AddItem(bv,0.2) | |
755 | end | |
756 | end | |
757 | end | |
758 | if v.ClassName == "Part" then | |
759 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
760 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
761 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
762 | end | |
763 | end | |
764 | end | |
765 | end | |
766 | ||
767 | --//=================================\\ | |
768 | --|| ATTACK FUNCTIONS AND STUFF | |
769 | --\\=================================// | |
770 | ||
771 | function Lunar_Blast() | |
772 | local HITBODIES = {} | |
773 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly red", "CenterPart", VT(0,0,0)) | |
774 | local HITFLOOR,ECH,NORMAL = Raycast(Mouse.Hit.p+VT(0,2,0), (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 10000000, Character) | |
775 | CENTER.CFrame = CF(ECH) | |
776 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Laser01", VT(25,99999,25)) | |
777 | RAY.Color = C3(0.05,0.05,0.15) | |
778 | MakeForm(RAY,"Cyl") | |
779 | RAY.CFrame = CF(ECH) | |
780 | for i = 1, 75 do | |
781 | Swait() | |
782 | RAY.Transparency = RAY.Transparency - 1/75 | |
783 | RAY.Size = RAY.Size - VT(25/75,0,25/75) | |
784 | MagicSphere(VT(1,1,1),15,CF(ECH)*CF(MRANDOM(-15,15),MRANDOM(0,100),MRANDOM(-15,15)),C3(1,1,1),VT(0,0,0)) | |
785 | end | |
786 | killnearest(ECH,25,25) | |
787 | MagicSphere(VT(0,0,0),55,CF(ECH),C3(0.05,0.05,0.15),VT(2,2,2)) | |
788 | for i = 1, 25 do | |
789 | MagicSphere(VT(1,1,1),i*3,CF(ECH)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
790 | end | |
791 | CreateSound("168586621", CENTER, 10, 0.8) | |
792 | RAY:remove() | |
793 | Debris:AddItem(CENTER,5) | |
794 | end | |
795 | ||
796 | function Star_Cutter() | |
797 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
798 | if HITFLOOR ~= nil then | |
799 | ATTACK = true | |
800 | Rooted = true | |
801 | local GYRO = IT("BodyGyro",RootPart) | |
802 | GYRO.D = 100 | |
803 | GYRO.P = 2000 | |
804 | GYRO.MaxTorque = VT(0,4000000,0) | |
805 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
806 | CreateSound("429459101", RightArm, 10, 0.8) | |
807 | for i=0, 3.5, 0.1 / Animation_Speed do | |
808 | Swait() | |
809 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
810 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
811 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
812 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
813 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
814 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
815 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
816 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
817 | end | |
818 | GYRO:remove() | |
819 | for i=0, 0.15, 0.1 / Animation_Speed do | |
820 | Swait() | |
821 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
822 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
823 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
824 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
825 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
826 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
827 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
828 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
829 | end | |
830 | local BOMBSPOTS = {} | |
831 | for i = 1, 25 do | |
832 | local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly blue", "Blade", VT(8,1,8)) | |
833 | SPOT.Color = SKILLTEXTCOLOR | |
834 | SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5) | |
835 | table.insert(BOMBSPOTS,SPOT) | |
836 | MakeForm(SPOT,"Cyl") | |
837 | end | |
838 | for i=0, 0.2, 0.1 / Animation_Speed do | |
839 | Swait() | |
840 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
841 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
842 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
843 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
844 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
845 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
846 | end | |
847 | ATTACK = false | |
848 | Rooted = false | |
849 | coroutine.resume(coroutine.create(function() | |
850 | Swait(3) | |
851 | for i = 1, #BOMBSPOTS do | |
852 | if BOMBSPOTS[i] ~= nil then | |
853 | local E = BOMBSPOTS[i] | |
854 | coroutine.resume(coroutine.create(function() | |
855 | local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly blue", "Blade", VT(0,0,0)) | |
856 | BLADE.Color = SKILLTEXTCOLOR | |
857 | CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0)) | |
858 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6) | |
859 | BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15))) | |
860 | for i = 1, 10 do | |
861 | Swait() | |
862 | MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0)) | |
863 | killnearest(BLADE.Position,6,80) | |
864 | BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0) | |
865 | BLADE.Transparency = BLADE.Transparency - 0.1 | |
866 | end | |
867 | Swait(45) | |
868 | for i = 1, 100 do | |
869 | Swait() | |
870 | BLADE.Transparency = BLADE.Transparency + 0.01 | |
871 | E.Transparency = E.Transparency + 0.01 | |
872 | end | |
873 | BLADE:remove() | |
874 | E:remove() | |
875 | end)) | |
876 | end | |
877 | end | |
878 | end)) | |
879 | end | |
880 | end | |
881 | ||
882 | function Supernova() | |
883 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
884 | if HITFLOOR ~= nil then | |
885 | local HITBODIES = {} | |
886 | ATTACK = true | |
887 | Rooted = true | |
888 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Star", VT(0,0,0)) | |
889 | MakeForm(ABSOLUTE,"Ball") | |
890 | CreateSound("429459101", ABSOLUTE, 10, 1) | |
891 | for i=0, 4, 0.1 / Animation_Speed do | |
892 | Swait() | |
893 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2) | |
894 | ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0) | |
895 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
896 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1,1,1)) | |
897 | MakeForm(CHARGE,"Ball") | |
898 | CHARGE.Color = C3(1,1,1) | |
899 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15)) | |
900 | FireArc(CHARGE,ABSOLUTE.Position,45,45,true) | |
901 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
902 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
903 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
904 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
905 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
906 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
907 | end | |
908 | CreateSound("907330103", Head, 10, 1.2) | |
909 | for i = 1, 75 do | |
910 | Swait() | |
911 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
912 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
913 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
916 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
917 | end | |
918 | coroutine.resume(coroutine.create(function() | |
919 | for i = 1, 13 do | |
920 | for e = 1, 8 do | |
921 | Swait() | |
922 | MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
923 | CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Slime green".Color,VT(i,0.3,i)*2) | |
924 | end | |
925 | for i = 1, 5 do | |
926 | Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3) | |
927 | Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(1,0,0),VT(0,0,0)) | |
928 | end | |
929 | CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Relly red".Color,VT(i,i*2,i)) | |
930 | CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(0.05,0.05,0.15),VT(i,i*2,i)) | |
931 | CreateSound("168586621", ABSOLUTE, 4, 0.8) | |
932 | CreateSound("201858144", ABSOLUTE, 10, 0.8) | |
933 | killnearest(ABSOLUTE.Position,i*18,i) | |
934 | ABSOLUTE.Size = ABSOLUTE.Size*0.9 | |
935 | MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Relly red".Color,VT(i,i,i)/1.1) | |
936 | MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(0.05,0.05,0.15),VT(i,i,i)) | |
937 | end | |
938 | ABSOLUTE.Transparency = 1 | |
939 | Debris:AddItem(ABSOLUTE,10) | |
940 | end)) | |
941 | ATTACK = false | |
942 | Rooted = false | |
943 | end | |
944 | end | |
945 | ||
946 | local Decal = IT("Decal") | |
947 | ||
948 | function Astral_Hop() | |
949 | ATTACK = true | |
950 | Rooted = false | |
951 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
952 | O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
953 | local decal = Decal:Clone() | |
954 | decal.Parent = O1 | |
955 | decal.Face = "Top" | |
956 | decal.Texture = "http://www.roblox.com/asset/?id=349165228" | |
957 | local decal2 = Decal:Clone() | |
958 | decal2.Parent = O1 | |
959 | decal2.Face = "Bottom" | |
960 | decal2.Texture = "http://www.roblox.com/asset/?id=349165228" | |
961 | local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
962 | local POS = VT(RootPart.Position.X,Mouse.Hit.p.Y+6,RootPart.Position.Z) | |
963 | O2.CFrame = CF(Mouse.Hit.p+VT(0,6,0),POS)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
964 | local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0,0,0)) | |
965 | ROOT.CFrame = CF(O2.Position,RootPart.Position) | |
966 | local decal = Decal:Clone() | |
967 | decal.Parent = O2 | |
968 | decal.Face = "Top" | |
969 | decal.Texture = "http://www.roblox.com/asset/?id=349165228" | |
970 | local decal2 = Decal:Clone() | |
971 | decal2.Parent = O2 | |
972 | decal2.Face = "Bottom" | |
973 | decal2.Texture = "http://www.roblox.com/asset/?id=349165228" | |
974 | CreateSound("84005018", O1, 10, 0.7) | |
975 | CreateSound("84005018", O2, 10, 0.7) | |
976 | for i = 1, 75 do | |
977 | Swait() | |
978 | O1.Size = O1.Size + VT(0.1,0,0.1) | |
979 | O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(i),RAD(0)) | |
980 | O2.Size = O2.Size + VT(0.1,0,0.1) | |
981 | O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
982 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
983 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
984 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
985 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
986 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
987 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
988 | end | |
989 | Rooted = true | |
990 | UNANCHOR = false | |
991 | RootPart.Anchored = true | |
992 | VALUE1 = true | |
993 | for i = 1, 15 do | |
994 | Transparency(i/15) | |
995 | Swait() | |
996 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.13) | |
997 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
998 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
999 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1000 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1001 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1002 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1003 | end | |
1004 | RootPart.CFrame = ROOT.CFrame | |
1005 | ROOT:remove() | |
1006 | for i = 1, 15 do | |
1007 | Transparency(1-(i/15)) | |
1008 | Swait() | |
1009 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.5) | |
1010 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1011 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1012 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1013 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1014 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1015 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1016 | end | |
1017 | VALUE1 = false | |
1018 | coroutine.resume(coroutine.create(function() | |
1019 | for i = 1, 75 do | |
1020 | Swait() | |
1021 | O1.Size = O1.Size - VT(0.1,0,0.1) | |
1022 | O1.CFrame = O1.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
1023 | O2.Size = O2.Size - VT(0.1,0,0.1) | |
1024 | O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0)) | |
1025 | end | |
1026 | O1:remove() | |
1027 | O2:remove() | |
1028 | end)) | |
1029 | UNANCHOR = true | |
1030 | RootPart.Anchored = false | |
1031 | ATTACK = false | |
1032 | Rooted = false | |
1033 | end | |
1034 | ||
1035 | --//=================================\\ | |
1036 | --|| ASSIGN THINGS TO KEYS | |
1037 | --\\=================================// | |
1038 | ||
1039 | function MouseDown(Mouse) | |
1040 | if ATTACK == false then | |
1041 | end | |
1042 | end | |
1043 | ||
1044 | function MouseUp(Mouse) | |
1045 | HOLD = false | |
1046 | end | |
1047 | ||
1048 | function KeyDown(Key) | |
1049 | KEYHOLD = true | |
1050 | if Key == "z" and ATTACK == false then | |
1051 | Lunar_Blast() | |
1052 | end | |
1053 | ||
1054 | if Key == "b" and ATTACK == false then | |
1055 | Star_Cutter() | |
1056 | end | |
1057 | ||
1058 | if Key == "c" and ATTACK == false then | |
1059 | Supernova() | |
1060 | end | |
1061 | ||
1062 | if Key == "q" and ATTACK == false then | |
1063 | Astral_Hop() | |
1064 | end | |
1065 | end | |
1066 | ||
1067 | function KeyUp(Key) | |
1068 | KEYHOLD = false | |
1069 | end | |
1070 | ||
1071 | Mouse.Button1Down:connect(function(NEWKEY) | |
1072 | MouseDown(NEWKEY) | |
1073 | end) | |
1074 | Mouse.Button1Up:connect(function(NEWKEY) | |
1075 | MouseUp(NEWKEY) | |
1076 | end) | |
1077 | Mouse.KeyDown:connect(function(NEWKEY) | |
1078 | KeyDown(NEWKEY) | |
1079 | end) | |
1080 | Mouse.KeyUp:connect(function(NEWKEY) | |
1081 | KeyUp(NEWKEY) | |
1082 | end) | |
1083 | ||
1084 | --//=================================\\ | |
1085 | --\\=================================// | |
1086 | ||
1087 | ||
1088 | function unanchor() | |
1089 | if UNANCHOR == true then | |
1090 | g = Character:GetChildren() | |
1091 | for i = 1, #g do | |
1092 | if g[i].ClassName == "Part" then | |
1093 | g[i].Anchored = false | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | ||
1099 | ||
1100 | --//=================================\\ | |
1101 | --|| WRAP THE WHOLE SCRIPT UP | |
1102 | --\\=================================// | |
1103 | ||
1104 | Humanoid.Changed:connect(function(Jump) | |
1105 | if Jump == "Jump" and (Disable_Jump == true) then | |
1106 | Humanoid.Jump = false | |
1107 | end | |
1108 | end) | |
1109 | ||
1110 | Humanoid.HipHeight = 2 | |
1111 | Head:ClearAllChildren() | |
1112 | local FF = IT("ForceField",Character) | |
1113 | FF.Visible = false | |
1114 | Speed = 35 | |
1115 | ||
1116 | function refit() | |
1117 | RootJoint.Parent = RootPart | |
1118 | Neck.Parent = Torso | |
1119 | RightShoulder.Parent = Torso | |
1120 | LeftShoulder.Parent = Torso | |
1121 | RightHip.Parent = Torso | |
1122 | LeftHip.Parent = Torso | |
1123 | RootPart.Parent = Character | |
1124 | LeftArm.Parent = Character | |
1125 | RightArm.Parent = Character | |
1126 | RightLeg.Parent = Character | |
1127 | LeftLeg.Parent = Character | |
1128 | Torso.Parent = Character | |
1129 | Head.Parent = Character | |
1130 | end | |
1131 | ||
1132 | local FOUNDFORGOTTEN = false | |
1133 | ||
1134 | while true do | |
1135 | Swait() | |
1136 | ANIMATE.Parent = nil | |
1137 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1138 | IDLEANIMATION:Play() | |
1139 | SINE = SINE + CHANGE | |
1140 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1141 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1142 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1143 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
1144 | if ATTACK == false then | |
1145 | if TORSOVELOCITY < 1 then | |
1146 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1147 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1148 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1149 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1150 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1151 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1152 | elseif TORSOVELOCITY > 1 then | |
1153 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1154 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1155 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1156 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1157 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1158 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1159 | end | |
1160 | end | |
1161 | unanchor() | |
1162 | Humanoid.MaxHealth = "inf" | |
1163 | Humanoid.Health = "inf" | |
1164 | if Rooted == false then | |
1165 | Disable_Jump = false | |
1166 | Humanoid.WalkSpeed = Speed | |
1167 | elseif Rooted == true then | |
1168 | Disable_Jump = true | |
1169 | Humanoid.WalkSpeed = 0 | |
1170 | end | |
1171 | for _, c in pairs(Character:GetChildren()) do | |
1172 | if c.ClassName == "Part" then | |
1173 | c.Material = "Neon" | |
1174 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1175 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1176 | end | |
1177 | if c == Torso then | |
1178 | c.Color = C3(0,0,0) | |
1179 | elseif c == RightArm then | |
1180 | c.Color = C3(0.05,0.05,0.15) | |
1181 | elseif c == LeftArm then | |
1182 | c.Color = C3(0.05,0.05,0.15) | |
1183 | elseif c == RightLeg then | |
1184 | c.Color = C3(0,0,0.05) | |
1185 | elseif c == LeftLeg then | |
1186 | c.Color = C3(0,0,0.05) | |
1187 | elseif c == Head then | |
1188 | if c:FindFirstChild("Dominus") == nil then | |
1189 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1190 | M.Name = "Dominus" | |
1191 | end | |
1192 | if c:FindFirstChild("face") then | |
1193 | c.face:remove() | |
1194 | end | |
1195 | end | |
1196 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1197 | c:remove() | |
1198 | end | |
1199 | end | |
1200 | FF.Parent = Character | |
1201 | sick.Parent = Character | |
1202 | refit() | |
1203 | script.Parent = WEAPONGUI | |
1204 | Character.Parent = workspace | |
1205 | Humanoid.PlatformStand = false | |
1206 | Humanoid.Name = "Astra" | |
1207 | for _, c in pairs(game.Players:GetChildren()) do | |
1208 | if c.Character ~= nil then | |
1209 | if c.Character.Parent ~= workspace and c.Character.Parent ~= nil then | |
1210 | c.Character:BreakJoints() | |
1211 | end | |
1212 | end | |
1213 | end | |
1214 | FOUNDFORGOTTEN = false | |
1215 | Humanoid.DisplayDistanceType = "None" | |
1216 | for _, c in pairs(workspace:GetChildren()) do | |
1217 | if c.ClassName == "Model" then | |
1218 | for _, q in pairs(c:GetChildren()) do | |
1219 | if q.Name == ("Forgotten Dominus") then | |
1220 | FOUNDFORGOTTEN = true | |
1221 | end | |
1222 | end | |
1223 | end | |
1224 | end | |
1225 | if FOUNDFORGOTTEN == true then | |
1226 | sick:Stop() | |
1227 | else | |
1228 | sick.Playing = true | |
1229 | end | |
1230 | if VALUE1 == false then | |
1231 | MagicSphere(VT(1,1,1)/5,35,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0)) | |
1232 | end | |
1233 | end | |
1234 | ||
1235 | --//=================================\\ | |
1236 | --\\=================================// | |
1237 | ||
1238 | ||
1239 | ||
1240 | ||
1241 | ||
1242 | --//====================================================\\-- | |
1243 | --|| END OF SCRIPT | |
1244 | --\\====================================================//-- |