SHOW:
|
|
- or go back to the newest paste.
1 | -- ------------------------------ | |
2 | -- / \ | |
3 | -- | Edit By EnderPlayBro | | |
4 | -- | Code By ozzak1003 | | |
5 | -- | Idea From XKxngSupremeX | | |
6 | -- | Name:Scipt | | |
7 | -- | Asriel Dreemurr | | |
8 | -- | (dont leak it pls) | | |
9 | -- \ / | |
10 | -- ------------------------------ | |
11 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
12 | local Player,game,owner = owner,game | |
13 | local RealPlayer = Player | |
14 | do | |
15 | local rp = RealPlayer | |
16 | script.Parent = rp.Character | |
17 | ||
18 | --RemoteEvent for communicating | |
19 | local Event = Instance.new("RemoteEvent") | |
20 | Event.Name = "UserInput_Event" | |
21 | ||
22 | --Fake event to make stuff like Mouse.KeyDown work | |
23 | local function fakeEvent() | |
24 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
25 | t.connect = t.Connect | |
26 | return t | |
27 | end | |
28 | ||
29 | --Creating fake input objects with fake variables | |
30 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
31 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
32 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
33 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
34 | end} | |
35 | --Merged 2 functions into one by checking amount of arguments | |
36 | CAS.UnbindAction = CAS.BindAction | |
37 | ||
38 | --This function will trigger the events that have been :Connect()'ed | |
39 | local function te(self,ev,...) | |
40 | local t = m[ev] | |
41 | if t and t._fakeEvent then | |
42 | for _,f in pairs(t.Functions) do | |
43 | f(...) | |
44 | end | |
45 | end | |
46 | end | |
47 | m.TrigEvent = te | |
48 | UIS.TrigEvent = te | |
49 | ||
50 | Event.OnServerEvent:Connect(function(plr,io) | |
51 | if plr~=rp then return end | |
52 | m.Target = io.Target | |
53 | m.Hit = io.Hit | |
54 | if not io.isMouse then | |
55 | local b = io.UserInputState == Enum.UserInputState.Begin | |
56 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
57 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
58 | end | |
59 | for _,t in pairs(CAS.Actions) do | |
60 | for _,k in pairs(t.Keys) do | |
61 | if k==io.KeyCode then | |
62 | t.Function(t.Name,io.UserInputState,io) | |
63 | end | |
64 | end | |
65 | end | |
66 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
67 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
68 | end | |
69 | end) | |
70 | Event.Parent = NLS([==[ | |
71 | local Player = game:GetService("Players").LocalPlayer | |
72 | local Event = script:WaitForChild("UserInput_Event") | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local UIS = game:GetService("UserInputService") | |
76 | local input = function(io,a) | |
77 | if a then return end | |
78 | --Since InputObject is a client-side instance, we create and pass table instead | |
79 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
80 | end | |
81 | UIS.InputBegan:Connect(input) | |
82 | UIS.InputEnded:Connect(input) | |
83 | ||
84 | local h,t | |
85 | --Give the server mouse data 30 times every second, but only if the values changed | |
86 | --If player is not moving their mouse, client won't fire events | |
87 | while wait(1/30) do | |
88 | if h~=Mouse.Hit or t~=Mouse.Target then | |
89 | h,t=Mouse.Hit,Mouse.Target | |
90 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
91 | end | |
92 | end]==],Player.Character) | |
93 | ||
94 | ----Sandboxed game object that allows the usage of client-side methods and services | |
95 | --Real game object | |
96 | local _rg = game | |
97 | ||
98 | --Metatable for fake service | |
99 | local fsmt = { | |
100 | __index = function(self,k) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s[k] end | |
103 | end, | |
104 | __newindex = function(self,k,v) | |
105 | local s = rawget(self,"_RealService") | |
106 | if s then s[k]=v end | |
107 | end, | |
108 | __call = function(self,...) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then return s(...) end | |
111 | end | |
112 | } | |
113 | local function FakeService(t,RealService) | |
114 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
115 | return setmetatable(t,fsmt) | |
116 | end | |
117 | ||
118 | --Fake game object | |
119 | local g = { | |
120 | GetService = function(self,s) | |
121 | return self[s] | |
122 | end, | |
123 | Players = FakeService({ | |
124 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
125 | },"Players"), | |
126 | UserInputService = FakeService(UIS,"UserInputService"), | |
127 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
128 | } | |
129 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
130 | g.service = g.GetService | |
131 | ||
132 | g.RunService = FakeService({ | |
133 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
134 | BindToRenderStep = function(self,name,_,fun) | |
135 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
136 | end, | |
137 | UnbindFromRenderStep = function(self,name) | |
138 | self._btrs[name]:Disconnect() | |
139 | end, | |
140 | },"RunService") | |
141 | ||
142 | setmetatable(g,{ | |
143 | __index=function(self,s) | |
144 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
145 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
146 | end, | |
147 | __newindex = fsmt.__newindex, | |
148 | __call = fsmt.__call | |
149 | }) | |
150 | --Changing owner to fake player object to support owner:GetMouse() | |
151 | game,owner = g,g.Players.LocalPlayer | |
152 | end | |
153 | ||
154 | Player = owner | |
155 | PlayerGui = Player.PlayerGui | |
156 | Cam = workspace.CurrentCamera | |
157 | Backpack = Player.Backpack | |
158 | Character = Player.Character | |
159 | Humanoid = Character.Humanoid | |
160 | Mouse = Player:GetMouse() | |
161 | RootPart = Character["HumanoidRootPart"] | |
162 | Torso = Character["Torso"] | |
163 | Head = Character["Head"] | |
164 | RightArm = Character["Right Arm"] | |
165 | LeftArm = Character["Left Arm"] | |
166 | RightLeg = Character["Right Leg"] | |
167 | LeftLeg = Character["Left Leg"] | |
168 | RootJoint = RootPart["RootJoint"] | |
169 | Neck = Torso["Neck"] | |
170 | RightShoulder = Torso["Right Shoulder"] | |
171 | LeftShoulder = Torso["Left Shoulder"] | |
172 | RightHip = Torso["Right Hip"] | |
173 | LeftHip = Torso["Left Hip"] | |
174 | ||
175 | removeuseless = game:GetService("Debris") | |
176 | laff = Instance.new("Sound",Head) | |
177 | tauntdebounce = false | |
178 | Character = Player.Character | |
179 | Humanoid = Character.Humanoid | |
180 | --------- | |
181 | plr = game.Players.LocalPlayer | |
182 | chara = plr.Character | |
183 | mouse = plr:GetMouse() | |
184 | Create = Instance.new | |
185 | Huge = math.huge | |
186 | ||
187 | Player = game:GetService("Players").LocalPlayer | |
188 | PlayerGui = Player.PlayerGui | |
189 | Cam = workspace.CurrentCamera | |
190 | Backpack = Player.Backpack | |
191 | Character = Player.Character | |
192 | char = Player.Character | |
193 | Humanoid = Character.Humanoid | |
194 | Mouse = Player:GetMouse() | |
195 | RootPart = Character["HumanoidRootPart"] | |
196 | Torso = Character["Torso"] | |
197 | Head = Character["Head"] | |
198 | RightArm = Character["Right Arm"] | |
199 | LeftArm = Character["Left Arm"] | |
200 | RightLeg = Character["Right Leg"] | |
201 | LeftLeg = Character["Left Leg"] | |
202 | RootJoint = RootPart["RootJoint"] | |
203 | Neck = Torso["Neck"] | |
204 | RightShoulder = Torso["Right Shoulder"] | |
205 | LeftShoulder = Torso["Left Shoulder"] | |
206 | RightHip = Torso["Right Hip"] | |
207 | LeftHip = Torso["Left Hip"] | |
208 | ||
209 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
210 | Head.face.Texture = Orin | |
211 | function weld(a, b, acf) | |
212 | local w = Instance.new("Weld", a) | |
213 | w.Part0 = a | |
214 | w.Part1 = b | |
215 | w.C0 = acf | |
216 | end | |
217 | -------------------------------- | |
218 | char.Head.face.Texture = "rbxassetid://425364748" | |
219 | -------------------------------- | |
220 | ||
221 | ------------------------------------------------------- | |
222 | wait(0.2) | |
223 | local plr = game:service'Players'.LocalPlayer | |
224 | print('Local User is '..plr.Name) | |
225 | print('hello chara its me') | |
226 | print('A S R I E L D R E E M U R R') | |
227 | local char = plr.Character | |
228 | local hum = char.Humanoid | |
229 | local hed = char.Head | |
230 | local root = char.HumanoidRootPart | |
231 | local rootj = root.RootJoint | |
232 | local tors = char.Torso | |
233 | local ra = char["Right Arm"] | |
234 | local la = char["Left Arm"] | |
235 | local rl = char["Right Leg"] | |
236 | local ll = char["Left Leg"] | |
237 | local neck = tors["Neck"] | |
238 | local mouse = plr:GetMouse() | |
239 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
240 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
241 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
242 | local maincolor = BrickColor.new("Plum") | |
243 | ||
244 | ------------------------------------------------------- | |
245 | --Start Good Stuff-- | |
246 | ------------------------------------------------------- | |
247 | cam = game.Workspace.CurrentCamera | |
248 | CF = CFrame.new | |
249 | angles = CFrame.Angles | |
250 | attack = false | |
251 | Euler = CFrame.fromEulerAnglesXYZ | |
252 | Rad = math.rad | |
253 | IT = Instance.new | |
254 | BrickC = BrickColor.new | |
255 | Cos = math.cos | |
256 | Acos = math.acos | |
257 | Sin = math.sin | |
258 | Asin = math.asin | |
259 | Abs = math.abs | |
260 | Mrandom = math.random | |
261 | Floor = math.floor | |
262 | ------------------------------------------------------- | |
263 | --End Good Stuff-- | |
264 | ------------------------------------------------------- | |
265 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
266 | RSH, LSH = nil, nil | |
267 | RW = Instance.new("Weld") | |
268 | LW = Instance.new("Weld") | |
269 | RH = tors["Right Hip"] | |
270 | LH = tors["Left Hip"] | |
271 | RSH = tors["Right Shoulder"] | |
272 | LSH = tors["Left Shoulder"] | |
273 | RSH.Parent = nil | |
274 | LSH.Parent = nil | |
275 | RW.Name = "RW" | |
276 | RW.Part0 = tors | |
277 | RW.C0 = CF(1.5, 0.5, 0) | |
278 | RW.C1 = CF(0, 0.5, 0) | |
279 | RW.Part1 = ra | |
280 | RW.Parent = tors | |
281 | LW.Name = "LW" | |
282 | LW.Part0 = tors | |
283 | LW.C0 = CF(-1.5, 0.5, 0) | |
284 | LW.C1 = CF(0, 0.5, 0) | |
285 | LW.Part1 = la | |
286 | LW.Parent = tors | |
287 | cf = CFrame.new | |
288 | Effects = {} | |
289 | ------------------------------------------------------- | |
290 | --Start HeartBeat-- | |
291 | ------------------------------------------------------- | |
292 | ArtificialHB = Instance.new("BindableEvent", script) | |
293 | ArtificialHB.Name = "Heartbeat" | |
294 | script:WaitForChild("Heartbeat") | |
295 | ||
296 | frame = 1 / 60 | |
297 | tf = 0 | |
298 | allowframeloss = false | |
299 | tossremainder = false | |
300 | ||
301 | ||
302 | lastframe = tick() | |
303 | script.Heartbeat:Fire() | |
304 | ||
305 | ||
306 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
307 | tf = tf + s | |
308 | if tf >= frame then | |
309 | if allowframeloss then | |
310 | script.Heartbeat:Fire() | |
311 | lastframe = tick() | |
312 | else | |
313 | for i = 1, math.floor(tf / frame) do | |
314 | script.Heartbeat:Fire() | |
315 | end | |
316 | lastframe = tick() | |
317 | end | |
318 | if tossremainder then | |
319 | tf = 0 | |
320 | else | |
321 | tf = tf - frame * math.floor(tf / frame) | |
322 | end | |
323 | end | |
324 | end) | |
325 | ------------------------------------------------------- | |
326 | --End HeartBeat-- | |
327 | ------------------------------------------------------- | |
328 | ||
329 | ------------------------------------------------------- | |
330 | --Start Important Functions-- | |
331 | ------------------------------------------------------- | |
332 | function swait(num) | |
333 | if num == 0 or num == nil then | |
334 | game:service("RunService").Stepped:wait(0) | |
335 | else | |
336 | for i = 0, num do | |
337 | game:service("RunService").Stepped:wait(0) | |
338 | end | |
339 | end | |
340 | end | |
341 | function thread(f) | |
342 | coroutine.resume(coroutine.create(f)) | |
343 | end | |
344 | function clerp(a, b, t) | |
345 | local qa = { | |
346 | QuaternionFromCFrame(a) | |
347 | } | |
348 | local qb = { | |
349 | QuaternionFromCFrame(b) | |
350 | } | |
351 | local ax, ay, az = a.x, a.y, a.z | |
352 | local bx, by, bz = b.x, b.y, b.z | |
353 | local _t = 1 - t | |
354 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
355 | end | |
356 | function QuaternionFromCFrame(cf) | |
357 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
358 | local trace = m00 + m11 + m22 | |
359 | if trace > 0 then | |
360 | local s = math.sqrt(1 + trace) | |
361 | local recip = 0.5 / s | |
362 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
363 | else | |
364 | local i = 0 | |
365 | if m00 < m11 then | |
366 | i = 1 | |
367 | end | |
368 | if m22 > (i == 0 and m00 or m11) then | |
369 | i = 2 | |
370 | end | |
371 | if i == 0 then | |
372 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
373 | local recip = 0.5 / s | |
374 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
375 | elseif i == 1 then | |
376 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
377 | local recip = 0.5 / s | |
378 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
379 | elseif i == 2 then | |
380 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
381 | local recip = 0.5 / s | |
382 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
383 | end | |
384 | end | |
385 | end | |
386 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
387 | local xs, ys, zs = x + x, y + y, z + z | |
388 | local wx, wy, wz = w * xs, w * ys, w * zs | |
389 | local xx = x * xs | |
390 | local xy = x * ys | |
391 | local xz = x * zs | |
392 | local yy = y * ys | |
393 | local yz = y * zs | |
394 | local zz = z * zs | |
395 | 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)) | |
396 | end | |
397 | function QuaternionSlerp(a, b, t) | |
398 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
399 | local startInterp, finishInterp | |
400 | if cosTheta >= 1.0E-4 then | |
401 | if 1 - cosTheta > 1.0E-4 then | |
402 | local theta = math.acos(cosTheta) | |
403 | local invSinTheta = 1 / Sin(theta) | |
404 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
405 | finishInterp = Sin(t * theta) * invSinTheta | |
406 | else | |
407 | startInterp = 1 - t | |
408 | finishInterp = t | |
409 | end | |
410 | elseif 1 + cosTheta > 1.0E-4 then | |
411 | local theta = math.acos(-cosTheta) | |
412 | local invSinTheta = 1 / Sin(theta) | |
413 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
414 | finishInterp = Sin(t * theta) * invSinTheta | |
415 | else | |
416 | startInterp = t - 1 | |
417 | finishInterp = t | |
418 | end | |
419 | 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 | |
420 | end | |
421 | function rayCast(Position, Direction, Range, Ignore) | |
422 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
423 | end | |
424 | local RbxUtility = LoadLibrary("RbxUtility") | |
425 | local Create = RbxUtility.Create | |
426 | ||
427 | ------------------------------------------------------- | |
428 | --Start Damage Function-- | |
429 | ------------------------------------------------------- | |
430 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
431 | if hit.Parent == nil then | |
432 | return | |
433 | end | |
434 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
435 | for _, v in pairs(hit.Parent:children()) do | |
436 | if v:IsA("Humanoid") then | |
437 | h = v | |
438 | end | |
439 | end | |
440 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
441 | ||
442 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
443 | end | |
444 | ||
445 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
446 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
447 | if hit.Parent.DebounceHit.Value == true then | |
448 | return | |
449 | end | |
450 | end | |
451 | if insta == true then | |
452 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
453 | end | |
454 | local c = Create("ObjectValue"){ | |
455 | Name = "creator", | |
456 | Value = game:service("Players").LocalPlayer, | |
457 | Parent = h, | |
458 | } | |
459 | game:GetService("Debris"):AddItem(c, .5) | |
460 | if HitSound ~= nil and HitPitch ~= nil then | |
461 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
462 | end | |
463 | local Damage = math.random(minim, maxim) | |
464 | local blocked = false | |
465 | local block = hit.Parent:findFirstChild("Block") | |
466 | if block ~= nil then | |
467 | if block.className == "IntValue" then | |
468 | if block.Value > 0 then | |
469 | blocked = true | |
470 | block.Value = block.Value - 1 | |
471 | print(block.Value) | |
472 | end | |
473 | end | |
474 | end | |
475 | if blocked == false then | |
476 | h.Health = h.Health - Damage | |
477 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
478 | else | |
479 | h.Health = h.Health - (Damage / 2) | |
480 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
481 | end | |
482 | if Type == "Knockdown" then | |
483 | local hum = hit.Parent.Humanoid | |
484 | hum.PlatformStand = true | |
485 | coroutine.resume(coroutine.create(function(HHumanoid) | |
486 | swait(1) | |
487 | HHumanoid.PlatformStand = false | |
488 | end), hum) | |
489 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
490 | local bodvol = Create("BodyVelocity"){ | |
491 | velocity = angle * knockback, | |
492 | P = 5000, | |
493 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
494 | Parent = hit, | |
495 | } | |
496 | local rl = Create("BodyAngularVelocity"){ | |
497 | P = 3000, | |
498 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
499 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
500 | Parent = hit, | |
501 | } | |
502 | game:GetService("Debris"):AddItem(bodvol, .5) | |
503 | game:GetService("Debris"):AddItem(rl, .5) | |
504 | elseif Type == "Normal" then | |
505 | local vp = Create("BodyVelocity"){ | |
506 | P = 500, | |
507 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
508 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
509 | } | |
510 | if knockback > 0 then | |
511 | vp.Parent = hit.Parent.Torso | |
512 | end | |
513 | game:GetService("Debris"):AddItem(vp, .5) | |
514 | elseif Type == "Up" then | |
515 | local bodyVelocity = Create("BodyVelocity"){ | |
516 | velocity = Vector3.new(0, 20, 0), | |
517 | P = 5000, | |
518 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
519 | Parent = hit, | |
520 | } | |
521 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
522 | elseif Type == "DarkUp" then | |
523 | coroutine.resume(coroutine.create(function() | |
524 | for i = 0, 1, 0.1 do | |
525 | swait() | |
526 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
527 | end | |
528 | end)) | |
529 | local bodyVelocity = Create("BodyVelocity"){ | |
530 | velocity = Vector3.new(0, 20, 0), | |
531 | P = 5000, | |
532 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
533 | Parent = hit, | |
534 | } | |
535 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
536 | elseif Type == "Snare" then | |
537 | local bp = Create("BodyPosition"){ | |
538 | P = 2000, | |
539 | D = 100, | |
540 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
541 | position = hit.Parent.Torso.Position, | |
542 | Parent = hit.Parent.Torso, | |
543 | } | |
544 | game:GetService("Debris"):AddItem(bp, 1) | |
545 | elseif Type == "Freeze" then | |
546 | local BodPos = Create("BodyPosition"){ | |
547 | P = 50000, | |
548 | D = 1000, | |
549 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
550 | position = hit.Parent.Torso.Position, | |
551 | Parent = hit.Parent.Torso, | |
552 | } | |
553 | local BodGy = Create("BodyGyro") { | |
554 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
555 | P = 20e+003, | |
556 | Parent = hit.Parent.Torso, | |
557 | cframe = hit.Parent.Torso.CFrame, | |
558 | } | |
559 | hit.Parent.Torso.Anchored = true | |
560 | coroutine.resume(coroutine.create(function(Part) | |
561 | swait(1.5) | |
562 | Part.Anchored = false | |
563 | end), hit.Parent.Torso) | |
564 | game:GetService("Debris"):AddItem(BodPos, 3) | |
565 | game:GetService("Debris"):AddItem(BodGy, 3) | |
566 | end | |
567 | local debounce = Create("BoolValue"){ | |
568 | Name = "DebounceHit", | |
569 | Parent = hit.Parent, | |
570 | Value = true, | |
571 | } | |
572 | game:GetService("Debris"):AddItem(debounce, Delay) | |
573 | c = Create("ObjectValue"){ | |
574 | Name = "creator", | |
575 | Value = Player, | |
576 | Parent = h, | |
577 | } | |
578 | game:GetService("Debris"):AddItem(c, .5) | |
579 | end | |
580 | end | |
581 | ------------------------------------------------------- | |
582 | --End Damage Function-- | |
583 | ------------------------------------------------------- | |
584 | ||
585 | ------------------------------------------------------- | |
586 | --Start Damage Function Customization-- | |
587 | ------------------------------------------------------- | |
588 | function ShowDamage(Pos, Text, Time, Color) | |
589 | local Rate = (1 / 30) | |
590 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
591 | local Text = (Text or "") | |
592 | local Time = (Time or 2) | |
593 | local Color = (Color or Color3.new(255, 255, 1)) | |
594 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
595 | EffectPart.Anchored = true | |
596 | local BillboardGui = Create("BillboardGui"){ | |
597 | Size = UDim2.new(3, 0, 3, 0), | |
598 | Adornee = EffectPart, | |
599 | Parent = EffectPart, | |
600 | } | |
601 | local TextLabel = Create("TextLabel"){ | |
602 | BackgroundTransparency = 1, | |
603 | Size = UDim2.new(1, 0, 1, 0), | |
604 | Text = Text, | |
605 | Font = "Bodoni", | |
606 | TextColor3 = Color, | |
607 | TextScaled = true, | |
608 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
609 | Parent = BillboardGui, | |
610 | } | |
611 | game.Debris:AddItem(EffectPart, (Time)) | |
612 | EffectPart.Parent = game:GetService("Workspace") | |
613 | delay(0, function() | |
614 | local Frames = (Time / Rate) | |
615 | for Frame = 1, Frames do | |
616 | wait(Rate) | |
617 | local Percent = (Frame / Frames) | |
618 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
619 | TextLabel.TextTransparency = Percent | |
620 | end | |
621 | if EffectPart and EffectPart.Parent then | |
622 | EffectPart:Destroy() | |
623 | end | |
624 | end) | |
625 | end | |
626 | ------------------------------------------------------- | |
627 | --End Damage Function Customization-- | |
628 | ------------------------------------------------------- | |
629 | ||
630 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
631 | for _, c in pairs(workspace:children()) do | |
632 | local hum = c:findFirstChild("Humanoid") | |
633 | if hum ~= nil then | |
634 | local head = c:findFirstChild("Head") | |
635 | if head ~= nil then | |
636 | local targ = head.Position - Part.Position | |
637 | local mag = targ.magnitude | |
638 | if magni >= mag and c.Name ~= plr.Name then | |
639 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
640 | end | |
641 | end | |
642 | end | |
643 | end | |
644 | end | |
645 | ||
646 | ||
647 | CFuncs = { | |
648 | Part = { | |
649 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
650 | local Part = Create("Part")({ | |
651 | Parent = Parent, | |
652 | Reflectance = Reflectance, | |
653 | Transparency = Transparency, | |
654 | CanCollide = false, | |
655 | Locked = true, | |
656 | BrickColor = BrickColor.new(tostring(BColor)), | |
657 | Name = Name, | |
658 | Size = Size, | |
659 | Material = Material | |
660 | }) | |
661 | RemoveOutlines(Part) | |
662 | return Part | |
663 | end | |
664 | }, | |
665 | Mesh = { | |
666 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
667 | local Msh = Create(Mesh)({ | |
668 | Parent = Part, | |
669 | Offset = OffSet, | |
670 | Scale = Scale | |
671 | }) | |
672 | if Mesh == "SpecialMesh" then | |
673 | Msh.MeshType = MeshType | |
674 | Msh.MeshId = MeshId | |
675 | end | |
676 | return Msh | |
677 | end | |
678 | }, | |
679 | Mesh = { | |
680 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
681 | local Msh = Create(Mesh)({ | |
682 | Parent = Part, | |
683 | Offset = OffSet, | |
684 | Scale = Scale | |
685 | }) | |
686 | if Mesh == "SpecialMesh" then | |
687 | Msh.MeshType = MeshType | |
688 | Msh.MeshId = MeshId | |
689 | end | |
690 | return Msh | |
691 | end | |
692 | }, | |
693 | Weld = { | |
694 | Create = function(Parent, Part0, Part1, C0, C1) | |
695 | local Weld = Create("Weld")({ | |
696 | Parent = Parent, | |
697 | Part0 = Part0, | |
698 | Part1 = Part1, | |
699 | C0 = C0, | |
700 | C1 = C1 | |
701 | }) | |
702 | return Weld | |
703 | end | |
704 | }, | |
705 | Sound = { | |
706 | Create = function(id, par, vol, pit) | |
707 | coroutine.resume(coroutine.create(function() | |
708 | local S = Create("Sound")({ | |
709 | Volume = vol, | |
710 | Pitch = pit or 1, | |
711 | SoundId = id, | |
712 | Parent = par or workspace | |
713 | }) | |
714 | wait() | |
715 | S:play() | |
716 | game:GetService("Debris"):AddItem(S, 6) | |
717 | end)) | |
718 | end | |
719 | }, | |
720 | ParticleEmitter = { | |
721 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
722 | local fp = Create("ParticleEmitter")({ | |
723 | Parent = Parent, | |
724 | Color = ColorSequence.new(Color1, Color2), | |
725 | LightEmission = LightEmission, | |
726 | Size = Size, | |
727 | Texture = Texture, | |
728 | Transparency = Transparency, | |
729 | ZOffset = ZOffset, | |
730 | Acceleration = Accel, | |
731 | Drag = Drag, | |
732 | LockedToPart = LockedToPart, | |
733 | VelocityInheritance = VelocityInheritance, | |
734 | EmissionDirection = EmissionDirection, | |
735 | Enabled = Enabled, | |
736 | Lifetime = LifeTime, | |
737 | Rate = Rate, | |
738 | Rotation = Rotation, | |
739 | RotSpeed = RotSpeed, | |
740 | Speed = Speed, | |
741 | VelocitySpread = VelocitySpread | |
742 | }) | |
743 | return fp | |
744 | end | |
745 | } | |
746 | } | |
747 | function RemoveOutlines(part) | |
748 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
749 | end | |
750 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
751 | local Part = Create("Part")({ | |
752 | formFactor = FormFactor, | |
753 | Parent = Parent, | |
754 | Reflectance = Reflectance, | |
755 | Transparency = Transparency, | |
756 | CanCollide = false, | |
757 | Locked = true, | |
758 | BrickColor = BrickColor.new(tostring(BColor)), | |
759 | Name = Name, | |
760 | Size = Size, | |
761 | Material = Material | |
762 | }) | |
763 | RemoveOutlines(Part) | |
764 | return Part | |
765 | end | |
766 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
767 | local Msh = Create(Mesh)({ | |
768 | Parent = Part, | |
769 | Offset = OffSet, | |
770 | Scale = Scale | |
771 | }) | |
772 | if Mesh == "SpecialMesh" then | |
773 | Msh.MeshType = MeshType | |
774 | Msh.MeshId = MeshId | |
775 | end | |
776 | return Msh | |
777 | end | |
778 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
779 | local Weld = Create("Weld")({ | |
780 | Parent = Parent, | |
781 | Part0 = Part0, | |
782 | Part1 = Part1, | |
783 | C0 = C0, | |
784 | C1 = C1 | |
785 | }) | |
786 | return Weld | |
787 | end | |
788 | ||
789 | ||
790 | ------------------------------------------------------- | |
791 | --Start Effect Function-- | |
792 | ------------------------------------------------------- | |
793 | EffectModel = Instance.new("Model", char) | |
794 | Effects = { | |
795 | Block = { | |
796 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
797 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
798 | prt.Anchored = true | |
799 | prt.CFrame = cframe | |
800 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
801 | game:GetService("Debris"):AddItem(prt, 10) | |
802 | if Type == 1 or Type == nil then | |
803 | table.insert(Effects, { | |
804 | prt, | |
805 | "Block1", | |
806 | delay, | |
807 | x3, | |
808 | y3, | |
809 | z3, | |
810 | msh | |
811 | }) | |
812 | elseif Type == 2 then | |
813 | table.insert(Effects, { | |
814 | prt, | |
815 | "Block2", | |
816 | delay, | |
817 | x3, | |
818 | y3, | |
819 | z3, | |
820 | msh | |
821 | }) | |
822 | else | |
823 | table.insert(Effects, { | |
824 | prt, | |
825 | "Block3", | |
826 | delay, | |
827 | x3, | |
828 | y3, | |
829 | z3, | |
830 | msh | |
831 | }) | |
832 | end | |
833 | end | |
834 | }, | |
835 | Sphere = { | |
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, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
841 | game:GetService("Debris"):AddItem(prt, 10) | |
842 | table.insert(Effects, { | |
843 | prt, | |
844 | "Cylinder", | |
845 | delay, | |
846 | x3, | |
847 | y3, | |
848 | z3, | |
849 | msh | |
850 | }) | |
851 | end | |
852 | }, | |
853 | Cylinder = { | |
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("CylinderMesh", prt, "", "", 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 | Wave = { | |
872 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
873 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
874 | prt.Anchored = true | |
875 | prt.CFrame = cframe | |
876 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
877 | game:GetService("Debris"):AddItem(prt, 10) | |
878 | table.insert(Effects, { | |
879 | prt, | |
880 | "Cylinder", | |
881 | delay, | |
882 | x3 / 60, | |
883 | y3 / 60, | |
884 | z3 / 60, | |
885 | msh | |
886 | }) | |
887 | end | |
888 | }, | |
889 | Ring = { | |
890 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
891 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
892 | prt.Anchored = true | |
893 | prt.CFrame = cframe | |
894 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
895 | game:GetService("Debris"):AddItem(prt, 10) | |
896 | table.insert(Effects, { | |
897 | prt, | |
898 | "Cylinder", | |
899 | delay, | |
900 | x3, | |
901 | y3, | |
902 | z3, | |
903 | msh | |
904 | }) | |
905 | end | |
906 | }, | |
907 | Break = { | |
908 | Create = function(brickcolor, cframe, x1, y1, z1) | |
909 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
910 | prt.Anchored = true | |
911 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
912 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
913 | local num = math.random(10, 50) / 1000 | |
914 | game:GetService("Debris"):AddItem(prt, 10) | |
915 | table.insert(Effects, { | |
916 | prt, | |
917 | "Shatter", | |
918 | num, | |
919 | prt.CFrame, | |
920 | math.random() - math.random(), | |
921 | 0, | |
922 | math.random(50, 100) / 100 | |
923 | }) | |
924 | end | |
925 | }, | |
926 | Spiral = { | |
927 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
928 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
929 | prt.Anchored = true | |
930 | prt.CFrame = cframe | |
931 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
932 | game:GetService("Debris"):AddItem(prt, 10) | |
933 | table.insert(Effects, { | |
934 | prt, | |
935 | "Cylinder", | |
936 | delay, | |
937 | x3, | |
938 | y3, | |
939 | z3, | |
940 | msh | |
941 | }) | |
942 | end | |
943 | }, | |
944 | Push = { | |
945 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
946 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
947 | prt.Anchored = true | |
948 | prt.CFrame = cframe | |
949 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
950 | game:GetService("Debris"):AddItem(prt, 10) | |
951 | table.insert(Effects, { | |
952 | prt, | |
953 | "Cylinder", | |
954 | delay, | |
955 | x3, | |
956 | y3, | |
957 | z3, | |
958 | msh | |
959 | }) | |
960 | end | |
961 | } | |
962 | } | |
963 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
964 | local fp = IT("Part") | |
965 | fp.formFactor = formfactor | |
966 | fp.Parent = parent | |
967 | fp.Reflectance = reflectance | |
968 | fp.Transparency = transparency | |
969 | fp.CanCollide = false | |
970 | fp.Locked = true | |
971 | fp.BrickColor = brickcolor | |
972 | fp.Name = name | |
973 | fp.Size = size | |
974 | fp.Position = tors.Position | |
975 | RemoveOutlines(fp) | |
976 | fp.Material = "SmoothPlastic" | |
977 | fp:BreakJoints() | |
978 | return fp | |
979 | end | |
980 | ||
981 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
982 | local mesh = IT(Mesh) | |
983 | mesh.Parent = part | |
984 | if Mesh == "SpecialMesh" then | |
985 | mesh.MeshType = meshtype | |
986 | if meshid ~= "nil" then | |
987 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
988 | end | |
989 | end | |
990 | mesh.Offset = offset | |
991 | mesh.Scale = scale | |
992 | return mesh | |
993 | end | |
994 | ||
995 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
996 | local type = type | |
997 | local rng = Instance.new("Part", char) | |
998 | rng.Anchored = true | |
999 | rng.BrickColor = color | |
1000 | rng.CanCollide = false | |
1001 | rng.FormFactor = 3 | |
1002 | rng.Name = "Ring" | |
1003 | rng.Material = "Neon" | |
1004 | rng.Size = Vector3.new(1, 1, 1) | |
1005 | rng.Transparency = 0 | |
1006 | rng.TopSurface = 0 | |
1007 | rng.BottomSurface = 0 | |
1008 | rng.CFrame = pos | |
1009 | local rngm = Instance.new("SpecialMesh", rng) | |
1010 | rngm.MeshType = MType | |
1011 | rngm.Scale = scale | |
1012 | local scaler2 = 1 | |
1013 | if type == "Add" then | |
1014 | scaler2 = 1 * value | |
1015 | elseif type == "Divide" then | |
1016 | scaler2 = 1 / value | |
1017 | end | |
1018 | coroutine.resume(coroutine.create(function() | |
1019 | for i = 0, 10 / bonuspeed, 0.1 do | |
1020 | swait() | |
1021 | if type == "Add" then | |
1022 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1023 | elseif type == "Divide" then | |
1024 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1025 | end | |
1026 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1027 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1028 | end | |
1029 | rng:Destroy() | |
1030 | end)) | |
1031 | end | |
1032 | ||
1033 | function Eviscerate(dude) | |
1034 | if dude.Name ~= char then | |
1035 | local bgf = IT("BodyGyro", dude.Head) | |
1036 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1037 | local val = IT("BoolValue", dude) | |
1038 | val.Name = "IsHit" | |
1039 | local ds = coroutine.wrap(function() | |
1040 | dude:WaitForChild("Head"):BreakJoints() | |
1041 | wait(0.5) | |
1042 | target = nil | |
1043 | coroutine.resume(coroutine.create(function() | |
1044 | for i, v in pairs(dude:GetChildren()) do | |
1045 | if v:IsA("Accessory") then | |
1046 | v:Destroy() | |
1047 | end | |
1048 | if v:IsA("Humanoid") then | |
1049 | v:Destroy() | |
1050 | end | |
1051 | if v:IsA("CharacterMesh") then | |
1052 | v:Destroy() | |
1053 | end | |
1054 | if v:IsA("Model") then | |
1055 | v:Destroy() | |
1056 | end | |
1057 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1058 | for x, o in pairs(v:GetChildren()) do | |
1059 | if o:IsA("Decal") then | |
1060 | o:Destroy() | |
1061 | end | |
1062 | end | |
1063 | coroutine.resume(coroutine.create(function() | |
1064 | v.Material = "Neon" | |
1065 | v.CanCollide = false | |
1066 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1067 | PartEmmit1.LightEmission = 1 | |
1068 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1069 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1070 | PartEmmit1.Rate = 150 | |
1071 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1072 | PartEmmit1.Size = NumberSequence.new({ | |
1073 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1074 | NumberSequenceKeypoint.new(1, 0, 0) | |
1075 | }) | |
1076 | PartEmmit1.Transparency = NumberSequence.new({ | |
1077 | NumberSequenceKeypoint.new(0, 0, 0), | |
1078 | NumberSequenceKeypoint.new(1, 1, 0) | |
1079 | }) | |
1080 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1081 | PartEmmit1.VelocitySpread = 30000 | |
1082 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1083 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1084 | local BodPoss = IT("BodyPosition", v) | |
1085 | BodPoss.P = 3000 | |
1086 | BodPoss.D = 1000 | |
1087 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1088 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1089 | v.Color = maincolor.Color | |
1090 | coroutine.resume(coroutine.create(function() | |
1091 | for i = 0, 49 do | |
1092 | swait(1) | |
1093 | v.Transparency = v.Transparency + 0.08 | |
1094 | end | |
1095 | wait(0.5) | |
1096 | PartEmmit1.Enabled = false | |
1097 | wait(3) | |
1098 | v:Destroy() | |
1099 | dude:Destroy() | |
1100 | end)) | |
1101 | end)) | |
1102 | end | |
1103 | end | |
1104 | end)) | |
1105 | end) | |
1106 | ds() | |
1107 | end | |
1108 | end | |
1109 | ||
1110 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1111 | if SinglePlayer then | |
1112 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1113 | end | |
1114 | local List = {} | |
1115 | for i, v in pairs(workspace:GetChildren()) do | |
1116 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1117 | table.insert(List, v) | |
1118 | end | |
1119 | end | |
1120 | return List | |
1121 | end | |
1122 | ||
1123 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1124 | local type = type | |
1125 | local rng = Instance.new("Part", char) | |
1126 | rng.Anchored = true | |
1127 | rng.BrickColor = color | |
1128 | rng.CanCollide = false | |
1129 | rng.FormFactor = 3 | |
1130 | rng.Name = "Ring" | |
1131 | rng.Material = "Neon" | |
1132 | rng.Size = Vector3.new(1, 1, 1) | |
1133 | rng.Transparency = 0 | |
1134 | rng.TopSurface = 0 | |
1135 | rng.BottomSurface = 0 | |
1136 | rng.CFrame = pos | |
1137 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1138 | local rngm = Instance.new("SpecialMesh", rng) | |
1139 | rngm.MeshType = MType | |
1140 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1141 | local scaler2 = 1 | |
1142 | local speeder = FastSpeed | |
1143 | if type == "Add" then | |
1144 | scaler2 = 1 * value | |
1145 | elseif type == "Divide" then | |
1146 | scaler2 = 1 / value | |
1147 | end | |
1148 | coroutine.resume(coroutine.create(function() | |
1149 | for i = 0, 10 / bonuspeed, 0.1 do | |
1150 | swait() | |
1151 | if type == "Add" then | |
1152 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1153 | elseif type == "Divide" then | |
1154 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1155 | end | |
1156 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1157 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1158 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1159 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1160 | end | |
1161 | rng:Destroy() | |
1162 | end)) | |
1163 | end | |
1164 | ||
1165 | function SoulSteal(dude) | |
1166 | if dude.Name ~= char then | |
1167 | local bgf = IT("BodyGyro", dude.Head) | |
1168 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1169 | local val = IT("BoolValue", dude) | |
1170 | val.Name = "IsHit" | |
1171 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1172 | local soulst = coroutine.wrap(function() | |
1173 | local soul = Instance.new("Part",dude) | |
1174 | soul.Size = Vector3.new(1,1,1) | |
1175 | soul.CanCollide = false | |
1176 | soul.Anchored = false | |
1177 | soul.Position = torso.Position | |
1178 | soul.Transparency = 1 | |
1179 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1180 | PartEmmit1.LightEmission = 1 | |
1181 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1182 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1183 | PartEmmit1.Rate = 250 | |
1184 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1185 | PartEmmit1.Size = NumberSequence.new({ | |
1186 | NumberSequenceKeypoint.new(0, 1, 0), | |
1187 | NumberSequenceKeypoint.new(1, 0, 0) | |
1188 | }) | |
1189 | PartEmmit1.Transparency = NumberSequence.new({ | |
1190 | NumberSequenceKeypoint.new(0, 0, 0), | |
1191 | NumberSequenceKeypoint.new(1, 1, 0) | |
1192 | }) | |
1193 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1194 | PartEmmit1.VelocitySpread = 30000 | |
1195 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1196 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1197 | local BodPoss = IT("BodyPosition", soul) | |
1198 | BodPoss.P = 3000 | |
1199 | BodPoss.D = 1000 | |
1200 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1201 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1202 | wait(1.6) | |
1203 | soul.Touched:connect(function(hit) | |
1204 | if hit.Parent == char then | |
1205 | soul:Destroy() | |
1206 | end | |
1207 | end) | |
1208 | wait(1.2) | |
1209 | while soul do | |
1210 | swait() | |
1211 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1212 | BodPoss.Position = tors.Position | |
1213 | end | |
1214 | end) | |
1215 | soulst() | |
1216 | end | |
1217 | end | |
1218 | function FaceMouse() | |
1219 | local Cam = workspace.CurrentCamera | |
1220 | return { | |
1221 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1222 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1223 | } | |
1224 | end | |
1225 | ||
1226 | BTAUNT = Instance.new("Sound", tors) | |
1227 | BTAUNT.SoundId = "rbxassetid://306154368" | |
1228 | BTAUNT.Volume = 5 | |
1229 | BTAUNT.Pitch = 1 | |
1230 | BTAUNT.Looped = true | |
1231 | BTAUNT.TimePosition = 0.2 | |
1232 | ------------------------------------------------------- | |
1233 | --End Effect Function-- | |
1234 | ------------------------------------------------------- | |
1235 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1236 | local NSound = nil | |
1237 | coroutine.resume(coroutine.create(function() | |
1238 | NSound = IT("Sound", PARENT) | |
1239 | NSound.Volume = VOLUME | |
1240 | NSound.Pitch = PITCH | |
1241 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1242 | swait() | |
1243 | NSound:play() | |
1244 | game:GetService("Debris"):AddItem(NSound, 50) | |
1245 | end)) | |
1246 | return NSound | |
1247 | end | |
1248 | function CameraEnshaking(Length, Intensity) | |
1249 | coroutine.resume(coroutine.create(function() | |
1250 | local intensity = 1 * Intensity | |
1251 | local rotM = 0.01 * Intensity | |
1252 | for i = 0, Length, 0.1 do | |
1253 | swait() | |
1254 | intensity = intensity - 0.05 * Intensity / Length | |
1255 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1256 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1257 | 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) | |
1258 | end | |
1259 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1260 | end)) | |
1261 | end | |
1262 | ------------------------------------------------------- | |
1263 | --End Important Functions-- | |
1264 | ------------------------------------------------------- | |
1265 | ||
1266 | ||
1267 | ------------------------------------------------------- | |
1268 | --Start Customization-- | |
1269 | ------------------------------------------------------- | |
1270 | local Player_Size = 1 | |
1271 | if Player_Size ~= 1 then | |
1272 | root.Size = root.Size * Player_Size | |
1273 | tors.Size = tors.Size * Player_Size | |
1274 | hed.Size = hed.Size * Player_Size | |
1275 | ra.Size = ra.Size * Player_Size | |
1276 | la.Size = la.Size * Player_Size | |
1277 | rl.Size = rl.Size * Player_Size | |
1278 | ll.Size = ll.Size * Player_Size | |
1279 | ---------------------------------------------------------------------------------- | |
1280 | rootj.Parent = root | |
1281 | neck.Parent = tors | |
1282 | RW.Parent = tors | |
1283 | LW.Parent = tors | |
1284 | RH.Parent = tors | |
1285 | LH.Parent = tors | |
1286 | ---------------------------------------------------------------------------------- | |
1287 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1288 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1289 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1290 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1291 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1292 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1293 | ---------------------------------------------------------------------------------- | |
1294 | 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)) | |
1295 | 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)) | |
1296 | 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)) | |
1297 | 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)) | |
1298 | --hat.Parent = Character | |
1299 | end | |
1300 | ---------------------------------------------------------------------------------- | |
1301 | ---------------------------------------------------------------------------------- | |
1302 | local equipped = false | |
1303 | local idle = 0 | |
1304 | local change = 1 | |
1305 | local val = 0 | |
1306 | local toim = 0 | |
1307 | local idleanim = 0.4 | |
1308 | local sine = 0 | |
1309 | local Sit = 1 | |
1310 | ---------------------------------------------------------------------------------- | |
1311 | hum.WalkSpeed = 20 | |
1312 | hum.JumpPower = 57 | |
1313 | hum.Animator.Parent = nil | |
1314 | ---------------------------------------------------------------------------------- | |
1315 | ||
1316 | ||
1317 | ------------------------------------------------------- | |
1318 | --End Customization-- | |
1319 | ------------------------------------------------------- | |
1320 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
1321 | naeeym2.AlwaysOnTop = true | |
1322 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1323 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1324 | naeeym2.Adornee = hed | |
1325 | naeeym2.Name = "Name" | |
1326 | --naeeym2.PlayerToHideFrom = Player | |
1327 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1328 | tecks2.BackgroundTransparency = 1 | |
1329 | tecks2.TextScaled = true | |
1330 | tecks2.BorderSizePixel = 0 | |
1331 | tecks2.Text = "Fight Me" | |
1332 | tecks2.Font = Enum.Font.Bodoni | |
1333 | tecks2.TextSize = 30 | |
1334 | tecks2.TextStrokeTransparency = 0 | |
1335 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
1336 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1337 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1338 | tecks2.Parent = naeeym2]] | |
1339 | ---------------------------------------------------------------------------------- | |
1340 | local AddInstance = function(Object, ...) | |
1341 | local Obj = Instance.new(Object) | |
1342 | for i,v in next,(...) do | |
1343 | Obj[i] = v | |
1344 | end | |
1345 | return Obj | |
1346 | end | |
1347 | ---------------------------------------------------- | |
1348 | local Reaper = AddInstance("Part",{ | |
1349 | Parent = hed, | |
1350 | CFrame = hed.CFrame, | |
1351 | formFactor = "Symmetric", | |
1352 | Size = Vector3.new(1, 1, 1), | |
1353 | CanCollide = false, | |
1354 | TopSurface = "Smooth", | |
1355 | BottomSurface = "Smooth", | |
1356 | Locked = true, | |
1357 | }) | |
1358 | local Weld = AddInstance("Weld",{ | |
1359 | Parent = Reaper, | |
1360 | Part0 = hed, | |
1361 | C0 = CFrame.new(-0.15, 0.19, 0.09)*CFrame.Angles(0, 0, 0), | |
1362 | Part1 = Reaper, | |
1363 | }) | |
1364 | local Mesh = AddInstance("SpecialMesh",{ | |
1365 | Parent = Reaper, | |
1366 | MeshId = "http://www.roblox.com/asset/?id=10871984", | |
1367 | TextureId = "http://www.roblox.com/asset/?id=37912058", | |
1368 | Scale = Vector3.new(1.14,1.05,1.24), | |
1369 | }) | |
1370 | ------------------------------------------------------- | |
1371 | wait(1) | |
1372 | plr = game.Players.LocalPlayer | |
1373 | char = plr.Character | |
1374 | mouse = plr:GetMouse() | |
1375 | whitecolor = Color3.new(255,255,1) | |
1376 | epicmode = false | |
1377 | normal = true | |
1378 | for i,v in pairs(char:GetChildren()) do | |
1379 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1380 | v:Destroy() | |
1381 | end | |
1382 | end | |
1383 | local shirt = Instance.new("Shirt",char) | |
1384 | shirt.ShirtTemplate = "rbxassetid://1262066982" | |
1385 | local pants = Instance.new("Pants",char) | |
1386 | pants.PantsTemplate = "rbxassetid://1042990951" | |
1387 | local bdycolors = char["Body Colors"] | |
1388 | bdycolors.HeadColor3 = whitecolor | |
1389 | bdycolors.LeftArmColor3 = whitecolor | |
1390 | bdycolors.LeftLegColor3 = whitecolor | |
1391 | bdycolors.RightArmColor3 = whitecolor | |
1392 | bdycolors.RightLegColor3 = whitecolor | |
1393 | bdycolors.TorsoColor3 = whitecolor | |
1394 | for i,v in pairs(char:GetChildren()) do | |
1395 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1396 | v:Destroy() | |
1397 | end | |
1398 | end | |
1399 | ||
1400 | ||
1401 | ||
1402 | local BC = Character["Body Colors"] | |
1403 | BC.HeadColor = BrickColor.new("Institutional white") | |
1404 | BC.LeftArmColor = BrickColor.new("Institutional white") | |
1405 | BC.LeftLegColor = BrickColor.new("Institutional white") | |
1406 | BC.RightArmColor = BrickColor.new("Institutional white") | |
1407 | BC.RightLegColor = BrickColor.new("Institutional white") | |
1408 | BC.TorsoColor = BrickColor.new("Institutional white") | |
1409 | ------------------------------------------------------- | |
1410 | --Start Attacks N Stuff-- | |
1411 | ------------------------------------------------------- | |
1412 | local naeeym2 = Instance.new("BillboardGui",char) | |
1413 | naeeym2.AlwaysOnTop = true | |
1414 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1415 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1416 | naeeym2.Adornee = hed | |
1417 | naeeym2.Name = "Name" | |
1418 | ||
1419 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1420 | tecks2.BackgroundTransparency = 1 | |
1421 | tecks2.TextScaled = true | |
1422 | tecks2.BorderSizePixel = 0 | |
1423 | - | tecks2.Text = "Edited by EnderPlayBro and ozzak10003" |
1423 | + | tecks2.Text = "Edited by TameDoNotClick" |
1424 | tecks2.Font = "Fantasy" | |
1425 | tecks2.TextSize = 30 | |
1426 | tecks2.TextStrokeTransparency = 0 | |
1427 | tecks2.TextColor3 = BrickColor.new('Institutional white').Color | |
1428 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
1429 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1430 | tecks2.Parent = naeeym2 | |
1431 | textfag = tecks2 | |
1432 | - | tecks2.Text = "Edited by EnderPlayBro code by ozzak1003" |
1432 | + | tecks2.Text = "Edited by TameDoNotClick" |
1433 | wait(2) | |
1434 | - | tecks2.Text = "dont leak" |
1434 | + | tecks2.Text = "dont leak nub" |
1435 | wait(1) | |
1436 | tecks2.Text = "Asriel" | |
1437 | BTAUNT:Play() | |
1438 | coroutine.resume(coroutine.create(function() | |
1439 | while textfag ~= nil do | |
1440 | swait() | |
1441 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1442 | textfag.Rotation = math.random(-3,3) | |
1443 | end | |
1444 | end)) | |
1445 | spawn(function() | |
1446 | local TweenService = game:GetService("TweenService") | |
1447 | local Colours = {Color3.fromRGB(255, 0, 0),Color3.fromRGB(16, 42, 220),Color3.fromRGB(0, 255, 0),Color3.fromRGB(255, 255, 0)} | |
1448 | local Int = 0 | |
1449 | while wait(0.5) do | |
1450 | if Int == #Colours then Int = 0 end | |
1451 | Int = Int+1 | |
1452 | TweenService:Create(tecks2,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
1453 | end | |
1454 | end) | |
1455 | ||
1456 | function SunBlastWIP() | |
1457 | attack = true | |
1458 | hum.WalkSpeed = 3.01 | |
1459 | for i = 0, 4, 0.1 do | |
1460 | swait() | |
1461 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
1462 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2) | |
1463 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1464 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1465 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1466 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1467 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1468 | end | |
1469 | for i = 0, 2, 0.1 do | |
1470 | swait() | |
1471 | hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0) | |
1472 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(40)), 0.2) | |
1473 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2) | |
1474 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-25)), 0.2) | |
1475 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(25)), 0.2) | |
1476 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1477 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1478 | end | |
1479 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1480 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1481 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
1482 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
1483 | CameraEnshaking(4, 5) | |
1484 | Cso("206049428", char, 10, 1) | |
1485 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
1486 | if v:FindFirstChild("Head") then | |
1487 | Eviscerate(v) | |
1488 | end | |
1489 | end | |
1490 | for i = 0, 2, 0.1 do | |
1491 | swait() | |
1492 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
1493 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2) | |
1494 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1495 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1496 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1497 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1498 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1499 | end | |
1500 | hum.WalkSpeed = 16 | |
1501 | attack = false | |
1502 | end | |
1503 | ||
1504 | function Star() | |
1505 | attack = true | |
1506 | spawn(function() | |
1507 | local p = Instance.new("Part",char) | |
1508 | p.Anchored = true | |
1509 | p.CanCollide = false | |
1510 | p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0)) | |
1511 | local m = Instance.new("SpecialMesh",p) | |
1512 | m.MeshId = "rbxassetid://2546401234" | |
1513 | m.Scale = Vector3.new(2,2,2) | |
1514 | for i=1,30 do | |
1515 | p.CFrame = p.CFrame-Vector3.new(0,3.3333,0) | |
1516 | p.CFrame = p.CFrame * CFrame.Angles(0.5,0,0) | |
1517 | wait() | |
1518 | end | |
1519 | local beam = Instance.new("Part",char) | |
1520 | beam.Anchored = true | |
1521 | beam.CanCollide = false | |
1522 | beam.BrickColor = BrickColor.new("White") | |
1523 | beam.Material = Enum.Material.Neon | |
1524 | beam.Size = Vector3.new(1,1,1) | |
1525 | beam.Position = p.Position+Vector3.new(0,1000,0) | |
1526 | beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354) | |
1527 | local m = Instance.new("SpecialMesh",beam) | |
1528 | m.MeshType = "Cylinder" | |
1529 | m.Scale = Vector3.new(2000,15,15) | |
1530 | damage(6,20,35,p.Position) | |
1531 | p.Transparency = 1 | |
1532 | CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1) | |
1533 | for i=1,10 do | |
1534 | m.Scale = m.Scale-Vector3.new(0,1,1) | |
1535 | beam.Transparency = i / 10 | |
1536 | wait() | |
1537 | end | |
1538 | p:Destroy() | |
1539 | end) | |
1540 | attack = false | |
1541 | end | |
1542 | ||
1543 | ------------------------------------------------------- | |
1544 | --Damage-- | |
1545 | ------------------------------------------------------- | |
1546 | function damage(range,mindam,maxdam,pos) | |
1547 | for i,v in ipairs(workspace:GetChildren()) do | |
1548 | if v:IsA("Model") then | |
1549 | if v.Name ~= Player.Name then | |
1550 | if v:FindFirstChildOfClass("Humanoid") then | |
1551 | if v:FindFirstChild("Head") then | |
1552 | if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then | |
1553 | if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else | |
1554 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam) | |
1555 | end | |
1556 | end | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | ------------------------------------------------------------- | |
1564 | mouse.KeyDown:connect(function(key) | |
1565 | if attack == false then | |
1566 | if key == "x" then | |
1567 | Star() | |
1568 | if key == "f" then | |
1569 | SunBlastWIP() | |
1570 | end | |
1571 | end | |
1572 | end | |
1573 | end) | |
1574 | ||
1575 | ||
1576 | ||
1577 | ------------------------------------------------------- | |
1578 | --Start Animations-- | |
1579 | ------------------------------------------------------- | |
1580 | print("Edited By makhail07") | |
1581 | while true do | |
1582 | swait() | |
1583 | sine = sine + change | |
1584 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1585 | local velderp = root.Velocity.y | |
1586 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1587 | if equipped == true or equipped == false then | |
1588 | if attack == false then | |
1589 | idle = idle + 1 | |
1590 | else | |
1591 | idle = 0 | |
1592 | end | |
1593 | if root.Velocity.y > 1 and hitfloor==nil then | |
1594 | Anim="Jump" | |
1595 | if attack==false then | |
1596 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1597 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1598 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
1599 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1600 | LH.C0=clerp(LH.C0,cf(-1,-.9-0.1*math.cos(sine/20),-0.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1601 | RH.C0=clerp(RH.C0,cf(1,-1,0.3)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1602 | end | |
1603 | elseif root.Velocity.y < -1 and hitfloor==nil then | |
1604 | Anim="Fall" | |
1605 | if attack==false then | |
1606 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1607 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1608 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.3) | |
1609 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.3) | |
1610 | LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.6)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1611 | RH.C0=clerp(RH.C0,cf(1,-.3-0.1*math.cos(sine/20),-.6)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
1612 | end | |
1613 | elseif torvel<1 and hitfloor~=nil then | |
1614 | Anim="Idle" | |
1615 | change = 1 | |
1616 | if attack==false then | |
1617 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(43)),0.15) | |
1618 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-25)),.3) | |
1619 | RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
1620 | LH.C0=clerp(LH.C0,cf(-1,-.6-0.1*math.cos(sine/20),-.085)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(0)),0.15) | |
1621 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-40), math.rad(15)), 0.1) | |
1622 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1) | |
1623 | end | |
1624 | ||
1625 | elseif (tors.Velocity).magnitude < 50 and hitfloor ~= nil then | |
1626 | Anim="Walk" | |
1627 | change = 1 | |
1628 | if attack==false then | |
1629 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15) | |
1630 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-0)),.3) | |
1631 | RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
1632 | LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15) | |
1633 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-5), math.rad(15)), 0.1) | |
1634 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1) | |
1635 | end | |
1636 | end | |
1637 | end | |
1638 | if 0 < #Effects then | |
1639 | for e = 1, #Effects do | |
1640 | if Effects[e] ~= nil then | |
1641 | local Thing = Effects[e] | |
1642 | if Thing ~= nil then | |
1643 | local Part = Thing[1] | |
1644 | local Mode = Thing[2] | |
1645 | local Delay = Thing[3] | |
1646 | local IncX = Thing[4] | |
1647 | local IncY = Thing[5] | |
1648 | local IncZ = Thing[6] | |
1649 | if 1 >= Thing[1].Transparency then | |
1650 | if Thing[2] == "Block1" then | |
1651 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1652 | local Mesh = Thing[1].Mesh | |
1653 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1654 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1655 | elseif Thing[2] == "Block2" then | |
1656 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1657 | local Mesh = Thing[7] | |
1658 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1659 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1660 | elseif Thing[2] == "Block3" then | |
1661 | 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) | |
1662 | local Mesh = Thing[7] | |
1663 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1664 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1665 | elseif Thing[2] == "Cylinder" then | |
1666 | local Mesh = Thing[1].Mesh | |
1667 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1668 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1669 | elseif Thing[2] == "Blood" then | |
1670 | local Mesh = Thing[7] | |
1671 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1672 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1673 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1674 | elseif Thing[2] == "Elec" then | |
1675 | local Mesh = Thing[1].Mesh | |
1676 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1677 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1678 | elseif Thing[2] == "Disappear" then | |
1679 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1680 | elseif Thing[2] == "Shatter" then | |
1681 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1682 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1683 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1684 | Thing[6] = Thing[6] + Thing[5] | |
1685 | end | |
1686 | else | |
1687 | Part.Parent = nil | |
1688 | table.remove(Effects, e) | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | end | |
1693 | end | |
1694 | end | |
1695 | ------------------------------------------------------- | |
1696 | --End Animations And Script-- | |
1697 | ------------------------------------------------------- |