SHOW:
|
|
- or go back to the newest paste.
1 | --------------------------- | |
2 | ---Rozza118 Presents...Scp-096------------------------ | |
3 | iz = (game.Players.LocalPlayer.Name) | |
4 | ||
5 | ||
6 | ||
7 | is = (game.Players.LocalPlayer.Character) | |
8 | ||
9 | ||
10 | local Player = game.Players.LocalPlayer | |
11 | local Character = Player.Character | |
12 | local PlayerGui = Player.PlayerGui | |
13 | local Backpack = Player.Backpack | |
14 | local Torso = Character.HumanoidRootPart | |
15 | local Humanoid = Character.Humanoid | |
16 | local hum = Character.Humanoid | |
17 | local LeftArm = Character["Left Arm"] | |
18 | local LeftLeg = Character["Left Leg"] | |
19 | local RightArm = Character["Right Arm"] | |
20 | local RightLeg = Character["Right Leg"] | |
21 | local Backpack = Player.Backpack | |
22 | local TorsA = Character.Torso | |
23 | local Head = Character.Head | |
24 | local LS = TorsA["Left Shoulder"] | |
25 | local LH = TorsA["Left Hip"] | |
26 | local RS = TorsA["Right Shoulder"] | |
27 | local RH = TorsA["Right Hip"] | |
28 | local Neck = TorsA.Neck | |
29 | local rs = game:GetService("RunService").RenderStepped | |
30 | local Mouse = Player:GetMouse() | |
31 | attacktype = 1 | |
32 | vt = Vector3.new | |
33 | ColorDebounce = false | |
34 | cf = CFrame.new | |
35 | euler = CFrame.fromEulerAnglesXYZ | |
36 | angles = CFrame.Angles | |
37 | necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
38 | necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
39 | LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
40 | LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
41 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
42 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
43 | RootPart = Character.HumanoidRootPart | |
44 | RootJoint = RootPart.RootJoint | |
45 | RootCF = euler(-1.57, 0, 3.14) | |
46 | attack = false | |
47 | equipped = true | |
48 | local RbxUtility = LoadLibrary("RbxUtility") | |
49 | local Create = RbxUtility.Create | |
50 | local Root = Character.HumanoidRootPart | |
51 | math.randomseed(os.time()) | |
52 | ||
53 | fat = Instance.new("BindableEvent",script) | |
54 | fat.Name = "Heartbeat" | |
55 | ||
56 | script:WaitForChild("Heartbeat") | |
57 | ||
58 | frame = 1/30 | |
59 | tf = 0 | |
60 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
61 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
62 | lastframe = tick() | |
63 | script.Heartbeat:Fire() --ayy lmao | |
64 | ||
65 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
66 | tf = tf + s | |
67 | if tf >= frame then | |
68 | if allowframeloss then | |
69 | script.Heartbeat:Fire() | |
70 | lastframe=tick() | |
71 | else | |
72 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
73 | for i=1, math.floor(tf/frame) do | |
74 | script.Heartbeat:Fire() | |
75 | end | |
76 | lastframe=tick() | |
77 | end | |
78 | if tossremainder then | |
79 | tf = 0 | |
80 | else | |
81 | tf = tf - frame * math.floor(tf/frame) | |
82 | end | |
83 | end | |
84 | end) | |
85 | ||
86 | Debounces = { | |
87 | CanAttack = true; | |
88 | NoIdl = false; | |
89 | Slashing = false; | |
90 | Slashed = false; | |
91 | RPunch = false; | |
92 | RPunched = false; | |
93 | LPunch = false; | |
94 | LPunched = false; | |
95 | } | |
96 | local Touche = {Character.Name, } | |
97 | ||
98 | local acos = math.acos | |
99 | local sqrt = math.sqrt | |
100 | local Vec3 = Vector3.new | |
101 | local fromAxisAngle = CFrame.fromAxisAngle | |
102 | ||
103 | local function toAxisAngle(CFr) | |
104 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
105 | local Angle = math.acos((R00+R11+R22-1)/2) | |
106 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
107 | A = A == 0 and 0.00001 or A | |
108 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
109 | B = B == 0 and 0.00001 or B | |
110 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
111 | C = C == 0 and 0.00001 or C | |
112 | local x = (R21-R12)/sqrt(A) | |
113 | local y = (R02-R20)/sqrt(B) | |
114 | local z = (R10-R01)/sqrt(C) | |
115 | return Vec3(x,y,z),Angle | |
116 | end | |
117 | ||
118 | local acos = math.acos | |
119 | local sqrt = math.sqrt | |
120 | local Vec3 = Vector3.new | |
121 | local fromAxisAngle = CFrame.fromAxisAngle | |
122 | ||
123 | local function toAxisAngle(CFr) | |
124 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
125 | local Angle = math.acos((R00+R11+R22-1)/2) | |
126 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
127 | A = A == 0 and 0.00001 or A | |
128 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
129 | B = B == 0 and 0.00001 or B | |
130 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
131 | C = C == 0 and 0.00001 or C | |
132 | local x = (R21-R12)/sqrt(A) | |
133 | local y = (R02-R20)/sqrt(B) | |
134 | local z = (R10-R01)/sqrt(C) | |
135 | return Vec3(x,y,z),Angle | |
136 | end | |
137 | ||
138 | function ApplyTrig(Num,Func) | |
139 | local Min,Max = Func(0),Func(1) | |
140 | local i = Func(Num) | |
141 | return (i-Min)/(Max-Min) | |
142 | --[[if Func == "sin" then | |
143 | return (math.sin((1-Num)*math.pi)+1)/2 | |
144 | elseif Func == "cos" then | |
145 | return (math.cos((1-Num)*math.pi)+1)/2 | |
146 | end]] | |
147 | end | |
148 | ||
149 | function LerpCFrame(CFrame1,CFrame2,Num) | |
150 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
151 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
152 | end | |
153 | ||
154 | function Crater(Torso,Radius) | |
155 | Spawn(function() | |
156 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
157 | local Ignore = {} | |
158 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
159 | if v.Character ~= nil then | |
160 | Ignore[#Ignore+1] = v.Character | |
161 | end | |
162 | end | |
163 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
164 | if Hit == nil then return end | |
165 | local Parts = {} | |
166 | for i = 1,360,10 do | |
167 | local P = Instance.new("Part",Torso.Parent) | |
168 | P.Anchored = true | |
169 | P.FormFactor = "Custom" | |
170 | P.BrickColor = BrickColor.new("Really red") | |
171 | P.Material = "Granite" | |
172 | P.TopSurface = "Smooth" | |
173 | P.BottomSurface = "Smooth" | |
174 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
175 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
176 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
177 | if math.random(0,5) == 0 then -- rubble | |
178 | local P = Instance.new("Part",Torso.Parent) | |
179 | P.Anchored = true | |
180 | P.FormFactor = "Custom" | |
181 | P.BrickColor = BrickColor.new("Royal purple") | |
182 | P.Material = Hit.Material | |
183 | P.TopSurface = "Smooth" | |
184 | P.BottomSurface = "Smooth" | |
185 | P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100) | |
186 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
187 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
188 | end | |
189 | end | |
190 | for i = 0,1,0.05 do | |
191 | for i2,v in pairs(Parts) do | |
192 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
193 | end | |
194 | wait(0.02) | |
195 | end | |
196 | for i,v in pairs(Parts) do | |
197 | if v[1].Size.X > 2.1 then | |
198 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
199 | end | |
200 | v[1].Anchored = false | |
201 | end | |
202 | for i = 0,1,0.05 do | |
203 | for i2,v in pairs(Parts) do | |
204 | v[1].Transparency = i | |
205 | if i == 1 then | |
206 | v[1]:Destroy() | |
207 | elseif i >= 0.25 then | |
208 | v[1].CanCollide = false | |
209 | end | |
210 | end | |
211 | wait(0.02) | |
212 | end | |
213 | Parts = nil | |
214 | end) | |
215 | end | |
216 | ||
217 | local sound = Instance.new("Sound") | |
218 | sound.SoundId = "http://www.roblox.com/asset/?id=134147361" | |
219 | sound.Parent = Character | |
220 | sound.Volume = 3 | |
221 | sound.Pitch = 0.7 | |
222 | sound:Play() | |
223 | sound.Looped=true | |
224 | wait(0.1) | |
225 | ||
226 | local sound = Instance.new("Sound") | |
227 | sound.SoundId = "http://www.roblox.com/asset/?id=345477939" | |
228 | sound.Parent = Character | |
229 | sound.Volume = 10000 | |
230 | sound.Pitch = 1.5 | |
231 | sound:Play() | |
232 | sound.Looped=true | |
233 | local runServ = game:GetService("RunService").RenderStepped | |
234 | ||
235 | ||
236 | local TBlast, TBMesh = Instance.new("Part"), Instance.new("SpecialMesh") | |
237 | TBlast.BrickColor = BrickColor.new("Really Black") | |
238 | TBlast.Transparency = 1 | |
239 | TBlast.Anchored = true | |
240 | TBlast.CanCollide = false | |
241 | TBlast.CFrame = Root.CFrame | |
242 | TBlast.Size = Vector3.new(2,2,2) | |
243 | TBMesh.Parent = TBlast | |
244 | TBMesh.MeshType = "Sphere" | |
245 | ||
246 | local TB, TM = Instance.new("Part"), Instance.new("SpecialMesh") | |
247 | TB.BrickColor = BrickColor.new("Pearl") | |
248 | TB.Transparency = 1 | |
249 | TB.Anchored = true | |
250 | TB.CanCollide = false | |
251 | TB.CFrame = Root.CFrame | |
252 | TB.Size = Vector3.new(2,2,2) | |
253 | TB.Parent = TBlast | |
254 | TM.MeshType = "Sphere" | |
255 | ||
256 | game.Lighting.Brightness = 0 | |
257 | game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color | |
258 | game.Lighting.TimeOfDay = 0.1 | |
259 | game.Lighting.FogEnd = 1000 | |
260 | game.Lighting.FogColor = TBlast.BrickColor.Color | |
261 | game.Lighting.TimeOfDay = "00:00:00" | |
262 | game.Lighting.Ambient = Color3.new(0,0,0) | |
263 | game.Lighting.FogColor = Color3.new(0,0,0) | |
264 | game.Lighting.FogEnd = 500 | |
265 | game.Lighting.FogStart = 0 | |
266 | game.Lighting.GlobalShadows = true | |
267 | ||
268 | wait(16) | |
269 | ||
270 | ||
271 | ||
272 | local p = game.Players.localPlayer | |
273 | local char = p.Character | |
274 | local mouse=p:GetMouse() | |
275 | local larm = char["Left Arm"] | |
276 | local rarm = char["Right Arm"] | |
277 | local lleg = char["Left Leg"] | |
278 | local rleg = char["Right Leg"] | |
279 | local torso = char.Torso | |
280 | local root = char.HumanoidRootPart | |
281 | local hed = char.Head | |
282 | ||
283 | ---------------------------------------------------- | |
284 | local PE1 = Instance.new("ParticleEmitter",rarm) | |
285 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
286 | PE1.LightEmission = NumberSequence.new(0.2) | |
287 | PE1.Size = NumberSequence.new(1.2) | |
288 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
289 | PE1.Lifetime = NumberRange.new(.5) | |
290 | PE1.Rate = 10 | |
291 | PE1.Transparency = NumberSequence.new(0.2) | |
292 | PE1.LightEmission = NumberSequence.new(0.2) | |
293 | PE1.Rotation = NumberRange.new(260) | |
294 | PE1.Speed = NumberRange.new(0) | |
295 | PE1.RotSpeed = NumberRange.new(100) | |
296 | bc=char['Body Colors'] | |
297 | coloras=BrickColor.new('Really black') | |
298 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
299 | ----------------------------------------------------------------------------- | |
300 | local PE1 = Instance.new("ParticleEmitter",larm) | |
301 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
302 | PE1.LightEmission = NumberSequence.new(0.2) | |
303 | PE1.Size = NumberSequence.new(1.2) | |
304 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
305 | PE1.Lifetime = NumberRange.new(.5) | |
306 | PE1.Rate = 10 | |
307 | PE1.Transparency = NumberSequence.new(0.2) | |
308 | PE1.LightEmission = NumberSequence.new(0.2) | |
309 | PE1.Rotation = NumberRange.new(360) | |
310 | PE1.Speed = NumberRange.new(0) | |
311 | PE1.RotSpeed = NumberRange.new(100) | |
312 | bc=char['Body Colors'] | |
313 | coloras=BrickColor.new('Really black') | |
314 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
315 | ---------------------------------------------------------- | |
316 | local PE1 = Instance.new("ParticleEmitter",rleg) | |
317 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
318 | PE1.LightEmission = NumberSequence.new(0.2) | |
319 | PE1.Size = NumberSequence.new(1.2) | |
320 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
321 | PE1.Lifetime = NumberRange.new(.5) | |
322 | PE1.Rate = 10 | |
323 | PE1.Transparency = NumberSequence.new(0.2) | |
324 | PE1.LightEmission = NumberSequence.new(0.2) | |
325 | PE1.Rotation = NumberRange.new(260) | |
326 | PE1.Speed = NumberRange.new(0) | |
327 | PE1.RotSpeed = NumberRange.new(100) | |
328 | bc=char['Body Colors'] | |
329 | coloras=BrickColor.new('Really black') | |
330 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
331 | ---------------------------------------------------- | |
332 | local PE1 = Instance.new("ParticleEmitter",larm) | |
333 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
334 | PE1.LightEmission = NumberSequence.new(0.2) | |
335 | PE1.Size = NumberSequence.new(1.2) | |
336 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
337 | PE1.Lifetime = NumberRange.new(.5) | |
338 | PE1.Rate = 10 | |
339 | PE1.Transparency = NumberSequence.new(0.2) | |
340 | PE1.LightEmission = NumberSequence.new(0.2) | |
341 | PE1.Rotation = NumberRange.new(260) | |
342 | PE1.Speed = NumberRange.new(0) | |
343 | PE1.RotSpeed = NumberRange.new(100) | |
344 | bc=char['Body Colors'] | |
345 | coloras=BrickColor.new('Really black') | |
346 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
347 | ---------------------------------------------------------- | |
348 | local fart = Instance.new("Animation", char) | |
349 | fart.AnimationId = "rbxassetid://456316205" | |
350 | fart.Name = "fart" | |
351 | ---------------------------------------------------- | |
352 | local PE1 = Instance.new("ParticleEmitter",lleg) | |
353 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
354 | PE1.LightEmission = NumberSequence.new(0.2) | |
355 | PE1.Size = NumberSequence.new(1.2) | |
356 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
357 | PE1.Lifetime = NumberRange.new(.5) | |
358 | PE1.Rate = 10 | |
359 | PE1.Transparency = NumberSequence.new(0.2) | |
360 | PE1.LightEmission = NumberSequence.new(0.2) | |
361 | PE1.Rotation = NumberRange.new(260) | |
362 | PE1.Speed = NumberRange.new(0) | |
363 | PE1.RotSpeed = NumberRange.new(100) | |
364 | bc=char['Body Colors'] | |
365 | coloras=BrickColor.new('Really black') | |
366 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
367 | ---------------------------------------------------------- | |
368 | local PE1 = Instance.new("ParticleEmitter",hed) | |
369 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
370 | PE1.LightEmission = NumberSequence.new(0.2) | |
371 | PE1.Size = NumberSequence.new(1.2) | |
372 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
373 | PE1.Lifetime = NumberRange.new(.5) | |
374 | PE1.Rate = 10 | |
375 | PE1.Transparency = NumberSequence.new(0.2) | |
376 | PE1.LightEmission = NumberSequence.new(0.2) | |
377 | PE1.Rotation = NumberRange.new(260) | |
378 | PE1.Speed = NumberRange.new(0) | |
379 | PE1.RotSpeed = NumberRange.new(100) | |
380 | bc=char['Body Colors'] | |
381 | coloras=BrickColor.new('Really black') | |
382 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
383 | ---------------------------------------------------- | |
384 | local PE1 = Instance.new("ParticleEmitter",torso) | |
385 | PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0)) | |
386 | PE1.LightEmission = NumberSequence.new(0.2) | |
387 | PE1.Size = NumberSequence.new(1.2) | |
388 | PE1.Texture = "http://www.roblox.com/asset/?id=284607870" | |
389 | PE1.Lifetime = NumberRange.new(.5) | |
390 | PE1.Rate = 10 | |
391 | PE1.Transparency = NumberSequence.new(0.2) | |
392 | PE1.LightEmission = NumberSequence.new(0.2) | |
393 | PE1.Rotation = NumberRange.new(260) | |
394 | PE1.Speed = NumberRange.new(0) | |
395 | PE1.RotSpeed = NumberRange.new(100) | |
396 | bc=char['Body Colors'] | |
397 | coloras=BrickColor.new('Really black') | |
398 | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras | |
399 | ---------------------------------------------------------- | |
400 | SIDZ = {"231917744", "231917742"} | |
401 | PTZ = {0.7, 0.8, 0.9, 1} | |
402 | ||
403 | x = Instance.new("Sound",char) | |
404 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
405 | x.Pitch = PTZ[math.random(1,#PTZ)] | |
406 | x.Volume = 10 | |
407 | wait(0.1) | |
408 | x:Play() | |
409 | Crater(Torso,95) | |
410 | Crater(Torso,20) | |
411 | ||
412 | ||
413 | x = Instance.new("Sound",char) | |
414 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
415 | x.Pitch = PTZ[math.random(1,#PTZ)] | |
416 | x.Volume = 10 | |
417 | wait(0.1) | |
418 | x:Play() | |
419 | Crater(Torso,95) | |
420 | Crater(Torso,20) | |
421 | ||
422 | game.Lighting.Brightness = 0 | |
423 | game.Lighting.OutdoorAmbient = TB.BrickColor.Color | |
424 | game.Lighting.TimeOfDay = 0.1 | |
425 | game.Lighting.FogEnd = 1000 | |
426 | game.Lighting.FogColor = TB.BrickColor.Color | |
427 | game.Lighting.TimeOfDay = "00:00:00" | |
428 | game.Lighting.Ambient = Color3.new(0,0,0) | |
429 | game.Lighting.FogColor = Color3.new(0,0,0) | |
430 | game.Lighting.FogEnd = 500 | |
431 | game.Lighting.FogStart = 0 | |
432 | game.Lighting.GlobalShadows = true | |
433 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head) | |
434 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame") | |
435 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel") | |
436 | HBill.Size = UDim2.new(15,0,2.2,0) | |
437 | HBill.Name = "Health Display" | |
438 | HBill.StudsOffset = Vector3.new(0,4,0) | |
439 | HBill.AlwaysOnTop = true | |
440 | HBill.Enabled = true | |
441 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
442 | HMain.BackgroundTransparency = 1 | |
443 | HMain.Size = UDim2.new(1,0,1,0) | |
444 | HBarBack.Parent = HMain | |
445 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
446 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
447 | HBarBack.BorderSizePixel = 2 | |
448 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
449 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
450 | HBar.Parent = HBarBack | |
451 | HBar.BackgroundColor3 = Color3.new(225, 0, 0) | |
452 | HBar.BorderColor3 = Color3.new(0,0,0) | |
453 | HBar.Size = UDim2.new(.5,0,1,0) | |
454 | HHealth.BackgroundTransparency = 1 | |
455 | HHealth.Size = UDim2.new(1,1,1,1) | |
456 | HHealth.Font = "SourceSans" | |
457 | HHealth.Text = " " | |
458 | HHealth.TextScaled = true | |
459 | HHealth.TextColor3 = Color3.new(255,0,0) | |
460 | HHealth.TextStrokeColor3 = BrickColor.new("Pearl").Color | |
461 | HHealth.TextStrokeTransparency = 1 | |
462 | HName.Parent = HMain | |
463 | HName.BackgroundTransparency = 1 | |
464 | HName.Size = UDim2.new(1,0,.5,0) | |
465 | HName.Font = "Antique" | |
466 | HName.Text = "Scp-096" | |
467 | HName.TextScaled = true | |
468 | HName.TextColor3 = BrickColor.new("Pearl").Color | |
469 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
470 | HName.FontSize = "Size48" | |
471 | HName.TextStrokeTransparency = 0 | |
472 | HName.TextYAlignment = "Top" | |
473 | ||
474 | ||
475 | ||
476 | ||
477 | ||
478 | ||
479 | Player:ClearCharacterAppearance() | |
480 | wait(0.1) | |
481 | Player.Character.Head.BrickColor = BrickColor.new("Pearl") | |
482 | Player.Character.Torso.BrickColor = BrickColor.new("Pearl") | |
483 | Player.Character["Right Arm"].BrickColor = BrickColor.new("Pearl") | |
484 | Player.Character["Right Leg"].BrickColor = BrickColor.new("Pearl") | |
485 | Player.Character["Left Leg"].BrickColor = BrickColor.new("Pearl") | |
486 | Player.Character["Left Arm"].BrickColor = BrickColor.new("Pearl") | |
487 | Player.Character.Head.face:Destroy() | |
488 | ||
489 | ||
490 | ||
491 | local selectionBoxOfTorso = Instance.new("SelectionBox",TorsA) | |
492 | selectionBoxOfTorso.Adornee = TorsA | |
493 | selectionBoxOfTorso.Color = BrickColor.new("Pearl") | |
494 | selectionBoxOfTorso.LineThickness = 0.01 | |
495 | selectionBoxOfTorso.Transparency = 0 | |
496 | ||
497 | local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"]) | |
498 | selectionBoxOfRightArm.Adornee = Character["Right Arm"] | |
499 | selectionBoxOfRightArm.Color = BrickColor.new("Pearl") | |
500 | selectionBoxOfRightArm.LineThickness = 0.01 | |
501 | selectionBoxOfRightArm.Transparency = 0 | |
502 | ||
503 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"]) | |
504 | selectionBoxOfRightLeg.Adornee = Character["Right Leg"] | |
505 | selectionBoxOfRightLeg.Color = BrickColor.new("Pearl") | |
506 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
507 | selectionBoxOfRightLeg.Transparency = 0 | |
508 | ||
509 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"]) | |
510 | selectionBoxOfLeftArm.Adornee = Character["Left Arm"] | |
511 | selectionBoxOfLeftArm.Color = BrickColor.new("Pearl") | |
512 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
513 | selectionBoxOfLeftArm.Transparency = 0 | |
514 | ||
515 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"]) | |
516 | selectionBoxOfLeftLeg.Adornee = Character["Left Leg"] | |
517 | selectionBoxOfLeftLeg.Color = BrickColor.new("Pearl") | |
518 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
519 | selectionBoxOfLeftLeg.Transparency = 0 | |
520 | ||
521 | ||
522 | LightOnBody = Instance.new("PointLight", Head) | |
523 | LightOnBody.Brightness = 3000 | |
524 | LightOnBody.Range = 20 | |
525 | LightOnBody.Color = Color3.new(1, 0, 0) | |
526 | ||
527 | NsKeypoint = function(a, b, c) | |
528 | ||
529 | return NumberSequenceKeypoint.new(a, b, c) | |
530 | end | |
531 | ||
532 | ColorsNew = function(a, b, c) | |
533 | ||
534 | return Color3.new(a / 255, b / 255, c / 255) | |
535 | end | |
536 | ||
537 | local Plasma = Instance.new("ParticleEmitter", torso) | |
538 | Plasma.Enabled = true | |
539 | local color1 = ColorsNew(0, 0, 0) | |
540 | local color2 = ColorsNew(0, 0, 0) | |
541 | local COLOR = ColorSequence.new(color1, color2) | |
542 | Plasma.Size = NumberSequence.new({NsKeypoint(0, 2, 0), NsKeypoint(0.23067332804203, 6.875, 0), NsKeypoint(0.29800498485565, 0.9375, 0), NsKeypoint(0.58478802442551, 6.9375, 0), NsKeypoint(1, 2, 0)}) | |
543 | Plasma.Transparency = NumberSequence.new({NsKeypoint(0, 0, 0), NsKeypoint(0.70947635173798, 0, 0), NsKeypoint(0.74438905715942, 0.51249998807907, 0), NsKeypoint(0.78179556131363, 0, 0), NsKeypoint(0.82169580459595, 0.018750011920929, 0), NsKeypoint(1, 0.48750001192093, 0)}) | |
544 | Plasma.Lifetime = NumberRange.new(0.1, 1) | |
545 | Plasma.RotSpeed = NumberRange.new(1000) | |
546 | Plasma.Color = COLOR | |
547 | Plasma.LightEmission = 1000 | |
548 | Plasma.Texture = "rbxassetid://335222248" | |
549 | Plasma.Name = "Plasma" | |
550 | Plasma.Speed = NumberRange.new(20) | |
551 | Plasma.Rate = 1000 | |
552 | Plasma.VelocitySpread = 360 | |
553 | Plasma.Acceleration = Vector3.new(0, 0, 0) | |
554 | ||
555 | ||
556 | ||
557 | Charging = true | |
558 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
559 | function FDebris() | |
560 | repeat | |
561 | local p = Instance.new('Part',Torso) | |
562 | p.formFactor = 'Custom' | |
563 | p.Size = Vector3.new(1,1,1) | |
564 | p.BrickColor = workspace.Base.BrickColor | |
565 | p.CanCollide = false | |
566 | p.Transparency = 0 | |
567 | p.Anchored = true | |
568 | p.Locked=true | |
569 | p.Material = workspace.Base.Material | |
570 | s = math.random(1,40)/10 | |
571 | local m = Instance.new("BlockMesh",p) | |
572 | m.Scale = Vector3.new(s,s,s) | |
573 | p.CFrame = Torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
574 | --[[coroutine.wrap(function() | |
575 | wait(2) | |
576 | while Charging == true do | |
577 | wait(2) | |
578 | GroundWave1() | |
579 | wait(2) | |
580 | end | |
581 | end)()]]-- | |
582 | ||
583 | spawn(function() | |
584 | while rs:wait() do | |
585 | if p.Transparency >= 1 then p:Destroy() break end | |
586 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
587 | p.Transparency = p.Transparency+0.01 | |
588 | end | |
589 | end) | |
590 | wait(.3) | |
591 | until Charging == false | |
592 | end | |
593 | ||
594 | ||
595 | spawn(function() | |
596 | while wait(.01) | |
597 | do | |
598 | FDebris() | |
599 | end | |
600 | end) | |
601 | ||
602 | ||
603 | ||
604 | FloatPart = function() | |
605 | local Part = Instance.new('Part',Torso) | |
606 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
607 | Part.Anchored = true | |
608 | Part.Material = 'Neon' | |
609 | Part.CanCollide = false | |
610 | Part.BrickColor = BrickColor.new(PrimaryColor) | |
611 | local Mesh = Instance.new('SpecialMesh',Part) | |
612 | Mesh.Scale = Vector3.new(4,4,.2) | |
613 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
614 | Mesh.VertexColor = Vector3.new(0,170,255) | |
615 | spawn(function() | |
616 | for i = 1,30 do | |
617 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
618 | Part.Transparency = Part.Transparency + .035 | |
619 | game["Run Service"].RenderStepped:wait() | |
620 | end | |
621 | Part:Destroy() | |
622 | end) | |
623 | end; | |
624 | ||
625 | DubPart = function() | |
626 | local Part = Instance.new('Part',Torso) | |
627 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
628 | Part.Anchored = true | |
629 | Part.CanCollide = false | |
630 | Part.Material = 'Neon' | |
631 | Part.BrickColor = BrickColor.new(SecondaryColor) | |
632 | local Mesh = Instance.new('SpecialMesh',Part) | |
633 | Mesh.Scale = Vector3.new(7,7,.2) | |
634 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
635 | Mesh.VertexColor = Vector3.new(0,170,255) | |
636 | spawn(function() | |
637 | for i = 1,30 do | |
638 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
639 | Part.Transparency = Part.Transparency + .035 | |
640 | game["Run Service"].RenderStepped:wait() | |
641 | end | |
642 | Part:Destroy() | |
643 | end) | |
644 | end; | |
645 | ||
646 | Fade = function(Item,t) | |
647 | spawn(function() | |
648 | for i = 1,20 do | |
649 | Item.Transparency = Item.Transparency + .05 | |
650 | if t then | |
651 | wait(t) | |
652 | else | |
653 | wait() | |
654 | end | |
655 | end | |
656 | Item:Destroy() | |
657 | end) | |
658 | end | |
659 | ||
660 | Particle = function(PrimaryColor) | |
661 | local Part = Instance.new('Part',Torso) | |
662 | Part.BrickColor = BrickColor.new(PrimaryColor) | |
663 | Part.Anchored = true | |
664 | Part.Transparency = .3 | |
665 | Part.CanCollide = false | |
666 | Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random()) | |
667 | local Mesh = Instance.new('BlockMesh',Part) | |
668 | Mesh.Scale = Vector3.new(.05,.1,.1) | |
669 | spawn(function() | |
670 | for i = 1,40 do | |
671 | Part.Transparency = Part.Transparency + .0125 | |
672 | Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0) | |
673 | game["Run Service"].RenderStepped:wait() | |
674 | end | |
675 | Part:Destroy() | |
676 | end) | |
677 | end; | |
678 | ||
679 | --[[spawn(function() | |
680 | while wait() do | |
681 | wait(.05) | |
682 | FloatPart() | |
683 | wait(.08) | |
684 | FloatPart() | |
685 | wait(.05) | |
686 | DubPart() | |
687 | wait(.08) | |
688 | end | |
689 | end)]] | |
690 | ||
691 | game["Run Service"].RenderStepped:connect(function(_) | |
692 | Particle("Royale purple") | |
693 | Particle("Really black") | |
694 | Particle("Really red") | |
695 | --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0) | |
696 | end) | |
697 | ||
698 | ||
699 | ||
700 | function createblack(part) | |
701 | local pt1 = NumberSequenceKeypoint.new(0,1,0) | |
702 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
703 | local effecto = Instance.new("ParticleEmitter",part) | |
704 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
705 | effecto.Color = ColorSequence.new(Color3.new(0,0,0)) | |
706 | effecto.Rate = 10000 | |
707 | effecto.Lifetime = NumberRange.new(1,1) | |
708 | effecto.Size = NumberSequence.new({pt1,pt2}) | |
709 | effecto.Speed = NumberRange.new(0,0) | |
710 | effecto.RotSpeed = NumberRange.new(100,100) | |
711 | end | |
712 | ||
713 | local orbuu = Instance.new("Part", chara) | |
714 | orbuu.Size = Vector3.new(1,1,1) | |
715 | orbuu.Name = "Diamond" | |
716 | orbuu.Anchored = true | |
717 | orbuu.CanCollide = false | |
718 | orbuu.BrickColor = BrickColor.new("Really black") | |
719 | local meshooo = Instance.new("SpecialMesh", orbuu) | |
720 | meshooo.MeshType = "FileMesh" | |
721 | meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
722 | local RotationSpeed = 6 | |
723 | local BobSpeed = 1 | |
724 | local RotationDist = Vector3.new(5, 0, 0) | |
725 | local dt = 0 | |
726 | local currentTime = 0 | |
727 | ||
728 | chara = Player.Character | |
729 | hitdude = nil | |
730 | debby = game:GetService("Debris") | |
731 | chara.Humanoid.MaxHealth = math.huge | |
732 | chara.Humanoid.Health = math.huge | |
733 | chara.Humanoid.JumpPower = 100 | |
734 | local moosek = 0 | |
735 | local prevthing = 0 | |
736 | local timeofday = "Day" | |
737 | taip = 1 | |
738 | createblack(orbuu) | |
739 | orbuu.ParticleEmitter.Color = ColorSequence.new(Color3.new(1,0,1)) | |
740 | orbuu.ParticleEmitter.LightEmission = 1 | |
741 | --Spell Circle-- | |
742 | ||
743 | Void = nil | |
744 | VoidParts = {} | |
745 | Equipped = false | |
746 | ||
747 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
748 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
749 | end | |
750 | ||
751 | Player = Player | |
752 | Character = chara | |
753 | ||
754 | Humanoid = Character:FindFirstChild("Humanoid") | |
755 | Torso = Character:FindFirstChild("Torso") | |
756 | if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then | |
757 | return | |
758 | end | |
759 | Spawn(function() | |
760 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do | |
761 | if Angle == 360 then | |
762 | Angle = 0 | |
763 | end | |
764 | Angle = Angle + 0.05 | |
765 | chara.Humanoid.MaxHealth = math.huge | |
766 | chara.Humanoid.Health = math.huge | |
767 | local parentPos = chara.Torso.CFrame | |
768 | --Rotate Fluffy around the player's head | |
769 | local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0) | |
770 | local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0) | |
771 | orbuu.CFrame = ((parentPos + bob) + (rotation * RotationDist)) | |
772 | --Wait some time so we aren't going plaid | |
773 | dt, currentTime = wait(1/40) | |
774 | local cheeed = chara:GetChildren() | |
775 | for i = 1, #cheeed do | |
776 | if cheeed[i].ClassName == "Part" then | |
777 | if cheeed[i].Name ~= "Right Arm" and cheeed[i].Name ~= "Left Arm" and cheeed[i].Name ~= "Right Leg" and cheeed[i].Name ~= "Left Leg" and cheeed[i].Name ~= "Torso" and cheeed[i].Name ~= "HumanoidRootPart" and cheeed[i].Name ~= "Head" and cheeed[i].Name ~= "FakeHandle" and cheeed[i].Name ~= "FakeHandle2" and cheeed[i].Name ~= "FakeHandle3" and cheeed[i].Name ~= "Diamond" then | |
778 | cheeed[i]:Destroy() | |
779 | else end | |
780 | end | |
781 | end | |
782 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
783 | if Hit then | |
784 | if not Void.Parent then | |
785 | Void.Parent = Character | |
786 | end | |
787 | for i, v in pairs(VoidParts) do | |
788 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
789 | end | |
790 | else | |
791 | Void.Parent = nil | |
792 | end | |
793 | wait() | |
794 | end | |
795 | end) | |
796 | ||
797 | ||
798 | ||
799 | ||
800 | ---------------------------------------------------- | |
801 | function genWeld(a,b) | |
802 | local w = Instance.new("Weld",a) | |
803 | w.Part0 = a | |
804 | w.Part1 = b | |
805 | return w | |
806 | end | |
807 | function weld(a, b) | |
808 | local weld = Instance.new("Weld") | |
809 | weld.Name = "W" | |
810 | weld.Part0 = a | |
811 | weld.Part1 = b | |
812 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
813 | weld.Parent = a | |
814 | return weld; | |
815 | end | |
816 | ---------------------------------------------------- | |
817 | function Lerp(c1,c2,al) | |
818 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
819 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
820 | for i,v in pairs(com1) do | |
821 | com1[i] = v+(com2[i]-v)*al | |
822 | end | |
823 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
824 | end | |
825 | ---------------------------------------------------- | |
826 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
827 | local wld = Instance.new("Weld", wp1) | |
828 | wld.Part0 = wp0 | |
829 | wld.Part1 = wp1 | |
830 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
831 | end | |
832 | ---------------------------------------------------- | |
833 | newWeld(torso, larm, -1.5, 0.5, 0) | |
834 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
835 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
836 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
837 | newWeld(torso, hed, 0, 1.5, 0) | |
838 | newWeld(torso, lleg, -0.5, -1, 0) | |
839 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
840 | newWeld(torso, rleg, 0.5, -1, 0) | |
841 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
842 | newWeld(root, torso, 0, -1, 0) | |
843 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
844 | ---------------------------------------------------- | |
845 | ||
846 | ||
847 | m8 = Instance.new("Model") | |
848 | m8.Name = "Zyrodoxa" | |
849 | ||
850 | ||
851 | p16 = Instance.new("Part", m8) | |
852 | p16.BrickColor = BrickColor.new("Instutional white") | |
853 | p16.Material = Enum.Material.Metal | |
854 | p16.Name = "Handle" | |
855 | p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007) | |
856 | p16.CanCollide = false | |
857 | p16.Locked = true | |
858 | p16.FormFactor = Enum.FormFactor.Custom | |
859 | p16.Size = Vector3.new(0, 0, 0) | |
860 | p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
861 | p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
862 | p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
863 | p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
864 | p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
865 | p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
866 | b16 = Instance.new("BlockMesh", p16) | |
867 | b16.Name = "Mesh" | |
868 | b16.Scale = Vector3.new(0, 0, 0) | |
869 | ||
870 | w16 = Instance.new("Weld", p16) | |
871 | w16.Name = "Block_Weld" | |
872 | w16.Part0 = p16 | |
873 | w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015) | |
874 | w16.Part1 = p17 | |
875 | w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1) | |
876 | ||
877 | ||
878 | ||
879 | m8.Parent = rarm | |
880 | m8:MakeJoints() | |
881 | ||
882 | local cor8 = Instance.new("Part", rarm.Zyrodoxa) | |
883 | cor8.Name = "Thingy" | |
884 | cor8.Locked = true | |
885 | cor8.BottomSurface = 0 | |
886 | cor8.CanCollide = false | |
887 | cor8.Size = Vector3.new(1, 1, 1) | |
888 | cor8.Transparency = 1 | |
889 | cor8.TopSurface = 0 | |
890 | corw8 = Instance.new("Weld", cor8) | |
891 | corw8.Part0 = rarm | |
892 | corw8.Part1 = cor8 | |
893 | corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)) | |
894 | corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
895 | weld8 = Instance.new("Weld", rarm.Zyrodoxa) | |
896 | weld8.Part0 = cor8 | |
897 | weld8.Part1 = rarm.Zyrodoxa.Handle | |
898 | weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
899 | ||
900 | ||
901 | ||
902 | ||
903 | ||
904 | Debounces = {CanAttack = true, NoIdl = false, Slashing = false, Slashed = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Reaping = false, Reaped = false} | |
905 | local Touche = {Character.Name} | |
906 | ||
907 | ||
908 | ||
909 | ||
910 | Reap = function() | |
911 | ||
912 | rarm.Touched:connect(function(ht1) | |
913 | ||
914 | hit1 = ht1.Parent | |
915 | if ht1 and hit1:IsA("Model") and hit1:FindFirstChild("Humanoid") and hit1.Name ~= p.Name and Debounces.Reaping == true and Debounces.Reaped == false then | |
916 | Debounces.Reaped = true | |
917 | h = hit1:FindFirstChild("Humanoid") | |
918 | if h ~= nil then | |
919 | hum.MaxHealth = hum.MaxHealth + h.MaxHealth | |
920 | hum.Health = hum.MaxHealth | |
921 | e = Instance.new("Part") | |
922 | e.TopSurface = 0 | |
923 | e.BottomSurface = 0 | |
924 | e.Reflectance = 0.05 | |
925 | e.formFactor = "Symmetric" | |
926 | e.Size = Vector3.new(1, 1, 1) | |
927 | e.Anchored = true | |
928 | e.CanCollide = false | |
929 | e.BrickColor = BrickColor.new("Really blue") | |
930 | e.CFrame = CFrame.new(ht1.Position) | |
931 | e.Parent = hit1 | |
932 | Instance.new("BlockMesh", e) | |
933 | coroutine.resume(coroutine.create(function(par) | |
934 | ||
935 | for i = 1, 13 do | |
936 | par.CFrame = par.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-20, 20) / 50, math.random(-20, 20) / 50, math.random(-20, 20) / 50) | |
937 | par.Transparency = i / 13 | |
938 | par.Mesh.Scale = par.Mesh.Scale + Vector3.new(0.4, 0.4, 0.4) | |
939 | wait() | |
940 | end | |
941 | par.Parent = nil | |
942 | end | |
943 | ), e) | |
944 | for _,v in pairs(hit1:children()) do | |
945 | if v.className == "Part" then | |
946 | v.BrickColor = BrickColor.new("Really black") | |
947 | v.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3 | |
948 | v:BreakJoints() | |
949 | f = Instance.new("BodyVelocity") | |
950 | f.P = 3000 | |
951 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
952 | f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10) | |
953 | f.Parent = v | |
954 | v.CanCollide = false | |
955 | coroutine.resume(coroutine.create(function(par) | |
956 | ||
957 | for i = 1, 30 do | |
958 | par.Transparency = i / 30 | |
959 | wait() | |
960 | end | |
961 | par.Parent = nil | |
962 | end | |
963 | ), v) | |
964 | else | |
965 | if v.className == "Hat" then | |
966 | v.Handle.BrickColor = BrickColor.new("Really black") | |
967 | v.Handle.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3 | |
968 | v.Handle:BreakJoints() | |
969 | f = Instance.new("BodyVelocity") | |
970 | f.P = 3000 | |
971 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
972 | f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10) | |
973 | f.Parent = v.Handle | |
974 | v.Handle.CanCollide = false | |
975 | coroutine.resume(coroutine.create(function(par) | |
976 | ||
977 | for i = 1, 30 do | |
978 | par.Transparency = i / 30 | |
979 | wait() | |
980 | end | |
981 | par.Parent = nil | |
982 | end | |
983 | ), v.Handle) | |
984 | if h == nil then | |
985 | wait() | |
986 | end | |
987 | end | |
988 | end | |
989 | end | |
990 | end | |
991 | end | |
992 | end | |
993 | ) | |
994 | Debounces.Reaped = false | |
995 | end | |
996 | ||
997 | ||
998 | ||
999 | ||
1000 | ||
1001 | ||
1002 | ||
1003 | mouse.KeyDown:connect(function(key)------------------------------------------------------------------------Darkness Punch | |
1004 | ||
1005 | if key == "q" and Debounces.CanAttack == true then | |
1006 | Debounces.CanAttack = false | |
1007 | Debounces.NoIdl = true | |
1008 | Debounces.on = true | |
1009 | Debounces.Reaping = true | |
1010 | for i = 1, 10 do | |
1011 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.4) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
1012 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-30)), 0.4) | |
1013 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(70), 0), 0.4) | |
1014 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.4) | |
1015 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-10)), 0.4) | |
1016 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(7), math.rad(-20), math.rad(10)), 0.4) | |
1017 | if Debounces.on == false then | |
1018 | break | |
1019 | end | |
1020 | fat.Event:wait() | |
1021 | end | |
1022 | do | |
1023 | wait(1) | |
1024 | Reap() | |
1025 | for i = 1, 10 do | |
1026 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, -0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.7) | |
1027 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7) | |
1028 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-70), 0), 0.7) | |
1029 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.7) | |
1030 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-20), math.rad(-10)), 0.7) | |
1031 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.7) | |
1032 | if Debounces.on == false then | |
1033 | break | |
1034 | end | |
1035 | fat.Event:wait() | |
1036 | end | |
1037 | do | |
1038 | if Debounces.CanAttack == false then | |
1039 | Debounces.CanAttack = true | |
1040 | Debounces.NoIdl = false | |
1041 | Debounces.on = false | |
1042 | Debounces.Reaping = false | |
1043 | end | |
1044 | end | |
1045 | end | |
1046 | end | |
1047 | end | |
1048 | ) | |
1049 | ||
1050 | ||
1051 | ||
1052 | ||
1053 | ||
1054 | ||
1055 | ||
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | local Player = game:GetService("Players").LocalPlayer | |
1061 | local Character = Player.Character | |
1062 | local Head = Character.Head | |
1063 | local Torso = Character.Torso | |
1064 | local Right_Arm = Character["Right Arm"] | |
1065 | local Right_Leg = Character["Right Leg"] | |
1066 | local Left_Arm = Character["Left Arm"] | |
1067 | local Left_Leg = Character["Left Leg"] | |
1068 | local Humanoid = Character.Humanoid | |
1069 | local Animation = "Idle" | |
1070 | local Mouse = Player:GetMouse() | |
1071 | local LeftShoulder = Torso["Left Shoulder"] | |
1072 | local Left_Hip = Torso["Left Hip"] | |
1073 | local RightShoulder = Torso["Right Shoulder"] | |
1074 | local Right_Hip = Torso["Right Hip"] | |
1075 | local Root = Character.HumanoidRootPart | |
1076 | local RootJoint = Root.RootJoint | |
1077 | local Attacking = false | |
1078 | local CanAttack = true | |
1079 | local Anim = "Idle" | |
1080 | local Combo = 1 | |
1081 | local Blocking = false | |
1082 | local MaxDestruction = 1000 | |
1083 | local Destruction = 0 | |
1084 | local MaxBlock = 100 | |
1085 | local Effects = {} | |
1086 | local Color = "Bright yellow" | |
1087 | local Invert = false | |
1088 | local Idle = 0 | |
1089 | local Equipped = false | |
1090 | local Running = false | |
1091 | local Unseathed = false | |
1092 | local Shard = "None" | |
1093 | ||
1094 | ||
1095 | ||
1096 | ||
1097 | ||
1098 | ||
1099 | function clerp(a,b,t) | |
1100 | local qa = {QuaternionFromCFrame(a)} | |
1101 | local qb = {QuaternionFromCFrame(b)} | |
1102 | local ax, ay, az = a.x, a.y, a.z | |
1103 | local bx, by, bz = b.x, b.y, b.z | |
1104 | local _t = 1-t | |
1105 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1106 | end | |
1107 | ||
1108 | function QuaternionFromCFrame(cf) -- dis one | |
1109 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1110 | local trace = m00 + m11 + m22 | |
1111 | if trace > 0 then | |
1112 | local s = math.sqrt(1 + trace) | |
1113 | local recip = 0.5/s | |
1114 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1115 | else | |
1116 | local i = 0 | |
1117 | if m11 > m00 then | |
1118 | i = 1 | |
1119 | end | |
1120 | if m22 > (i == 0 and m00 or m11) then | |
1121 | i = 2 | |
1122 | end | |
1123 | if i == 0 then | |
1124 | local s = math.sqrt(m00-m11-m22+1) | |
1125 | local recip = 0.5/s | |
1126 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1127 | elseif i == 1 then | |
1128 | local s = math.sqrt(m11-m22-m00+1) | |
1129 | local recip = 0.5/s | |
1130 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1131 | elseif i == 2 then | |
1132 | local s = math.sqrt(m22-m00-m11+1) | |
1133 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | ||
1138 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1139 | local xs, ys, zs = x + x, y + y, z + z | |
1140 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1141 | local xx = x*xs | |
1142 | local xy = x*ys | |
1143 | local xz = x*zs | |
1144 | local yy = y*ys | |
1145 | local yz = y*zs | |
1146 | local zz = z*zs | |
1147 | 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)) | |
1148 | end | |
1149 | ||
1150 | function QuaternionSlerp(a, b, t) | |
1151 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1152 | local startInterp, finishInterp; | |
1153 | if cosTheta >= 0.0001 then | |
1154 | if (1 - cosTheta) > 0.0001 then | |
1155 | local theta = math.acos(cosTheta) | |
1156 | local invSinTheta = 1/math.sin(theta) | |
1157 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1158 | finishInterp = math.sin(t*theta)*invSinTheta | |
1159 | else | |
1160 | startInterp = 1-t | |
1161 | finishInterp = t | |
1162 | end | |
1163 | else | |
1164 | if (1+cosTheta) > 0.0001 then | |
1165 | local theta = math.acos(-cosTheta) | |
1166 | local invSinTheta = 1/math.sin(theta) | |
1167 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1168 | finishInterp = math.sin(t*theta)*invSinTheta | |
1169 | else | |
1170 | startInterp = t-1 | |
1171 | finishInterp = t | |
1172 | end | |
1173 | end | |
1174 | 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 | |
1175 | end | |
1176 | ||
1177 | Movemment = 1 | |
1178 | Walk = 0 | |
1179 | ||
1180 | Animator = Humanoid.Animator | |
1181 | --Animate = Character.Animate | |
1182 | ||
1183 | Animator.Parent = nil | |
1184 | --Animate.Parent = nil | |
1185 | ||
1186 | local Services = { | |
1187 | ||
1188 | SoundService = game:GetService("SoundService"); | |
1189 | Players = game:GetService("Players"); | |
1190 | Debris = game:GetService("Debris"); | |
1191 | Workspace = game:GetService("Workspace"); | |
1192 | Lighting = game:GetService("Lighting"); | |
1193 | HttpService = game:GetService("HttpService"); | |
1194 | InsertService = game:GetService("InsertService"); | |
1195 | ||
1196 | } | |
1197 | ||
1198 | SpikeMeshId = 1033714 | |
1199 | SpikeBallId = 9982590 | |
1200 | StarMeshId = 45428961 | |
1201 | CrystalMeshId = 9756362 | |
1202 | ||
1203 | --[[ Essential Functions ]]-- | |
1204 | function NoOutlines(Part) | |
1205 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1206 | end | |
1207 | ||
1208 | ||
1209 | local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape) | |
1210 | ||
1211 | local Part = Instance.new("Part", Parent) | |
1212 | Part.Name = Name | |
1213 | Part.BrickColor = BrickColor.new(Color) | |
1214 | Part.Size = Size | |
1215 | Part.Material = Material | |
1216 | Part.Transparency = Transparency | |
1217 | Part.Shape = Shape | |
1218 | Part.CanCollide = false | |
1219 | NoOutlines(Part) | |
1220 | ||
1221 | return Part | |
1222 | ||
1223 | end | |
1224 | ||
1225 | local CreateMesh = function(Parent, Scale, Shape) | |
1226 | ||
1227 | ||
1228 | local Mesh = Instance.new("BlockMesh", Parent) | |
1229 | Mesh.Scale = Scale | |
1230 | ||
1231 | return Mesh | |
1232 | ||
1233 | end | |
1234 | ||
1235 | local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency) | |
1236 | ||
1237 | local WedgePart = Instance.new("WedgePart", Parent) | |
1238 | WedgePart.Name = Name | |
1239 | WedgePart.BrickColor = BrickColor.new(Color) | |
1240 | WedgePart.Size = Size | |
1241 | WedgePart.Material = Material | |
1242 | WedgePart.Transparency = Transparency | |
1243 | WedgePart.CanCollide = false | |
1244 | NoOutlines(WedgePart) | |
1245 | ||
1246 | return WedgePart | |
1247 | ||
1248 | end | |
1249 | ||
1250 | local CreateWeld = function(Parent, Cframe, P1 , P0) | |
1251 | ||
1252 | local Weld = Instance.new("Weld", Parent) | |
1253 | Weld.Part0 = P0 | |
1254 | Weld.Part1 = P1 | |
1255 | Weld.Name = P0.Name .. "To" .. P1.Name | |
1256 | Weld.C0 = Cframe | |
1257 | ||
1258 | return Weld | |
1259 | ||
1260 | end | |
1261 | ||
1262 | local CreateVelocity = function(Parent,Velocity,Force) | |
1263 | ||
1264 | local BodyVelocity = Instance.new("BodyVelocity", Parent) | |
1265 | BodyVelocity.Velocity = Velocity | |
1266 | BodyVelocity.MaxForce = Force | |
1267 | ||
1268 | ||
1269 | ||
1270 | return BodyVelocity | |
1271 | ||
1272 | end | |
1273 | ||
1274 | ||
1275 | local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
1276 | ||
1277 | ||
1278 | local Part = Instance.new("Part", Parent) | |
1279 | Part.Name = Name | |
1280 | Part.BrickColor = BrickColor.new(Color) | |
1281 | Part.Size = Size | |
1282 | Part.Material = Material | |
1283 | Part.Transparency = Transparency | |
1284 | Part.CanCollide = false | |
1285 | NoOutlines(Part) | |
1286 | ||
1287 | local Mesh = Instance.new("SpecialMesh", Part) | |
1288 | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId | |
1289 | Mesh.Scale = Scale | |
1290 | ||
1291 | return Mesh and Part | |
1292 | ||
1293 | end | |
1294 | ||
1295 | local MakeSFX = function(Parent, Id, Volume, Pitch, Type) | |
1296 | ||
1297 | local SFX = Instance.new("Sound", Parent) | |
1298 | SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id | |
1299 | SFX.Name = "SFX" | |
1300 | SFX:Play() | |
1301 | SFX.Volume = Volume | |
1302 | SFX.Pitch = Pitch | |
1303 | SFX.PlayOnRemove = true | |
1304 | SFX:Remove() | |
1305 | ||
1306 | if Type == "Echo" then | |
1307 | ||
1308 | Instance.new("EchoSoundEffect", SFX) | |
1309 | ||
1310 | end | |
1311 | ||
1312 | end | |
1313 | ||
1314 | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
1315 | ||
1316 | ||
1317 | local Part = Instance.new("Part", Parent) | |
1318 | Part.Name = Name | |
1319 | Part.BrickColor = BrickColor.new(Color) | |
1320 | Part.Size = Size | |
1321 | Part.Material = Material | |
1322 | Part.Transparency = Transparency | |
1323 | Part.CanCollide = false | |
1324 | NoOutlines(Part) | |
1325 | ||
1326 | local Mesh = Instance.new("SpecialMesh", Part) | |
1327 | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId | |
1328 | Mesh.Scale = Scale | |
1329 | ||
1330 | return Mesh and Part | |
1331 | ||
1332 | end | |
1333 | ||
1334 | CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) | |
1335 | ||
1336 | local Part = Instance.new("Part", Parent) | |
1337 | Part.Transparency = Transparency | |
1338 | Part.Name = "CircleEffect" | |
1339 | Part.Size = Vector3.new() | |
1340 | Part.Anchored = true | |
1341 | Part.CanCollide = false | |
1342 | Part.Position = Position | |
1343 | Part.BrickColor = BrickColor.new(Brickcolor) | |
1344 | Part.Material = Material | |
1345 | NoOutlines(Part) | |
1346 | ||
1347 | local Mesh = Instance.new("SpecialMesh", Part) | |
1348 | Mesh.MeshType = "Sphere" | |
1349 | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) | |
1350 | ||
1351 | Services.Debris:AddItem(Part, Time) | |
1352 | ||
1353 | ||
1354 | table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ}) | |
1355 | ||
1356 | ||
1357 | end | |
1358 | ||
1359 | BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) | |
1360 | ||
1361 | local Part = Instance.new("Part", Parent) | |
1362 | Part.Transparency = Transparency | |
1363 | Part.Name = "BlockEffect" | |
1364 | Part.Size = Vector3.new() | |
1365 | Part.Anchored = true | |
1366 | Part.Position = Position | |
1367 | Part.CanCollide = false | |
1368 | Part.BrickColor = BrickColor.new(Brickcolor) | |
1369 | Part.Material = Material | |
1370 | NoOutlines(Part) | |
1371 | ||
1372 | local Mesh = Instance.new("BlockMesh", Part) | |
1373 | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) | |
1374 | ||
1375 | Services.Debris:AddItem(Part, Time) | |
1376 | ||
1377 | table.insert(Effects, {Part, "Block", Time, SX, SY, SZ}) | |
1378 | ||
1379 | ||
1380 | end | |
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) | |
1386 | ||
1387 | local HitHumanoid = Hit.Parent.Humanoid | |
1388 | ||
1389 | ||
1390 | local Damage = math.random(Min, Max) | |
1391 | ||
1392 | ||
1393 | coroutine.resume(coroutine.create(function() | |
1394 | HitHumanoid:TakeDamage(Damage) | |
1395 | end)) | |
1396 | ||
1397 | if Type == "Shrink" then | |
1398 | MakeSFX(Hit.Parent.Torso, 209527235, 1, 1) | |
1399 | for i,v in pairs(Hit.Parent:children()) do | |
1400 | if v:IsA("Part") then | |
1401 | coroutine.resume(coroutine.create(function() | |
1402 | for i = 1,100 do | |
1403 | wait() | |
1404 | v.Size = v.Size - Vector3.new(0.05,0.05,0.05) | |
1405 | v.Transparency = v.Transparency + 0.05 | |
1406 | ||
1407 | end | |
1408 | end)) | |
1409 | end | |
1410 | end | |
1411 | ||
1412 | end | |
1413 | ||
1414 | ||
1415 | ||
1416 | if Type == "Normal" then | |
1417 | ||
1418 | local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
1419 | Services.Debris:AddItem(Push, 0) | |
1420 | DamageLabel(Hit.Parent, Damage, Hit) | |
1421 | ||
1422 | elseif Type == "Ranged" then | |
1423 | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
1424 | Services.Debris:AddItem(Push, 0) | |
1425 | DamageLabel(Hit.Parent, Damage, Hit) | |
1426 | ||
1427 | elseif Type == "Impale" then | |
1428 | ||
1429 | local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1)) | |
1430 | Spike.Anchored = true | |
1431 | Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50)) | |
1432 | Spike.Position = Hit.Parent.Torso.Position | |
1433 | ||
1434 | ||
1435 | Services.Debris:AddItem(Spike, 30) | |
1436 | ||
1437 | Hit.Parent:BreakJoints() | |
1438 | Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0) | |
1439 | Hit.Parent.Torso.Anchored = true | |
1440 | ||
1441 | MakeSFX(Spike, 306247724, 1,1) | |
1442 | MakeSFX(Hit.Parent.Torso, 209527175, 10,1) | |
1443 | elseif Type == "Knockdown" then | |
1444 | ||
1445 | ||
1446 | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
1447 | DamageLabel(Hit.Parent, Damage, Hit) | |
1448 | Services.Debris:AddItem(Push, 0.3) | |
1449 | ||
1450 | coroutine.resume(coroutine.create(function() | |
1451 | ||
1452 | HitHumanoid.PlatformStand = true | |
1453 | wait(1) | |
1454 | HitHumanoid.PlatformStand = false | |
1455 | ||
1456 | ||
1457 | end)) | |
1458 | end | |
1459 | ||
1460 | if HitSFX == "Penetration" then | |
1461 | ||
1462 | MakeSFX(Hit, 199149269, 1 , 1) | |
1463 | ||
1464 | elseif HitSFX == "Punch" then | |
1465 | ||
1466 | MakeSFX(Hit, 278062209, 1 , 1) | |
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | end | |
1472 | end | |
1473 | ||
1474 | ||
1475 | ||
1476 | function DamageLabel(HitCharacter, DamageDealt, Hit) | |
1477 | ||
1478 | local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block") | |
1479 | DamageShowingPart.Position = HitCharacter.Head.Position | |
1480 | ||
1481 | local DamageGui = Instance.new("BillboardGui", DamageShowingPart) | |
1482 | DamageGui.Name = "Damage" | |
1483 | DamageGui.AlwaysOnTop = true | |
1484 | DamageGui.Size = UDim2.new(5, 0, 5, 0) | |
1485 | ||
1486 | local DamageNumber = Instance.new("TextLabel", DamageGui) | |
1487 | DamageNumber.Size = UDim2.new(1,0,1,0) | |
1488 | if Hit.Parent:FindFirstChild("Head") then | |
1489 | DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color | |
1490 | DamageNumber.TextColor3 = Hit.BrickColor.Color | |
1491 | end | |
1492 | DamageNumber.TextStrokeTransparency = 0 | |
1493 | DamageNumber.BackgroundTransparency = 1 | |
1494 | DamageNumber.Font = "SourceSansBold" | |
1495 | DamageNumber.TextScaled = true | |
1496 | DamageNumber.Text = DamageDealt | |
1497 | ||
1498 | local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart) | |
1499 | BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1500 | BodyVelocity.Velocity = Vector3.new(0,2,0) | |
1501 | ||
1502 | Services.Debris:AddItem(DamageShowingPart, 3) | |
1503 | ||
1504 | ||
1505 | end | |
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback) | |
1511 | for _,WorkspaceChildren in pairs(workspace:children()) do | |
1512 | ||
1513 | local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid") | |
1514 | ||
1515 | if HitHumanoid ~= nil then | |
1516 | local Hit = WorkspaceChildren:findFirstChild("Torso") | |
1517 | ||
1518 | if Hit ~= nil then | |
1519 | ||
1520 | local Target = Hit.Position - Part.Position | |
1521 | ||
1522 | local Magnitude = Target.magnitude | |
1523 | ||
1524 | if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then | |
1525 | ||
1526 | local HitBlock = Hit.Parent:FindFirstChild("Block") | |
1527 | ||
1528 | if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then | |
1529 | ||
1530 | local HitBlock2 = Hit.Parent.Block.BlockDurability | |
1531 | ||
1532 | if HitBlock2.Value > 15 then | |
1533 | ||
1534 | local HitN = math.random(1,5) | |
1535 | ||
1536 | HitBlock2.Value = HitBlock2.Value - 15 | |
1537 | ||
1538 | ||
1539 | if HitN == 1 then | |
1540 | MakeSFX(Hit ,199148971, 0.5, 1) | |
1541 | end | |
1542 | ||
1543 | if HitN == 2 then | |
1544 | MakeSFX(Hit ,199149025, 0.5, 1) | |
1545 | end | |
1546 | ||
1547 | if HitN == 3 then | |
1548 | MakeSFX(Hit ,199149072, 0.5, 1) | |
1549 | end | |
1550 | ||
1551 | if HitN == 4 then | |
1552 | MakeSFX(Hit ,199149109, 0.5, 1) | |
1553 | end | |
1554 | ||
1555 | if HitN == 5 then | |
1556 | MakeSFX(Hit ,199149119, 0.5, 1) | |
1557 | end | |
1558 | return | |
1559 | end | |
1560 | end | |
1561 | ||
1562 | DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) | |
1563 | ||
1564 | ||
1565 | ||
1566 | end | |
1567 | end | |
1568 | end | |
1569 | end | |
1570 | end | |
1571 | ||
1572 | ||
1573 | ||
1574 | function Attack1() | |
1575 | Attacking = true | |
1576 | MakeSFX(EyeReference, 341336274, 1,1) | |
1577 | wait(0.3) | |
1578 | local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
1579 | local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root) | |
1580 | ||
1581 | local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
1582 | local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root) | |
1583 | ||
1584 | ||
1585 | for i = 1,10 do | |
1586 | ||
1587 | wait() | |
1588 | ||
1589 | end | |
1590 | ||
1591 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) | |
1592 | wait(0.5) | |
1593 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) | |
1594 | wait(0.5) | |
1595 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) | |
1596 | wait(0.5) | |
1597 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) | |
1598 | wait(0.5) | |
1599 | MakeSFX(Reference, 306247724, 1,1) | |
1600 | CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5) | |
1601 | ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5) | |
1602 | Attacking = false | |
1603 | end | |
1604 | ||
1605 | ||
1606 | ||
1607 | function Attack3() | |
1608 | Humanoid.WalkSpeed = 0 | |
1609 | Humanoid.JumpPower = 0 | |
1610 | Attacking = true | |
1611 | wait(1) | |
1612 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1613 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) | |
1614 | wait(1) | |
1615 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1616 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) | |
1617 | wait(1) | |
1618 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1619 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) | |
1620 | ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15) | |
1621 | Humanoid.WalkSpeed = 16 | |
1622 | Humanoid.JumpPower = 50 | |
1623 | Attacking = false | |
1624 | end | |
1625 | ||
1626 | ||
1627 | ||
1628 | mouse.KeyDown:connect(function(key)---------------------------------------------------------------------------------------------------Erasing Hand | |
1629 | ||
1630 | if key == "e" and Debounces.CanAttack == true then | |
1631 | ||
1632 | Attack1() | |
1633 | ||
1634 | end | |
1635 | end) | |
1636 | ||
1637 | ||
1638 | ||
1639 | ||
1640 | ||
1641 | ||
1642 | ||
1643 | mouse.KeyDown:connect(function(key)-----------------------------------------------------------------------------------------------Underworld Spikes | |
1644 | ||
1645 | if key == "r" and Debounces.CanAttack == true then | |
1646 | ||
1647 | Attack3() | |
1648 | ||
1649 | end | |
1650 | end) | |
1651 | ||
1652 | ||
1653 | ||
1654 | ||
1655 | x = Instance.new("Sound", char) | |
1656 | x.SoundId = "http://www.roblox.com/asset/?id=198360408" | |
1657 | x.Looped = true | |
1658 | x.Volume = 9 | |
1659 | local footsteps = false | |
1660 | ||
1661 | local animpose = "Idle1" | |
1662 | local lastanimpose = "Idle1" | |
1663 | local grab = false | |
1664 | local Smooth = 1 | |
1665 | local sine = 0 | |
1666 | local change = 1 | |
1667 | local val = 0 | |
1668 | local ffing = false | |
1669 | ||
1670 | jump = false | |
1671 | rs:connect(function() | |
1672 | if char.Humanoid.Jump == true then | |
1673 | jump = true | |
1674 | else | |
1675 | jump = false | |
1676 | end | |
1677 | char.Humanoid.FreeFalling:connect(function(f) | |
1678 | if f then | |
1679 | ffing = true | |
1680 | else | |
1681 | ffing = false | |
1682 | end | |
1683 | end) | |
1684 | sine = sine + change | |
1685 | if jump == true then | |
1686 | animpose = "Jumping" | |
1687 | elseif ffing == true then | |
1688 | animpose = "Freefalling" | |
1689 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1690 | animpose = "Idle" | |
1691 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1692 | animpose = "Walking" | |
1693 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1694 | animpose = "Running" | |
1695 | end | |
1696 | RightLeg = CFrame.new(0.5,-1,0) | |
1697 | LeftLeg = CFrame.new(-0.5,-1,0) | |
1698 | ||
1699 | lefth = (torso.CFrame*LeftLeg) | |
1700 | righth = (torso.CFrame*RightLeg) | |
1701 | ||
1702 | speed = Vector3.new(torso.Velocity.X,50,torso.Velocity.Z) | |
1703 | ||
1704 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1705 | ||
1706 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1707 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1708 | if animpose ~= lastanimpose then | |
1709 | sine = 0 | |
1710 | if Debounces.NoIdl == false then | |
1711 | if stanceToggle == "Idle1" then | |
1712 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
1713 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
1714 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
1715 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
1716 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
1717 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
1718 | elseif stanceToggle == "Idle2" then | |
1719 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3) | |
1720 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3) | |
1721 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2) | |
1722 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2) | |
1723 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2) | |
1724 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2) | |
1725 | end | |
1726 | fat.Event:wait() | |
1727 | end | |
1728 | else | |
1729 | end | |
1730 | lastanimpose = animpose | |
1731 | if Debounces.NoIdl == false then | |
1732 | if animpose == "Idle" then | |
1733 | change = 0.5 | |
1734 | if stanceToggle == "Idle1" then | |
1735 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1736 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3) | |
1737 | ||
1738 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
1739 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1740 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
1741 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1742 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
1743 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
1744 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
1745 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
1746 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
1747 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
1748 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
1749 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
1750 | elseif stanceToggle == "Idle2" then | |
1751 | ||
1752 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1753 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
1754 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
1755 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
1756 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
1757 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
1758 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
1759 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1760 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
1761 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1762 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
1763 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
1764 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
1765 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
1766 | elseif stanceToggle == "Grabbed" then | |
1767 | grab = true | |
1768 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1769 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1770 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
1771 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
1772 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
1773 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
1774 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
1775 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1776 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1777 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
1778 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1779 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1780 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1781 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1782 | end | |
1783 | elseif animpose == "Walking" then | |
1784 | if stanceToggle == "Grabbed" then | |
1785 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1786 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1787 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
1788 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1789 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3) | |
1790 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
1791 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
1792 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
1793 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
1794 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
1795 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
1796 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
1797 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1798 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
1799 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1800 | elseif stanceToggle ~= "Grabbed" then | |
1801 | change = 0.4 | |
1802 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1803 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1804 | ||
1805 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
1806 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1807 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
1808 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1809 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
1810 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
1811 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
1812 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
1813 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
1814 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
1815 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
1816 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1817 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
1818 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
1819 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1820 | end | |
1821 | elseif animpose == "Running" then | |
1822 | change = 0.4 | |
1823 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1824 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1825 | ||
1826 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
1827 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
1828 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
1829 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1830 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2) | |
1831 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5) | |
1832 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2) | |
1833 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1834 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
1835 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1836 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
1837 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1838 | elseif animpose == "Jumping" then | |
1839 | ||
1840 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1841 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1842 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2) | |
1843 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
1844 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
1845 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1846 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
1847 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
1848 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1849 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1850 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1851 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1852 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1853 | elseif animpose == "Freefalling" then | |
1854 | ||
1855 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
1856 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1857 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2) | |
1858 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
1859 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2) | |
1860 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
1861 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
1862 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
1863 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1864 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
1865 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1866 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
1867 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1868 | end | |
1869 | end | |
1870 | if animpose == "Walking" then | |
1871 | if footsteps == false then | |
1872 | x:Play() | |
1873 | footsteps = true | |
1874 | end | |
1875 | x.Pitch = 1.1 | |
1876 | elseif animpose == "Idle" then | |
1877 | x:Stop() | |
1878 | footsteps = false | |
1879 | elseif animpose == "Running" then | |
1880 | x.Pitch = 1.2 | |
1881 | if footsteps == false then | |
1882 | x:Play() | |
1883 | footsteps = true | |
1884 | end | |
1885 | end | |
1886 | end) |