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