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