SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
2 | do | |
3 | ||
4 | script.Parent = owner.Character | |
5 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
6 | local function NewFakeEvent() | |
7 | local Bind = Instance.new("BindableEvent") | |
8 | local Fake;Fake = {Connections = {}, | |
9 | fakeEvent=true; | |
10 | Connect=function(self,Func) | |
11 | Bind.Event:connect(Func) | |
12 | self.Connections[Bind] = true | |
13 | return setmetatable({Connected = true},{ | |
14 | __index = function (self,Index) | |
15 | if Index:lower() == "disconnect" then | |
16 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
17 | end | |
18 | return Fake[Index] | |
19 | end; | |
20 | __tostring = function() return "Connection" end; | |
21 | }) | |
22 | end} | |
23 | Fake.connect = Fake.Connect;return Fake; | |
24 | end | |
25 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
26 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
27 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
28 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
29 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
30 | local function TriggerEvent(self,Event,...) | |
31 | local Trigger = Mouse[Event] | |
32 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
33 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
34 | end | |
35 | end | |
36 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
37 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
38 | if FiredBy.Name ~= owner.Name then return end | |
39 | if Input.MouseEvent then | |
40 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
41 | else | |
42 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
43 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
44 | for _,Action in pairs(ContextActionService.Actions) do | |
45 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
46 | end | |
47 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
48 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
49 | end | |
50 | end) | |
51 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
52 | Event.Parent = NLS([[ | |
53 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
59 | local Hit,Target | |
60 | while wait(1/30) do | |
61 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
62 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
63 | end | |
64 | end | |
65 | ]],owner.Character) | |
66 | end | |
67 | RealGame = game;game = setmetatable({},{ | |
68 | __index = function (self,Index) | |
69 | local Sandbox = function (Thing) | |
70 | if Thing:IsA("Player") then | |
71 | local RealPlayer = Thing | |
72 | return setmetatable({},{ | |
73 | __index = function (self,Index) | |
74 | local Type = type(RealPlayer[Index]) | |
75 | if Type == "function" then | |
76 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
77 | return function (self)return InternalData["Mouse"] end | |
78 | end | |
79 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
80 | end | |
81 | return RealPlayer[Index] | |
82 | end; | |
83 | __tostring = function(self) return RealPlayer.Name end | |
84 | }) | |
85 | end | |
86 | end | |
87 | if RealGame[Index] then | |
88 | local Type = type(RealGame[Index]) | |
89 | if Type == "function" then | |
90 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
91 | return function (self,Service) | |
92 | local FakeServices = { | |
93 | ["players"] = function() | |
94 | return setmetatable({},{ | |
95 | __index = function (self2,Index2) | |
96 | local RealService = RealGame:GetService(Service) | |
97 | local Type2 = type(Index2) | |
98 | if Type2 == "function" then | |
99 | return function (self,...) return RealService[Index2](RealService,...)end | |
100 | else | |
101 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
102 | return RealService[Index2] | |
103 | end | |
104 | end; | |
105 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
106 | }) | |
107 | end; | |
108 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
109 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
110 | ["runservice"] = function() | |
111 | return setmetatable({},{ | |
112 | __index = function(self2,Index2) | |
113 | local RealService = RealGame:GetService(Service) | |
114 | local Type2 = type(Index2) | |
115 | if Type2 == "function" then | |
116 | return function (self,...) return RealService[Index2](RealService,...) end | |
117 | else | |
118 | local RunServices = { | |
119 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
120 | ["renderstepped"] = function() return RealService["Stepped"] end | |
121 | } | |
122 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
123 | return RealService[Index2] | |
124 | end | |
125 | end | |
126 | }) | |
127 | end | |
128 | } | |
129 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
130 | return RealGame:GetService(Service) | |
131 | end | |
132 | end | |
133 | return function (self,...) return RealGame[Index](RealGame,...) end | |
134 | else | |
135 | if game:GetService(Index) then return game:GetService(Index) end | |
136 | return RealGame[Index] | |
137 | end | |
138 | end | |
139 | return nil | |
140 | end | |
141 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
142 | ||
143 | ----------------------- | |
144 | --[[ Name : Ņ̢̨͢͟ó͢ ̧͢ơ̶̶̶̢n͜͏ę̶̡͠'͏́́͞҉ş̨͏ ͜a͝҉r̵̷̛̛͟o̶̡͟͝ų̶̸̵͝ń͡͡͏̷d̀͜͟ ̵̡́́͜t̡̀͘o͏̀̕͡ ͢h͠͏e̵͢͜ļ̡͢͡ṕ̛͏.̷̧̨ ]]-- | |
145 | ------------------------------------------------------- | |
146 | --A script By makhail07 | |
147 | ||
148 | --Discord Creterisk#2958 | |
149 | ||
150 | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION | |
151 | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT | |
152 | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT | |
153 | --YOU FUCKING SKIDS, | |
154 | --For Those who log/decompile this, If you sell or trade this, | |
155 | --and I find out who you are, i will take massive action. | |
156 | ------------------------------------------------------- | |
157 | ||
158 | local FavIDs = { | |
159 | 340106355, --Nefl Crystals | |
160 | 927529620, --Dimension | |
161 | 876981900, --Fantasy | |
162 | 398987889, --Ordinary Days | |
163 | 1117396305, --Oh wait, it's you. | |
164 | 885996042, --Action Winter Journey | |
165 | 919231299, --Sprawling Idiot Effigy | |
166 | 743466274, --Good Day Sunshine | |
167 | 727411183, --Knife Fight | |
168 | 1402748531, --The Earth Is Counting On You! | |
169 | 595230126 --Robot Language | |
170 | } | |
171 | ||
172 | local kan = Instance.new("Sound") kan.Volume = 6 kan.SoundId = "rbxassetid://1925182331" kan.Looped = true kan.Parent = owner.Character.Torso kan:Play() | |
173 | ||
174 | --The reality of my life isn't real but a Universe -makhail07 | |
175 | wait() | |
176 | local plr = game:service'Players'.LocalPlayer | |
177 | print('Local User is '..plr.Name) | |
178 | local char = plr.Character | |
179 | local hum = char.Humanoid | |
180 | local hed = char.Head | |
181 | local root = char.HumanoidRootPart | |
182 | local rootj = root.RootJoint | |
183 | local tors = char.Torso | |
184 | local ra = char["Right Arm"] | |
185 | local la = char["Left Arm"] | |
186 | local rl = char["Right Leg"] | |
187 | local ll = char["Left Leg"] | |
188 | local neck = tors["Neck"] | |
189 | local mouse = plr:GetMouse() | |
190 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
191 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
192 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
193 | local maincolor = BrickColor.new("Institutional white") | |
194 | ||
195 | ------------------------------------------------------- | |
196 | --Start Good Stuff-- | |
197 | ------------------------------------------------------- | |
198 | cam = game.Workspace.CurrentCamera | |
199 | CF = CFrame.new | |
200 | angles = CFrame.Angles | |
201 | attack = false | |
202 | Euler = CFrame.fromEulerAnglesXYZ | |
203 | Rad = math.rad | |
204 | IT = Instance.new | |
205 | BrickC = BrickColor.new | |
206 | Cos = math.cos | |
207 | Acos = math.acos | |
208 | Sin = math.sin | |
209 | Asin = math.asin | |
210 | Abs = math.abs | |
211 | Mrandom = math.random | |
212 | Floor = math.floor | |
213 | ------------------------------------------------------- | |
214 | --End Good Stuff-- | |
215 | ------------------------------------------------------- | |
216 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
217 | RSH, LSH = nil, nil | |
218 | RW = Instance.new("Weld") | |
219 | LW = Instance.new("Weld") | |
220 | RH = tors["Right Hip"] | |
221 | LH = tors["Left Hip"] | |
222 | RSH = tors["Right Shoulder"] | |
223 | LSH = tors["Left Shoulder"] | |
224 | RSH.Parent = nil | |
225 | LSH.Parent = nil | |
226 | RW.Name = "RW" | |
227 | RW.Part0 = tors | |
228 | RW.C0 = CF(1.5, 0.5, 0) | |
229 | RW.C1 = CF(0, 0.5, 0) | |
230 | RW.Part1 = ra | |
231 | RW.Parent = tors | |
232 | LW.Name = "LW" | |
233 | LW.Part0 = tors | |
234 | LW.C0 = CF(-1.5, 0.5, 0) | |
235 | LW.C1 = CF(0, 0.5, 0) | |
236 | LW.Part1 = la | |
237 | LW.Parent = tors | |
238 | Effects = {} | |
239 | ------------------------------------------------------- | |
240 | --Start HeartBeat-- | |
241 | ------------------------------------------------------- | |
242 | ArtificialHB = Instance.new("BindableEvent", script) | |
243 | ArtificialHB.Name = "Heartbeat" | |
244 | script:WaitForChild("Heartbeat") | |
245 | ||
246 | frame = 1 / 60 | |
247 | tf = 0 | |
248 | allowframeloss = false | |
249 | tossremainder = false | |
250 | ||
251 | ||
252 | lastframe = tick() | |
253 | script.Heartbeat:Fire() | |
254 | ||
255 | ||
256 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
257 | tf = tf + s | |
258 | if tf >= frame then | |
259 | if allowframeloss then | |
260 | script.Heartbeat:Fire() | |
261 | lastframe = tick() | |
262 | else | |
263 | for i = 1, math.floor(tf / frame) do | |
264 | script.Heartbeat:Fire() | |
265 | end | |
266 | lastframe = tick() | |
267 | end | |
268 | if tossremainder then | |
269 | tf = 0 | |
270 | else | |
271 | tf = tf - frame * math.floor(tf / frame) | |
272 | end | |
273 | end | |
274 | end) | |
275 | ||
276 | Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2)) | |
277 | HatWeld=CFuncs.Weld.Create(m,Character["Head"],Hat,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365142822, -0.719758511, 0.0314178467, -1.00000834, 4.61186464e-05, -2.77473146e-06, 4.86522331e-05, 1, 5.23036442e-06, 2.92961045e-06, 5.51708399e-06, -1)) | |
278 | meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=2711178",Vector3.new(0, 0, 0),Vector3.new(2, 2, 2)) | |
279 | meh.TextureId = "http://www.roblox.com/asset/?id=32935396" | |
280 | ||
281 | local top = Instance.new("Shirt") | |
282 | top.ShirtTemplate = "rbxassetid://268316000" | |
283 | top.Parent = Character | |
284 | top.Name = "Cloth" | |
285 | local bottom = Instance.new("Pants") | |
286 | bottom.PantsTemplate = "rbxassetid://268949770" | |
287 | bottom.Parent = Character | |
288 | bottom.Name = "Cloth" | |
289 | ------------------------------------------------------- | |
290 | --End HeartBeat-- | |
291 | ------------------------------------------------------- | |
292 | ||
293 | ------------------------------------------------------- | |
294 | --Start Important Functions-- | |
295 | ------------------------------------------------------- | |
296 | function swait(num) | |
297 | if num == 0 or num == nil then | |
298 | game:service("RunService").Stepped:wait(0) | |
299 | else | |
300 | for i = 0, num do | |
301 | game:service("RunService").Stepped:wait(0) | |
302 | end | |
303 | end | |
304 | end | |
305 | function thread(f) | |
306 | coroutine.resume(coroutine.create(f)) | |
307 | end | |
308 | function clerp(a, b, t) | |
309 | local qa = { | |
310 | QuaternionFromCFrame(a) | |
311 | } | |
312 | local qb = { | |
313 | QuaternionFromCFrame(b) | |
314 | } | |
315 | local ax, ay, az = a.x, a.y, a.z | |
316 | local bx, by, bz = b.x, b.y, b.z | |
317 | local _t = 1 - t | |
318 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
319 | end | |
320 | function QuaternionFromCFrame(cf) | |
321 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
322 | local trace = m00 + m11 + m22 | |
323 | if trace > 0 then | |
324 | local s = math.sqrt(1 + trace) | |
325 | local recip = 0.5 / s | |
326 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
327 | else | |
328 | local i = 0 | |
329 | if m00 < m11 then | |
330 | i = 1 | |
331 | end | |
332 | if m22 > (i == 0 and m00 or m11) then | |
333 | i = 2 | |
334 | end | |
335 | if i == 0 then | |
336 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
337 | local recip = 0.5 / s | |
338 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
339 | elseif i == 1 then | |
340 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
341 | local recip = 0.5 / s | |
342 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
343 | elseif i == 2 then | |
344 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
345 | local recip = 0.5 / s | |
346 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
347 | end | |
348 | end | |
349 | end | |
350 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
351 | local xs, ys, zs = x + x, y + y, z + z | |
352 | local wx, wy, wz = w * xs, w * ys, w * zs | |
353 | local xx = x * xs | |
354 | local xy = x * ys | |
355 | local xz = x * zs | |
356 | local yy = y * ys | |
357 | local yz = y * zs | |
358 | local zz = z * zs | |
359 | 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)) | |
360 | end | |
361 | function QuaternionSlerp(a, b, t) | |
362 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
363 | local startInterp, finishInterp | |
364 | if cosTheta >= 1.0E-4 then | |
365 | if 1 - cosTheta > 1.0E-4 then | |
366 | local theta = math.acos(cosTheta) | |
367 | local invSinTheta = 1 / Sin(theta) | |
368 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
369 | finishInterp = Sin(t * theta) * invSinTheta | |
370 | else | |
371 | startInterp = 1 - t | |
372 | finishInterp = t | |
373 | end | |
374 | elseif 1 + cosTheta > 1.0E-4 then | |
375 | local theta = math.acos(-cosTheta) | |
376 | local invSinTheta = 1 / Sin(theta) | |
377 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
378 | finishInterp = Sin(t * theta) * invSinTheta | |
379 | else | |
380 | startInterp = t - 1 | |
381 | finishInterp = t | |
382 | end | |
383 | 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 | |
384 | end | |
385 | function rayCast(Position, Direction, Range, Ignore) | |
386 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
387 | end | |
388 | local RbxUtility = LoadLibrary("RbxUtility") | |
389 | local Create = RbxUtility.Create | |
390 | ||
391 | ------------------------------------------------------- | |
392 | --Start Damage Function-- | |
393 | ------------------------------------------------------- | |
394 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
395 | if hit.Parent == nil then | |
396 | return | |
397 | end | |
398 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
399 | for _, v in pairs(hit.Parent:children()) do | |
400 | if v:IsA("Humanoid") then | |
401 | h = v | |
402 | end | |
403 | end | |
404 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
405 | ||
406 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
407 | end | |
408 | ||
409 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
410 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
411 | if hit.Parent.DebounceHit.Value == true then | |
412 | return | |
413 | end | |
414 | end | |
415 | if insta == true then | |
416 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
417 | end | |
418 | local c = Create("ObjectValue"){ | |
419 | Name = "creator", | |
420 | Value = game:service("Players").LocalPlayer, | |
421 | Parent = h, | |
422 | } | |
423 | game:GetService("Debris"):AddItem(c, .5) | |
424 | if HitSound ~= nil and HitPitch ~= nil then | |
425 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
426 | end | |
427 | local Damage = math.random(minim, maxim) | |
428 | local blocked = false | |
429 | local block = hit.Parent:findFirstChild("Block") | |
430 | if block ~= nil then | |
431 | if block.className == "IntValue" then | |
432 | if block.Value > 0 then | |
433 | blocked = true | |
434 | block.Value = block.Value - 1 | |
435 | print(block.Value) | |
436 | end | |
437 | end | |
438 | end | |
439 | if blocked == false then | |
440 | h.Health = h.Health - Damage | |
441 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
442 | else | |
443 | h.Health = h.Health - (Damage / 2) | |
444 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
445 | end | |
446 | if Type == "Knockdown" then | |
447 | local hum = hit.Parent.Humanoid | |
448 | hum.PlatformStand = true | |
449 | coroutine.resume(coroutine.create(function(HHumanoid) | |
450 | swait(1) | |
451 | HHumanoid.PlatformStand = false | |
452 | end), hum) | |
453 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
454 | local bodvol = Create("BodyVelocity"){ | |
455 | velocity = angle * knockback, | |
456 | P = 5000, | |
457 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
458 | Parent = hit, | |
459 | } | |
460 | local rl = Create("BodyAngularVelocity"){ | |
461 | P = 3000, | |
462 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
463 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
464 | Parent = hit, | |
465 | } | |
466 | game:GetService("Debris"):AddItem(bodvol, .5) | |
467 | game:GetService("Debris"):AddItem(rl, .5) | |
468 | elseif Type == "Normal" then | |
469 | local vp = Create("BodyVelocity"){ | |
470 | P = 500, | |
471 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
472 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
473 | } | |
474 | if knockback > 0 then | |
475 | vp.Parent = hit.Parent.Torso | |
476 | end | |
477 | game:GetService("Debris"):AddItem(vp, .5) | |
478 | elseif Type == "Up" then | |
479 | local bodyVelocity = Create("BodyVelocity"){ | |
480 | velocity = Vector3.new(0, 20, 0), | |
481 | P = 5000, | |
482 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
483 | Parent = hit, | |
484 | } | |
485 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
486 | elseif Type == "DarkUp" then | |
487 | coroutine.resume(coroutine.create(function() | |
488 | for i = 0, 1, 0.1 do | |
489 | swait() | |
490 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
491 | end | |
492 | end)) | |
493 | local bodyVelocity = Create("BodyVelocity"){ | |
494 | velocity = Vector3.new(0, 20, 0), | |
495 | P = 5000, | |
496 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
497 | Parent = hit, | |
498 | } | |
499 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
500 | elseif Type == "Snare" then | |
501 | local bp = Create("BodyPosition"){ | |
502 | P = 2000, | |
503 | D = 100, | |
504 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
505 | position = hit.Parent.Torso.Position, | |
506 | Parent = hit.Parent.Torso, | |
507 | } | |
508 | game:GetService("Debris"):AddItem(bp, 1) | |
509 | elseif Type == "Freeze" then | |
510 | local BodPos = Create("BodyPosition"){ | |
511 | P = 50000, | |
512 | D = 1000, | |
513 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
514 | position = hit.Parent.Torso.Position, | |
515 | Parent = hit.Parent.Torso, | |
516 | } | |
517 | local BodGy = Create("BodyGyro") { | |
518 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
519 | P = 20e+003, | |
520 | Parent = hit.Parent.Torso, | |
521 | cframe = hit.Parent.Torso.CFrame, | |
522 | } | |
523 | hit.Parent.Torso.Anchored = true | |
524 | coroutine.resume(coroutine.create(function(Part) | |
525 | swait(1.5) | |
526 | Part.Anchored = false | |
527 | end), hit.Parent.Torso) | |
528 | game:GetService("Debris"):AddItem(BodPos, 3) | |
529 | game:GetService("Debris"):AddItem(BodGy, 3) | |
530 | end | |
531 | local debounce = Create("BoolValue"){ | |
532 | Name = "DebounceHit", | |
533 | Parent = hit.Parent, | |
534 | Value = true, | |
535 | } | |
536 | game:GetService("Debris"):AddItem(debounce, Delay) | |
537 | c = Create("ObjectValue"){ | |
538 | Name = "creator", | |
539 | Value = Player, | |
540 | Parent = h, | |
541 | } | |
542 | game:GetService("Debris"):AddItem(c, .5) | |
543 | end | |
544 | end | |
545 | ------------------------------------------------------- | |
546 | --End Damage Function-- | |
547 | ------------------------------------------------------- | |
548 | ||
549 | ------------------------------------------------------- | |
550 | --Start Damage Function Customization-- | |
551 | ------------------------------------------------------- | |
552 | function ShowDamage(Pos, Text, Time, Color) | |
553 | local Rate = (1 / 30) | |
554 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
555 | local Text = (Text or "") | |
556 | local Time = (Time or 2) | |
557 | local Color = (Color or Color3.new(1, 0, 1)) | |
558 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
559 | EffectPart.Anchored = true | |
560 | local BillboardGui = Create("BillboardGui"){ | |
561 | Size = UDim2.new(3, 0, 3, 0), | |
562 | Adornee = EffectPart, | |
563 | Parent = EffectPart, | |
564 | } | |
565 | local TextLabel = Create("TextLabel"){ | |
566 | BackgroundTransparency = 1, | |
567 | Size = UDim2.new(1, 0, 1, 0), | |
568 | Text = Text, | |
569 | Font = "Bodoni", | |
570 | TextColor3 = Color, | |
571 | TextScaled = true, | |
572 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
573 | Parent = BillboardGui, | |
574 | } | |
575 | game.Debris:AddItem(EffectPart, (Time)) | |
576 | EffectPart.Parent = game:GetService("Workspace") | |
577 | delay(0, function() | |
578 | local Frames = (Time / Rate) | |
579 | for Frame = 1, Frames do | |
580 | wait(Rate) | |
581 | local Percent = (Frame / Frames) | |
582 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
583 | TextLabel.TextTransparency = Percent | |
584 | end | |
585 | if EffectPart and EffectPart.Parent then | |
586 | EffectPart:Destroy() | |
587 | end | |
588 | end) | |
589 | end | |
590 | ------------------------------------------------------- | |
591 | --End Damage Function Customization-- | |
592 | ------------------------------------------------------- | |
593 | ||
594 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
595 | for _, c in pairs(workspace:children()) do | |
596 | local hum = c:findFirstChild("Humanoid") | |
597 | if hum ~= nil then | |
598 | local head = c:findFirstChild("Head") | |
599 | if head ~= nil then | |
600 | local targ = head.Position - Part.Position | |
601 | local mag = targ.magnitude | |
602 | if magni >= mag and c.Name ~= plr.Name then | |
603 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
604 | end | |
605 | end | |
606 | end | |
607 | end | |
608 | end | |
609 | ||
610 | ||
611 | CFuncs = { | |
612 | Part = { | |
613 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
614 | local Part = Create("Part")({ | |
615 | Parent = Parent, | |
616 | Reflectance = Reflectance, | |
617 | Transparency = Transparency, | |
618 | CanCollide = false, | |
619 | Locked = true, | |
620 | BrickColor = BrickColor.new(tostring(BColor)), | |
621 | Name = Name, | |
622 | Size = Size, | |
623 | Material = Material | |
624 | }) | |
625 | RemoveOutlines(Part) | |
626 | return Part | |
627 | end | |
628 | }, | |
629 | Mesh = { | |
630 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
631 | local Msh = Create(Mesh)({ | |
632 | Parent = Part, | |
633 | Offset = OffSet, | |
634 | Scale = Scale | |
635 | }) | |
636 | if Mesh == "SpecialMesh" then | |
637 | Msh.MeshType = MeshType | |
638 | Msh.MeshId = MeshId | |
639 | end | |
640 | return Msh | |
641 | end | |
642 | }, | |
643 | Mesh = { | |
644 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
645 | local Msh = Create(Mesh)({ | |
646 | Parent = Part, | |
647 | Offset = OffSet, | |
648 | Scale = Scale | |
649 | }) | |
650 | if Mesh == "SpecialMesh" then | |
651 | Msh.MeshType = MeshType | |
652 | Msh.MeshId = MeshId | |
653 | end | |
654 | return Msh | |
655 | end | |
656 | }, | |
657 | Weld = { | |
658 | Create = function(Parent, Part0, Part1, C0, C1) | |
659 | local Weld = Create("Weld")({ | |
660 | Parent = Parent, | |
661 | Part0 = Part0, | |
662 | Part1 = Part1, | |
663 | C0 = C0, | |
664 | C1 = C1 | |
665 | }) | |
666 | return Weld | |
667 | end | |
668 | }, | |
669 | Sound = { | |
670 | Create = function(id, par, vol, pit) | |
671 | coroutine.resume(coroutine.create(function() | |
672 | local S = Create("Sound")({ | |
673 | Volume = vol, | |
674 | Pitch = pit or 1, | |
675 | SoundId = id, | |
676 | Parent = par or workspace | |
677 | }) | |
678 | wait() | |
679 | S:play() | |
680 | game:GetService("Debris"):AddItem(S, 6) | |
681 | end)) | |
682 | end | |
683 | }, | |
684 | ParticleEmitter = { | |
685 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
686 | local fp = Create("ParticleEmitter")({ | |
687 | Parent = Parent, | |
688 | Color = ColorSequence.new(Color1, Color2), | |
689 | LightEmission = LightEmission, | |
690 | Size = Size, | |
691 | Texture = Texture, | |
692 | Transparency = Transparency, | |
693 | ZOffset = ZOffset, | |
694 | Acceleration = Accel, | |
695 | Drag = Drag, | |
696 | LockedToPart = LockedToPart, | |
697 | VelocityInheritance = VelocityInheritance, | |
698 | EmissionDirection = EmissionDirection, | |
699 | Enabled = Enabled, | |
700 | Lifetime = LifeTime, | |
701 | Rate = Rate, | |
702 | Rotation = Rotation, | |
703 | RotSpeed = RotSpeed, | |
704 | Speed = Speed, | |
705 | VelocitySpread = VelocitySpread | |
706 | }) | |
707 | return fp | |
708 | end | |
709 | } | |
710 | } | |
711 | function RemoveOutlines(part) | |
712 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
713 | end | |
714 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
715 | local Part = Create("Part")({ | |
716 | formFactor = FormFactor, | |
717 | Parent = Parent, | |
718 | Reflectance = Reflectance, | |
719 | Transparency = Transparency, | |
720 | CanCollide = false, | |
721 | Locked = true, | |
722 | BrickColor = BrickColor.new(tostring(BColor)), | |
723 | Name = Name, | |
724 | Size = Size, | |
725 | Material = Material | |
726 | }) | |
727 | RemoveOutlines(Part) | |
728 | return Part | |
729 | end | |
730 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
731 | local Msh = Create(Mesh)({ | |
732 | Parent = Part, | |
733 | Offset = OffSet, | |
734 | Scale = Scale | |
735 | }) | |
736 | if Mesh == "SpecialMesh" then | |
737 | Msh.MeshType = MeshType | |
738 | Msh.MeshId = MeshId | |
739 | end | |
740 | return Msh | |
741 | end | |
742 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
743 | local Weld = Create("Weld")({ | |
744 | Parent = Parent, | |
745 | Part0 = Part0, | |
746 | Part1 = Part1, | |
747 | C0 = C0, | |
748 | C1 = C1 | |
749 | }) | |
750 | return Weld | |
751 | end | |
752 | ||
753 | ||
754 | ------------------------------------------------------- | |
755 | --Start Effect Function-- | |
756 | ------------------------------------------------------- | |
757 | EffectModel = Instance.new("Model", char) | |
758 | Effects = { | |
759 | Block = { | |
760 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
761 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
762 | prt.Anchored = true | |
763 | prt.CFrame = cframe | |
764 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
765 | game:GetService("Debris"):AddItem(prt, 10) | |
766 | if Type == 1 or Type == nil then | |
767 | table.insert(Effects, { | |
768 | prt, | |
769 | "Block1", | |
770 | delay, | |
771 | x3, | |
772 | y3, | |
773 | z3, | |
774 | msh | |
775 | }) | |
776 | elseif Type == 2 then | |
777 | table.insert(Effects, { | |
778 | prt, | |
779 | "Block2", | |
780 | delay, | |
781 | x3, | |
782 | y3, | |
783 | z3, | |
784 | msh | |
785 | }) | |
786 | else | |
787 | table.insert(Effects, { | |
788 | prt, | |
789 | "Block3", | |
790 | delay, | |
791 | x3, | |
792 | y3, | |
793 | z3, | |
794 | msh | |
795 | }) | |
796 | end | |
797 | end | |
798 | }, | |
799 | Sphere = { | |
800 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
801 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
802 | prt.Anchored = true | |
803 | prt.CFrame = cframe | |
804 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
805 | game:GetService("Debris"):AddItem(prt, 10) | |
806 | table.insert(Effects, { | |
807 | prt, | |
808 | "Cylinder", | |
809 | delay, | |
810 | x3, | |
811 | y3, | |
812 | z3, | |
813 | msh | |
814 | }) | |
815 | end | |
816 | }, | |
817 | Cylinder = { | |
818 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
819 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
820 | prt.Anchored = true | |
821 | prt.CFrame = cframe | |
822 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
823 | game:GetService("Debris"):AddItem(prt, 10) | |
824 | table.insert(Effects, { | |
825 | prt, | |
826 | "Cylinder", | |
827 | delay, | |
828 | x3, | |
829 | y3, | |
830 | z3, | |
831 | msh | |
832 | }) | |
833 | end | |
834 | }, | |
835 | Wave = { | |
836 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
837 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
838 | prt.Anchored = true | |
839 | prt.CFrame = cframe | |
840 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
841 | game:GetService("Debris"):AddItem(prt, 10) | |
842 | table.insert(Effects, { | |
843 | prt, | |
844 | "Cylinder", | |
845 | delay, | |
846 | x3 / 60, | |
847 | y3 / 60, | |
848 | z3 / 60, | |
849 | msh | |
850 | }) | |
851 | end | |
852 | }, | |
853 | Ring = { | |
854 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
855 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
856 | prt.Anchored = true | |
857 | prt.CFrame = cframe | |
858 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
859 | game:GetService("Debris"):AddItem(prt, 10) | |
860 | table.insert(Effects, { | |
861 | prt, | |
862 | "Cylinder", | |
863 | delay, | |
864 | x3, | |
865 | y3, | |
866 | z3, | |
867 | msh | |
868 | }) | |
869 | end | |
870 | }, | |
871 | Break = { | |
872 | Create = function(brickcolor, cframe, x1, y1, z1) | |
873 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
874 | prt.Anchored = true | |
875 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
876 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
877 | local num = math.random(10, 50) / 1000 | |
878 | game:GetService("Debris"):AddItem(prt, 10) | |
879 | table.insert(Effects, { | |
880 | prt, | |
881 | "Shatter", | |
882 | num, | |
883 | prt.CFrame, | |
884 | math.random() - math.random(), | |
885 | 0, | |
886 | math.random(50, 100) / 100 | |
887 | }) | |
888 | end | |
889 | }, | |
890 | Spiral = { | |
891 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
892 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
893 | prt.Anchored = true | |
894 | prt.CFrame = cframe | |
895 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
896 | game:GetService("Debris"):AddItem(prt, 10) | |
897 | table.insert(Effects, { | |
898 | prt, | |
899 | "Cylinder", | |
900 | delay, | |
901 | x3, | |
902 | y3, | |
903 | z3, | |
904 | msh | |
905 | }) | |
906 | end | |
907 | }, | |
908 | Push = { | |
909 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
910 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
911 | prt.Anchored = true | |
912 | prt.CFrame = cframe | |
913 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
914 | game:GetService("Debris"):AddItem(prt, 10) | |
915 | table.insert(Effects, { | |
916 | prt, | |
917 | "Cylinder", | |
918 | delay, | |
919 | x3, | |
920 | y3, | |
921 | z3, | |
922 | msh | |
923 | }) | |
924 | end | |
925 | } | |
926 | } | |
927 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
928 | local fp = IT("Part") | |
929 | fp.formFactor = formfactor | |
930 | fp.Parent = parent | |
931 | fp.Reflectance = reflectance | |
932 | fp.Transparency = transparency | |
933 | fp.CanCollide = false | |
934 | fp.Locked = true | |
935 | fp.BrickColor = brickcolor | |
936 | fp.Name = name | |
937 | fp.Size = size | |
938 | fp.Position = tors.Position | |
939 | RemoveOutlines(fp) | |
940 | fp.Material = "SmoothPlastic" | |
941 | fp:BreakJoints() | |
942 | return fp | |
943 | end | |
944 | ||
945 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
946 | local mesh = IT(Mesh) | |
947 | mesh.Parent = part | |
948 | if Mesh == "SpecialMesh" then | |
949 | mesh.MeshType = meshtype | |
950 | if meshid ~= "nil" then | |
951 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
952 | end | |
953 | end | |
954 | mesh.Offset = offset | |
955 | mesh.Scale = scale | |
956 | return mesh | |
957 | end | |
958 | ||
959 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
960 | local type = type | |
961 | local rng = Instance.new("Part", char) | |
962 | rng.Anchored = true | |
963 | rng.BrickColor = color | |
964 | rng.CanCollide = false | |
965 | rng.FormFactor = 3 | |
966 | rng.Name = "Ring" | |
967 | rng.Material = "Neon" | |
968 | rng.Size = Vector3.new(1, 1, 1) | |
969 | rng.Transparency = 0 | |
970 | rng.TopSurface = 0 | |
971 | rng.BottomSurface = 0 | |
972 | rng.CFrame = pos | |
973 | local rngm = Instance.new("SpecialMesh", rng) | |
974 | rngm.MeshType = MType | |
975 | rngm.Scale = scale | |
976 | local scaler2 = 1 | |
977 | if type == "Add" then | |
978 | scaler2 = 1 * value | |
979 | elseif type == "Divide" then | |
980 | scaler2 = 1 / value | |
981 | end | |
982 | coroutine.resume(coroutine.create(function() | |
983 | for i = 0, 10 / bonuspeed, 0.1 do | |
984 | swait() | |
985 | if type == "Add" then | |
986 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
987 | elseif type == "Divide" then | |
988 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
989 | end | |
990 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
991 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
992 | end | |
993 | rng:Destroy() | |
994 | end)) | |
995 | end | |
996 | ||
997 | function Eviscerate(dude) | |
998 | if dude.Name ~= char then | |
999 | local bgf = IT("BodyGyro", dude.Head) | |
1000 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1001 | local val = IT("BoolValue", dude) | |
1002 | val.Name = "IsHit" | |
1003 | local ds = coroutine.wrap(function() | |
1004 | dude:WaitForChild("Head"):BreakJoints() | |
1005 | wait(0.5) | |
1006 | target = nil | |
1007 | coroutine.resume(coroutine.create(function() | |
1008 | for i, v in pairs(dude:GetChildren()) do | |
1009 | if v:IsA("Accessory") then | |
1010 | v:Destroy() | |
1011 | end | |
1012 | if v:IsA("Humanoid") then | |
1013 | v:Destroy() | |
1014 | end | |
1015 | if v:IsA("CharacterMesh") then | |
1016 | v:Destroy() | |
1017 | end | |
1018 | if v:IsA("Model") then | |
1019 | v:Destroy() | |
1020 | end | |
1021 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1022 | for x, o in pairs(v:GetChildren()) do | |
1023 | if o:IsA("Decal") then | |
1024 | o:Destroy() | |
1025 | end | |
1026 | end | |
1027 | coroutine.resume(coroutine.create(function() | |
1028 | v.Material = "Neon" | |
1029 | v.CanCollide = false | |
1030 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1031 | PartEmmit1.LightEmission = 1 | |
1032 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1033 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1034 | PartEmmit1.Rate = 150 | |
1035 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1036 | PartEmmit1.Size = NumberSequence.new({ | |
1037 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1038 | NumberSequenceKeypoint.new(1, 0, 0) | |
1039 | }) | |
1040 | PartEmmit1.Transparency = NumberSequence.new({ | |
1041 | NumberSequenceKeypoint.new(0, 0, 0), | |
1042 | NumberSequenceKeypoint.new(1, 1, 0) | |
1043 | }) | |
1044 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1045 | PartEmmit1.VelocitySpread = 30000 | |
1046 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1047 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1048 | local BodPoss = IT("BodyPosition", v) | |
1049 | BodPoss.P = 3000 | |
1050 | BodPoss.D = 1000 | |
1051 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1052 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1053 | v.Color = maincolor.Color | |
1054 | coroutine.resume(coroutine.create(function() | |
1055 | for i = 0, 49 do | |
1056 | swait(1) | |
1057 | v.Transparency = v.Transparency + 0.08 | |
1058 | end | |
1059 | wait(0.5) | |
1060 | PartEmmit1.Enabled = false | |
1061 | wait(3) | |
1062 | v:Destroy() | |
1063 | dude:Destroy() | |
1064 | end)) | |
1065 | end)) | |
1066 | end | |
1067 | end | |
1068 | end)) | |
1069 | end) | |
1070 | ds() | |
1071 | end | |
1072 | end | |
1073 | ||
1074 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1075 | if SinglePlayer then | |
1076 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1077 | end | |
1078 | local List = {} | |
1079 | for i, v in pairs(workspace:GetChildren()) do | |
1080 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1081 | table.insert(List, v) | |
1082 | end | |
1083 | end | |
1084 | return List | |
1085 | end | |
1086 | ||
1087 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1088 | local type = type | |
1089 | local rng = Instance.new("Part", char) | |
1090 | rng.Anchored = true | |
1091 | rng.BrickColor = color | |
1092 | rng.CanCollide = false | |
1093 | rng.FormFactor = 3 | |
1094 | rng.Name = "Ring" | |
1095 | rng.Material = "Neon" | |
1096 | rng.Size = Vector3.new(1, 1, 1) | |
1097 | rng.Transparency = 0 | |
1098 | rng.TopSurface = 0 | |
1099 | rng.BottomSurface = 0 | |
1100 | rng.CFrame = pos | |
1101 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1102 | local rngm = Instance.new("SpecialMesh", rng) | |
1103 | rngm.MeshType = MType | |
1104 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1105 | local scaler2 = 1 | |
1106 | local speeder = FastSpeed | |
1107 | if type == "Add" then | |
1108 | scaler2 = 1 * value | |
1109 | elseif type == "Divide" then | |
1110 | scaler2 = 1 / value | |
1111 | end | |
1112 | coroutine.resume(coroutine.create(function() | |
1113 | for i = 0, 10 / bonuspeed, 0.1 do | |
1114 | swait() | |
1115 | if type == "Add" then | |
1116 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1117 | elseif type == "Divide" then | |
1118 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1119 | end | |
1120 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1121 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1122 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1123 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1124 | end | |
1125 | rng:Destroy() | |
1126 | end)) | |
1127 | end | |
1128 | ||
1129 | function SoulSteal(dude) | |
1130 | if dude.Name ~= char then | |
1131 | local bgf = IT("BodyGyro", dude.Head) | |
1132 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1133 | local val = IT("BoolValue", dude) | |
1134 | val.Name = "IsHit" | |
1135 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1136 | local soulst = coroutine.wrap(function() | |
1137 | local soul = Instance.new("Part",dude) | |
1138 | soul.Size = Vector3.new(1,1,1) | |
1139 | soul.CanCollide = false | |
1140 | soul.Anchored = false | |
1141 | soul.Position = torso.Position | |
1142 | soul.Transparency = 1 | |
1143 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1144 | PartEmmit1.LightEmission = 1 | |
1145 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1146 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1147 | PartEmmit1.Rate = 250 | |
1148 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1149 | PartEmmit1.Size = NumberSequence.new({ | |
1150 | NumberSequenceKeypoint.new(0, 1, 0), | |
1151 | NumberSequenceKeypoint.new(1, 0, 0) | |
1152 | }) | |
1153 | PartEmmit1.Transparency = NumberSequence.new({ | |
1154 | NumberSequenceKeypoint.new(0, 0, 0), | |
1155 | NumberSequenceKeypoint.new(1, 1, 0) | |
1156 | }) | |
1157 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1158 | PartEmmit1.VelocitySpread = 30000 | |
1159 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1160 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1161 | local BodPoss = IT("BodyPosition", soul) | |
1162 | BodPoss.P = 3000 | |
1163 | BodPoss.D = 1000 | |
1164 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1165 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1166 | wait(1.6) | |
1167 | soul.Touched:connect(function(hit) | |
1168 | if hit.Parent == char then | |
1169 | soul:Destroy() | |
1170 | end | |
1171 | end) | |
1172 | wait(1.2) | |
1173 | while soul do | |
1174 | swait() | |
1175 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1176 | BodPoss.Position = tors.Position | |
1177 | end | |
1178 | end) | |
1179 | soulst() | |
1180 | end | |
1181 | end | |
1182 | function FaceMouse() | |
1183 | local Cam = workspace.CurrentCamera | |
1184 | return { | |
1185 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1186 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1187 | } | |
1188 | end | |
1189 | ------------------------------------------------------- | |
1190 | --End Effect Function-- | |
1191 | ------------------------------------------------------- | |
1192 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1193 | local NSound = nil | |
1194 | coroutine.resume(coroutine.create(function() | |
1195 | NSound = IT("Sound", PARENT) | |
1196 | NSound.Volume = VOLUME | |
1197 | NSound.Pitch = PITCH | |
1198 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1199 | swait() | |
1200 | NSound:play() | |
1201 | game:GetService("Debris"):AddItem(NSound, 10) | |
1202 | end)) | |
1203 | return NSound | |
1204 | end | |
1205 | function CameraEnshaking(Length, Intensity) | |
1206 | coroutine.resume(coroutine.create(function() | |
1207 | local intensity = 1 * Intensity | |
1208 | local rotM = 0.01 * Intensity | |
1209 | for i = 0, Length, 0.1 do | |
1210 | swait() | |
1211 | intensity = intensity - 0.05 * Intensity / Length | |
1212 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1213 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1214 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1215 | end | |
1216 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1217 | end)) | |
1218 | end | |
1219 | ------------------------------------------------------- | |
1220 | --End Important Functions-- | |
1221 | ------------------------------------------------------- | |
1222 | ||
1223 | ||
1224 | ------------------------------------------------------- | |
1225 | --Start Customization-- | |
1226 | ------------------------------------------------------- | |
1227 | local Player_Size = 1 | |
1228 | if Player_Size ~= 1 then | |
1229 | root.Size = root.Size * Player_Size | |
1230 | tors.Size = tors.Size * Player_Size | |
1231 | hed.Size = hed.Size * Player_Size | |
1232 | ra.Size = ra.Size * Player_Size | |
1233 | la.Size = la.Size * Player_Size | |
1234 | rl.Size = rl.Size * Player_Size | |
1235 | ll.Size = ll.Size * Player_Size | |
1236 | ---------------------------------------------------------------------------------- | |
1237 | rootj.Parent = root | |
1238 | neck.Parent = tors | |
1239 | RW.Parent = tors | |
1240 | LW.Parent = tors | |
1241 | RH.Parent = tors | |
1242 | LH.Parent = tors | |
1243 | - | local SONG = 654094806 |
1243 | + | |
1244 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1245 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1246 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1247 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1248 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1249 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1250 | ---------------------------------------------------------------------------------- | |
1251 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1252 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1253 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1254 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1255 | --hat.Parent = Character | |
1256 | end | |
1257 | ---------------------------------------------------------------------------------- | |
1258 | local SONG = 0 | |
1259 | local SONG2 = 0 | |
1260 | local Music = Instance.new("Sound",tors) | |
1261 | Music.Volume = 2.5 | |
1262 | Music.Looped = true | |
1263 | Music.Pitch = 1 --Pitcher | |
1264 | ---------------------------------------------------------------------------------- | |
1265 | local equipped = false | |
1266 | local idle = 0 | |
1267 | local change = 1 | |
1268 | local val = 0 | |
1269 | local toim = 0 | |
1270 | local idleanim = 0.4 | |
1271 | local sine = 0 | |
1272 | local Sit = 1 | |
1273 | ---------------------------------------------------------------------------------- | |
1274 | hum.WalkSpeed = 8 | |
1275 | hum.JumpPower = 57 | |
1276 | hum.Animator.Parent = nil | |
1277 | ---------------------------------------------------------------------------------- | |
1278 | local r = 255 | |
1279 | local g = 0 | |
1280 | local b = 0 | |
1281 | coroutine.resume(coroutine.create(function() | |
1282 | while wait() do | |
1283 | for i = 0, 50.8 do | |
1284 | swait() | |
1285 | g = g + 5 | |
1286 | end | |
1287 | for i = 0, 50.8 do | |
1288 | swait() | |
1289 | r = r - 5 | |
1290 | end | |
1291 | for i = 0, 50.8 do | |
1292 | swait() | |
1293 | b = b + 5 | |
1294 | end | |
1295 | for i = 0, 50.8 do | |
1296 | swait() | |
1297 | g = g - 5 | |
1298 | end | |
1299 | for i = 0, 50.8 do | |
1300 | swait() | |
1301 | r = r + 5 | |
1302 | end | |
1303 | for i = 0, 50.8 do | |
1304 | swait() | |
1305 | b = b - 5 | |
1306 | - | tecks2.Text = "Vaporwave" |
1306 | + | |
1307 | end | |
1308 | end)) | |
1309 | ---------------------------------------------------------------------------------- | |
1310 | local naeeym2 = IT("BillboardGui",char) | |
1311 | naeeym2.AlwaysOnTop = true | |
1312 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1313 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1314 | - | hed.face.Texture = "rbxassetid://33752579" |
1314 | + | |
1315 | naeeym2.Adornee = hed | |
1316 | naeeym2.Name = "Name" | |
1317 | local tecks2 = IT("TextLabel",naeeym2) | |
1318 | tecks2.BackgroundTransparency = 1 | |
1319 | tecks2.TextScaled = true | |
1320 | tecks2.BorderSizePixel = 0 | |
1321 | tecks2.Text = "Electro swing" | |
1322 | --tecks2.Font = "Fantasy" | |
1323 | tecks2.TextSize = 30 | |
1324 | tecks2.TextStrokeTransparency = 0 | |
1325 | tecks2.TextColor3 = Color3.new(1,1,1) | |
1326 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1327 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1328 | tecks2.Parent = naeeym2 | |
1329 | hed.face.Texture = "rbxassetid://0" | |
1330 | ---------------------------------------------------------------------------------- | |
1331 | Reaper = IT("Model") | |
1332 | Reaper.Parent = char | |
1333 | Reaper.Name = "Reaper" | |
1334 | RHe = IT("Part") | |
1335 | RHe.Parent = Reaper | |
1336 | RHe.BrickColor = BrickC("Really black") | |
1337 | RHe.Locked = true | |
1338 | RHe.CanCollide = false | |
1339 | RHe.Transparency = 0 | |
1340 | PMesh = IT("SpecialMesh") | |
1341 | RHe.formFactor = "Symmetric" | |
1342 | PMesh.MeshType = "FileMesh" | |
1343 | PMesh.MeshId = "rbxassetid://1374148" | |
1344 | PMesh.TextureId = "rbxassetid://185703978" | |
1345 | PMesh.Scale = Vector3.new(1, 1, 1) | |
1346 | PMesh.Parent = RHe | |
1347 | local RWeld = IT("Weld") | |
1348 | RWeld.Parent = RHe | |
1349 | RWeld.Part0 = RHe | |
1350 | RWeld.Part1 = hed | |
1351 | RWeld.C0 = CF(0, -.7, 0) * angles(0, 0, 0) | |
1352 | ------------------------------------------------------- | |
1353 | --End Customization-- | |
1354 | ------------------------------------------------------- | |
1355 | ||
1356 | ||
1357 | ------------------------------------------------------- | |
1358 | --Start Attacks N Stuff-- | |
1359 | ------------------------------------------------------- | |
1360 | ||
1361 | ------------------------------------------------------- | |
1362 | --End Attacks N Stuff-- | |
1363 | ------------------------------------------------------- | |
1364 | mouse.KeyDown:connect(function(key) | |
1365 | if string.byte(key) == 48 then | |
1366 | Swing = 2 | |
1367 | hum.WalkSpeed = 38.82 | |
1368 | end | |
1369 | end) | |
1370 | mouse.KeyUp:connect(function(key) | |
1371 | if string.byte(key) == 48 then | |
1372 | Swing = 1 | |
1373 | hum.WalkSpeed = 8 | |
1374 | end | |
1375 | end) | |
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ------------------------------------------------------- | |
1385 | --Start Animations-- | |
1386 | ------------------------------------------------------- | |
1387 | while true do | |
1388 | swait() | |
1389 | sine = sine + change | |
1390 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1391 | local velderp = root.Velocity.y | |
1392 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1393 | if equipped == true or equipped == false then | |
1394 | if attack == false then | |
1395 | idle = idle + 1 | |
1396 | else | |
1397 | idle = 0 | |
1398 | end | |
1399 | tecks2.TextStrokeColor3 = Color3.new(r / 255, g / 255, b / 255) | |
1400 | if 1 < root.Velocity.y and hitfloor == nil then | |
1401 | Anim = "Jump" | |
1402 | if attack == false then | |
1403 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
1404 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1405 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1406 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1407 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1408 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1409 | end | |
1410 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1411 | Anim = "Fall" | |
1412 | if attack == false then | |
1413 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1414 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1415 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1416 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1417 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1418 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1419 | end | |
1420 | elseif torvel < 1 and hitfloor ~= nil then | |
1421 | Anim = "Idle" | |
1422 | change = .5 | |
1423 | if attack == false then | |
1424 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1425 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 3)), Rad(-4.5 * Sin(sine / 3)), Rad(0)), 0.3) | |
1426 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 + 0.1 * Cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-5)), 0.15) | |
1427 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1428 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.05 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1429 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(-30 * Sin(sine / 10)), Rad(0), Rad(-5 - 4.5 * Sin(sine / 20))), 0.1) | |
1430 | end | |
1431 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
1432 | Anim = "Walk" | |
1433 | change = .9 | |
1434 | if attack == false then | |
1435 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
1436 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1437 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1438 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1439 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1) | |
1440 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1) | |
1441 | end | |
1442 | elseif torvel >= 25 and hitfloor ~= nil then | |
1443 | Anim = "Sprint" | |
1444 | change = 1.35 | |
1445 | if attack == false then | |
1446 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
1447 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1448 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1449 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1450 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
1451 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
1452 | end | |
1453 | end | |
1454 | end | |
1455 | Music.SoundId = "rbxassetid://"..SONG | |
1456 | Music.Looped = true | |
1457 | Music.Pitch = 1 | |
1458 | Music.Volume = 5 | |
1459 | Music.Parent = tors | |
1460 | Music:Resume() | |
1461 | if 0 < #Effects then | |
1462 | for e = 1, #Effects do | |
1463 | if Effects[e] ~= nil then | |
1464 | local Thing = Effects[e] | |
1465 | if Thing ~= nil then | |
1466 | local Part = Thing[1] | |
1467 | local Mode = Thing[2] | |
1468 | local Delay = Thing[3] | |
1469 | local IncX = Thing[4] | |
1470 | local IncY = Thing[5] | |
1471 | local IncZ = Thing[6] | |
1472 | if 1 >= Thing[1].Transparency then | |
1473 | if Thing[2] == "Block1" then | |
1474 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1475 | local Mesh = Thing[1].Mesh | |
1476 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1477 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1478 | elseif Thing[2] == "Block2" then | |
1479 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1480 | local Mesh = Thing[7] | |
1481 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1482 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1483 | elseif Thing[2] == "Block3" then | |
1484 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
1485 | local Mesh = Thing[7] | |
1486 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1487 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1488 | elseif Thing[2] == "Cylinder" then | |
1489 | local Mesh = Thing[1].Mesh | |
1490 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1491 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1492 | elseif Thing[2] == "Blood" then | |
1493 | local Mesh = Thing[7] | |
1494 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1495 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1496 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1497 | elseif Thing[2] == "Elec" then | |
1498 | local Mesh = Thing[1].Mesh | |
1499 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1500 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1501 | elseif Thing[2] == "Disappear" then | |
1502 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1503 | elseif Thing[2] == "Shatter" then | |
1504 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1505 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1506 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1507 | Thing[6] = Thing[6] + Thing[5] | |
1508 | end | |
1509 | else | |
1510 | Part.Parent = nil | |
1511 | table.remove(Effects, e) | |
1512 | end | |
1513 | end | |
1514 | end | |
1515 | end | |
1516 | end | |
1517 | end | |
1518 | ------------------------------------------------------- | |
1519 | --End Animations And Script-- | |
1520 | ------------------------------------------------------- |