SHOW:
|
|
- or go back to the newest paste.
1 | -- Created by Nebula_Zorua -- | |
2 | -- Edited by SHYIME -- | |
3 | -- Bai Bai (Bye bye Remake) -- | |
4 | -- Bye-bye baby blue.. -- | |
5 | -- I wish you could see the wicked truth.. -- | |
6 | -- Caught up in a rush, it's killing you.. -- | |
7 | ||
8 | -- Discord: Nebula the Zorua#6969 | |
9 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
10 | ||
11 | wait(1/60) | |
12 | ||
13 | --// Shortcut Variables \\-- | |
14 | local CF2 = CFrame.new | |
15 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
16 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
17 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
18 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
19 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
20 | local R3 = {N=Region3.new} | |
21 | local De = S.Debris | |
22 | local WS = workspace | |
23 | local Lght = S.Lighting | |
24 | local RepS = S.ReplicatedStorage | |
25 | local IN = Instance.new | |
26 | local Plrs = S.Players | |
27 | ||
28 | C33 = Color3.new | |
29 | Lght.TimeOfDay = 00 | |
30 | ||
31 | --// Initializing \\-- | |
32 | local Plr = Plrs.LocalPlayer | |
33 | local Char = Plr.Character | |
34 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
35 | local RArm = Char["Right Arm"] | |
36 | local LArm = Char["Left Arm"] | |
37 | local RLeg = Char["Right Leg"] | |
38 | local LLeg = Char["Left Leg"] | |
39 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
40 | local Torso = Char.Torso | |
41 | local Head = Char.Head | |
42 | local NeutralAnims = true | |
43 | local Attack = false | |
44 | local Debounces = {Debounces={}} | |
45 | local Mouse = Plr:GetMouse() | |
46 | local Hit = {} | |
47 | local Sine = 0 | |
48 | local Change = 1 | |
49 | local GrabbedHead; | |
50 | ||
51 | local Effects = IN("Folder",Char) | |
52 | Effects.Name = "Effects" | |
53 | ||
54 | ||
55 | --// Debounce System \\-- | |
56 | ||
57 | ||
58 | function Debounces:New(name,cooldown) | |
59 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} | |
60 | setmetatable(aaaaa,{__index = Debounces}) | |
61 | Debounces.Debounces[name] = aaaaa | |
62 | return aaaaa | |
63 | end | |
64 | ||
65 | function Debounces:Use(overrideUsable) | |
66 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
67 | if(self.Usable or overrideUsable)then | |
68 | self.Usable = false | |
69 | self.CoolingDown = true | |
70 | local LastUse = time() | |
71 | self.LastUse = LastUse | |
72 | delay(self.Cooldown or 2,function() | |
73 | if(self.LastUse == LastUse)then | |
74 | self.CoolingDown = false | |
75 | self.Usable = true | |
76 | end | |
77 | end) | |
78 | end | |
79 | end | |
80 | ||
81 | function Debounces:Get(name) | |
82 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
83 | for i,v in next, Debounces.Debounces do | |
84 | if(i == name)then | |
85 | return v; | |
86 | end | |
87 | end | |
88 | end | |
89 | ||
90 | function Debounces:GetProgressPercentage() | |
91 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
92 | if(self.CoolingDown and not self.Usable)then | |
93 | return math.max( | |
94 | math.floor( | |
95 | ( | |
96 | (time()-self.LastUse)/self.Cooldown or 2 | |
97 | )*100 | |
98 | ) | |
99 | ) | |
100 | else | |
101 | return 100 | |
102 | end | |
103 | end | |
104 | --//==============================\\-- | |
105 | --|| BILLBOARD | |
106 | --//==============================\\ | |
107 | local Player = game.Players.localPlayer | |
108 | function RemoveOutlines(part) | |
109 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
110 | end | |
111 | local Create = LoadLibrary("RbxUtility").Create | |
112 | ||
113 | CFuncs = { | |
114 | ["Part"] = { | |
115 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
116 | local Part = Create("Part"){ | |
117 | Parent = Parent, | |
118 | Reflectance = Reflectance, | |
119 | Transparency = Transparency, | |
120 | CanCollide = false, | |
121 | Locked = true, | |
122 | BrickColor = BrickColor.new(tostring(BColor)), | |
123 | Name = Name, | |
124 | Size = Size, | |
125 | Material = Material, | |
126 | } | |
127 | RemoveOutlines(Part) | |
128 | return Part | |
129 | end; | |
130 | }; | |
131 | ["Sound"] = { | |
132 | Create = function(id, par, vol, pit) | |
133 | coroutine.resume(coroutine.create(function() | |
134 | local S = Create("Sound"){ | |
135 | Volume = vol, | |
136 | Pitch = pit or 1, | |
137 | SoundId = id, | |
138 | Parent = par or workspace, | |
139 | } | |
140 | wait() | |
141 | S:play() | |
142 | game:GetService("Debris"):AddItem(S, 6) | |
143 | end)) | |
144 | end; | |
145 | }; | |
146 | } | |
147 | ||
148 | local toggleTag = true | |
149 | local txt = Instance.new("BillboardGui", Head) | |
150 | txt.Adornee = nil | |
151 | txt.Name = "NameDetect" | |
152 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
153 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
154 | local text = Instance.new("TextLabel", txt) | |
155 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
156 | text.FontSize = "Size8" | |
157 | text.TextScaled = true | |
158 | text.TextTransparency = 0 | |
159 | text.BackgroundTransparency = 1 | |
160 | text.TextTransparency = 0 | |
161 | text.TextStrokeTransparency = 0 | |
162 | text.Font = "Garamond" | |
163 | text.TextStrokeColor3 = Color3.new(0,0,1) | |
164 | text.TextColor3 = Color3.new(0,0,0) | |
165 | - | text.Text = "Lost Bye Bye" |
165 | + | text.Text = "I̞͓͑͊͋͜n̘͕͚̒͐S̳͚͓͊͝͝a͔̫͌͜͝͠N͓͙̝͋̚͠i͓̫̪̐̔͋T͕̝̪̒͐͝Ÿ̪̠̘́͆̚" |
166 | ||
167 | ||
168 | function RecolorTextAndRename(name,col1,col2) | |
169 | text.TextStrokeColor3 = col2 | |
170 | text.TextColor3 = col1 | |
171 | text.Text = name | |
172 | end | |
173 | - | RecolorTextAndRename("Lost Bye Bye",Color3.new(0,0,0),Color3.new(0,0,1)) |
173 | + | RecolorTextAndRename("I̞͓͑͊͋͜n̘͕͚̒͐S̳͚͓͊͝͝a͔̫͌͜͝͠N͓͙̝͋̚͠i͓̫̪̐̔͋T͕̝̪̒͐͝Ÿ̪̠̘́͆̚",Color3.new(0,0,0),Color3.new(0,0,1)) |
174 | ||
175 | function chatfunc(text) | |
176 | local chat = coroutine.wrap(function() | |
177 | if Char:FindFirstChild("TalkingBillBoard")~= nil then | |
178 | Char:FindFirstChild("TalkingBillBoard"):destroy() | |
179 | end | |
180 | local naeeym2 = Instance.new("BillboardGui",Char) | |
181 | naeeym2.Size = UDim2.new(0,100,0,40) | |
182 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
183 | naeeym2.Adornee = Char.Head | |
184 | naeeym2.Name = "TalkingBillBoard" | |
185 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
186 | tecks2.BackgroundTransparency = 1 | |
187 | tecks2.BorderSizePixel = 0 | |
188 | tecks2.Text = "" | |
189 | tecks2.Font = "Antique" | |
190 | tecks2.TextSize = 30 | |
191 | tecks2.TextStrokeTransparency = 0 | |
192 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
193 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
194 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
195 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
196 | tecks3.BackgroundTransparency = 1 | |
197 | tecks3.BorderSizePixel = 0 | |
198 | tecks3.Text = "" | |
199 | tecks3.Font = "Antique" | |
200 | tecks3.TextSize = 30 | |
201 | tecks3.TextStrokeTransparency = 0 | |
202 | tecks3.TextColor3 = BrickColor.new("Hot white").Color | |
203 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
204 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
205 | spawn(function() | |
206 | while wait() do | |
207 | tecks3.TextColor3 = BrickColor.random().Color | |
208 | tecks2.TextColor3 = BrickColor.random().Color | |
209 | end | |
210 | end) | |
211 | for i = 1,string.len(text),1 do | |
212 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=178104975", Char, 1, 1) | |
213 | tecks2.Text = string.sub(text,1,i) | |
214 | tecks3.Text = string.sub(text,1,i) | |
215 | wait(0.01) | |
216 | end | |
217 | wait(2) | |
218 | for i = 1, 50 do | |
219 | Swait() | |
220 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5)) | |
221 | tecks2.Rotation = tecks2.Rotation - .8 | |
222 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
223 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
224 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5)) | |
225 | tecks3.Rotation = tecks2.Rotation + .8 | |
226 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
227 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
228 | end | |
229 | naeeym2:Destroy() | |
230 | end) | |
231 | chat() | |
232 | end | |
233 | function onChatted(msg) | |
234 | chatfunc(msg) | |
235 | end | |
236 | Player.Chatted:connect(onChatted) | |
237 | ||
238 | spawn(function() | |
239 | chatfunc("Bye Bye Remake Created By Nebula_Zorua") | |
240 | wait(3) | |
241 | chatfunc("Lost Bye Bye Remake Edited By SHYIME") | |
242 | wait(3) | |
243 | chatfunc("Bye-bye baby blue..") | |
244 | wait(3) | |
245 | chatfunc("I wish you could see the wicked truth..") | |
246 | end) | |
247 | ||
248 | shirt = Instance.new("Shirt", Char) | |
249 | shirt = "Shirt" | |
250 | pants = Instance.new("Pants", Char) | |
251 | pants = "Pants" | |
252 | Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=969177997" | |
253 | Char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=893974431" | |
254 | --// Instance Creation Functions \\-- | |
255 | ||
256 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
257 | local Sound = IN("Sound") | |
258 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
259 | Sound.Pitch = pitch or 1 | |
260 | Sound.Volume = volume or 1 | |
261 | Sound.Looped = looped or false | |
262 | if(autoPlay)then | |
263 | coroutine.wrap(function() | |
264 | repeat wait() until Sound.IsLoaded | |
265 | Sound.Playing = autoPlay or false | |
266 | end)() | |
267 | end | |
268 | if(not looped and effect)then | |
269 | Sound.Stopped:connect(function() | |
270 | Sound.Volume = 0 | |
271 | Sound:destroy() | |
272 | end) | |
273 | elseif(effect)then | |
274 | warn("Sound can't be looped and a sound effect!") | |
275 | end | |
276 | Sound.Parent =parent or Torso | |
277 | return Sound | |
278 | end | |
279 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
280 | local part = IN("Part") | |
281 | part.Parent = parent or Char | |
282 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
283 | part.Material = material or Enum.Material.SmoothPlastic | |
284 | part.TopSurface,part.BottomSurface=10,10 | |
285 | part.Size = size or V3.N(1,1,1) | |
286 | part.CFrame = cframe or CF.N(0,0,0) | |
287 | part.CanCollide = cancollide or false | |
288 | part.Anchored = anchored or false | |
289 | return part | |
290 | end | |
291 | ||
292 | function Weld(part0,part1,c0,c1) | |
293 | local weld = IN("Weld") | |
294 | weld.Parent = part0 | |
295 | weld.Part0 = part0 | |
296 | weld.Part1 = part1 | |
297 | weld.C0 = c0 or CF.N() | |
298 | weld.C1 = c1 or CF.N() | |
299 | return weld | |
300 | end | |
301 | ||
302 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
303 | local part = IN("SpecialMesh") | |
304 | part.MeshId = meshid or "" | |
305 | part.TextureId = textid or "" | |
306 | part.Scale = scale or V3.N(1,1,1) | |
307 | part.Offset = offset or V3.N(0,0,0) | |
308 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
309 | part.Parent = parent | |
310 | return part | |
311 | end | |
312 | ||
313 | NewInstance = function(instance,parent,properties) | |
314 | local inst = Instance.new(instance) | |
315 | inst.Parent = parent | |
316 | if(properties)then | |
317 | for i,v in next, properties do | |
318 | pcall(function() inst[i] = v end) | |
319 | end | |
320 | end | |
321 | return inst; | |
322 | end | |
323 | ||
324 | function Clone(instance,parent,properties) | |
325 | local inst = instance:Clone() | |
326 | inst.Parent = parent | |
327 | if(properties)then | |
328 | for i,v in next, properties do | |
329 | pcall(function() inst[i] = v end) | |
330 | end | |
331 | end | |
332 | return inst; | |
333 | end | |
334 | ||
335 | function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf) | |
336 | local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()}) | |
337 | local Sound = IN("Sound") | |
338 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
339 | Sound.Pitch = pitch or 1 | |
340 | Sound.Volume = volume or 1 | |
341 | Sound.Looped = looped or false | |
342 | if(autoPlay)then | |
343 | coroutine.wrap(function() | |
344 | repeat wait() until Sound.IsLoaded | |
345 | Sound.Playing = autoPlay or false | |
346 | end)() | |
347 | end | |
348 | if(not looped and effect)then | |
349 | Sound.Stopped:connect(function() | |
350 | Sound.Volume = 0 | |
351 | soundPart:destroy() | |
352 | end) | |
353 | elseif(effect)then | |
354 | warn("Sound can't be looped and a sound effect!") | |
355 | end | |
356 | Sound.Parent = soundPart | |
357 | return Sound | |
358 | end | |
359 | ||
360 | ||
361 | --// Extended ROBLOX tables \\-- | |
362 | local Instance = setmetatable({AllChildren = function(where,callback,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do callback(v) end end, ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) | |
363 | --// Require stuff \\-- | |
364 | function CamShake(who,times,intense,origin) | |
365 | coroutine.wrap(function() | |
366 | if(script:FindFirstChild'CamShake')then | |
367 | local cam = script.CamShake:Clone() | |
368 | cam:WaitForChild'intensity'.Value = intense | |
369 | cam:WaitForChild'times'.Value = times | |
370 | ||
371 | if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end | |
372 | cam.Parent = who | |
373 | wait() | |
374 | cam.Disabled = false | |
375 | elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then | |
376 | local intensity = intense | |
377 | local cam = workspace.CurrentCamera | |
378 | for i = 1, times do | |
379 | local camDistFromOrigin | |
380 | if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then | |
381 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25 | |
382 | elseif(typeof(origin) == 'Vector3')then | |
383 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25 | |
384 | end | |
385 | if(camDistFromOrigin)then | |
386 | intensity = math.min(intense, math.floor(intense/camDistFromOrigin)) | |
387 | end | |
388 | cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4) | |
389 | swait() | |
390 | end | |
391 | end | |
392 | end)() | |
393 | end | |
394 | ||
395 | ||
396 | function CamShakeAll(times,intense,origin) | |
397 | for _,v in next, Plrs:players() do | |
398 | CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin) | |
399 | end | |
400 | end | |
401 | ||
402 | function ServerScript(code) | |
403 | if(script:FindFirstChild'Loadstring')then | |
404 | local load = script.Loadstring:Clone() | |
405 | load:WaitForChild'Sauce'.Value = code | |
406 | load.Disabled = false | |
407 | load.Parent = workspace | |
408 | elseif(NS and typeof(NS) == 'function')then | |
409 | NS(code,workspace) | |
410 | else | |
411 | warn("no serverscripts lol") | |
412 | end | |
413 | end | |
414 | ||
415 | function LocalOnPlayer(who,code) | |
416 | ServerScript([[ | |
417 | wait() | |
418 | script.Parent=nil | |
419 | if(not _G.Http)then _G.Http = game:service'HttpService' end | |
420 | ||
421 | local Http = _G.Http or game:service'HttpService' | |
422 | ||
423 | local source = ]].."[["..code.."]]"..[[ | |
424 | local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php" | |
425 | local asd = Http:PostAsync(link,source) | |
426 | repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID | |
427 | local ID = Http:JSONDecode(asd).Result.Require_ID | |
428 | local vs = require(ID).VORTH_SCRIPT | |
429 | vs.Parent = game:service'Players'.]]..who.Name..[[.Character | |
430 | ]]) | |
431 | end | |
432 | ||
433 | ||
434 | ||
435 | --// Customization \\-- | |
436 | ||
437 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
438 | local Remove_Hats = false | |
439 | local Remove_Clothing = false | |
440 | local PlayerSize = 1 | |
441 | local DamageColor = BrickColor.new'Really red' | |
442 | local MusicID = 947588612 | |
443 | local God = true | |
444 | local Muted = false | |
445 | ||
446 | local WalkSpeed = 16 | |
447 | ||
448 | --// Weapon and GUI creation, and Character Customization \\-- | |
449 | ||
450 | local Halo = IN("Model",Char) | |
451 | Halo.Name = "Halo" | |
452 | local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,}) | |
453 | ||
454 | pcall(game.Destroy,Char:FindFirstChild'ReaperShadowHead') | |
455 | ||
456 | for i = 1, 17.5 do | |
457 | local head = Part(Char,C3.N(0,0,0),Enum.Material.Fabric,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
458 | head.Transparency = 0+(i-1)/17.6 | |
459 | Mesh(head,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25)) | |
460 | Weld(Head,head,CF.N(0,.35-(i-1)/37.5,0)) | |
461 | end | |
462 | ||
463 | for i = 1,320 do | |
464 | local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"Really blue",Material=Enum.Material.Neon,Size=V3.N(0.1,0.1,0.1),Anchored=false,CanCollide=false,Locked=true}) | |
465 | local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-.6)}) | |
466 | end | |
467 | ||
468 | ||
469 | IT = Instance.new | |
470 | VT = Vector3.new | |
471 | RAD = math.rad | |
472 | UD2 = UDim2.new | |
473 | BRICKC = BrickColor.new | |
474 | ANGLES = CFrame.Angles | |
475 | CF1 = CFrame.new | |
476 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
477 | local NEWPART = IT("Part") | |
478 | NEWPART.formFactor = FORMFACTOR | |
479 | NEWPART.Reflectance = REFLECTANCE | |
480 | NEWPART.Transparency = TRANSPARENCY | |
481 | NEWPART.CanCollide = false | |
482 | NEWPART.Locked = true | |
483 | NEWPART.Anchored = true | |
484 | if ANCHOR == false then | |
485 | NEWPART.Anchored = false | |
486 | end | |
487 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
488 | NEWPART.Name = NAME | |
489 | NEWPART.Size = SIZE | |
490 | NEWPART.Position = Torso.Position | |
491 | NEWPART.Material = MATERIAL | |
492 | NEWPART:BreakJoints() | |
493 | NEWPART.Parent = PARENT | |
494 | return NEWPART | |
495 | end | |
496 | ||
497 | function MakeForm(PART,TYPE) | |
498 | if TYPE == "Cyl" then | |
499 | local MSH = IT("CylinderMesh",PART) | |
500 | elseif TYPE == "Ball" then | |
501 | local MSH = IT("SpecialMesh",PART) | |
502 | MSH.MeshType = "Sphere" | |
503 | elseif TYPE == "Wedge" then | |
504 | local MSH = IT("SpecialMesh",PART) | |
505 | MSH.MeshType = "Wedge" | |
506 | end | |
507 | end | |
508 | ||
509 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
510 | local NEWWELD = IT(TYPE) | |
511 | NEWWELD.Part0 = PART0 | |
512 | NEWWELD.Part1 = PART1 | |
513 | NEWWELD.C0 = C0 | |
514 | NEWWELD.C1 = C1 | |
515 | NEWWELD.Parent = PARENT | |
516 | return NEWWELD | |
517 | end | |
518 | ||
519 | local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false) | |
520 | MakeForm(Eye,"Ball") | |
521 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF1(0, 0, 0.4)) | |
522 | local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false) | |
523 | MakeForm(Eye,"Ball") | |
524 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF1(0, 0, 0.4)) | |
525 | local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false) | |
526 | MakeForm(Eye,"Ball") | |
527 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF1(0, 0, 0.4)) | |
528 | local Eye = CreatePart(3, Char, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false) | |
529 | MakeForm(Eye,"Ball") | |
530 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF1(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF1(0, 0, 0.4)) | |
531 | ||
532 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
533 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
534 | ||
535 | ||
536 | for side = 1,2 do | |
537 | local LastPart = Head; | |
538 | ||
539 | for i = 1,34 do | |
540 | local mult = (1-(i/38)) | |
541 | if(LastPart == Head)then | |
542 | local Horn = Part(Char,BrickColor.new'Really blue',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false) | |
543 | Weld(LastPart,Horn,CF.N((side == 1 and .3 or -.3),.3,-.2)*CF.A(0,M.R((side == 1 and -5 or 5)),0)) | |
544 | LastPart = Horn | |
545 | else | |
546 | local Horn = Part(Char,BrickColor.new'Really blue',Enum.Material.SmoothPlastic,V3.N(.25*mult,.15,.25*mult),Head.CFrame,false,false) | |
547 | Weld(LastPart,Horn,CF.N(0,Horn.Size.Y/2,0)*CF.A(M.R(7),M.R(side == 1 and 3 or -3),0)) | |
548 | LastPart = Horn | |
549 | end | |
550 | end | |
551 | end | |
552 | ||
553 | local Music = Sound(Char,MusicID,1,3,true,false,true) | |
554 | Music.Name = 'Music' | |
555 | ||
556 | --// Stop animations \\-- | |
557 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
558 | v:Stop(); | |
559 | end | |
560 | ||
561 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
562 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
563 | ||
564 | --// Joints \\-- | |
565 | ||
566 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
567 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
568 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
569 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
570 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
571 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
572 | local HW = NewInstance('Motor',Char,{Part0=Head,Part1=HaloHandle,C0=CF.N(0,.5,0)}) | |
573 | ||
574 | local LSC0 = LS.C0 | |
575 | local RSC0 = RS.C0 | |
576 | local NKC0 = NK.C0 | |
577 | local LHC0 = LH.C0 | |
578 | local RHC0 = RH.C0 | |
579 | local RJC0 = RJ.C0 | |
580 | ||
581 | --// Artificial HB \\-- | |
582 | ||
583 | local ArtificialHB = IN("BindableEvent", script) | |
584 | ArtificialHB.Name = "Heartbeat" | |
585 | ||
586 | script:WaitForChild("Heartbeat") | |
587 | ||
588 | local tf = 0 | |
589 | local allowframeloss = false | |
590 | local tossremainder = false | |
591 | local lastframe = tick() | |
592 | local frame = 1/Frame_Speed | |
593 | ArtificialHB:Fire() | |
594 | ||
595 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
596 | tf = tf + s | |
597 | if tf >= frame then | |
598 | if allowframeloss then | |
599 | script.Heartbeat:Fire() | |
600 | lastframe = tick() | |
601 | else | |
602 | for i = 1, math.floor(tf / frame) do | |
603 | ArtificialHB:Fire() | |
604 | end | |
605 | lastframe = tick() | |
606 | end | |
607 | if tossremainder then | |
608 | tf = 0 | |
609 | else | |
610 | tf = tf - frame * math.floor(tf / frame) | |
611 | end | |
612 | end | |
613 | end) | |
614 | ||
615 | function swait(num) | |
616 | if num == 0 or num == nil then | |
617 | ArtificialHB.Event:wait() | |
618 | else | |
619 | for i = 0, num do | |
620 | ArtificialHB.Event:wait() | |
621 | end | |
622 | end | |
623 | end | |
624 | ||
625 | ||
626 | --// Effect Function(s) \\-- | |
627 | ||
628 | function Bezier(startpos, pos2, pos3, endpos, t) | |
629 | local A = startpos:lerp(pos2, t) | |
630 | local B = pos2:lerp(pos3, t) | |
631 | local C = pos3:lerp(endpos, t) | |
632 | local lerp1 = A:lerp(B, t) | |
633 | local lerp2 = B:lerp(C, t) | |
634 | local cubic = lerp1:lerp(lerp2, t) | |
635 | return cubic | |
636 | end | |
637 | ||
638 | function SphereFX(duration,color,scale,pos,endScale,increment) | |
639 | return Effect{ | |
640 | Effect='ResizeAndFade', | |
641 | Color=color, | |
642 | Size=scale, | |
643 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
644 | CFrame=pos, | |
645 | FXSettings={ | |
646 | EndSize=endScale, | |
647 | EndIsIncrement=increment | |
648 | } | |
649 | } | |
650 | end | |
651 | ||
652 | function BlastFX(duration,color,scale,pos,endScale,increment) | |
653 | return Effect{ | |
654 | Effect='ResizeAndFade', | |
655 | Color=color, | |
656 | Size=scale, | |
657 | Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'}, | |
658 | CFrame=pos, | |
659 | FXSettings={ | |
660 | EndSize=endScale, | |
661 | EndIsIncrement=increment | |
662 | } | |
663 | } | |
664 | end | |
665 | ||
666 | function BlockFX(duration,color,scale,pos,endScale,increment) | |
667 | return Effect{ | |
668 | Effect='ResizeAndFade', | |
669 | Color=color, | |
670 | Size=scale, | |
671 | CFrame=pos, | |
672 | FXSettings={ | |
673 | EndSize=endScale, | |
674 | EndIsIncrement=increment | |
675 | } | |
676 | } | |
677 | end | |
678 | ||
679 | function ShootBullet(data) | |
680 | --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10} | |
681 | local Size = data.Size or V3.N(2,2,2) | |
682 | local Color = data.Color or BrickColor.new'Crimson' | |
683 | local StudsPerFrame = data.Speed or 10 | |
684 | local Shape = data.Shape or 'Ball' | |
685 | local Frames = data.Frames or 160 | |
686 | local Pos = data.Origin or Torso.CFrame | |
687 | local Direction = data.Direction or Mouse.Hit | |
688 | local Material = data.Material or Enum.Material.Neon | |
689 | local OnHit = data.HitFunction or function(hit,pos) | |
690 | Effect{ | |
691 | Effect='ResizeAndFade', | |
692 | Color=Color, | |
693 | Size=V3.N(10,10,10), | |
694 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
695 | CFrame=CF.N(pos), | |
696 | FXSettings={ | |
697 | EndSize=V3.N(.05,.05,.05), | |
698 | EndIsIncrement=true | |
699 | } | |
700 | } | |
701 | for i = 1, 5 do | |
702 | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) | |
703 | Effect{ | |
704 | Effect='Fade', | |
705 | Frames=65, | |
706 | Size=V3.N(5,5,10), | |
707 | CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos), | |
708 | Mesh = {MeshType=Enum.MeshType.Sphere}, | |
709 | Material=Enum.Material.Neon, | |
710 | Color=Color, | |
711 | MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p, | |
712 | } | |
713 | end | |
714 | end | |
715 | ||
716 | local Bullet = Part(Effects,Color,Material,Size,Pos,true,false) | |
717 | local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N()) | |
718 | if(Shape == 'Ball')then | |
719 | BMesh.MeshType = Enum.MeshType.Sphere | |
720 | elseif(Shape == 'Head')then | |
721 | BMesh.MeshType = Enum.MeshType.Head | |
722 | elseif(Shape == 'Cylinder')then | |
723 | BMesh.MeshType = Enum.MeshType.Cylinder | |
724 | end | |
725 | ||
726 | coroutine.wrap(function() | |
727 | for i = 1, Frames+1 do | |
728 | local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame) | |
729 | if(hit)then | |
730 | OnHit(hit,pos,norm,dist) | |
731 | break; | |
732 | else | |
733 | Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame) | |
734 | end | |
735 | swait() | |
736 | end | |
737 | Bullet:destroy() | |
738 | end)() | |
739 | ||
740 | end | |
741 | ||
742 | ||
743 | function Zap(data) | |
744 | local sCF,eCF = data.StartCFrame,data.EndCFrame | |
745 | assert(sCF,"You need a start CFrame!") | |
746 | assert(eCF,"You need an end CFrame!") | |
747 | local parts = data.PartCount or 15 | |
748 | local zapRot = data.ZapRotation or {-5,5} | |
749 | local startThick = data.StartSize or 3; | |
750 | local endThick = data.EndSize or startThick/2; | |
751 | local color = data.Color or BrickColor.new'Electric blue' | |
752 | local delay = data.Delay or 35 | |
753 | local delayInc = data.DelayInc or 0 | |
754 | local lastLightning; | |
755 | local MagZ = (sCF.p - eCF.p).magnitude | |
756 | local thick = startThick | |
757 | local inc = (startThick/parts)-(endThick/parts) | |
758 | ||
759 | for i = 1, parts do | |
760 | local pos = sCF.p | |
761 | if(lastLightning)then | |
762 | pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p | |
763 | end | |
764 | delay = delay + delayInc | |
765 | local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false) | |
766 | local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot))) | |
767 | if(parts == i)then | |
768 | local MagZ = (pos-eCF.p).magnitude | |
769 | zapPart.Size = V3.N(endThick,endThick,MagZ) | |
770 | zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2) | |
771 | Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}} | |
772 | else | |
773 | zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2) | |
774 | end | |
775 | ||
776 | lastLightning = zapPart | |
777 | Effect{Effect='Fade',Manual=zapPart,Frames=delay} | |
778 | ||
779 | thick=thick-inc | |
780 | ||
781 | end | |
782 | end | |
783 | ||
784 | function Zap2(data) | |
785 | local Color = data.Color or BrickColor.new'Electric blue' | |
786 | local StartPos = data.Start or Torso.Position | |
787 | local EndPos = data.End or Mouse.Hit.p | |
788 | local SegLength = data.SegL or 2 | |
789 | local Thicc = data.Thickness or 0.5 | |
790 | local Fades = data.Fade or 45 | |
791 | local Parent = data.Parent or Effects | |
792 | local MaxD = data.MaxDist or 200 | |
793 | local Branch = data.Branches or false | |
794 | local Material = data.Material or Enum.Material.Neon | |
795 | local Raycasts = data.Raycasts or false | |
796 | local Offset = data.Offset or {0,360} | |
797 | local AddMesh = (data.Mesh == nil and true or data.Mesh) | |
798 | if((StartPos-EndPos).magnitude > MaxD)then | |
799 | EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p | |
800 | end | |
801 | local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude | |
802 | if(Raycasts)then | |
803 | hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD) | |
804 | end | |
805 | local segments = dist/SegLength | |
806 | local model = IN("Model",Parent) | |
807 | model.Name = 'Lightning' | |
808 | local Last; | |
809 | for i = 1, segments do | |
810 | local size = (segments-i)/25 | |
811 | local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false) | |
812 | if(AddMesh)then IN("CylinderMesh",prt) end | |
813 | if(Last and math.floor(segments) == i)then | |
814 | local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude | |
815 | prt.Size = V3.N(Thicc+size,MagZ,Thicc+size) | |
816 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0) | |
817 | elseif(not Last)then | |
818 | prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
819 | else | |
820 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
821 | end | |
822 | Last = prt | |
823 | if(Branch)then | |
824 | local choice = M.RNG(1,7+((segments-i)*2)) | |
825 | if(choice == 1)then | |
826 | local LastB; | |
827 | for i2 = 1,M.RNG(2,5) do | |
828 | local size2 = ((segments-i)/35)/i2 | |
829 | local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false) | |
830 | if(AddMesh)then IN("CylinderMesh",prt) end | |
831 | if(not LastB)then | |
832 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
833 | else | |
834 | prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
835 | end | |
836 | LastB = prt | |
837 | end | |
838 | end | |
839 | end | |
840 | end | |
841 | if(Fades > 0)then | |
842 | coroutine.wrap(function() | |
843 | for i = 1, Fades do | |
844 | for _,v in next, model:children() do | |
845 | if(v:IsA'BasePart')then | |
846 | v.Transparency = (i/Fades) | |
847 | end | |
848 | end | |
849 | swait() | |
850 | end | |
851 | model:destroy() | |
852 | end)() | |
853 | else | |
854 | S.Debris:AddItem(model,.01) | |
855 | end | |
856 | return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model} | |
857 | end | |
858 | ||
859 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
860 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
861 | local tween = S.TweenService:Create(obj, info, props) | |
862 | ||
863 | tween:Play() | |
864 | end | |
865 | ||
866 | function Effect(data) | |
867 | local FX = data.Effect or 'ResizeAndFade' | |
868 | local Parent = data.Parent or Effects | |
869 | local Color = data.Color or C3.N(0,0,0) | |
870 | local Size = data.Size or V3.N(1,1,1) | |
871 | local MoveDir = data.MoveDirection or nil | |
872 | local MeshData = data.Mesh or nil | |
873 | local SndData = data.Sound or nil | |
874 | local Frames = data.Frames or 45 | |
875 | local Manual = data.Manual or nil | |
876 | local Material = data.Material or nil | |
877 | local CFra = data.CFrame or Torso.CFrame | |
878 | local Settings = data.FXSettings or {} | |
879 | local Shape = data.Shape or Enum.PartType.Block | |
880 | local Snd,Prt,Msh; | |
881 | local RotInc = data.RotInc or {0,0,0} | |
882 | if(typeof(RotInc) == 'number')then | |
883 | RotInc = {RotInc,RotInc,RotInc} | |
884 | end | |
885 | coroutine.wrap(function() | |
886 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
887 | Prt = Manual | |
888 | else | |
889 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
890 | Prt.Shape = Shape | |
891 | end | |
892 | if(typeof(MeshData) == 'table')then | |
893 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
894 | elseif(typeof(MeshData) == 'Instance')then | |
895 | Msh = MeshData:Clone() | |
896 | Msh.Parent = Prt | |
897 | elseif(Shape == Enum.PartType.Block)then | |
898 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
899 | end | |
900 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
901 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
902 | end | |
903 | if(Snd)then | |
904 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
905 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
906 | end | |
907 | Size = (Msh and Msh.Scale or Size) | |
908 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
909 | ||
910 | local MoveSpeed = nil; | |
911 | if(MoveDir)then | |
912 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
913 | end | |
914 | if(FX ~= 'Arc')then | |
915 | for Frame = 1, Frames do | |
916 | if(FX == "Fade")then | |
917 | Prt.Transparency = (Frame/Frames) | |
918 | elseif(FX == "Resize")then | |
919 | if(not Settings.EndSize)then | |
920 | Settings.EndSize = V3.N(0,0,0) | |
921 | end | |
922 | if(Settings.EndIsIncrement)then | |
923 | if(Msh)then | |
924 | Msh.Scale = Msh.Scale + Settings.EndSize | |
925 | else | |
926 | Prt.Size = Prt.Size + Settings.EndSize | |
927 | end | |
928 | else | |
929 | if(Msh)then | |
930 | Msh.Scale = Msh.Scale - grow/Frames | |
931 | else | |
932 | Prt.Size = Prt.Size - grow/Frames | |
933 | end | |
934 | end | |
935 | elseif(FX == "ResizeAndFade")then | |
936 | if(not Settings.EndSize)then | |
937 | Settings.EndSize = V3.N(0,0,0) | |
938 | end | |
939 | if(Settings.EndIsIncrement)then | |
940 | if(Msh)then | |
941 | Msh.Scale = Msh.Scale + Settings.EndSize | |
942 | else | |
943 | Prt.Size = Prt.Size + Settings.EndSize | |
944 | end | |
945 | else | |
946 | if(Msh)then | |
947 | Msh.Scale = Msh.Scale - grow/Frames | |
948 | else | |
949 | Prt.Size = Prt.Size - grow/Frames | |
950 | end | |
951 | end | |
952 | Prt.Transparency = (Frame/Frames) | |
953 | end | |
954 | if(Settings.RandomizeCFrame)then | |
955 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
956 | else | |
957 | Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc)) | |
958 | end | |
959 | if(MoveDir and MoveSpeed)then | |
960 | local Orientation = Prt.Orientation | |
961 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
962 | Prt.Orientation = Orientation | |
963 | end | |
964 | swait() | |
965 | end | |
966 | Prt:destroy() | |
967 | else | |
968 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
969 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
970 | if(start and endP)then | |
971 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
972 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
973 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
974 | if(Settings.Home)then | |
975 | endP = Settings.Home.CFrame | |
976 | end | |
977 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
978 | end | |
979 | if(Settings.RemoveOnGoal)then | |
980 | Prt:destroy() | |
981 | end | |
982 | else | |
983 | Prt:destroy() | |
984 | assert(start,"You need a start position!") | |
985 | assert(endP,"You need a start position!") | |
986 | end | |
987 | end | |
988 | end)() | |
989 | return Prt,Msh,Snd | |
990 | end | |
991 | function SoulSteal(whom) | |
992 | local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart') | |
993 | print(torso) | |
994 | if(torso and torso:IsA'BasePart')then | |
995 | local Model = Instance.new("Model",Effects) | |
996 | Model.Name = whom.Name.."'s Soul" | |
997 | whom:BreakJoints() | |
998 | local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) | |
999 | Soul.Name = 'Head' | |
1000 | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0}) | |
1001 | Effect{ | |
1002 | Effect="Arc", | |
1003 | Manual = Soul, | |
1004 | FXSettings={ | |
1005 | Start=torso.CFrame, | |
1006 | Home = Torso, | |
1007 | RemoveOnGoal = true, | |
1008 | } | |
1009 | } | |
1010 | local lastPoint = Soul.CFrame.p | |
1011 | ||
1012 | for i = 0, 1, 0.01 do | |
1013 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
1014 | local mag = (lastPoint - Soul.Position).magnitude | |
1015 | Effect{ | |
1016 | Effect = "Fade", | |
1017 | CFrame = point * CF.N(0, mag/2, 0), | |
1018 | Size = V3.N(.5,mag+.5,.5), | |
1019 | Color = Soul.BrickColor | |
1020 | } | |
1021 | lastPoint = Soul.CFrame.p | |
1022 | swait() | |
1023 | end | |
1024 | for i = 1, 5 do | |
1025 | Effect{ | |
1026 | Effect="Fade", | |
1027 | Color = BrickColor.new'Really red', | |
1028 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
1029 | } | |
1030 | end | |
1031 | end | |
1032 | end | |
1033 | ||
1034 | --// Other Functions \\ -- | |
1035 | ||
1036 | function CastRay(startPos,endPos,range,ignoreList) | |
1037 | local ray = Ray.new(startPos,(endPos-startPos).unit*range) | |
1038 | local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true) | |
1039 | return part,pos,norm,(pos and (startPos-pos).magnitude) | |
1040 | end | |
1041 | ||
1042 | function getRegion(point,range,ignore) | |
1043 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
1044 | end | |
1045 | ||
1046 | function clerp(startCF,endCF,alpha) | |
1047 | return startCF:lerp(endCF, alpha) | |
1048 | end | |
1049 | ||
1050 | function GetTorso(char) | |
1051 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
1052 | end | |
1053 | ||
1054 | ||
1055 | function ShowDamage(Pos, Text, Time, Color) | |
1056 | coroutine.wrap(function() | |
1057 | local Rate = (1 / Frame_Speed) | |
1058 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
1059 | local Text = (Text or "") | |
1060 | local Time = (Time or 2) | |
1061 | local Color = (Color or Color3.new(1, 0, 1)) | |
1062 | local EffectPart = NewInstance("Part",Effects,{ | |
1063 | Material=Enum.Material.SmoothPlastic, | |
1064 | Reflectance = 0, | |
1065 | Transparency = 1, | |
1066 | BrickColor = BrickColor.new(Color), | |
1067 | Name = "Effect", | |
1068 | Size = Vector3.new(0,0,0), | |
1069 | Anchored = true, | |
1070 | CFrame = CF.N(Pos) | |
1071 | }) | |
1072 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
1073 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
1074 | Adornee = EffectPart, | |
1075 | }) | |
1076 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
1077 | BackgroundTransparency = 1, | |
1078 | Size = UDim2.new(1, 0, 1, 0), | |
1079 | Text = Text, | |
1080 | Font = "Bodoni", | |
1081 | TextColor3 = Color, | |
1082 | TextStrokeColor3 = Color3.new(0,0,0), | |
1083 | TextStrokeTransparency=0, | |
1084 | TextScaled = true, | |
1085 | }) | |
1086 | S.Debris:AddItem(EffectPart, (Time)) | |
1087 | EffectPart.Parent = workspace | |
1088 | delay(0, function() | |
1089 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out) | |
1090 | local Frames = (Time / Rate) | |
1091 | for Frame = 1, Frames do | |
1092 | swait() | |
1093 | local Percent = (Frame / Frames) | |
1094 | TextLabel.TextTransparency = Percent | |
1095 | TextLabel.TextStrokeTransparency = Percent | |
1096 | end | |
1097 | if EffectPart and EffectPart.Parent then | |
1098 | EffectPart:Destroy() | |
1099 | end | |
1100 | end) end)() | |
1101 | end | |
1102 | ||
1103 | local WEAPONGUI = IT("ScreenGui", game.Players.LocalPlayer.PlayerGui) | |
1104 | WEAPONGUI.Name = "Weapon GUI" | |
1105 | ||
1106 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1107 | local frame = IT("Frame") | |
1108 | frame.BackgroundTransparency = TRANSPARENCY | |
1109 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1110 | frame.Position = POSITION | |
1111 | frame.Size = SIZE | |
1112 | frame.BackgroundColor3 = COLOR | |
1113 | frame.BorderColor3 = BORDERCOLOR | |
1114 | frame.Name = NAME | |
1115 | frame.Parent = PARENT | |
1116 | return frame | |
1117 | end | |
1118 | ||
1119 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1120 | local label = IT("TextLabel") | |
1121 | label.BackgroundTransparency = 1 | |
1122 | label.Size = UD2(1, 0, 1, 0) | |
1123 | label.Position = UD2(0, 0, 0, 0) | |
1124 | label.TextColor3 = TEXTCOLOR | |
1125 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1126 | label.TextTransparency = TRANSPARENCY | |
1127 | label.FontSize = TEXTFONTSIZE | |
1128 | label.Font = TEXTFONT | |
1129 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1130 | label.TextScaled = false | |
1131 | label.Text = TEXT | |
1132 | label.Name = NAME | |
1133 | label.Parent = PARENT | |
1134 | return label | |
1135 | end | |
1136 | ||
1137 | local SKILLTEXTCOLOR = BRICKC"".Color | |
1138 | local SKILLFONT = "Bodoni" | |
1139 | local SKILLTEXTSIZE = 7 | |
1140 | ||
1141 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 1 Frame") | |
1142 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 2 Frame") | |
1143 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 3 Frame") | |
1144 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 4 Frame") | |
1145 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 5 Frame") | |
1146 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50,0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 6 Frame") | |
1147 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23,0, 0.60, 0), UD2(0.26, 0, 0.07, 0), C33(0,0,0), C33(0, 0, 0), "Skill 7 Frame") | |
1148 | ||
1149 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bye Bye", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
1150 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Head Throw", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
1151 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Q] You Cant Hide", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1152 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[R] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1153 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] SMITE", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
1154 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[E] Brutal Overlord (Q)", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1155 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[C] TAke Heart", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1156 | ||
1157 | function DealDamage(data) | |
1158 | local Who = data.Who; | |
1159 | local MinDam = data.MinimumDamage or 15; | |
1160 | local MaxDam = data.MaximumDamage or 30; | |
1161 | local MaxHP = data.MaxHP or 1e5; | |
1162 | ||
1163 | local DB = data.Debounce or .2; | |
1164 | ||
1165 | local CritData = data.Crit or {} | |
1166 | local CritChance = CritData.Chance or 0; | |
1167 | local CritMultiplier = CritData.Multiplier or 1; | |
1168 | ||
1169 | local DamageEffects = data.DamageFX or {} | |
1170 | local DamageType = DamageEffects.Type or "Normal" | |
1171 | local DeathFunction = DamageEffects.DeathFunction | |
1172 | ||
1173 | assert(Who,"Specify someone to damage!") | |
1174 | ||
1175 | local Humanoid = Who:FindFirstChildOfClass'Humanoid' | |
1176 | local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1) | |
1177 | ||
1178 | local canHit = true | |
1179 | if(Humanoid)then | |
1180 | for _, p in pairs(Hit) do | |
1181 | if p[1] == Humanoid then | |
1182 | if(time() - p[2] <= DB) then | |
1183 | canHit = false | |
1184 | else | |
1185 | Hit[_] = nil | |
1186 | end | |
1187 | end | |
1188 | end | |
1189 | if(canHit)then | |
1190 | table.insert(Hit,{Humanoid,time()}) | |
1191 | local HitTorso = GetTorso(Who) | |
1192 | local player = S.Players:GetPlayerFromCharacter(Who) | |
1193 | if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then | |
1194 | if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then | |
1195 | print'Got kill' | |
1196 | Humanoid.Health = 0; | |
1197 | Who:BreakJoints(); | |
1198 | if(DeathFunction)then DeathFunction(Who,Humanoid) end | |
1199 | else | |
1200 | local c = Instance.new("ObjectValue",Hum) | |
1201 | c.Name = "creator" | |
1202 | c.Value = Plr | |
1203 | S.Debris:AddItem(c,0.35) | |
1204 | if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then | |
1205 | ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color) | |
1206 | end | |
1207 | if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end | |
1208 | Humanoid.Health = Humanoid.Health - DoneDamage | |
1209 | ||
1210 | if(DamageType == 'Knockback' and HitTorso)then | |
1211 | local up = DamageEffects.KnockUp or 25 | |
1212 | local back = DamageEffects.KnockBack or 25 | |
1213 | local origin = DamageEffects.Origin or Root | |
1214 | local decay = DamageEffects.Decay or .5; | |
1215 | ||
1216 | local bfos = Instance.new("BodyVelocity",HitTorso) | |
1217 | bfos.P = 20000 | |
1218 | bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1219 | bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back) | |
1220 | S.Debris:AddItem(bfos,decay) | |
1221 | end | |
1222 | end | |
1223 | end | |
1224 | end | |
1225 | end | |
1226 | end | |
1227 | ||
1228 | function AOEDamage(where,range,options) | |
1229 | local hit = {} | |
1230 | for _,v in next, getRegion(where,range,{Char}) do | |
1231 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then | |
1232 | local callTable = {Who=v.Parent} | |
1233 | hit[v.Parent] = true | |
1234 | for _,v in next, options do callTable[_] = v end | |
1235 | DealDamage(callTable) | |
1236 | end | |
1237 | end | |
1238 | return hit | |
1239 | end | |
1240 | ||
1241 | function AOEHeal(where,range,amount) | |
1242 | local healed = {} | |
1243 | for _,v in next, getRegion(where,range,{Char}) do | |
1244 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
1245 | if(hum and not healed[hum])then | |
1246 | hum.Health = hum.Health + amount | |
1247 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
1248 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
1249 | end | |
1250 | end | |
1251 | end | |
1252 | end | |
1253 | ||
1254 | function ClosestHumanoid(pos,range) | |
1255 | local mag,closest = math.huge; | |
1256 | for _,v in next, getRegion(pos,range or 10,{Char}) do | |
1257 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid') | |
1258 | if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then | |
1259 | mag = (v.CFrame.p-pos).magnitude | |
1260 | closest = hum | |
1261 | end | |
1262 | end | |
1263 | return closest,(closest and GetTorso(closest.Parent) or nil) | |
1264 | end | |
1265 | ||
1266 | local Whitelist = { | |
1267 | [{33104243,"Salvo_Starly"}] = {"Sorry, my Blazey..","OwO?","Ah, I'm sorry.. I thought you were an enemy.","Why did I even think of doing that.."}, | |
1268 | [{19081129,"CKbackup"}] = {"S-sugarie! My bad!", "Ah, I'm sorry, my furry friend.","Why did I even think of doing that.."}, | |
1269 | [{5719877,"Nebula_Zorua"}] = {"My creator!","N-nebula!?","I'm sorry, my creator!","F-father..?","Daddy..?","Sorry, Nebby..!"}, | |
1270 | [{19909695,"makhail07"}] = {"Cretty!~","Yeef me dadi~","Marshdaddy~","Makhail, the edge master","Hello there, friend..~"}, | |
1271 | [{44083134,"Fifkee"}] = {(function() return Plr.UserId == 5719877 and "Uh.. Who're you again?" or "You're Nebula's friend.. Right?" end)(),"Uuhh.. hi?","I nearly killed ya.","Oh. It's you."}, | |
1272 | } | |
1273 | ||
1274 | --// Whitelist System \\-- | |
1275 | ||
1276 | function IsWhitelisted(id,who) | |
1277 | for i,v in next, Whitelist do | |
1278 | if(i[1] == id or i[2] == who)then | |
1279 | return v | |
1280 | end | |
1281 | end | |
1282 | return nil | |
1283 | end | |
1284 | ||
1285 | local r = 255 | |
1286 | local g = 0 | |
1287 | local b = 0 | |
1288 | ||
1289 | local RootPart = Char.HumanoidRootPart | |
1290 | local RootJoint = RootPart.RootJoint | |
1291 | ||
1292 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
1293 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(0,0,0)) | |
1294 | local mesh = IT("SpecialMesh",wave) | |
1295 | mesh.MeshType = "FileMesh" | |
1296 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1297 | mesh.Scale = SIZE | |
1298 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
1299 | wave.CFrame = CFRAME | |
1300 | coroutine.resume(coroutine.create(function(PART) | |
1301 | for i = 1, WAIT do | |
1302 | Swait() | |
1303 | mesh.Scale = mesh.Scale + GROW | |
1304 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1305 | if DOESROT == true then | |
1306 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1307 | end | |
1308 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1309 | if wave.Transparency > 0.99 then | |
1310 | wave:remove() | |
1311 | end | |
1312 | end | |
1313 | end)) | |
1314 | end | |
1315 | ||
1316 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
1317 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(0,0,0)) | |
1318 | local mesh = IT("SpecialMesh",wave) | |
1319 | mesh.MeshType = "FileMesh" | |
1320 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1321 | mesh.Scale = SIZE | |
1322 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
1323 | wave.CFrame = CFRAME | |
1324 | coroutine.resume(coroutine.create(function(PART) | |
1325 | for i = 1, WAIT do | |
1326 | Swait() | |
1327 | mesh.Scale = mesh.Scale + GROW | |
1328 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1329 | if DOESROT == true then | |
1330 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1331 | end | |
1332 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1333 | if wave.Transparency > 0.99 then | |
1334 | wave:remove() | |
1335 | end | |
1336 | end | |
1337 | end)) | |
1338 | end | |
1339 | ||
1340 | function Swait(NUMBER) | |
1341 | if NUMBER == 0 or NUMBER == nil then | |
1342 | ArtificialHB.Event:wait() | |
1343 | else | |
1344 | for i = 1, NUMBER do | |
1345 | ArtificialHB.Event:wait() | |
1346 | end | |
1347 | end | |
1348 | end | |
1349 | ||
1350 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1351 | local NEWSOUND = nil | |
1352 | coroutine.resume(coroutine.create(function() | |
1353 | NEWSOUND = IT("Sound", PARENT) | |
1354 | NEWSOUND.Volume = VOLUME | |
1355 | NEWSOUND.Pitch = PITCH | |
1356 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1357 | Swait() | |
1358 | NEWSOUND:play() | |
1359 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
1360 | end)) | |
1361 | return NEWSOUND | |
1362 | end | |
1363 | ||
1364 | local Rooted = false | |
1365 | Debris = game:GetService("Debris") | |
1366 | MRANDOM = math.random | |
1367 | ||
1368 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1369 | local NEWMESH = IT(MESH) | |
1370 | if MESH == "SpecialMesh" then | |
1371 | NEWMESH.MeshType = MESHTYPE | |
1372 | if MESHID ~= "nil" and MESHID ~= "" then | |
1373 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1374 | end | |
1375 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1376 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1377 | end | |
1378 | end | |
1379 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1380 | NEWMESH.Scale = SCALE | |
1381 | NEWMESH.Parent = PARENT | |
1382 | return NEWMESH | |
1383 | end | |
1384 | ||
1385 | function QuaternionFromCFrame(cf) | |
1386 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1387 | local trace = m00 + m11 + m22 | |
1388 | if trace > 0 then | |
1389 | local s = math.sqrt(1 + trace) | |
1390 | local recip = 0.5 / s | |
1391 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1392 | else | |
1393 | local i = 0 | |
1394 | if m11 > m00 then | |
1395 | i = 1 | |
1396 | end | |
1397 | if m22 > (i == 0 and m00 or m11) then | |
1398 | i = 2 | |
1399 | end | |
1400 | if i == 0 then | |
1401 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1402 | local recip = 0.5 / s | |
1403 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1404 | elseif i == 1 then | |
1405 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1406 | local recip = 0.5 / s | |
1407 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1408 | elseif i == 2 then | |
1409 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1410 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1411 | end | |
1412 | end | |
1413 | end | |
1414 | ||
1415 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1416 | local xs, ys, zs = x + x, y + y, z + z | |
1417 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1418 | local xx = x * xs | |
1419 | local xy = x * ys | |
1420 | local xz = x * zs | |
1421 | local yy = y * ys | |
1422 | local yz = y * zs | |
1423 | local zz = z * zs | |
1424 | 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)) | |
1425 | end | |
1426 | ||
1427 | ACOS = math.acos | |
1428 | SIN = math.sin | |
1429 | COS = math.cos | |
1430 | ||
1431 | function QuaternionSlerp(a, b, t) | |
1432 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1433 | local startInterp, finishInterp; | |
1434 | if cosTheta >= 0.0001 then | |
1435 | if (1 - cosTheta) > 0.0001 then | |
1436 | local theta = ACOS(cosTheta) | |
1437 | local invSinTheta = 1 / SIN(theta) | |
1438 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1439 | finishInterp = SIN(t * theta) * invSinTheta | |
1440 | else | |
1441 | startInterp = 1 - t | |
1442 | finishInterp = t | |
1443 | end | |
1444 | else | |
1445 | if (1 + cosTheta) > 0.0001 then | |
1446 | local theta = ACOS(-cosTheta) | |
1447 | local invSinTheta = 1 / SIN(theta) | |
1448 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1449 | finishInterp = SIN(t * theta) * invSinTheta | |
1450 | else | |
1451 | startInterp = t - 1 | |
1452 | finishInterp = t | |
1453 | end | |
1454 | end | |
1455 | 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 | |
1456 | end | |
1457 | ||
1458 | function Clerp(a, b, t) | |
1459 | local qa = {QuaternionFromCFrame(a)} | |
1460 | local qb = {QuaternionFromCFrame(b)} | |
1461 | local ax, ay, az = a.x, a.y, a.z | |
1462 | local bx, by, bz = b.x, b.y, b.z | |
1463 | local _t = 1 - t | |
1464 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1465 | end | |
1466 | ||
1467 | Character = Player.Character | |
1468 | Torso = Character["Torso"] | |
1469 | Head = Character["Head"] | |
1470 | RightArm = Character["Right Arm"] | |
1471 | LeftArm = Character["Left Arm"] | |
1472 | RightLeg = Character["Right Leg"] | |
1473 | LeftLeg = Character["Left Leg"] | |
1474 | RootJoint = RootPart["RootJoint"] | |
1475 | Neck = Torso["Neck"] | |
1476 | RightShoulder = Torso["Right Shoulder"] | |
1477 | LeftShoulder = Torso["Left Shoulder"] | |
1478 | RightHip = Torso["Right Hip"] | |
1479 | LeftHip = Torso["Left Hip"] | |
1480 | ||
1481 | local function weldBetween(a, b) | |
1482 | local weldd = Instance.new("ManualWeld") | |
1483 | weldd.Part0 = a | |
1484 | weldd.Part1 = b | |
1485 | weldd.C0 = CFrame.new() | |
1486 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1487 | weldd.Parent = a | |
1488 | return weldd | |
1489 | end | |
1490 | ||
1491 | Animation_Speed = 3 | |
1492 | local ROOTC0 = CF1(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1493 | local NECKC0 = CF1(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1494 | local RIGHTSHOULDERC0 = CF1(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
1495 | local LEFTSHOULDERC0 = CF1(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
1496 | local SINE = 0 | |
1497 | ||
1498 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1499 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Gold"), "Effect", VT(1,1,1), true) | |
1500 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
1501 | wave.CFrame = CFRAME | |
1502 | coroutine.resume(coroutine.create(function(PART) | |
1503 | for i = 1, WAIT do | |
1504 | Swait() | |
1505 | mesh.Scale = mesh.Scale * GROW | |
1506 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1507 | if wave.Transparency > 0.99 then | |
1508 | wave:remove() | |
1509 | end | |
1510 | end | |
1511 | end)) | |
1512 | end | |
1513 | ||
1514 | ||
1515 | function MaxSpeed() | |
1516 | local ORIGIN = RootPart.Position | |
1517 | CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1518 | CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1519 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Sound", VT(0,0,0)) | |
1520 | SOUNDPART.CFrame = RootPart.CFrame | |
1521 | Debris:AddItem(SOUNDPART,5) | |
1522 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
1523 | RootPart.CFrame = CF1(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
1524 | Swait() | |
1525 | CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1526 | CreateWave2(VT(3,1,3),65,CF1(RootPart.Position)*CF1(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1527 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "Sound", VT(0,0,0)) | |
1528 | SOUNDPART.CFrame = RootPart.CFrame | |
1529 | Debris:AddItem(SOUNDPART,5) | |
1530 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
1531 | if MRANDOM(1,8) == 1 then | |
1532 | Attack = true | |
1533 | Rooted = true | |
1534 | local FRUITSTABLE = { | |
1535 | {MeshId = "16190555", TextureId = "16190577", Color = "Gold"}, | |
1536 | {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"}, | |
1537 | {MeshId = "24394186", TextureId = "24394178", Color = "Brown"} | |
1538 | } | |
1539 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
1540 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
1541 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) | |
1542 | FRUITMODEL.CFrame = RightArm.CFrame * CF1(0,-1.5,0) | |
1543 | weldBetween(RightArm,FRUITMODEL) | |
1544 | for i=0, 4, 0.1 / Animation_Speed do | |
1545 | Swait() | |
1546 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF1(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1547 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1548 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1549 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF1(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1550 | RightHip.C0 = Clerp(RightHip.C0, CF1(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1551 | LeftHip.C0 = Clerp(LeftHip.C0, CF1(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1552 | end | |
1553 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) | |
1554 | FRUITMODEL:remove() | |
1555 | for i = 1, 15 do | |
1556 | Slice(0.1,15,RightArm.CFrame*CF1(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
1557 | end | |
1558 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1559 | Swait() | |
1560 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF1(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1561 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1562 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1563 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF1(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1564 | RightHip.C0 = Clerp(RightHip.C0, CF1(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1565 | LeftHip.C0 = Clerp(LeftHip.C0, CF1(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1566 | end | |
1567 | Attack = false | |
1568 | Rooted = false | |
1569 | end | |
1570 | end | |
1571 | ||
1572 | function Taunt() | |
1573 | Attack = true | |
1574 | Rooted = true | |
1575 | local SOUND = CreateSound("134978657", Head, 10, 1) | |
1576 | Swait() | |
1577 | repeat | |
1578 | Swait() | |
1579 | 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) | |
1580 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1581 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1582 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1583 | 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) | |
1584 | 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) | |
1585 | until SOUND.Playing == false | |
1586 | Attack = false | |
1587 | Rooted = false | |
1588 | end | |
1589 | ||
1590 | local Target2Id = "rbxassetid://133820006" | |
1591 | local Target = NewInstance("BillboardGui",Char,{Name='Target',Adornee=nil,LightInfluence=0,AlwaysOnTop=true,Size = UDim2.new(10,0,10,0)}) | |
1592 | local TargetImg1 = NewInstance("ImageLabel",Target,{BackgroundTransparency=1,Position = UDim2.new(.5,0,.5,0),Size = UDim2.new(1,0,1,0),AnchorPoint = Vector2.new(.5,.5),Image=Target1Id,ImageColor = C3.N(0,0,0),ImageTransparency=1}) | |
1593 | local TargetImg2 = TargetImg1:Clone(); | |
1594 | TargetImg2.Size = UDim2.new(1.4,0,1.4,0); | |
1595 | TargetImg2.Image = Target2Id | |
1596 | TargetImg2.Parent = Target | |
1597 | TargetImg2.ImageColor3 = C3.RGB(165,0,0) | |
1598 | function You_Cant_Hide() | |
1599 | local target = Mouse.Target | |
1600 | if(target and target.Parent and not Char:IsAncestorOf(target) and target.Parent:FindFirstChildOfClass'Humanoid')then | |
1601 | if(Victim ~= target.Parent)then | |
1602 | Victim = target.Parent; | |
1603 | Target.Enabled = true | |
1604 | Target.Adornee = GetTorso(Victim) | |
1605 | TargetImg1.ImageTransparency = 1 | |
1606 | TargetImg2.ImageTransparency = 1 | |
1607 | TargetImg1.Size = UDim2.new(6,0,6,0) | |
1608 | TargetImg2.Size = UDim2.new(6.4,0,6.4,0) | |
1609 | Tween(TargetImg1,{ImageTransparency=0,Size=UDim2.new(1,0,1,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out) | |
1610 | Tween(TargetImg2,{ImageTransparency=0,Size=UDim2.new(1.4,0,1.4,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out) | |
1611 | end | |
1612 | end | |
1613 | end | |
1614 | local BloodPuddles = {} | |
1615 | local BloodColor = BrickColor.new'Maroon' | |
1616 | local BloodMaterial = Enum.Material.Glass | |
1617 | local blood = NewInstance("ParticleEmitter",nil,{ | |
1618 | Color = ColorSequence.new(C3.N(.8,0,0)), | |
1619 | LightEmission=.1, | |
1620 | LightInfluence=1, | |
1621 | ZOffset=.9, | |
1622 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2,0),NumberSequenceKeypoint.new(1,3,0)}, | |
1623 | Texture="rbxassetid://284205403", | |
1624 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
1625 | Acceleration = V3.N(0,-15,0), | |
1626 | Lifetime = NumberRange.new(1,2), | |
1627 | Rate=50, | |
1628 | Speed = NumberRange.new(5,15), | |
1629 | SpreadAngle = Vector2.new(15,15), | |
1630 | Enabled = false, | |
1631 | EmissionDirection = 'Back', | |
1632 | }) | |
1633 | ||
1634 | function Blood(prt,amount) | |
1635 | local part = Instance.new("Part",Effects) | |
1636 | part.Transparency = 1 | |
1637 | part.Size = prt.Size | |
1638 | part.Anchored = true | |
1639 | part.CanCollide = false | |
1640 | part.CFrame = CF.N(prt.Position,Torso.Position) | |
1641 | S.Debris:AddItem(part,5) | |
1642 | local prtcl = blood:Clone() | |
1643 | prtcl.Parent = part | |
1644 | prtcl:Emit(amount) | |
1645 | end | |
1646 | ||
1647 | function BloodDrop(pos,dir,maxsize) | |
1648 | local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false}) | |
1649 | owo.CFrame=CF.N(pos,dir) | |
1650 | local bv = Instance.new("BodyVelocity",owo) | |
1651 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1652 | bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15 | |
1653 | bv.Name = "MOVE" | |
1654 | game:service'Debris':AddItem(bv,0.05) | |
1655 | local touch | |
1656 | touch = owo.Touched:connect(function(hit) | |
1657 | if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then | |
1658 | touch:disconnect() | |
1659 | BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo) | |
1660 | owo:destroy() | |
1661 | end | |
1662 | end) | |
1663 | end | |
1664 | function BloodPuddle(position,range,maxSize,where) | |
1665 | local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new( | |
1666 | position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range | |
1667 | ),{where,Char},false,true) | |
1668 | if(hit)then | |
1669 | if(BloodPuddles[hit])then | |
1670 | BloodPuddles[hit].Frame = 0 | |
1671 | if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < BloodPuddles[hit].MaxSize)then | |
1672 | hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1) | |
1673 | end | |
1674 | else | |
1675 | local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'}) | |
1676 | local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'}) | |
1677 | BloodPuddles[Puddle] = {MaxSize=maxSize or 7,Frame=0} | |
1678 | end | |
1679 | end | |
1680 | end | |
1681 | ||
1682 | function Chat(text) | |
1683 | coroutine.wrap(function() | |
1684 | if Char:FindFirstChild("TalkingBillBoard")~= nil then | |
1685 | Char:FindFirstChild("TalkingBillBoard"):destroy() | |
1686 | end | |
1687 | local oText = text; | |
1688 | text = "" | |
1689 | for i = 1, #oText do | |
1690 | if(i%2 == 1)then | |
1691 | text = text..oText:sub(i,i):upper() | |
1692 | else | |
1693 | text = text..oText:sub(i,i):lower() | |
1694 | end | |
1695 | end | |
1696 | local Bill = Instance.new("BillboardGui",Char) | |
1697 | Bill.Size = UDim2.new(0,100,0,40) | |
1698 | Bill.StudsOffset = Vector3.new(0,3,0) | |
1699 | Bill.Adornee = Char.Head | |
1700 | Bill.Name = "TalkingBillBoard" | |
1701 | local Hehe = Instance.new("TextLabel",Bill) | |
1702 | Hehe.BackgroundTransparency = 1 | |
1703 | Hehe.BorderSizePixel = 0 | |
1704 | Hehe.Text = "" | |
1705 | Hehe.Font = "Bodoni" | |
1706 | Hehe.TextSize = 40 | |
1707 | Hehe.TextStrokeTransparency = 0 | |
1708 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1709 | coroutine.resume(coroutine.create(function() | |
1710 | while Hehe ~= nil do | |
1711 | swait() | |
1712 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1713 | Hehe.Rotation = M.RNG(-M.RNG(5,15),M.RNG(5,15)) | |
1714 | local aa = math.random(0, 255)/255 | |
1715 | local bb = math.random(0, 255)/255 | |
1716 | Hehe.TextColor3 = C3.N(aa,aa,aa) | |
1717 | Hehe.TextStrokeColor3 = C3.N(bb,bb,bb) | |
1718 | end | |
1719 | end)) | |
1720 | for i = 1,string.len(text),1 do | |
1721 | swait(5) | |
1722 | Hehe.Text = string.sub(text,1,i) | |
1723 | end | |
1724 | swait(90) | |
1725 | for i = 0, 1, .025 do | |
1726 | swait() | |
1727 | Hehe.TextStrokeTransparency = i | |
1728 | Hehe.TextTransparency = i | |
1729 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1730 | end | |
1731 | Bill:Destroy() | |
1732 | end)() | |
1733 | end | |
1734 | ||
1735 | function RandomChoice(table) | |
1736 | return table[M.RNG(1,#table)] | |
1737 | end | |
1738 | ||
1739 | function Ragdoll(who,half,glitching) | |
1740 | who:breakJoints() | |
1741 | pcall(function() | |
1742 | who.HumanoidRootPart:destroy() | |
1743 | end) | |
1744 | local who = who | |
1745 | local hhh = who:FindFirstChildOfClass'Humanoid' | |
1746 | local t = GetTorso(who) | |
1747 | if(hhh.RigType == Enum.HumanoidRigType.R6)then | |
1748 | local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head' | |
1749 | local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()}) | |
1750 | local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
1751 | local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()}) | |
1752 | local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
1753 | local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1754 | local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()}) | |
1755 | local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
1756 | ||
1757 | local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2}) | |
1758 | local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2}) | |
1759 | local HC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=45,Attachment0=NJ,Attachment1=NJ2}) | |
1760 | ||
1761 | local CollideRA = NewInstance('Part',who,{Size=RArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1762 | local CollideLA = NewInstance('Part',who,{Size=LArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1763 | local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1764 | NewInstance('Weld',CollideRA,{Part0=RA,Part1=CollideRA}) | |
1765 | NewInstance('Weld',CollideLA,{Part0=LA,Part1=CollideLA}) | |
1766 | NewInstance('Weld',CollideHD,{Part0=HD,Part1=CollideHD}) | |
1767 | ||
1768 | if(not half)then | |
1769 | local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()}) | |
1770 | local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1771 | local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()}) | |
1772 | local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1773 | local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2}) | |
1774 | local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2}) | |
1775 | end | |
1776 | if(glitching)then | |
1777 | swait(120) | |
1778 | local pow = 75 | |
1779 | local FT,RA,LA,RL,LL = Instance.new("SpecialMesh",t),Instance.new("SpecialMesh",RA),Instance.new("SpecialMesh",LA),Instance.new("SpecialMesh",RL),Instance.new("SpecialMesh",LL) | |
1780 | FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
1781 | RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
1782 | LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
1783 | RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
1784 | LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
1785 | for i = 0, 1, .1 do | |
1786 | for _,v in next, who:GetDescendants() do | |
1787 | if(v:IsA'DataModelMesh')then | |
1788 | v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100) | |
1789 | elseif(v:IsA'BasePart')then | |
1790 | v.Transparency = i | |
1791 | end | |
1792 | end | |
1793 | swait() | |
1794 | end | |
1795 | who:destroy() | |
1796 | end | |
1797 | else | |
1798 | if(glitching)then | |
1799 | swait(120) | |
1800 | for i = 0, 1, .1 do | |
1801 | for _,v in next, hhh:children() do | |
1802 | if(v:IsA'NumberValue')then | |
1803 | v.Value = M.RNG(0,10) | |
1804 | end | |
1805 | end | |
1806 | local pow = 75 | |
1807 | for _,v in next, who:GetDescendants() do | |
1808 | if(v:IsA'DataModelMesh')then | |
1809 | v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100) | |
1810 | elseif(v:IsA'BasePart')then | |
1811 | v.Transparency = i | |
1812 | end | |
1813 | end | |
1814 | swait() | |
1815 | end | |
1816 | who:destroy() | |
1817 | end | |
1818 | -- TODO: R15 Ragdoll | |
1819 | end | |
1820 | end | |
1821 | ||
1822 | function Brutal_Overlord() | |
1823 | if(Victim)then | |
1824 | Attack = true | |
1825 | NeutralAnims = false | |
1826 | local hum = Victim:FindFirstChildOfClass'Humanoid' | |
1827 | if(hum)then | |
1828 | Hum.JumpPower = 0 | |
1829 | hum.WalkSpeed = 0 | |
1830 | hum.JumpPower = 0 | |
1831 | hum.AutoRotate = false | |
1832 | local tor,root = GetTorso(Victim),Victim:FindFirstChild'HumanoidRootPart' | |
1833 | if(tor)then | |
1834 | Root.CFrame = tor.CFrame * CF.N(0,0,2) | |
1835 | local V = Victim | |
1836 | V.Parent = Char | |
1837 | for i = 0, 2, 0.1 do | |
1838 | swait() | |
1839 | local Alpha = .3 | |
1840 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00184797007, 0.00629393011, 0.00175395911, 0.916352093, -0.00251661055, -0.400364727, 0, 0.99998033, -0.00628567068, 0.400372595, 0.0057598874, 0.916333973),Alpha) | |
1841 | LH.C0 = clerp(LH.C0,CFrame.new(-0.565588713, -0.991164684, -0.032800708, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
1842 | RH.C0 = clerp(RH.C0,CFrame.new(0.562351584, -0.990811467, 0.0429569148, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
1843 | LS.C0 = clerp(LS.C0,CFrame.new(-1.479936, 0.442725629, -0.241928637, 0.997844577, 0.0469278991, -0.0458690971, -0.0638397709, 0.532425106, -0.844066501, -0.015188396, 0.845175505, 0.534273386),Alpha) | |
1844 | RS.C0 = clerp(RS.C0,CFrame.new(1.32794857, 0.365926802, 0.17400004, 0.584510565, -0.811339498, 0.00870320201, 0.447906405, 0.331590444, 0.830317855, -0.676555634, -0.481431335, 0.557222128),Alpha) | |
1845 | NK.C0 = clerp(NK.C0,CFrame.new(-0.00438193232, 1.49895084, -0.014841184, 0.916352212, -0.0230187047, 0.399710178, -0.00251696701, 0.997995079, 0.0632432774, -0.400364548, -0.0589591675, 0.914456904),Alpha) | |
1846 | end | |
1847 | for i = 0, 1, 0.1 do | |
1848 | swait() | |
1849 | local Alpha = .2 | |
1850 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha) | |
1851 | LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
1852 | RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
1853 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha) | |
1854 | RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha) | |
1855 | NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha) | |
1856 | end | |
1857 | if(root)then root.Parent = nil end | |
1858 | local gWeld = NewInstance("Weld",Char,{Part0=RArm,Part1=tor,C0=CF.N(0,-1.15,0)*CF.A(M.R(90),0,M.R(180))}) | |
1859 | swait(60) | |
1860 | local plr = S.Players:GetPlayerFromCharacter(V) | |
1861 | local Dialogues = IsWhitelisted((plr and plr.UserId or 0),V.Name) | |
1862 | for i = 0, 1, 0.1 do | |
1863 | swait() | |
1864 | local Alpha = .3 | |
1865 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
1866 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1867 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1868 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
1869 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
1870 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
1871 | end | |
1872 | gWeld:destroy() | |
1873 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=tor,C0=CF.N(0,2.35,0)*CF.A(M.R(90),0,M.R(90))}) | |
1874 | for i = 0, 6, 0.1 do | |
1875 | swait() | |
1876 | local Alpha = .3 | |
1877 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
1878 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1879 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1880 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
1881 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
1882 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
1883 | end | |
1884 | if(not Dialogues)then | |
1885 | Blood(tor,250) | |
1886 | for i = 1, 25 do | |
1887 | BloodDrop(tor.Position,(tor.CFrame * CF.N(0,0,25)).p + V3.N(M.RNG(-5,5),M.RNG(-5,5),M.RNG(-5,5)),15) | |
1888 | end | |
1889 | Ragdoll(V,true) | |
1890 | if(V:FindFirstChild'Head')then | |
1891 | ShowDamage((V.Head.CFrame * CF.N(0, 0, (V.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "INSTANT", 1.5, C3.N(1,0,0)) | |
1892 | end | |
1893 | coroutine.wrap(function() | |
1894 | repeat swait() hum.Health = hum.Health - .5 until not hum or not hum.Parent or not hum.Parent.Parent or hum.Health == 0 | |
1895 | end)() | |
1896 | gWeld:destroy() | |
1897 | local s = Sound(tor,429400881,1,1,false,false,false) | |
1898 | s:Play() | |
1899 | s.Ended:connect(function() s:Destroy() end) | |
1900 | for i = 0, 1, 0.1 do | |
1901 | swait() | |
1902 | local Alpha = .3 | |
1903 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
1904 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1905 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1906 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022),Alpha) | |
1907 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022),Alpha) | |
1908 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
1909 | end | |
1910 | for i = 0, 4, 0.1 do | |
1911 | swait() | |
1912 | local Alpha = .3 | |
1913 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1914 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1915 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1916 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1917 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1918 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
1919 | end | |
1920 | V.Parent = workspace | |
1921 | else | |
1922 | V.Parent = workspace | |
1923 | hum.WalkSpeed = 16 | |
1924 | hum.JumpPower = 50 | |
1925 | hum.AutoRotate = true | |
1926 | if(root)then root.Parent = V end | |
1927 | Chat(RandomChoice(Dialogues)) | |
1928 | gWeld:destroy() | |
1929 | end | |
1930 | end | |
1931 | end | |
1932 | Attack = false | |
1933 | NeutralAnims = true | |
1934 | Hum.JumpPower = 50 | |
1935 | end | |
1936 | end | |
1937 | ||
1938 | local OFFSET = 0 | |
1939 | local TAUNT = false | |
1940 | ||
1941 | local EyeSizes={ | |
1942 | NumberSequenceKeypoint.new(0,1,0), | |
1943 | NumberSequenceKeypoint.new(1,0,0) | |
1944 | } | |
1945 | local EyeTrans={ | |
1946 | NumberSequenceKeypoint.new(0,0.8,0), | |
1947 | NumberSequenceKeypoint.new(1,1,0) | |
1948 | } | |
1949 | ||
1950 | local PE=Instance.new("ParticleEmitter",nil) | |
1951 | PE.LightEmission=.8 | |
1952 | PE.Color = ColorSequence.new(BRICKC("Really blue").Color) | |
1953 | PE.Size=NumberSequence.new(EyeSizes) | |
1954 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1955 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
1956 | PE.Rotation=NumberRange.new(0,360) | |
1957 | PE.Rate=999 | |
1958 | PE.VelocitySpread = 10000 | |
1959 | PE.Acceleration = Vector3.new(0,0,0) | |
1960 | PE.Drag = 5 | |
1961 | PE.Speed = NumberRange.new(0,0,0) | |
1962 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
1963 | PE.ZOffset = -0 | |
1964 | PE.Name = "PE" | |
1965 | PE.Enabled = false | |
1966 | ||
1967 | function particles(art) | |
1968 | local PARTICLES = PE:Clone() | |
1969 | PARTICLES.Parent = art | |
1970 | end | |
1971 | ||
1972 | ||
1973 | function KillChildren(v) | |
1974 | v:BreakJoints() | |
1975 | for _, c in pairs(v:GetChildren()) do | |
1976 | if c:IsA("BasePart") then | |
1977 | if c.Transparency < 1 then | |
1978 | if c:FindFirstChildOfClass("Decal") then | |
1979 | c:FindFirstChildOfClass("Decal"):remove() | |
1980 | end | |
1981 | particles(c) | |
1982 | c.PE.Enabled = true | |
1983 | c.Parent = Effects | |
1984 | c.CanCollide = false | |
1985 | c.Material = "Neon" | |
1986 | c.Color = Color3.new(0,0,1) | |
1987 | c.Transparency = 1 | |
1988 | local grav = Instance.new("BodyPosition",c) | |
1989 | grav.P = 20000 | |
1990 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1991 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1992 | grav.Name = "GravityForce" | |
1993 | coroutine.resume(coroutine.create(function() | |
1994 | for i = 1, 20 do | |
1995 | Swait() | |
1996 | c.Transparency = c.Transparency + 1/20 | |
1997 | end | |
1998 | c.PE.Enabled = false | |
1999 | Debris:AddItem(c,2) | |
2000 | end)) | |
2001 | end | |
2002 | end | |
2003 | end | |
2004 | end | |
2005 | ||
2006 | function WACKYEFFECT(Table) | |
2007 | local TYPE = (Table.EffectType or "Sphere") | |
2008 | local SIZE = (Table.Size or VT(1,1,1)) | |
2009 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
2010 | local TRANSPARENCY = (Table.Transparency or 0) | |
2011 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
2012 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
2013 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
2014 | local ROTATION1 = (Table.RotationX or 0) | |
2015 | local ROTATION2 = (Table.RotationY or 0) | |
2016 | local ROTATION3 = (Table.RotationZ or 0) | |
2017 | local MATERIAL = (Table.Material or "Neon") | |
2018 | local COLOR = (Table.Color or C3(1,1,1)) | |
2019 | local TIME = (Table.Time or 45) | |
2020 | local SOUNDID = (Table.SoundID or nil) | |
2021 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
2022 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
2023 | coroutine.resume(coroutine.create(function() | |
2024 | local PLAYSSOUND = false | |
2025 | local SOUND = nil | |
2026 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
2027 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
2028 | PLAYSSOUND = true | |
2029 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
2030 | end | |
2031 | EFFECT.Color = COLOR | |
2032 | local MSH = nil | |
2033 | if TYPE == "Sphere" then | |
2034 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
2035 | elseif TYPE == "Block" then | |
2036 | MSH = IT("BlockMesh",EFFECT) | |
2037 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
2038 | elseif TYPE == "Wave" then | |
2039 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
2040 | elseif TYPE == "Ring" then | |
2041 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
2042 | elseif TYPE == "Slash" then | |
2043 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
2044 | elseif TYPE == "Round Slash" then | |
2045 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
2046 | elseif TYPE == "Swirl" then | |
2047 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
2048 | elseif TYPE == "Skull" then | |
2049 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
2050 | elseif TYPE == "Crystal" then | |
2051 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
2052 | end | |
2053 | if MSH ~= nil then | |
2054 | local MOVESPEED = nil | |
2055 | if MOVEDIRECTION ~= nil then | |
2056 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
2057 | end | |
2058 | local GROWTH = SIZE - ENDSIZE | |
2059 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
2060 | if TYPE == "Block" then | |
2061 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2062 | else | |
2063 | EFFECT.CFrame = CFRAME | |
2064 | end | |
2065 | for LOOP = 1, TIME+1 do | |
2066 | Swait() | |
2067 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
2068 | if TYPE == "Wave" then | |
2069 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
2070 | end | |
2071 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
2072 | if TYPE == "Block" then | |
2073 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2074 | else | |
2075 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
2076 | end | |
2077 | if MOVEDIRECTION ~= nil then | |
2078 | local ORI = EFFECT.Orientation | |
2079 | EFFECT.CFrame = CF1(EFFECT.Position,MOVEDIRECTION)*CF1(0,0,-MOVESPEED) | |
2080 | EFFECT.Orientation = ORI | |
2081 | end | |
2082 | end | |
2083 | if PLAYSSOUND == false then | |
2084 | EFFECT:remove() | |
2085 | else | |
2086 | SOUND.Stopped:Connect(function() | |
2087 | EFFECT:remove() | |
2088 | end) | |
2089 | end | |
2090 | else | |
2091 | if PLAYSSOUND == false then | |
2092 | EFFECT:remove() | |
2093 | else | |
2094 | repeat Swait() until SOUND.Playing == false | |
2095 | EFFECT:remove() | |
2096 | end | |
2097 | end | |
2098 | end)) | |
2099 | end | |
2100 | ||
2101 | function Click() | |
2102 | Attack = true | |
2103 | Rooted = false | |
2104 | local HIT = nil | |
2105 | OFFSET = -45 | |
2106 | for i=0, 1, 0.1 / Animation_Speed do | |
2107 | Swait() | |
2108 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
2109 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2110 | end | |
2111 | OFFSET = 45 | |
2112 | local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false) | |
2113 | PUNCH.CanCollide = true | |
2114 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0)) | |
2115 | TAUNT = true | |
2116 | local TOUCH = PUNCH.Touched:Connect(function(hit) | |
2117 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
2118 | HIT = hit.Parent | |
2119 | end | |
2120 | end) | |
2121 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2122 | Swait() | |
2123 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) | |
2124 | if HIT ~= nil then | |
2125 | break | |
2126 | end | |
2127 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
2128 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2129 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2130 | end | |
2131 | PUNCH:remove() | |
2132 | TOUCH:disconnect() | |
2133 | if HIT ~= nil then | |
2134 | for _, c in pairs(HIT:GetChildren()) do | |
2135 | if c:IsA("BasePart") then | |
2136 | c.Anchored = true | |
2137 | end | |
2138 | end | |
2139 | Rooted = true | |
2140 | CreateSound(649634100, Torso, 10, 0.8) | |
2141 | CreateSound(1368573150, RightArm, 3, 1.5) | |
2142 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2143 | Swait() | |
2144 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2145 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed) | |
2146 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2147 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2148 | end | |
2149 | for _, c in pairs(HIT:GetChildren()) do | |
2150 | if c:IsA("BasePart") then | |
2151 | c.Anchored = false | |
2152 | end | |
2153 | end | |
2154 | KillChildren(HIT) | |
2155 | end | |
2156 | OFFSET = 0 | |
2157 | Attack = false | |
2158 | Rooted = false | |
2159 | TAUNT = false | |
2160 | end | |
2161 | ||
2162 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
2163 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
2164 | end | |
2165 | ||
2166 | local WHITELIST = {} | |
2167 | ||
2168 | function ApplyAoE(POSITION,RANGE) | |
2169 | local CHILDREN = workspace:GetDescendants() | |
2170 | for index, CHILD in pairs(CHILDREN) do | |
2171 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2172 | local LISTED = false | |
2173 | for LIST = 1, #WHITELIST do | |
2174 | if WHITELIST[LIST] ~= nil then | |
2175 | if CHILD.Name == WHITELIST[LIST] then | |
2176 | LISTED = true | |
2177 | end | |
2178 | end | |
2179 | end | |
2180 | if LISTED == false then | |
2181 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2182 | if HUM then | |
2183 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2184 | if TORSO then | |
2185 | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then | |
2186 | KillChildren(CHILD) | |
2187 | end | |
2188 | end | |
2189 | end | |
2190 | end | |
2191 | end | |
2192 | end | |
2193 | end | |
2194 | ||
2195 | local KEYHOLD = false | |
2196 | function SpawnSmite(POS) | |
2197 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
2198 | local EMITPOS = HITPOS | |
2199 | if HITFLOOR ~= nil then | |
2200 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
2201 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
2202 | EMITPOS = HITPOS | |
2203 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
2204 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF1(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
2205 | EMITPOS = HITPOS | |
2206 | end | |
2207 | end | |
2208 | if HITFLOOR ~= nil then | |
2209 | ApplyAoE(EMITPOS,10) | |
2210 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
2211 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2212 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2213 | for i = 1, 5 do | |
2214 | local TOPOS = CF1(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF1(0,0,12) | |
2215 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF1(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
2216 | end | |
2217 | end | |
2218 | end | |
2219 | ||
2220 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
2221 | if FLOOR ~= nil then | |
2222 | coroutine.resume(coroutine.create(function() | |
2223 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
2224 | PART.CFrame = CF1(POSITION) | |
2225 | for i = 1, 45 do | |
2226 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
2227 | RingPiece.Material = FLOOR.Material | |
2228 | RingPiece.Color = FLOOR.Color | |
2229 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF1(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
2230 | Debris:AddItem(RingPiece,SWAIT) | |
2231 | end | |
2232 | PART:remove() | |
2233 | end)) | |
2234 | end | |
2235 | end | |
2236 | ||
2237 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
2238 | if FLOOR ~= nil then | |
2239 | for i = 1, AMOUNT do | |
2240 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
2241 | DEBREE.Material = FLOOR.Material | |
2242 | DEBREE.Color = FLOOR.Color | |
2243 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
2244 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
2245 | coroutine.resume(coroutine.create(function() | |
2246 | Swait(15) | |
2247 | DEBREE.Parent = workspace | |
2248 | DEBREE.CanCollide = true | |
2249 | Debris:AddItem(DEBREE,SWAIT) | |
2250 | end)) | |
2251 | end | |
2252 | end | |
2253 | end | |
2254 | ||
2255 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
2256 | coroutine.resume(coroutine.create(function() | |
2257 | local METEOR = IT("Model",Effects) | |
2258 | METEOR.Name = "Meteorite" | |
2259 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2260 | METEOR.PrimaryPart = CENTER | |
2261 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2262 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2263 | for i = 1, 15 do | |
2264 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really blue", "Fire", VT(5.1,1,5.1)*SIZE) | |
2265 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2266 | end | |
2267 | if ISDEBREE ~= true then | |
2268 | METEOR:SetPrimaryPartCFrame(CF1(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF1(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2269 | else | |
2270 | METEOR:SetPrimaryPartCFrame(CF1(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2271 | end | |
2272 | local IMPACT = false | |
2273 | CreateSound(463593339, CENTER, 10, 0.6) | |
2274 | if SIZE >= 3.5 then | |
2275 | for i = 1, MRANDOM(3,7) do | |
2276 | SpawnMeteor(CF1(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF1(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF1(0,0,SIZE*15).p) | |
2277 | end | |
2278 | end | |
2279 | for i = 1, 200 do | |
2280 | Swait() | |
2281 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF1(CENTER.Position,POS).lookVector, 3, Character) | |
2282 | if HITFLOOR == nil then | |
2283 | local ORI = CENTER.Orientation | |
2284 | METEOR:SetPrimaryPartCFrame(CF1(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2285 | else | |
2286 | if HITFLOOR.Anchored == true then | |
2287 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
2288 | CreateFlyingDebree(HITFLOOR,CF1(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
2289 | end | |
2290 | IMPACT = true | |
2291 | break | |
2292 | end | |
2293 | end | |
2294 | if IMPACT == true then | |
2295 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2296 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
2297 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF1(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2298 | ApplyAoE(CENTER.Position,30*SIZE) | |
2299 | end | |
2300 | METEOR:remove() | |
2301 | end)) | |
2302 | end | |
2303 | ||
2304 | function Smite() | |
2305 | Attack = true | |
2306 | Rooted = false | |
2307 | CreateSound(1368573150, RightArm, 3, 1.5) | |
2308 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2309 | Swait() | |
2310 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF1(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2311 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2312 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2313 | end | |
2314 | local POWER = 0 | |
2315 | repeat | |
2316 | Swait() | |
2317 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF1(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(0,0,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2318 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF1(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2319 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF1(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2320 | POWER = POWER + 0.5 | |
2321 | if POWER >= 85 then | |
2322 | POWER = 85 | |
2323 | end | |
2324 | until KEYHOLD == false | |
2325 | if POWER < 0.6 then | |
2326 | SpawnSmite(Mouse.Hit.p) | |
2327 | else | |
2328 | if POWER < 15 then | |
2329 | POWER = 15 | |
2330 | end | |
2331 | SpawnMeteor(Mouse.Hit.p,POWER/15) | |
2332 | end | |
2333 | Attack = false | |
2334 | Rooted = false | |
2335 | end | |
2336 | ||
2337 | function ByeBye() | |
2338 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2339 | ||
2340 | if(torso)then | |
2341 | local who = torso.Parent | |
2342 | local doAttack = false | |
2343 | Instance.AllChildren(who,function(v) | |
2344 | if(v.Name:lower():find"arm")then | |
2345 | doAttack = true | |
2346 | end | |
2347 | end, true) | |
2348 | if(not doAttack)then return end | |
2349 | WalkSpeed = 0 | |
2350 | Hum.JumpPower = 0 | |
2351 | Attack = true | |
2352 | NeutralAnims = false | |
2353 | Hum.AutoRotate = false | |
2354 | who.Parent = Char | |
2355 | local oRoot | |
2356 | coroutine.resume(coroutine.create(function() | |
2357 | repeat | |
2358 | swait() | |
2359 | torso.Anchored = true | |
2360 | Root.Anchored = true | |
2361 | until not Attack | |
2362 | Root.Anchored = false | |
2363 | torso.Anchored = false | |
2364 | Hum.AutoRotate = true | |
2365 | end)) | |
2366 | torso.CFrame = Root.CFrame*CF.N(0,0,-1.5) | |
2367 | if(humanoid.RigType == Enum.HumanoidRigType.R6)then | |
2368 | for i = 0, 6, 0.1 do | |
2369 | swait() | |
2370 | local Alpha = .1 | |
2371 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2372 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2373 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2374 | LS.C0 = clerp(LS.C0,CFrame.new(-1.41749763, 0.558253706, 0.0724307299, 0.984057605, 0.177849606, 0.000124168335, -0.00111837965, 0.00688624149, -0.999975622, -0.177846164, 0.984033704, 0.00697536254),Alpha) | |
2375 | RS.C0 = clerp(RS.C0,CFrame.new(1.41673875, 0.529312432, -0.161725938, 0.9891271, -0.147063792, -0.000118533542, 0.000924787659, 0.00702595245, -0.999974966, 0.147060931, 0.989102244, 0.00708556268),Alpha) | |
2376 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2377 | end | |
2378 | local RABC = (who:FindFirstChild'Right Arm' or who:FindFirstChild'RightUpperArm' or who:FindFirstChild'RightLowerArm' or who:FindFirstChild'RightHand' or IN("Part")).Color | |
2379 | local LABC = (who:FindFirstChild'Left Arm' or who:FindFirstChild'LeftUpperArm' or who:FindFirstChild'LeftLowerArm' or who:FindFirstChild'LeftHand' or IN("Part")).Color | |
2380 | Sound(Root,1093102664,.85,5,false,true,true) | |
2381 | Sound(Root,429400881,1,1,false,true,true) | |
2382 | local FRArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=RABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true}) | |
2383 | Mesh(FRArm,Enum.MeshType.FileMesh,"rbxasset://fonts/rightarm.mesh","",V3.N(1,1,1),V3.N()) | |
2384 | local FLArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),Color=LABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true}) | |
2385 | Mesh(FLArm,Enum.MeshType.FileMesh,"rbxasset://fonts/leftarm.mesh","",V3.N(1,1,1),V3.N()) | |
2386 | local FRArmW = NewInstance('Weld',FRArm,{Part0=RArm,Part1=FRArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)}) | |
2387 | local FLArmW = NewInstance('Weld',FLArm,{Part0=LArm,Part1=FLArm,C0=CF.N(0,-1.25,.65)*CF.A(M.R(90),0,0)}) | |
2388 | Instance.AllChildren(who,function(v) | |
2389 | if(v.Name:lower():find"arm")then | |
2390 | v:destroy() | |
2391 | end | |
2392 | end, true) | |
2393 | for i = 0, 4, 0.1 do | |
2394 | swait() | |
2395 | local Alpha = .3 | |
2396 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2397 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2398 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2399 | LS.C0 = clerp(LS.C0,CFrame.new(-1.37231135, 0.556628764, -0.166760147, 0.49629873, 0.868151784, 0.000124280094, -0.00599422446, 0.00356988632, -0.999975622, -0.86813122, 0.496285975, 0.0069756275),Alpha) | |
2400 | RS.C0 = clerp(RS.C0,CFrame.new(1.36567199, 0.528297484, -0.299411327, 0.523141146, -0.852246106, -0.000118162308, 0.00597720221, 0.00380767859, -0.999974966, 0.852225304, 0.523127258, 0.00708600134),Alpha) | |
2401 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2402 | end | |
2403 | for i = 0, 6, 0.1 do | |
2404 | swait() | |
2405 | local Alpha = .1 | |
2406 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha) | |
2407 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha) | |
2408 | RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha) | |
2409 | LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha) | |
2410 | RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha) | |
2411 | NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha) | |
2412 | end | |
2413 | Sound(Root,429400881,1,1,false,true,true) | |
2414 | torso:destroy() | |
2415 | who.Parent = workspace | |
2416 | for i = 0, 4, 0.1 do | |
2417 | swait() | |
2418 | local Alpha = .4 | |
2419 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha) | |
2420 | LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha) | |
2421 | RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha) | |
2422 | LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha) | |
2423 | RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha) | |
2424 | NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha) | |
2425 | end | |
2426 | for i = 0, 4, 0.1 do | |
2427 | swait() | |
2428 | local Alpha = .1 | |
2429 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2430 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2431 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2432 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha) | |
2433 | RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha) | |
2434 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2435 | end | |
2436 | FLArm.CanCollide = true | |
2437 | FRArm.CanCollide = true | |
2438 | FRArm.Parent = workspace | |
2439 | FLArm.Parent = workspace | |
2440 | FRArmW:destroy(); | |
2441 | FLArmW:destroy(); | |
2442 | delay(2, function() | |
2443 | for i = 0, 1, .05 do | |
2444 | FLArm.Transparency = i | |
2445 | FRArm.Transparency = i | |
2446 | swait() | |
2447 | end | |
2448 | FLArm:destroy() | |
2449 | FRArm:destroy() | |
2450 | end) | |
2451 | for i = 0, 3, 0.1 do | |
2452 | swait() | |
2453 | local Alpha = .1 | |
2454 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2455 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2456 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2457 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47210145, 0.463549852, 0.020456871, 0.0483208001, 0.998709798, 0.0156119233, -0.99881655, 0.0482276753, 0.00628757617, 0.00552653754, -0.0158972703, 0.999858439),Alpha) | |
2458 | RS.C0 = clerp(RS.C0,CFrame.new(1.48960721, 0.46071431, -0.0257698279, 0.0482511185, -0.998713255, 0.0156119233, 0.99881053, 0.0483541042, 0.00628757617, -0.00703438697, 0.0152899725, 0.999858439),Alpha) | |
2459 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144014433, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2460 | end | |
2461 | else | |
2462 | for i = 0, 6, 0.1 do | |
2463 | swait() | |
2464 | local Alpha = .1 | |
2465 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0228011385, 0.00629060203, 1.12518191, 0.0291582551, 0.00628361246, 0.999555051, -2.14977626e-06, 0.99998033, -0.00628622202, -0.99957478, 0.00018114649, 0.0291576944),Alpha) | |
2466 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496488124, -0.990816116, 0.0216191448, 0.999878168, 0, 0.0156121869, -9.81426565e-05, 0.99998033, 0.00628552027, -0.0156118795, -0.00628628489, 0.999858439),Alpha) | |
2467 | RH.C0 = clerp(RH.C0,CFrame.new(0.23371309, -1.09946191, -0.482504547, -0.303610921, -0.951285303, 0.0536354929, 0.952085018, -0.305077851, -0.0214900374, 0.0368061513, 0.044540938, 0.998329341),Alpha) | |
2468 | LS.C0 = clerp(LS.C0,CFrame.new(-1.45626378, 0.69259727, 0.0175086595, 0.945088685, 0.326360583, 0.0172104035, -0.326625437, 0.945021749, 0.015810458, -0.011104295, -0.020563636, 0.999726892),Alpha) | |
2469 | RS.C0 = clerp(RS.C0,CFrame.new(1.08771467, 0.499947339, 0.367133379, -0.0391258858, -0.881180465, -0.471158326, 0.999125242, -0.0275285728, -0.0314841382, 0.014772892, -0.471978068, 0.881486535),Alpha) | |
2470 | NK.C0 = clerp(NK.C0,CFrame.new(-5.14835119e-06, 1.49894261, -0.0143871643, 0.204809442, 0.0562733002, -0.977182865, 0.00615302799, 0.998252332, 0.0587762482, 0.978782475, -0.0180505645, 0.204105228),Alpha) | |
2471 | end | |
2472 | Sound(Root,429400881,1,1,false,true,true) | |
2473 | torso:destroy() | |
2474 | who.Parent = workspace | |
2475 | for i = 0, 4, 0.1 do | |
2476 | swait() | |
2477 | local Alpha = .4 | |
2478 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0181181245, 0.133765578, 0.82536447, 0.0327006169, 0.0161891486, 0.999334037, 0.633923531, 0.772680283, -0.0332608707, -0.772704244, 0.634588957, 0.0150044383),Alpha) | |
2479 | LH.C0 = clerp(LH.C0,CFrame.new(-0.771793485, -1.32007217, 0.06628979, 0.26972881, 0.962679863, 0.0222291686, -0.962770581, 0.269182026, 0.0247809235, 0.0178724024, -0.0280857105, 0.999445796),Alpha) | |
2480 | RH.C0 = clerp(RH.C0,CFrame.new(0.755022645, -1.37733042, -0.499431878, 0.36903578, -0.928792715, 0.034014143, 0.929390252, 0.368510485, -0.0208280198, 0.00681034196, 0.0392986946, 0.999204397),Alpha) | |
2481 | LS.C0 = clerp(LS.C0,CFrame.new(-1.30144882, 0.605753839, 0.0162189379, 0.771496534, 0.63600105, 0.017206654, -0.636225641, 0.771341264, 0.0158053432, -0.0032199882, -0.0231410768, 0.999727011),Alpha) | |
2482 | RS.C0 = clerp(RS.C0,CFrame.new(1.28942716, 0.343831509, 0.537701666, 0.553924322, -0.686421931, -0.471161366, 0.767158687, 0.640684545, -0.0314797312, 0.323474079, -0.344018102, 0.881485164),Alpha) | |
2483 | NK.C0 = clerp(NK.C0,CFrame.new(-1.08331442e-05, 1.49893129, -0.0143847037, 0.204810485, 0.0562703013, -0.977182984, 0.00615352392, 0.998252511, 0.0587732494, 0.978782296, -0.0180504955, 0.204106256),Alpha) | |
2484 | end | |
2485 | end | |
2486 | WalkSpeed = 16 | |
2487 | Hum.AutoRotate = true | |
2488 | Hum.JumpPower = 50 | |
2489 | Attack = false | |
2490 | NeutralAnims = true | |
2491 | end | |
2492 | end | |
2493 | ||
2494 | function AttackTemp() | |
2495 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2496 | ||
2497 | if(torso)then | |
2498 | local who = torso.Parent | |
2499 | WalkSpeed = 0 | |
2500 | Hum.JumpPower = 0 | |
2501 | Attack = true | |
2502 | NeutralAnims = false | |
2503 | Hum.AutoRotate = false | |
2504 | who.Parent = Char | |
2505 | local oRoot | |
2506 | coroutine.resume(coroutine.create(function() | |
2507 | repeat | |
2508 | swait() | |
2509 | torso.Anchored = true | |
2510 | Root.Anchored = true | |
2511 | until not Attack | |
2512 | Root.Anchored = false | |
2513 | torso.Anchored = false | |
2514 | Hum.AutoRotate = true | |
2515 | end)) | |
2516 | torso.CFrame = Root.CFrame*CF.N(0,0,-1.5) | |
2517 | WalkSpeed = 16 | |
2518 | Hum.AutoRotate = true | |
2519 | Hum.JumpPower = 50 | |
2520 | Attack = false | |
2521 | NeutralAnims = true | |
2522 | end | |
2523 | end | |
2524 | ||
2525 | function Decapitate() | |
2526 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2527 | ||
2528 | if(torso)then | |
2529 | local who = torso.Parent | |
2530 | local haed = who:findFirstChild'Head' | |
2531 | if(not haed)then return end | |
2532 | WalkSpeed = 0 | |
2533 | Hum.JumpPower = 0 | |
2534 | Attack = true | |
2535 | NeutralAnims = false | |
2536 | Hum.AutoRotate = false | |
2537 | who.Parent = Char | |
2538 | coroutine.resume(coroutine.create(function() | |
2539 | repeat | |
2540 | swait() | |
2541 | torso.Anchored = true | |
2542 | Root.Anchored = true | |
2543 | until not Attack | |
2544 | Root.Anchored = false | |
2545 | torso.Anchored = false | |
2546 | Hum.AutoRotate = true | |
2547 | end)) | |
2548 | torso.CFrame = Root.CFrame*CF.N(0,0,-1.5) | |
2549 | for i = 0, 4, 0.1 do | |
2550 | swait() | |
2551 | local Alpha = .1 | |
2552 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0164915957, 0.00628865417, -0.011430705, 0.968725562, -0.00156019977, -0.248129606, 5.33546881e-07, 0.99998033, -0.00628563575, 0.248134464, 0.00608892366, 0.968706489),Alpha) | |
2553 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496484369, -0.990816116, 0.0216172226, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha) | |
2554 | RH.C0 = clerp(RH.C0,CFrame.new(0.498541713, -0.990978837, 0.0154649867, 0.999878168, 0, 0.015611276, -9.81593039e-05, 0.99998033, 0.00628695311, -0.0156110227, -0.00628771912, 0.999858499),Alpha) | |
2555 | LS.C0 = clerp(LS.C0,CFrame.new(-1.44623137, 0.547813952, 0.11403431, 0.942572534, 0.149771333, 0.298539042, -0.145386592, 0.98868382, -0.0369770601, -0.300698817, -0.00855001062, 0.953680933),Alpha) | |
2556 | RS.C0 = clerp(RS.C0,CFrame.new(1.13921714, 0.575791061, 0.224009097, 0.504514813, -0.863395452, 0.00361199677, 0.206450492, 0.116572686, -0.971488237, 0.838357329, 0.49087587, 0.237061054),Alpha) | |
2557 | NK.C0 = clerp(NK.C0,CFrame.new(1.14493978e-05, 1.49894404, -0.0143940896, 1, 6.98491931e-08, -1.22189522e-06, 7.79982656e-09, 0.99796474, 0.0637697875, 1.1920929e-06, -0.0637697875, 0.99796468),Alpha) | |
2558 | end | |
2559 | who.Parent = workspace | |
2560 | Sound(Root,1093102664,.85,5,false,true,true) | |
2561 | Sound(Root,429400881,1,1,false,true,true) | |
2562 | GrabbedHead = Part(Char,haed.Color,haed.Material,haed.Size,CF.N(),false,false) | |
2563 | Mesh(GrabbedHead,Enum.MeshType.Head,"","",V3.N(1.25,1.25,1.25)) | |
2564 | local faic = haed:FindFirstChildOfClass'Decal' | |
2565 | if(faic)then | |
2566 | faic:Clone().Parent = GrabbedHead | |
2567 | end | |
2568 | haed:destroy() | |
2569 | local we = Weld(GrabbedHead,RArm,CF.N(0,0,1.25),CF.A(M.R(-90),0,0)) | |
2570 | for i = 0, 4, 0.1 do | |
2571 | swait() | |
2572 | local Alpha = .4 | |
2573 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0575693622, 0.00628520455, 0.101066932, 0.464999139, 0.00556624401, 0.885293782, -1.90408173e-06, 0.99998033, -0.00628633192, -0.885311186, 0.00292145251, 0.46498996),Alpha) | |
2574 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496485323, -0.990816116, 0.0216203779, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha) | |
2575 | RH.C0 = clerp(RH.C0,CFrame.new(0.498545617, -0.990978718, 0.015469606, 0.999878287, 0, 0.0156088173, -9.81376506e-05, 0.99998033, 0.00628656521, -0.0156085193, -0.00628733169, 0.999858618),Alpha) | |
2576 | LS.C0 = clerp(LS.C0,CFrame.new(-1.44622684, 0.547813416, 0.114039615, 0.942572713, 0.149771467, 0.298538744, -0.145386502, 0.988683879, -0.036977727, -0.300698578, -0.00854929537, 0.953681111),Alpha) | |
2577 | RS.C0 = clerp(RS.C0,CFrame.new(1.45699549, 0.765083194, -0.0713857412, 0.939088941, -0.222480893, 0.261943519, 0.0847586989, -0.58871156, -0.803887427, 0.333058774, 0.77712369, -0.53399533),Alpha) | |
2578 | NK.C0 = clerp(NK.C0,CFrame.new(5.7298389e-06, 1.49894631, -0.0143892616, 1.00000012, 7.63684511e-08, -1.31130219e-06, 8.61473382e-09, 0.997964621, 0.0637715608, 1.40070915e-06, -0.0637715608, 0.997964621),Alpha) | |
2579 | end | |
2580 | WalkSpeed = 16 | |
2581 | Hum.AutoRotate = true | |
2582 | Hum.JumpPower = 50 | |
2583 | Attack = false | |
2584 | NeutralAnims = true | |
2585 | end | |
2586 | end | |
2587 | ||
2588 | function TahHart() | |
2589 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2590 | ||
2591 | if(torso)then | |
2592 | local who = torso.Parent | |
2593 | WalkSpeed = 0 | |
2594 | Hum.JumpPower = 0 | |
2595 | Attack = true | |
2596 | NeutralAnims = false | |
2597 | Hum.AutoRotate = false | |
2598 | who.Parent = Char | |
2599 | local oRoot | |
2600 | coroutine.resume(coroutine.create(function() | |
2601 | repeat | |
2602 | swait() | |
2603 | torso.Anchored = true | |
2604 | Root.Anchored = true | |
2605 | until not Attack | |
2606 | Root.Anchored = false | |
2607 | torso.Anchored = false | |
2608 | Hum.AutoRotate = true | |
2609 | end)) | |
2610 | torso.CFrame = Root.CFrame*CF.N(0,0,-1.5) | |
2611 | for i = 0, 5, 0.1 do | |
2612 | swait() | |
2613 | local Alpha = .1 | |
2614 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0114063025, 0.0062906337, 0.823636711, 0.955660641, -0.00185238488, -0.29446438, 6.33202092e-07, 0.999980211, -0.00628851401, 0.294470191, 0.00600949815, 0.955641806),Alpha) | |
2615 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496483088, -0.990816116, 0.0216204748, 0.988656521, 0, 0.150195315, -0.000944813946, 0.999980211, 0.00621921103, -0.15019232, -0.00629056897, 0.988636971),Alpha) | |
2616 | RH.C0 = clerp(RH.C0,CFrame.new(0.49854517, -0.990978718, 0.0154605517, 0.977690578, 0, -0.210051, 0.0013213401, 0.999980211, 0.00615022983, 0.210046858, -0.00629056897, 0.977671206),Alpha) | |
2617 | LS.C0 = clerp(LS.C0,CFrame.new(-1.44713593, 0.497297019, 0.0198487751, 0.9943645, 0.104860231, 0.0156133771, -0.104968622, 0.994455695, 0.00629058247, -0.0148671865, -0.0078940466, 0.999858439),Alpha) | |
2618 | RS.C0 = clerp(RS.C0,CFrame.new(1.24000025, 0.563622832, 0.0400094986, 0.952762961, -0.299521834, -0.0502950102, 0.122506656, 0.53053093, -0.838766456, 0.277911872, 0.792984128, 0.54216361),Alpha) | |
2619 | NK.C0 = clerp(NK.C0,CFrame.new(1.90698097e-06, 1.49894333, -0.0144055113, 1, -1.86264515e-09, 2.98023224e-08, -1.16415322e-10, 0.997964561, 0.0637710616, 0, -0.0637710616, 0.99796468),Alpha) | |
2620 | end | |
2621 | who.Parent = workspace | |
2622 | local hart = Part(Char,BrickColor.new'Crimson',Enum.Material.Granite,V3.N(1,1,1),CF.N(),false,false) | |
2623 | local hartM = Mesh(hart,Enum.MeshType.Sphere) | |
2624 | Weld(hart,RArm,CF.N(0,1,0)) | |
2625 | Sound(torso,429400881,1,1,false,true,true) | |
2626 | who:breakJoints() | |
2627 | for i = 0, 6, 0.1 do | |
2628 | swait() | |
2629 | local Alpha = .4 | |
2630 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00543917716, -0.0704322308, -0.407061756, 0.977658093, -0.00600946136, 0.210115746, -0.0923573971, 0.885655761, 0.455064833, -0.188824907, -0.464303493, 0.86531347),Alpha) | |
2631 | LH.C0 = clerp(LH.C0,CFrame.new(-0.598784626, -1.01931322, -0.151798934, 0.987478375, -0.00431044213, 0.157695964, 0.0628020391, 0.927741408, -0.36790216, -0.144715235, 0.373199016, 0.916395247),Alpha) | |
2632 | RH.C0 = clerp(RH.C0,CFrame.new(0.501758635, -1.05769944, 0.0147527754, 0.977738321, -0.0407438502, -0.205834419, -0.00124130305, 0.979826152, -0.199847892, 0.209824502, 0.195654422, 0.957963049),Alpha) | |
2633 | LS.C0 = clerp(LS.C0,CFrame.new(-1.46465385, 0.308270127, 0.182695374, 0.99436456, 0.0947658569, 0.0475270823, -0.104967438, 0.942948699, 0.315958142, -0.0148735195, -0.319166332, 0.947582006),Alpha) | |
2634 | RS.C0 = clerp(RS.C0,CFrame.new(0.439417332, 0.649217606, -0.612457514, 0.973174632, 0.169809118, 0.155229017, 0.177467406, -0.124685973, -0.97619611, -0.146412104, 0.97755748, -0.1514768),Alpha) | |
2635 | NK.C0 = clerp(NK.C0,CFrame.new(0.32833305, 1.49151981, 0.131428123, 0.92856133, 0.371179402, -1.95354223e-05, -0.326482415, 0.81671983, -0.475791991, -0.176588207, 0.441808343, 0.879557967),Alpha) | |
2636 | end | |
2637 | for i = 0, 5, 0.1 do | |
2638 | swait() | |
2639 | local Alpha = .3 | |
2640 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2641 | LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha) | |
2642 | RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha) | |
2643 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha) | |
2644 | RS.C0 = clerp(RS.C0,CFrame.new(1.35784233, 0.380929202, -0.339150012, 0.890423656, 0.369434744, -0.265826464, -0.0434118584, -0.512461483, -0.857612193, -0.453057677, 0.775178194, -0.440269977),Alpha) | |
2645 | NK.C0 = clerp(NK.C0,CFrame.new(5.94183803e-06, 1.49894607, -0.0144022629, 0.903856337, 0.0358069614, -0.426334888, 0.00745311938, 0.995022535, 0.0993709341, 0.427770972, -0.0929945856, 0.899090827),Alpha) | |
2646 | end | |
2647 | Sound(torso,429400881,1,1,false,true,true) | |
2648 | for i = 0, 6, 0.1 do | |
2649 | swait() | |
2650 | local Alpha = .3 | |
2651 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2652 | LH.C0 = clerp(LH.C0,CFrame.new(-0.516345143, -0.986586034, 0.0229242463, 0.995020688, 0.0737848207, 0.0670047402, -0.0743697062, 0.997211039, 0.00627362682, -0.0663549677, -0.0112255123, 0.997732997),Alpha) | |
2653 | RH.C0 = clerp(RH.C0,CFrame.new(0.477815509, -0.99112612, 0.0143765565, 0.99808538, -0.0329308398, -0.0523567572, 0.0333044007, 0.99942559, 0.00627828855, 0.0521199405, -0.0080099795, 0.998608768),Alpha) | |
2654 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42035723, 0.493732512, 0.0194591247, 0.987250268, 0.158408627, 0.0156119233, -0.158521742, 0.987335503, 0.00628757617, -0.0144182015, -0.00868224166, 0.999858439),Alpha) | |
2655 | RS.C0 = clerp(RS.C0,CFrame.new(1.38204277, 0.275569797, -0.148523852, 0.434954822, 0.860323608, -0.265814841, 0.300874919, -0.417092472, -0.857617736, -0.848698258, 0.293047935, -0.440266252),Alpha) | |
2656 | NK.C0 = clerp(NK.C0,CFrame.new(0.185457826, 1.49546897, -0.192251831, 0.865452588, 0.124405921, -0.485298753, 0.015648175, 0.961492956, 0.274383873, 0.500746369, -0.245060325, 0.83017987),Alpha) | |
2657 | end | |
2658 | hart:destroy() | |
2659 | WalkSpeed = 16 | |
2660 | Hum.AutoRotate = true | |
2661 | Hum.JumpPower = 50 | |
2662 | Attack = false | |
2663 | NeutralAnims = true | |
2664 | end | |
2665 | end | |
2666 | ||
2667 | function YaYEET() | |
2668 | Attack = true | |
2669 | NeutralAnims = false | |
2670 | WalkSpeed = 2 | |
2671 | for i = 0, 3, 0.1 do | |
2672 | swait() | |
2673 | local Alpha = .3 | |
2674 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha) | |
2675 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2676 | RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2677 | LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha) | |
2678 | RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha) | |
2679 | NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2680 | end | |
2681 | repeat swait() | |
2682 | local Alpha = .3 | |
2683 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00286240783, 0.00628161477, -0.00104881125, 0.812644184, -0.00366364187, -0.582748652, 1.25324027e-06, 0.99998033, -0.00628495822, 0.582760096, 0.00510670478, 0.81262815),Alpha) | |
2684 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496485233, -0.990816236, 0.0216153599, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2685 | RH.C0 = clerp(RH.C0,CFrame.new(0.498535216, -0.990978837, 0.0154625224, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2686 | LS.C0 = clerp(LS.C0,CFrame.new(-1.54175317, 0.538998544, -0.350661546, 0.925994039, 0.377538294, -2.53279577e-05, -0.00177948072, 0.00429747393, -0.99998939, -0.377534091, 0.925984085, 0.0046512573),Alpha) | |
2687 | RS.C0 = clerp(RS.C0,CFrame.new(1.2351619, 0.597906828, 0.279773176, 0.93086189, 0.365330189, -0.00547149777, 0.134925321, -0.329796135, 0.934360683, 0.339545637, -0.870499015, -0.356286913),Alpha) | |
2688 | NK.C0 = clerp(NK.C0,CFrame.new(2.37277709e-06, 1.49894369, -0.0143988989, 0.803447127, 0, 0.595376074, -0.00374295469, 0.99998033, 0.00505103637, -0.595364332, -0.00628670584, 0.803431273),Alpha) | |
2689 | until not S.UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) | |
2690 | for i = 0, .7, 0.1 do | |
2691 | swait() | |
2692 | local Alpha = .3 | |
2693 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha) | |
2694 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2695 | RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2696 | LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha) | |
2697 | RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha) | |
2698 | NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2699 | end | |
2700 | GrabbedHead.Parent = workspace | |
2701 | GrabbedHead.CanCollide = true | |
2702 | pcall(function() GrabbedHead.Weld:destroy() end) | |
2703 | GrabbedHead.Velocity = Mouse.Hit.lookVector*250 | |
2704 | local ev; | |
2705 | local haed = GrabbedHead; | |
2706 | ev = GrabbedHead.Touched:connect(function(t) | |
2707 | if(t.Parent and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char) and t.Parent:FindFirstChildOfClass'Humanoid')then | |
2708 | t.Parent:breakJoints() | |
2709 | end | |
2710 | if(ev and t.Parent ~= Char and not t.Parent:IsDescendantOf(Char))then | |
2711 | ev:disconnect() | |
2712 | ev = nil | |
2713 | delay(2, function() | |
2714 | for i = 0, 1, .05 do | |
2715 | haed.Transparency = i | |
2716 | swait() | |
2717 | end | |
2718 | haed:destroy() | |
2719 | end) | |
2720 | end | |
2721 | end) | |
2722 | GrabbedHead = nil | |
2723 | for i = 0, 4, 0.1 do | |
2724 | swait() | |
2725 | local Alpha = .3 | |
2726 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.248571783, 0.00628784206, -0.324586183, 0.811912656, 0.00367011107, 0.583767474, -1.25562076e-06, 0.99998033, -0.00628506951, -0.583779037, 0.00510219391, 0.811896563),Alpha) | |
2727 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496491075, -0.990815997, 0.0216309726, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2728 | RH.C0 = clerp(RH.C0,CFrame.new(0.498523057, -0.990978718, 0.0154775968, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2729 | LS.C0 = clerp(LS.C0,CFrame.new(-1.23150444, 0.50935328, 0.410490841, 0.925997376, -0.315732628, 0.206983045, -0.00177847152, 0.54460144, 0.838693202, -0.377526015, -0.776995718, 0.503737926),Alpha) | |
2730 | RS.C0 = clerp(RS.C0,CFrame.new(0.944793224, 0.478973299, -0.436145425, 0.805186868, 0.59043932, 0.055278115, -0.0953396112, 0.220887601, -0.970628381, -0.5853073, 0.776266813, 0.234148055),Alpha) | |
2731 | NK.C0 = clerp(NK.C0,CFrame.new(-6.4575579e-06, 1.49894357, -0.014398125, 0.82092762, 0, -0.571032405, 0.00358997518, 0.99998033, 0.00516101997, 0.57102108, -0.00628681574, 0.820911348),Alpha) | |
2732 | end | |
2733 | Attack = false | |
2734 | NeutralAnims = true | |
2735 | WalkSpeed = 16 | |
2736 | end | |
2737 | ||
2738 | ||
2739 | --// Wrap it all up \\-- | |
2740 | ||
2741 | Mouse.KeyDown:connect(function(k) | |
2742 | if(Attack)then return end | |
2743 | if(not GrabbedHead)then | |
2744 | if(k == 'z')then | |
2745 | ByeBye() | |
2746 | elseif(k == 'x')then | |
2747 | Decapitate() | |
2748 | elseif(k == "q") then | |
2749 | You_Cant_Hide() | |
2750 | elseif(k == "t") then | |
2751 | Taunt() | |
2752 | elseif(k == "r") then | |
2753 | MaxSpeed() | |
2754 | elseif(k == "g") then | |
2755 | Smite() | |
2756 | elseif(k == "e")then | |
2757 | Brutal_Overlord() | |
2758 | elseif(k == 'c')then | |
2759 | TahHart() | |
2760 | end | |
2761 | end | |
2762 | end) | |
2763 | ||
2764 | Mouse.Button1Down:connect(function() | |
2765 | if(Attack)then return end | |
2766 | if(GrabbedHead)then | |
2767 | YaYEET() | |
2768 | end | |
2769 | end) | |
2770 | ||
2771 | local deg = 0 | |
2772 | while true do | |
2773 | swait() | |
2774 | Sine = Sine + Change | |
2775 | if(not Music)then | |
2776 | Music = Sound(Torso,MusicID,1,1,true,false,true) | |
2777 | Music.Name = 'Music' | |
2778 | end | |
2779 | Music.SoundId = "rbxassetid://"..MusicID | |
2780 | Music.Parent = Torso | |
2781 | Music.Pitch = 1 | |
2782 | Music.Volume = 3 | |
2783 | if(not Muted)then | |
2784 | Music:Resume() | |
2785 | else | |
2786 | Music:Pause() | |
2787 | end | |
2788 | ||
2789 | ||
2790 | if(God)then | |
2791 | Hum.MaxHealth = 1e100 | |
2792 | Hum.Health = 1e100 | |
2793 | if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end | |
2794 | Hum.Name = M.RNG()*100 | |
2795 | end | |
2796 | ||
2797 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char) | |
2798 | ||
2799 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
2800 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle") | |
2801 | if(not Effects or not Effects.Parent)then | |
2802 | Effects = IN("Model",Char) | |
2803 | Effects.Name = "Effects" | |
2804 | end | |
2805 | if(State == 'Run')then | |
2806 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2807 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2808 | Change = 1 | |
2809 | RH.C1 = RH.C1:lerp(CF.N(0,1-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2) | |
2810 | LH.C1 = LH.C1:lerp(CF.N(0,1+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2) | |
2811 | elseif(State == 'Walk')then | |
2812 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2813 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2814 | Change = 1 | |
2815 | RH.C1 = RH.C1:lerp(CF.N(0,1-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-35*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha) | |
2816 | LH.C1 = LH.C1:lerp(CF.N(0,1+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+35*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha) | |
2817 | else | |
2818 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2) | |
2819 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2) | |
2820 | end | |
2821 | Hum.WalkSpeed = WalkSpeed | |
2822 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
2823 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
2824 | local face = Head:FindFirstChild'face' | |
2825 | if(not face)then | |
2826 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"}) | |
2827 | else | |
2828 | face.Texture = "rbxassetid://404306534" | |
2829 | end | |
2830 | ||
2831 | RArm.Color = C3.N(0,0,255) | |
2832 | LArm.Color = C3.N(0,0,255) | |
2833 | RLeg.Color = C3.N(0,0,255) | |
2834 | LLeg.Color = C3.N(0,0,255) | |
2835 | Torso.Color = C3.N(0,0,255) | |
2836 | Head.Color = C3.N(0,0,255) | |
2837 | ||
2838 | deg = deg + 1 | |
2839 | HW.C0 = HW.C0:lerp(CF.N(0,1.5,0)*CF.A(0,M.R(deg),0),.2) | |
2840 | if(NeutralAnims)then | |
2841 | if(State == 'Idle')then | |
2842 | local Alpha = .1 | |
2843 | Change = 1 | |
2844 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/18),0),Alpha) | |
2845 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-2.5*M.S(Sine/18)),M.R(20*M.C(Sine/18)),M.R(10)),Alpha) | |
2846 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(5+5*M.C(Sine/18)),M.R(-10-5*M.C(Sine/18))),Alpha) | |
2847 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/18),0)*CF.A(0,M.R(-5-5*M.C(Sine/18)),M.R(10+5*M.C(Sine/18))),Alpha) | |
2848 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/18),0)*CF.A(0,0,M.R(-10)),Alpha) | |
2849 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/18),-.2),Alpha) | |
2850 | -- idle | |
2851 | elseif(State == 'Run')then | |
2852 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2853 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2854 | local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1) | |
2855 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha2) | |
2856 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2857 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha) | |
2858 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha) | |
2859 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2860 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2861 | elseif(State == 'Walk')then | |
2862 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2863 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2864 | local Alpha2 = math.min(.15 * (Hum.WalkSpeed/16),1) | |
2865 | RJ.C0 = RJ.C0:lerp(CF.N(0,-.175+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha2) | |
2866 | NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha) | |
2867 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha) | |
2868 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.27*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha) | |
2869 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha) | |
2870 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha) | |
2871 | elseif(State == 'Jump')then | |
2872 | local Alpha = .1 | |
2873 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
2874 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha) | |
2875 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha) | |
2876 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2877 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2878 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
2879 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
2880 | elseif(State == 'Fall')then | |
2881 | local Alpha = .1 | |
2882 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
2883 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha) | |
2884 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha) | |
2885 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2886 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2887 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
2888 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
2889 | elseif(State == 'Paralyzed')then | |
2890 | -- paralyzed | |
2891 | elseif(State == 'Sit')then | |
2892 | -- sit | |
2893 | end | |
2894 | end | |
2895 | ||
2896 | end |