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