SHOW:
|
|
- or go back to the newest paste.
1 | - | local char = game.Players.LocalPlayer.Character |
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,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end local char = game.Players.LocalPlayer.Character | |
6 | char.Head.Transparency = 1 | |
7 | char['Right Arm'].Transparency = 0.3 | |
8 | char['Left Arm'].Transparency = 0.3 | |
9 | char.Torso.Transparency = 0.3 | |
10 | char['Right Leg'].Transparency = 0.3 | |
11 | char['Left Leg'].Transparency = 0.3 | |
12 | -- | |
13 | local Player = game.Players.localPlayer | |
14 | local Character = Player.Character | |
15 | local Humanoid = Character.Humanoid | |
16 | local mouse = Player:GetMouse() | |
17 | local m = Instance.new("Model", Character) | |
18 | m.Name = "WeaponModel" | |
19 | local effect = Instance.new("Model", Character) | |
20 | effect.Name = "effecsfsafzx" | |
21 | local demon = Instance.new("Model", Character) | |
22 | demon.Name = "demdemd" | |
23 | local LeftArm = Character["Left Arm"] | |
24 | local RightArm = Character["Right Arm"] | |
25 | local LeftLeg = Character["Left Leg"] | |
26 | local RightLeg = Character["Right Leg"] | |
27 | local do2target = nil | |
28 | local Head = Character.Head | |
29 | local Torso = Character.Torso | |
30 | TorsoColor = Torso.BrickColor | |
31 | local cam = game.Workspace.CurrentCamera | |
32 | local RootPart = Character.HumanoidRootPart | |
33 | local RootJoint = RootPart.RootJoint | |
34 | local equipped = false | |
35 | local attack = false | |
36 | local Anim = "Idle" | |
37 | local idle = 0 | |
38 | local attacktype = 1 | |
39 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
40 | local velocity = RootPart.Velocity.y | |
41 | local sine = 0 | |
42 | local change = 1 | |
43 | local mana = 0 | |
44 | local it = Instance.new | |
45 | vt = Vector3.new | |
46 | local grabbed = false | |
47 | local cf = CFrame.new | |
48 | local mr = math.rad | |
49 | local angles = CFrame.Angles | |
50 | local ud = UDim2.new | |
51 | local c3 = Color3.new | |
52 | local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
53 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
54 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
55 | local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0)) | |
56 | local p = game.Players.LocalPlayer | |
57 | local char = p.Character | |
58 | local mouse = p:GetMouse() | |
59 | local larm = char["Left Arm"] | |
60 | local rarm = char["Right Arm"] | |
61 | local lleg = char["Left Leg"] | |
62 | local rleg = char["Right Leg"] | |
63 | local hed = char.Head | |
64 | local torso = char.Torso | |
65 | local hum = char.Humanoid | |
66 | local cam = game.Workspace.CurrentCamera | |
67 | local root = char.HumanoidRootPart | |
68 | local deb = false | |
69 | local shot = 0 | |
70 | local debris=game:service"Debris" | |
71 | local l = game:GetService("Lighting") | |
72 | local rs = game:GetService("RunService").RenderStepped | |
73 | ---------------------------------------------------- | |
74 | char["Body Colors"].TorsoColor = BrickColor.new("Dark indigo") | |
75 | torso.Anchored = true | |
76 | ---------------------------------------------------- | |
77 | z = Instance.new("Sound", char) | |
78 | z.SoundId = "rbxassetid://195900687"--209113706 | |
79 | z.Looped = true | |
80 | z.Pitch = 1 | |
81 | z.Volume = 2 | |
82 | wait(.01) | |
83 | z:Play() | |
84 | ---------------------------------------------------- | |
85 | hed.face.Texture = "rbxassetid://0" | |
86 | ---------------------------------------------------- | |
87 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
88 | math.randomseed(os.time()) | |
89 | for i,v in pairs (hed:GetChildren()) do | |
90 | if v:IsA("Sound") then | |
91 | v:Destroy() | |
92 | end | |
93 | end | |
94 | ||
95 | -----[[ this is the border no one can cross it ]]------- | |
96 | ||
97 | purple = Color3.new(1, 1, 1) | |
98 | local player = "LocalPlayer" | |
99 | local Character = game.Players[player].Character | |
100 | it = Instance.new | |
101 | vt = Vector3.new | |
102 | bc = BrickColor.new | |
103 | cf = CFrame.new | |
104 | local hed = Character.Head | |
105 | local ultcooldown = 99999 | |
106 | ||
107 | paly = game.Players.LocalPlayer | |
108 | p = game.Players.LocalPlayer | |
109 | char = paly.Character | |
110 | torso = char.Torso | |
111 | neck = char.Torso.Neck | |
112 | hum = char.Humanoid | |
113 | Player = game:GetService("Players").LocalPlayer | |
114 | local mouse = Player:GetMouse() | |
115 | Character = Player.Character | |
116 | tors = Character.Torso | |
117 | lleg = Character["Left Leg"] | |
118 | root = Character.HumanoidRootPart | |
119 | hed = Character.Head | |
120 | rleg = Character["Right Leg"] | |
121 | rarm = Character["Right Arm"] | |
122 | larm = Character["Left Arm"] | |
123 | local Effects = {} | |
124 | ||
125 | ||
126 | function ExplodeMass(rad,par) | |
127 | local expart = Instance.new("Part",script.Parent) | |
128 | local expart2 = Instance.new("Part",script.Parent) | |
129 | local partMesh = Instance.new("SpecialMesh",expart) | |
130 | partMesh.MeshType = "Sphere" | |
131 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
132 | partMesh2.MeshType = "Sphere" | |
133 | local expld = Instance.new("Explosion", script.Parent) | |
134 | local plode = Instance.new("Sound",workspace) | |
135 | plode.SoundId = "rbxassetid://579687077" | |
136 | plode.Volume = 1 | |
137 | plode.Pitch = 0.85 | |
138 | plode.Looped = false | |
139 | plode:Play() | |
140 | local plodez = Instance.new("Sound",workspace) | |
141 | plodez.SoundId = "rbxassetid://288641686" | |
142 | plodez.Volume = 1 | |
143 | plodez.Pitch = 0.75 | |
144 | plodez.Looped = false | |
145 | plodez:Play() | |
146 | local plodeza = Instance.new("Sound",workspace) | |
147 | plodeza.SoundId = "rbxassetid://197161452" | |
148 | plodeza.Volume = 0.85 | |
149 | plodeza.Pitch = 0.65 | |
150 | plodeza.Looped = false | |
151 | plodeza:Play() | |
152 | local plodezar = Instance.new("Sound",workspace) | |
153 | plodezar.SoundId = "rbxassetid://197161452" | |
154 | plodezar.Volume = 0.85 | |
155 | plodezar.Pitch = 0.25 | |
156 | plodezar.Looped = false | |
157 | plodezar:Play() | |
158 | local s3 = Instance.new("Sound",workspace) | |
159 | s3.SoundId = "rbxassetid://268931189" | |
160 | s3.Pitch = 1 | |
161 | s3.Volume = 1 | |
162 | s3.Looped = false | |
163 | s3:Play() | |
164 | xay = Instance.new("Sound",workspace) | |
165 | xay.SoundId = "rbxassetid://419447292" | |
166 | xay.Pitch = 1 | |
167 | xay.Volume = 2.5 | |
168 | xay:Play() | |
169 | expld.BlastRadius = rad | |
170 | expld.Position = par.Position | |
171 | partMesh.Scale = vt(rad,rad,rad) | |
172 | expart.Size = vt(1,1,1)*1.5 | |
173 | expart.Transparency = 0 | |
174 | expart.Anchored = true | |
175 | expart.Material = "Neon" | |
176 | expart.BrickColor = bc("Dark indigo") | |
177 | expart.CFrame = par.CFrame | |
178 | partMesh2.Scale = vt(rad,rad,rad) | |
179 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
180 | expart2.Transparency = 0.5 | |
181 | expart2.Anchored = true | |
182 | expart2.Material = "Neon" | |
183 | expart2.BrickColor = Character.Torso.BrickColor | |
184 | expart2.CFrame = par.CFrame | |
185 | local value = 1*rad/10 | |
186 | par:Destroy() | |
187 | for i = 0, 300 do | |
188 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
189 | expart.CFrame = expart.CFrame | |
190 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
191 | expart2.CFrame = expart.CFrame | |
192 | value = value - 0.0175*rad/10 | |
193 | if value <= 0 then | |
194 | expart.Transparency = expart.Transparency + 0.0125 | |
195 | expart2.Transparency = expart2.Transparency + 0.0125 | |
196 | value = 0.25 | |
197 | end | |
198 | wait() | |
199 | end | |
200 | plode.Parent = nil | |
201 | expart.Parent = nil | |
202 | expart2.Parent = nil | |
203 | expld.Parent = nil | |
204 | end | |
205 | ||
206 | function ExplodeMass2(rad,par) | |
207 | local expart = Instance.new("Part",script.Parent) | |
208 | local expart2 = Instance.new("Part",script.Parent) | |
209 | local partMesh = Instance.new("SpecialMesh",expart) | |
210 | partMesh.MeshType = "Sphere" | |
211 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
212 | partMesh2.MeshType = "Sphere" | |
213 | local expld = Instance.new("Explosion", script.Parent) | |
214 | local plode = Instance.new("Sound",workspace) | |
215 | plode.SoundId = "rbxassetid://579687077" | |
216 | plode.Volume = 1 | |
217 | plode.Pitch = 0.8 | |
218 | plode.Looped = false | |
219 | plode:Play() | |
220 | local plodez = Instance.new("Sound",workspace) | |
221 | plodez.SoundId = "rbxassetid://288641686" | |
222 | plodez.Volume = 1 | |
223 | plodez.Pitch = 0.7 | |
224 | plodez.Looped = false | |
225 | plodez:Play() | |
226 | local plodeza = Instance.new("Sound",workspace) | |
227 | plodeza.SoundId = "rbxassetid://197161452" | |
228 | plodeza.Volume = 0.85 | |
229 | plodeza.Pitch = 0.6 | |
230 | plodeza.Looped = false | |
231 | plodeza:Play() | |
232 | local plodezar = Instance.new("Sound",workspace) | |
233 | plodezar.SoundId = "rbxassetid://197161452" | |
234 | plodezar.Volume = 0.85 | |
235 | plodezar.Pitch = 0.2 | |
236 | plodezar.Looped = false | |
237 | plodezar:Play() | |
238 | local s3 = Instance.new("Sound",workspace) | |
239 | s3.SoundId = "rbxassetid://268931189" | |
240 | s3.Pitch = 0.85 | |
241 | s3.Volume = 1 | |
242 | s3.Looped = false | |
243 | s3:Play() | |
244 | xay = Instance.new("Sound",workspace) | |
245 | xay.SoundId = "rbxassetid://419447292" | |
246 | xay.Pitch = 1 | |
247 | xay.Volume = 3.5 | |
248 | xay:Play() | |
249 | expld.BlastRadius = rad | |
250 | expld.Position = par.Position | |
251 | partMesh.Scale = vt(rad,rad,rad) | |
252 | expart.Size = vt(1,1,1)*1.5 | |
253 | expart.Transparency = 0 | |
254 | expart.Anchored = true | |
255 | expart.Material = "Neon" | |
256 | expart.BrickColor = bc("Really black") | |
257 | expart.CFrame = par.CFrame | |
258 | partMesh2.Scale = vt(rad,rad,rad) | |
259 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
260 | expart2.Transparency = 0.5 | |
261 | expart2.Anchored = true | |
262 | expart2.Material = "Neon" | |
263 | expart2.BrickColor = Character.Torso.BrickColor | |
264 | expart2.CFrame = par.CFrame | |
265 | local value = 1*rad/10 | |
266 | par:Destroy() | |
267 | for i = 0, 300 do | |
268 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
269 | expart.CFrame = expart.CFrame | |
270 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
271 | expart2.CFrame = expart.CFrame | |
272 | value = value - 0.0175*rad/10 | |
273 | if value <= 0 then | |
274 | expart.Transparency = expart.Transparency + 0.0125 | |
275 | expart2.Transparency = expart2.Transparency + 0.0125 | |
276 | value = 0.25 | |
277 | end | |
278 | wait() | |
279 | end | |
280 | plode.Parent = nil | |
281 | expart.Parent = nil | |
282 | expart2.Parent = nil | |
283 | expld.Parent = nil | |
284 | end | |
285 | ||
286 | function Blaze2() | |
287 | if ultcooldown >= 30 then | |
288 | ultcooldown = ultcooldown - 30 | |
289 | wit = BrickColor.new("Dark indigo") | |
290 | local sloc = Instance.new("Part",workspace) | |
291 | local msh = Instance.new("SpecialMesh",sloc) | |
292 | msh.MeshType = "Sphere" | |
293 | sloc.Size = vt(1,1,1) | |
294 | sloc.Transparency = 1 | |
295 | sloc.BrickColor = Character.Torso.BrickColor | |
296 | sloc.Position = hed.Position + vt(0,0,0) | |
297 | sloc.CanCollide = false | |
298 | sloc.Shape = "Ball" | |
299 | sloc.Anchored = true | |
300 | sloc.Material = "Neon" | |
301 | local forcefield = Instance.new("ForceField",Character) | |
302 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting) | |
303 | kolor.TintColor = Character.Torso.BrickColor.Color | |
304 | local glowz = Instance.new("ParticleEmitter") | |
305 | glowz.LightEmission = 0 | |
306 | glowz.Parent = sloc | |
307 | glowz.Texture = "rbxassetid://284205403" | |
308 | glowz.Color = ColorSequence.new(wit) | |
309 | glowz.Size = NumberSequence.new(15) | |
310 | glowz.Speed = NumberRange.new(100,250) | |
311 | glowz.LockedToPart = false | |
312 | glowz.Transparency = NumberSequence.new(0.75) | |
313 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
314 | glowz.Lifetime = NumberRange.new(1) | |
315 | glowz.Rate = 50 | |
316 | glowz.VelocitySpread = 9001 | |
317 | local s = Instance.new("Sound",workspace) | |
318 | s.SoundId = "rbxassetid://331888777" | |
319 | s.Pitch = 0.45 | |
320 | s.Volume = 1.5 | |
321 | s.Looped = false | |
322 | s:Play() | |
323 | local s2 = Instance.new("Sound",workspace) | |
324 | s2.SoundId = "rbxassetid://331888777" | |
325 | s2.Pitch = 0.5 | |
326 | s2.Volume = 1.5 | |
327 | s2.Looped = false | |
328 | s2:Play() | |
329 | local val = 1*5 | |
330 | for i = 0 , 20 do | |
331 | sloc.Transparency = sloc.Transparency - 0.055 | |
332 | msh.Scale = msh.Scale + vt(val,val,val) | |
333 | val = val - 0.05*5 | |
334 | kolor.Brightness = kolor.Brightness - 0.1 | |
335 | kolor.Contrast = kolor.Contrast + 0.1 | |
336 | wait() | |
337 | end | |
338 | for i = 0 , 5 do | |
339 | msh.Scale = msh.Scale + vt(val,val,val) | |
340 | val = val + 0.05*5 | |
341 | kolor.Brightness = kolor.Brightness + 0.5 | |
342 | kolor.Contrast = kolor.Contrast - 0.5 | |
343 | wait() | |
344 | end | |
345 | for i = 0 , 5 do | |
346 | msh.Scale = msh.Scale + vt(val,val,val) | |
347 | val = val - 0.05*5 | |
348 | kolor.Brightness = kolor.Brightness - 0.5 | |
349 | kolor.Contrast = kolor.Contrast + 0.5 | |
350 | wait() | |
351 | end | |
352 | for i = 0 , 5 do | |
353 | msh.Scale = msh.Scale + vt(val,val,val) | |
354 | val = val + 0.05*10 | |
355 | kolor.Brightness = kolor.Brightness + 0.5 | |
356 | kolor.Contrast = kolor.Contrast - 0.5 | |
357 | wait() | |
358 | end | |
359 | for i = 0 , 5 do | |
360 | msh.Scale = msh.Scale + vt(val,val,val) | |
361 | val = val - 0.05*10 | |
362 | kolor.Brightness = kolor.Brightness - 0.5 | |
363 | kolor.Contrast = kolor.Contrast + 0.5 | |
364 | wait() | |
365 | end | |
366 | for i = 0 , 5 do | |
367 | msh.Scale = msh.Scale + vt(val,val,val) | |
368 | val = val + 0.05*20 | |
369 | kolor.Brightness = kolor.Brightness + 0.5 | |
370 | kolor.Contrast = kolor.Contrast - 0.5 | |
371 | wait() | |
372 | end | |
373 | for i = 0 , 5 do | |
374 | msh.Scale = msh.Scale + vt(val,val,val) | |
375 | val = val - 0.05*20 | |
376 | kolor.Brightness = kolor.Brightness - 0.5 | |
377 | kolor.Contrast = kolor.Contrast + 0.5 | |
378 | wait() | |
379 | end | |
380 | for i = 0 , 5 do | |
381 | msh.Scale = msh.Scale + vt(val,val,val) | |
382 | val = val + 0.05*40 | |
383 | kolor.Brightness = kolor.Brightness + 0.5 | |
384 | kolor.Contrast = kolor.Contrast - 0.5 | |
385 | wait() | |
386 | end | |
387 | for i = 0 , 5 do | |
388 | msh.Scale = msh.Scale + vt(val,val,val) | |
389 | val = val - 0.05*40 | |
390 | kolor.Brightness = kolor.Brightness - 0.5 | |
391 | kolor.Contrast = kolor.Contrast + 0.5 | |
392 | wait() | |
393 | end | |
394 | for i = 0 , 5 do | |
395 | msh.Scale = msh.Scale + vt(val,val,val) | |
396 | val = val + 0.05*45 | |
397 | kolor.Brightness = kolor.Brightness + 0.5 | |
398 | kolor.Contrast = kolor.Contrast - 0.5 | |
399 | wait() | |
400 | end | |
401 | for i = 0 , 5 do | |
402 | msh.Scale = msh.Scale + vt(val,val,val) | |
403 | val = val - 0.05*45 | |
404 | kolor.Brightness = kolor.Brightness - 0.5 | |
405 | kolor.Contrast = kolor.Contrast + 0.5 | |
406 | wait() | |
407 | end | |
408 | for i = 0 , 5 do | |
409 | msh.Scale = msh.Scale + vt(val,val,val) | |
410 | val = val + 0.05*50 | |
411 | kolor.Brightness = kolor.Brightness + 0.5 | |
412 | kolor.Contrast = kolor.Contrast - 0.5 | |
413 | wait() | |
414 | end | |
415 | for i = 0 , 20 do | |
416 | sloc.Transparency = sloc.Transparency + 0.055 | |
417 | msh.Scale = msh.Scale + vt(val,val,val) | |
418 | val = val - 0.05*50 | |
419 | wait() | |
420 | end | |
421 | kolor:Destroy() | |
422 | ExplodeMass2(125,sloc) | |
423 | sloc:Destroy() | |
424 | forcefield:Destroy() | |
425 | end | |
426 | if ultcooldown < 1 then | |
427 | for i = 0, 29 do | |
428 | ultcooldown = ultcooldown + 1 | |
429 | wait(1) | |
430 | end | |
431 | end | |
432 | end | |
433 | ||
434 | function Blaze() | |
435 | if ultcooldown >= 30 then | |
436 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting) | |
437 | local see = Instance.new("Sound",workspace) | |
438 | see.SoundId = "rbxassetid://21420962" | |
439 | see.Pitch = 1 | |
440 | see.Volume = 2.75 | |
441 | see.Looped = false | |
442 | see:Play() | |
443 | kolor.Brightness = -1 | |
444 | kolor.Contrast = -1 | |
445 | kolor.TintColor = Character.Torso.BrickColor.Color | |
446 | wait(0.1) | |
447 | for i = 0, 9 do | |
448 | kolor.Brightness = kolor.Brightness + 0.35 | |
449 | kolor.Contrast = kolor.Contrast + 0.35 | |
450 | wait(0.05) | |
451 | end | |
452 | for i = 0, 9 do | |
453 | kolor.Brightness = kolor.Brightness - 0.35 | |
454 | kolor.Contrast = kolor.Contrast - 0.35 | |
455 | wait(0.05) | |
456 | end | |
457 | kolor:Destroy() | |
458 | local sloc = Instance.new("Part",workspace) | |
459 | local msh = Instance.new("SpecialMesh",sloc) | |
460 | msh.MeshType = "Sphere" | |
461 | sloc.Size = vt(1,1,1) | |
462 | sloc.Transparency = 1 | |
463 | sloc.BrickColor = Character.Torso.BrickColor | |
464 | sloc.Position = hed.Position + vt(0,5,0) | |
465 | sloc.CanCollide = false | |
466 | sloc.Shape = "Ball" | |
467 | sloc.Anchored = true | |
468 | sloc.Material = "Neon" | |
469 | local s = Instance.new("Sound",workspace) | |
470 | s.SoundId = "rbxassetid://342793847" | |
471 | s.Pitch = 1 | |
472 | s.Volume = 1 | |
473 | s.Looped = false | |
474 | s:Play() | |
475 | local s2 = Instance.new("Sound",workspace) | |
476 | s2.SoundId = "rbxassetid://137463716" | |
477 | s2.Pitch = 0.25 | |
478 | s2.Volume = 1 | |
479 | s2.Looped = false | |
480 | s2:Play() | |
481 | local val = 0.65*5 | |
482 | for i = 0 , 75 do | |
483 | sloc.Transparency = sloc.Transparency - 0.035 | |
484 | msh.Scale = msh.Scale + vt(val,val,val) | |
485 | sloc.Position = sloc.Position + vt(0,val,0) | |
486 | val = val - 0.0075*5 | |
487 | wait() | |
488 | end | |
489 | msh.Scale = msh.Scale - vt(1,1,1) | |
490 | sloc.Transparency = sloc.Transparency + 0.015 | |
491 | local spart = Instance.new("Part",workspace) | |
492 | local msh2 = Instance.new("SpecialMesh",spart) | |
493 | msh2.MeshType = "Sphere" | |
494 | spart.Size = vt(2,2,2) | |
495 | spart.Shape = "Ball" | |
496 | spart.BrickColor = BrickColor.new("Dark indigo") | |
497 | spart.Material = "Neon" | |
498 | spart.Transparency = 0 | |
499 | spart.Anchored = false | |
500 | msh2.Scale = msh.Scale/2 | |
501 | spart.Rotation = hed.Rotation | |
502 | spart.CanCollide = false | |
503 | spart.Position = sloc.Position + vt(math.random(-0,0),math.random(-0,0),math.random(-0,0)) | |
504 | local bv = Instance.new("BodyVelocity") | |
505 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
506 | bv.velocity = spart.CFrame.lookVector*75 | |
507 | bv.Parent = spart | |
508 | local tick = Instance.new("Sound",workspace) | |
509 | tick.SoundId = "rbxassetid://203691467" | |
510 | tick.Volume = 2 | |
511 | tick.Pitch = 0.75 | |
512 | tick:Play() | |
513 | sloc:Destroy() | |
514 | wait(0.00001) | |
515 | pewdiepie=spart.Touched:connect(function(hit) | |
516 | ExplodeMass(100,spart) | |
517 | end) | |
518 | sloc:Destroy() | |
519 | end | |
520 | if ultcooldown < 1 then | |
521 | for i = 0, 29 do | |
522 | ultcooldown = ultcooldown + 1 | |
523 | wait(1) | |
524 | end | |
525 | end | |
526 | end | |
527 | ||
528 | ||
529 | ||
530 | ||
531 | local Torso = Character.Torso | |
532 | ---------------------------------------------------- | |
533 | local Transforming = true | |
534 | hum.WalkSpeed = 0 | |
535 | local fx = Instance.new("Part",torso) | |
536 | wit = torso.BrickColor.Color | |
537 | wit2 = Color3.new(0,0,0) | |
538 | local glowz = Instance.new("ParticleEmitter",fx) | |
539 | glowz.LightEmission = 1 | |
540 | glowz.Texture = "rbxassetid://284205403" | |
541 | glowz.Color = ColorSequence.new(wit) | |
542 | glowz.Size = NumberSequence.new(5) | |
543 | glowz.Speed = NumberRange.new(25,50) | |
544 | glowz.LockedToPart = false | |
545 | glowz.Transparency = NumberSequence.new(0.75) | |
546 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
547 | glowz.Lifetime = NumberRange.new(1) | |
548 | glowz.Rate = 50000 | |
549 | glowz.VelocitySpread = 9001 | |
550 | local glowz2 = Instance.new("ParticleEmitter",fx) | |
551 | glowz2.LightEmission = 0.5 | |
552 | glowz.Texture = "rbxassetid://284205403" | |
553 | glowz2.Color = ColorSequence.new(wit2) | |
554 | glowz2.Size = NumberSequence.new(5) | |
555 | glowz2.Speed = NumberRange.new(25,50) | |
556 | glowz2.LockedToPart = false | |
557 | glowz2.Transparency = NumberSequence.new(0.75) | |
558 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
559 | glowz2.Lifetime = NumberRange.new(1) | |
560 | glowz2.Rate = 50000 | |
561 | glowz2.VelocitySpread = 9001 | |
562 | fx.Anchored = true | |
563 | fx.Material = "Neon" | |
564 | fx.CanCollide = false | |
565 | fx.Locked = true | |
566 | fx.Transparency = 1 | |
567 | fx.Material = "Neon" | |
568 | fx.Size = Vector3.new(1,1,1) | |
569 | fx.TopSurface = "SmoothNoOutlines" | |
570 | fx.BottomSurface = "SmoothNoOutlines" | |
571 | fx.BrickColor = BrickColor.new("Really black") | |
572 | fxm = Instance.new("SpecialMesh",fx) | |
573 | fxm.MeshType = "Sphere" | |
574 | local sa2 = Instance.new("Sound",torso) | |
575 | sa2.SoundId = "rbxassetid://93724183" | |
576 | sa2.Pitch = 0.5 | |
577 | sa2.Volume = 5 | |
578 | sa2.Looped = false | |
579 | sa2:Play() | |
580 | local value = 1 | |
581 | fxm.Scale = Vector3.new(1,1,1) | |
582 | for i = 1, 20 do rs:wait() | |
583 | value = value - 0.05 | |
584 | fx.Transparency = fx.Transparency - (1/20) | |
585 | fx.CFrame = torso.CFrame | |
586 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
587 | rs:wait() | |
588 | end | |
589 | ---------------------------------------------------- | |
590 | GroundWave1 = function() | |
591 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
592 | local Colors = {"White", "Really black"} | |
593 | local wave = Instance.new("Part", torso) | |
594 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
595 | wave.Anchored = true | |
596 | wave.CanCollide = false | |
597 | wave.Locked = true | |
598 | wave.Size = Vector3.new(1, 1, 1) | |
599 | wave.TopSurface = "Smooth" | |
600 | wave.BottomSurface = "Smooth" | |
601 | wave.Transparency = 0.35 | |
602 | wave.CFrame = HandCF | |
603 | wm = Instance.new("SpecialMesh", wave) | |
604 | wm.MeshId = "rbxassetid://3270017" | |
605 | coroutine.wrap(function() | |
606 | for i = 1, 30, 1 do | |
607 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
608 | wave.Size = wm.Scale | |
609 | wave.CFrame = HandCF | |
610 | wave.Transparency = i/30 | |
611 | wait() | |
612 | end | |
613 | wait() | |
614 | wave:Destroy() | |
615 | end)() | |
616 | end | |
617 | ---------------------------------------------------- | |
618 | GroundWave = function() | |
619 | if Transforming == true then | |
620 | local value = 5 | |
621 | local value2 = 10 | |
622 | local value3 = 20 | |
623 | local sa2 = Instance.new("Sound",torso) | |
624 | sa2.SoundId = "rbxassetid://413682983" | |
625 | sa2.Pitch = 1 | |
626 | sa2.Volume = 10 | |
627 | sa2.Looped = false | |
628 | sa2:Play() | |
629 | local wave = Instance.new("Part", torso) | |
630 | local glowz = Instance.new("ParticleEmitter",wave) | |
631 | glowz.LightEmission = 1 | |
632 | glowz.Texture = "rbxassetid://284205403" | |
633 | glowz.Color = ColorSequence.new(wit) | |
634 | glowz.Size = NumberSequence.new(30) | |
635 | glowz.Speed = NumberRange.new(25,100) | |
636 | glowz.LockedToPart = false | |
637 | glowz.Transparency = NumberSequence.new(0.75) | |
638 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
639 | glowz.Lifetime = NumberRange.new(1) | |
640 | glowz.Rate = 50000 | |
641 | glowz.VelocitySpread = 9001 | |
642 | local glowz2 = Instance.new("ParticleEmitter",wave) | |
643 | glowz2.LightEmission = 1 | |
644 | glowz.Texture = "rbxassetid://284205403" | |
645 | glowz2.Color = ColorSequence.new(wit) | |
646 | glowz2.Size = NumberSequence.new(30) | |
647 | glowz2.Speed = NumberRange.new(25,100) | |
648 | glowz2.LockedToPart = false | |
649 | glowz2.Transparency = NumberSequence.new(0.75) | |
650 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
651 | glowz2.Lifetime = NumberRange.new(1) | |
652 | glowz2.Rate = 50000 | |
653 | glowz2.VelocitySpread = 9001 | |
654 | wave.BrickColor = BrickColor.New("Dark indigo") | |
655 | wave.Anchored = true | |
656 | wave.CanCollide = false | |
657 | wave.Locked = true | |
658 | wave.Size = Vector3.new(1, 1, 1) | |
659 | wave.TopSurface = "Smooth" | |
660 | wave.BottomSurface = "Smooth" | |
661 | wave.Transparency = 0.35 | |
662 | wave.CFrame = fx.CFrame | |
663 | wave.Material = "Neon" | |
664 | wm = Instance.new("SpecialMesh", wave) | |
665 | wm.MeshType = "Sphere" | |
666 | wm.Scale = Vector3.new(1,1,1) | |
667 | local wave2 = Instance.new("Part", torso) | |
668 | wave2.BrickColor = BrickColor.New("Dark indigo") | |
669 | wave2.Anchored = true | |
670 | wave2.CanCollide = false | |
671 | wave2.Locked = true | |
672 | wave2.Size = Vector3.new(1, 1, 1) | |
673 | wave2.TopSurface = "Smooth" | |
674 | wave2.BottomSurface = "Smooth" | |
675 | wave2.Transparency = 0.35 | |
676 | wave2.CFrame = fx.CFrame | |
677 | wave2.Material = "Neon" | |
678 | wm2 = Instance.new("SpecialMesh", wave2) | |
679 | wm2.MeshType = "FileMesh" | |
680 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
681 | wm2.Scale = Vector3.new(1,1,1) | |
682 | local wave3 = Instance.new("Part", torso) | |
683 | wave3.BrickColor = BrickColor.new("Really black") | |
684 | wave3.Anchored = true | |
685 | wave3.CanCollide = false | |
686 | wave3.Locked = true | |
687 | wave3.Size = Vector3.new(1, 1, 1) | |
688 | wave3.TopSurface = "Smooth" | |
689 | wave3.BottomSurface = "Smooth" | |
690 | wave3.Transparency = 0.35 | |
691 | wave3.CFrame = fx.CFrame | |
692 | wave3.Material = "Neon" | |
693 | wm3 = Instance.new("SpecialMesh", wave3) | |
694 | wm3.MeshType = "FileMesh" | |
695 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
696 | wm3.Scale = Vector3.new(1,1,1) | |
697 | coroutine.wrap(function() | |
698 | for i = 1, 18, 1 do | |
699 | value = value - 0.5 | |
700 | value2 = value2 - 0.75*1.5 | |
701 | value3 = value3 - 0.475*1.5 | |
702 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
703 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
704 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
705 | --wave.Size = wm.Scale | |
706 | wave.CFrame = fx.CFrame | |
707 | wave.Transparency = i/14 | |
708 | --wave2.Size = wm2.Scale | |
709 | wave2.CFrame = fx.CFrame | |
710 | wave2.Rotation = Vector3.new(90, 0, 0) | |
711 | wave2.Transparency = i/14 | |
712 | --wave3.Size = wm3.Scale | |
713 | wave3.CFrame = fx.CFrame | |
714 | wave3.Rotation = Vector3.new(90, 0, 0) | |
715 | wave3.Transparency = i/14 | |
716 | wait() | |
717 | glowz.Rate = 0 | |
718 | glowz2.Rate = 0 | |
719 | end | |
720 | wait() | |
721 | wave:Destroy() | |
722 | wave2:Destroy() | |
723 | wave3:Destroy() | |
724 | end)() | |
725 | elseif Transforming == false then | |
726 | wait() | |
727 | end | |
728 | end | |
729 | ||
730 | for i = 1, 100 do rs:wait() | |
731 | fx.CFrame = torso.CFrame | |
732 | end | |
733 | ||
734 | Spawn(function() | |
735 | while wait(1) do | |
736 | GroundWave() | |
737 | end | |
738 | end) | |
739 | ||
740 | wait(4) | |
741 | ||
742 | Transforming = false | |
743 | ||
744 | local value2 = 1 | |
745 | for i = 1, 20 do rs:wait() | |
746 | value2 = value2 - 0.05 | |
747 | glowz.Rate = 0 | |
748 | glowz2.Rate = 0 | |
749 | fx.Transparency = fx.Transparency + (1/20) | |
750 | fx.CFrame = torso.CFrame | |
751 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
752 | rs:wait() | |
753 | end | |
754 | glowz:Destroy() | |
755 | glowz2:Destroy() | |
756 | ||
757 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
758 | local valuer = 5 | |
759 | local valuer2 = 10 | |
760 | local valuer3 = 15 | |
761 | local sa2 = Instance.new("Sound",torso) | |
762 | sa2.SoundId = "rbxassetid://130972023" | |
763 | sa2.Pitch = 1 | |
764 | sa2.Volume = 5 | |
765 | sa2.Looped = false | |
766 | sa2:Play() | |
767 | local sar2 = Instance.new("Sound",torso) | |
768 | sar2.SoundId = "rbxassetid://153274423" | |
769 | sar2.Pitch = 1 | |
770 | sar2.Volume = 5 | |
771 | sar2.Looped = false | |
772 | sar2:Play() | |
773 | local wave = Instance.new("Part", torso) | |
774 | wave.BrickColor = BrickColor.New("Dark indigo") | |
775 | wave.Anchored = true | |
776 | wave.CanCollide = false | |
777 | wave.Locked = true | |
778 | wave.Size = Vector3.new(1, 1, 1) | |
779 | wave.TopSurface = "Smooth" | |
780 | wave.BottomSurface = "Smooth" | |
781 | wave.Transparency = 0.35 | |
782 | wave.CFrame = HandCF | |
783 | wm = Instance.new("SpecialMesh", wave) | |
784 | wm.MeshId = "rbxassetid://3270017" | |
785 | local wave2 = Instance.new("Part", torso) | |
786 | wave2.BrickColor = BrickColor.new("Really black") | |
787 | wave2.Anchored = true | |
788 | wave2.CanCollide = false | |
789 | wave2.Locked = true | |
790 | wave2.Size = Vector3.new(1, 1, 1) | |
791 | wave2.TopSurface = "Smooth" | |
792 | wave2.BottomSurface = "Smooth" | |
793 | wave2.Transparency = 0.35 | |
794 | wave2.CFrame = HandCF | |
795 | wm2 = Instance.new("SpecialMesh", wave2) | |
796 | wm2.MeshId = "rbxassetid://3270017" | |
797 | local wave3 = Instance.new("Part", torso) | |
798 | wave3.BrickColor = BrickColor.New("Dark indigo") | |
799 | wave3.Anchored = true | |
800 | wave3.CanCollide = false | |
801 | wave3.Locked = true | |
802 | wave3.Size = Vector3.new(1, 1, 1) | |
803 | wave3.TopSurface = "Smooth" | |
804 | wave3.BottomSurface = "Smooth" | |
805 | wave3.Transparency = 0.35 | |
806 | wave3.CFrame = HandCF | |
807 | wm3 = Instance.new("SpecialMesh", wave3) | |
808 | wm3.MeshId = "rbxassetid://3270017" | |
809 | coroutine.wrap(function() | |
810 | for i = 1, 14, 1 do | |
811 | valuer = valuer - 0.35 | |
812 | valuer2 = valuer - 0.45 | |
813 | valuer3 = valuer3 - 0.475 | |
814 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
815 | wave.Size = wm.Scale | |
816 | wave.CFrame = HandCF | |
817 | wave.Transparency = i/14 | |
818 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
819 | wave2.Size = wm2.Scale | |
820 | wave2.CFrame = HandCF | |
821 | wave2.Transparency = i/14 | |
822 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
823 | wave3.Size = wm2.Scale | |
824 | wave3.CFrame = HandCF | |
825 | wave3.Transparency = i/14 | |
826 | wait() | |
827 | end | |
828 | wait() | |
829 | wave:Destroy() | |
830 | wave2:Destroy() | |
831 | end)() | |
832 | hum.WalkSpeed = 10 | |
833 | ---------------------------------------------------- | |
834 | ---------------------------------------------------- | |
835 | Blast = function() | |
836 | local Colors = {"Really black", "Really black"} | |
837 | local wave = Instance.new("Part", torso) | |
838 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
839 | wave.Anchored = true | |
840 | wave.CanCollide = false | |
841 | wave.Locked = true | |
842 | wave.Size = Vector3.new(1, 1, 1) | |
843 | wave.TopSurface = "Smooth" | |
844 | wave.BottomSurface = "Smooth" | |
845 | wave.Transparency = 0.35 | |
846 | wave.CFrame = rarm.CFrame | |
847 | wm = Instance.new("SpecialMesh", wave) | |
848 | wm.MeshType = "Sphere" | |
849 | wm.Scale = Vector3.new(1,1,1) | |
850 | z = Instance.new("Sound",wave) | |
851 | z.SoundId = "rbxassetid://237035051" | |
852 | z.Volume = 1 | |
853 | z.Pitch = .9 | |
854 | z:Play() | |
855 | coroutine.wrap(function() | |
856 | for i = 1, 30, 1 do | |
857 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
858 | --wave.Size = wm.Scale | |
859 | wave.CFrame = rarm.CFrame | |
860 | wave.Transparency = (1/14) | |
861 | rs:wait() | |
862 | end | |
863 | rs:wait() | |
864 | wave:Destroy() | |
865 | z:Destroy() | |
866 | end)() | |
867 | end | |
868 | -------xdxd | |
869 | torso.Anchored = false | |
870 | ------------------------------------------------------ | |
871 | local p = game.Players.LocalPlayer | |
872 | local char = p.Character | |
873 | local mouse = p:GetMouse() | |
874 | local larm = char["Left Arm"] | |
875 | local rarm = char["Right Arm"] | |
876 | local lleg = char["Left Leg"] | |
877 | local rleg = char["Right Leg"] | |
878 | local hed = char.Head | |
879 | local torso = char.Torso | |
880 | local hum = char.Humanoid | |
881 | local cam = game.Workspace.CurrentCamera | |
882 | local root = char.HumanoidRootPart | |
883 | local deb = false | |
884 | local shot = 0 | |
885 | local l = game:GetService("Lighting") | |
886 | local rs = game:GetService("RunService").RenderStepped | |
887 | local stanceToggle = "Normal" | |
888 | math.randomseed(os.time()) | |
889 | hum.WalkSpeed = 10 | |
890 | char.Health:Destroy() | |
891 | hum.MaxHealth = math.huge | |
892 | wait(0.1) | |
893 | hum.Health = math.huge | |
894 | ---------------------------------------------------- | |
895 | p:ClearCharacterAppearance() | |
896 | wait(0.1) | |
897 | p.Character.Head.BrickColor = BrickColor.new("Bright violet") | |
898 | p.Character.Torso.BrickColor = BrickColor.new("Really black") | |
899 | p.Character["Right Arm"].BrickColor = BrickColor.new("Bright violet") | |
900 | p.Character["Right Leg"].BrickColor = BrickColor.new("Bright violet") | |
901 | p.Character["Left Leg"].BrickColor = BrickColor.new("Bright violet") | |
902 | p.Character["Left Arm"].BrickColor = BrickColor.new("Bright violet") | |
903 | pcall(function() p.char.torso.roblox:Destroy() end) | |
904 | shirt = Instance.new("Shirt", char) | |
905 | shirt.Name = "Shirt" | |
906 | pants = Instance.new("Pants", char) | |
907 | pants.Name = "Pants" | |
908 | char.Shirt.ShirtTemplate = "rbxassetid://0" | |
909 | char.Pants.PantsTemplate = "rbxassetid://0" | |
910 | ---------------------------------------------------- | |
911 | Debounces = { | |
912 | on = false; | |
913 | ks = false; | |
914 | CanAttack = true; | |
915 | CanJoke = true; | |
916 | NoIdl = false; | |
917 | Slashing = false; | |
918 | Slashed = false; | |
919 | Grabbing = false; | |
920 | Grabbed = false; | |
921 | } | |
922 | local Touche = {char.Name, } | |
923 | ---------------------------------------------------- | |
924 | function lerp(a, b, t) -- Linear interpolation | |
925 | return a + (b - a)*t | |
926 | end | |
927 | ||
928 | function slerp(a, b, t) --Spherical interpolation | |
929 | dot = a:Dot(b) | |
930 | if dot > 0.99999 or dot < -0.99999 then | |
931 | return t <= 0.5 and a or b | |
932 | else | |
933 | r = math.acos(dot) | |
934 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
935 | end | |
936 | end | |
937 | ||
938 | function matrixInterpolate(a, b, t) | |
939 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
940 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
941 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
942 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
943 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
944 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
945 | local t = v1:Dot(v2) | |
946 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
947 | return CFrame.new() | |
948 | end | |
949 | return CFrame.new( | |
950 | v0.x, v0.y, v0.z, | |
951 | v1.x, v1.y, v1.z, | |
952 | v2.x, v2.y, v2.z, | |
953 | v3.x, v3.y, v3.z) | |
954 | end | |
955 | ---------------------------------------------------- | |
956 | function genWeld(a,b) | |
957 | local w = Instance.new("Weld",a) | |
958 | w.Part0 = a | |
959 | w.Part1 = b | |
960 | return w | |
961 | end | |
962 | function weld(a, b) | |
963 | local weld = Instance.new("Weld") | |
964 | weld.Name = "W" | |
965 | weld.Part0 = a | |
966 | weld.Part1 = b | |
967 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
968 | weld.Parent = a | |
969 | return weld; | |
970 | end | |
971 | ---------------------------------------------------- | |
972 | function Lerp(c1,c2,al) | |
973 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
974 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
975 | for i,v in pairs(com1) do | |
976 | com1[i] = v+(com2[i]-v)*al | |
977 | end | |
978 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
979 | end | |
980 | ---------------------------------------------------- | |
981 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
982 | local wld = Instance.new("Weld", wp1) | |
983 | wld.Part0 = wp0 | |
984 | wld.Part1 = wp1 | |
985 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
986 | end | |
987 | ---------------------------------------------------- | |
988 | for i,v in pairs(char:children()) do | |
989 | if v:IsA("Hat") then | |
990 | v:Destroy() | |
991 | end | |
992 | end | |
993 | for i,v in pairs(hed:children()) do | |
994 | if v:IsA("Sound") then | |
995 | v:Destroy() | |
996 | end | |
997 | end | |
998 | ---------------------------------------------------- | |
999 | function HasntTouched(plrname) | |
1000 | local ret = true | |
1001 | for _, v in pairs(Touche) do | |
1002 | if v == plrname then | |
1003 | ret = false | |
1004 | end | |
1005 | end | |
1006 | return ret | |
1007 | end | |
1008 | ---------------------------------------------------- | |
1009 | larm.Size = larm.Size * 2 | |
1010 | rarm.Size = rarm.Size * 2 | |
1011 | lleg.Size = lleg.Size * 2 | |
1012 | rleg.Size = rleg.Size * 2 | |
1013 | torso.Size = torso.Size * 2 | |
1014 | hed.Size = hed.Size * 2 | |
1015 | root.Size = root.Size * 2 | |
1016 | ---------------------------------------------------- | |
1017 | newWeld(torso, larm, -1.5, 0.5, 0) | |
1018 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1019 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
1020 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1021 | newWeld(torso, hed, 0, 1.5, 0) | |
1022 | newWeld(torso, lleg, -0.5, -1, 0) | |
1023 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1024 | newWeld(torso, rleg, 0.5, -1, 0) | |
1025 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1026 | newWeld(root, torso, 0, -1, 0) | |
1027 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1028 | ---------------------------------------------------- | |
1029 | --[[ | |
1030 | wait(0.1) | |
1031 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You Will Die Of The Hands Of Me!", "Red") | |
1032 | wait(9) | |
1033 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You've rediculed hades for the last time!", "Blue") | |
1034 | wait(9) | |
1035 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Activate the power of noob", "Red") | |
1036 | wait(9.8) | |
1037 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Summoning ZE NOOB!", "Red") | |
1038 | wait(0.1) | |
1039 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1040 | wait(0.1) | |
1041 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1042 | wait(0.1) | |
1043 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1044 | wait(0.1) | |
1045 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1046 | wait(0.1) | |
1047 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1048 | wait(0.1) | |
1049 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1050 | wait(0.1) | |
1051 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1052 | wait(0.1) | |
1053 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1054 | wait(0.1) | |
1055 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1056 | wait(0.1) | |
1057 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1058 | wait(0.1) | |
1059 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1060 | wait(0.1) | |
1061 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1062 | wait(0.1) | |
1063 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1064 | wait(0.1) | |
1065 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1066 | wait(0.1) | |
1067 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1068 | wait(0.1) | |
1069 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1070 | wait(0.1) | |
1071 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1072 | wait(0.1) | |
1073 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1074 | wait(0.1) | |
1075 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1076 | wait(0.1) | |
1077 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1078 | wait(0.1) | |
1079 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1080 | wait(0.1) | |
1081 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1082 | wait(0.1) | |
1083 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1084 | wait(0.1) | |
1085 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1086 | wait(0.1) | |
1087 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1088 | wait(0.1) | |
1089 | game.Lighting.Ambient = Color3.new(1,0,0) | |
1090 | wait(0.1) | |
1091 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1092 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"The demon awakens! With The anger of thousands!", "Green") | |
1093 | ]]-- | |
1094 | --game:service'InsertService':LoadAsset(130900995):children()[1].Parent=char | |
1095 | --char.PumpkinReaper.Handle.Mesh.Scale = char.PumpkinReaper.Handle.Mesh.Scale * 1.8 | |
1096 | --char.PumpkinReaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=334850318" | |
1097 | --char.PumpkinReaper.Handle.Mesh.VertexColor = Vector3.new(1,1,1) | |
1098 | --l.TimeOfDay = 24 | |
1099 | z=Instance.new('Decal',hed) | |
1100 | z.Face = 'Front' | |
1101 | z.Texture='rbxassetid://0' | |
1102 | hed.BrickColor = BrickColor.new("Bright violet") | |
1103 | lite = Instance.new("PointLight", rleg) | |
1104 | lite.Brightness = 30 | |
1105 | lite.Range = 20 | |
1106 | lite.Color = Color3.new(0, 0, 0) | |
1107 | --[[local hed2 = hed:Clone() | |
1108 | hed2.CanCollide = false | |
1109 | hed2.Parent = char | |
1110 | hed2:ClearAllChildren() | |
1111 | hed2.Transparency = 1 | |
1112 | hed2.Name = "DARP" | |
1113 | local w = Instance.new("Weld",hed2) | |
1114 | w.Part0 = hed | |
1115 | w.Part1 = hed2 | |
1116 | w.C0 = CFrame.new(0,0,-0.175) | |
1117 | z=Instance.new("SurfaceGui",hed2) | |
1118 | z.Enabled = true | |
1119 | z.Face = "Front" | |
1120 | z.Adornee = hed2 | |
1121 | z.CanvasSize = Vector2.new(100,100) | |
1122 | local face = Instance.new("ImageLabel",z) | |
1123 | face.Size = UDim2.new(1,-30,1,0) | |
1124 | face.Position = UDim2.new(0,15,0,0) | |
1125 | face.BackgroundTransparency = 1 | |
1126 | face.Image='rbxassetid://0']]-- | |
1127 | ---------------------------------------------------- | |
1128 | ||
1129 | ---------------------------------------------------- | |
1130 | local m = Instance.new("Model") | |
1131 | m.Name = "Titanius" | |
1132 | p1 = Instance.new("Part", m) | |
1133 | p1.BrickColor = BrickColor.new("Bright blue") | |
1134 | p1.Transparency = 1 | |
1135 | p1.FormFactor = Enum.FormFactor.Custom | |
1136 | p1.Material = "Neon" | |
1137 | p1.Size = Vector3.new(1, 0.600000024, 1.5) | |
1138 | p1.CFrame = CFrame.new(67.4994888, 12.1560526, 73.0205841, 0.999972522, -3.59117985e-005, -8.00192356e-006, -1.39250187e-005, 0.358383715, -0.933530986, 5.28097153e-005, 0.933500648, 0.358406395) | |
1139 | p1.CanCollide = false | |
1140 | p1.Locked = true | |
1141 | p1.Elasticity = 0 | |
1142 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
1143 | p1.TopSurface = Enum.SurfaceType.Smooth | |
1144 | b1 = Instance.new("SpecialMesh", p1) | |
1145 | b1.MeshType = Enum.MeshType.Wedge | |
1146 | b1.Name = "Mesh" | |
1147 | b1.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
1148 | p2 = Instance.new("Part", m) | |
1149 | p2.Transparency = 1 | |
1150 | p2.BrickColor = BrickColor.new("Really black") | |
1151 | p2.FormFactor = Enum.FormFactor.Custom | |
1152 | p2.Size = Vector3.new(1, 2.9000001, 1) | |
1153 | p2.CFrame = CFrame.new(67.4995728, 11.7633543, 74.2129135, -1.30959779e-005, 2.79811252e-006, 0.999972522, 0.961226642, 0.275612593, -7.50799518e-006, -0.275637805, 0.96119839, 1.01176247e-005) | |
1154 | p2.CanCollide = false | |
1155 | p2.Locked = true | |
1156 | p2.Elasticity = 0 | |
1157 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
1158 | p2.TopSurface = Enum.SurfaceType.Smooth | |
1159 | b2 = Instance.new("BlockMesh", p2) | |
1160 | b2.Name = "Mesh" | |
1161 | b2.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
1162 | p3 = Instance.new("Part", m) | |
1163 | p3.Transparency = 1 | |
1164 | p3.BrickColor = BrickColor.new("Bright blue") | |
1165 | p3.Material = "Neon" | |
1166 | p3.FormFactor = Enum.FormFactor.Custom | |
1167 | p3.Size = Vector3.new(1, 1.10000005, 2.0999999) | |
1168 | p3.CFrame = CFrame.new(67.4994965, 12.6401453, 73.9670334, 0.999972522, -3.52207899e-005, -8.10639358e-006, -1.61500211e-005, 0.309035271, -0.951007903, 5.24176576e-005, 0.950978875, 0.309059501) | |
1169 | p3.CanCollide = false | |
1170 | p3.Locked = true | |
1171 | p3.Elasticity = 0 | |
1172 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
1173 | p3.TopSurface = Enum.SurfaceType.Smooth | |
1174 | b3 = Instance.new("SpecialMesh", p3) | |
1175 | b3.MeshType = Enum.MeshType.Wedge | |
1176 | b3.Name = "Mesh" | |
1177 | b3.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
1178 | p4 = Instance.new("Part", m) | |
1179 | p4.BrickColor = BrickColor.new("Bright blue") | |
1180 | p4.Material = "Neon" | |
1181 | p4.Transparency = 1 | |
1182 | p4.FormFactor = Enum.FormFactor.Custom | |
1183 | p4.Size = Vector3.new(1, 1.43999994, 2.05000019) | |
1184 | p4.CFrame = CFrame.new(67.4995575, 11.8683414, 76.1565704, 0.999972522, -2.5085672e-005, -1.53700166e-005, -4.86194367e-005, -0.800831437, -0.598821938, 1.9131101e-005, 0.598835468, -0.800796151) | |
1185 | p4.CanCollide = false | |
1186 | p4.Locked = true | |
1187 | p4.Elasticity = 0 | |
1188 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
1189 | p4.TopSurface = Enum.SurfaceType.Smooth | |
1190 | b4 = Instance.new("SpecialMesh", p4) | |
1191 | b4.MeshType = Enum.MeshType.Wedge | |
1192 | b4.Name = "Mesh" | |
1193 | b4.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
1194 | p5 = Instance.new("Part", m) | |
1195 | p5.BrickColor = BrickColor.new("Bright blue") | |
1196 | p5.Material = "Neon" | |
1197 | p5.Transparency = 1 | |
1198 | p5.FormFactor = Enum.FormFactor.Custom | |
1199 | p5.Size = Vector3.new(1, 1.10000005, 3.10000005) | |
1200 | p5.CFrame = CFrame.new(67.4995193, 13.241991, 74.8357468, 0.999972522, -3.59118021e-005, -8.00191992e-006, -1.39250224e-005, 0.358383656, -0.933530807, 5.2809708e-005, 0.933500469, 0.358406246) | |
1201 | p5.CanCollide = false | |
1202 | p5.Locked = true | |
1203 | p5.Elasticity = 0 | |
1204 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
1205 | p5.TopSurface = Enum.SurfaceType.Smooth | |
1206 | b5 = Instance.new("SpecialMesh", p5) | |
1207 | b5.MeshType = Enum.MeshType.Wedge | |
1208 | b5.Name = "Mesh" | |
1209 | b5.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
1210 | p6 = Instance.new("Part", m) | |
1211 | p6.Name = "Handle" | |
1212 | p6.Transparency = 1 | |
1213 | p6.BrickColor = BrickColor.new("Really black") | |
1214 | p6.FormFactor = Enum.FormFactor.Custom | |
1215 | p6.Size = Vector3.new(1.5999999, 13.6000004, 1) | |
1216 | p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005) | |
1217 | p6.CanCollide = false | |
1218 | p6.Locked = true | |
1219 | p6.Elasticity = 0 | |
1220 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
1221 | p6.TopSurface = Enum.SurfaceType.Smooth | |
1222 | b6 = Instance.new("BlockMesh", p6) | |
1223 | b6.Name = "Mesh" | |
1224 | b6.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
1225 | p7 = Instance.new("Part", m) | |
1226 | p7.BrickColor = BrickColor.new("Bright blue") | |
1227 | p7.Transparency = 1 | |
1228 | p7.Material = "Neon" | |
1229 | p7.FormFactor = Enum.FormFactor.Custom | |
1230 | p7.Size = Vector3.new(1, 1.00999999, 1.05000019) | |
1231 | p7.CFrame = CFrame.new(67.5174179, 10.5228004, 76.3114471, 0.999972522, -2.76626724e-005, -6.72184569e-006, -4.7347472e-005, -0.91489929, -0.403581172, 2.14323372e-005, 0.403602213, -0.914867818) | |
1232 | p7.CanCollide = false | |
1233 | p7.Locked = true | |
1234 | p7.Elasticity = 0 | |
1235 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
1236 | p7.TopSurface = Enum.SurfaceType.Smooth | |
1237 | b7 = Instance.new("SpecialMesh", p7) | |
1238 | b7.MeshType = Enum.MeshType.Wedge | |
1239 | b7.Name = "Mesh" | |
1240 | b7.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
1241 | p8 = Instance.new("Part", m) | |
1242 | p8.BrickColor = BrickColor.new("Bright blue") | |
1243 | p8.Material = "Neon" | |
1244 | p8.Transparency = 1 | |
1245 | p8.FormFactor = Enum.FormFactor.Custom | |
1246 | p8.Size = Vector3.new(1, 1.00999999, 1.05000019) | |
1247 | p8.CFrame = CFrame.new(67.5074387, 8.51285458, 76.8714371, 0.999972522, -2.76626724e-005, -6.72184387e-006, -4.73474684e-005, -0.91489917, -0.403581113, 2.14323354e-005, 0.403602153, -0.914867699) | |
1248 | p8.CanCollide = false | |
1249 | p8.Locked = true | |
1250 | p8.Elasticity = 0 | |
1251 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
1252 | p8.TopSurface = Enum.SurfaceType.Smooth | |
1253 | b8 = Instance.new("SpecialMesh", p8) | |
1254 | b8.MeshType = Enum.MeshType.Wedge | |
1255 | b8.Name = "Mesh" | |
1256 | b8.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
1257 | p9 = Instance.new("Part", m) | |
1258 | p9.Transparency = 1 | |
1259 | p9.BrickColor = BrickColor.new("Really black") | |
1260 | p9.FormFactor = Enum.FormFactor.Custom | |
1261 | p9.Size = Vector3.new(1, 1.07999957, 1) | |
1262 | p9.CFrame = CFrame.new(67.5095749, 7.1092, 74.5051422, -2.60536999e-005, -5.21559741e-006, 0.999972522, 0.35323599, -0.935490847, -1.50012565e-005, 0.935460567, 0.353258699, 4.2632455e-005) | |
1263 | p9.CanCollide = false | |
1264 | p9.Locked = true | |
1265 | p9.Elasticity = 0 | |
1266 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
1267 | p9.TopSurface = Enum.SurfaceType.Smooth | |
1268 | b9 = Instance.new("BlockMesh", p9) | |
1269 | b9.Name = "Mesh" | |
1270 | b9.Scale = Vector3.new(0.550000012, 1, 0.550000012) | |
1271 | p10 = Instance.new("Part", m) | |
1272 | p10.BrickColor = BrickColor.new("Really black") | |
1273 | p10.Transparency = 1 | |
1274 | p10.FormFactor = Enum.FormFactor.Custom | |
1275 | p10.Size = Vector3.new(1, 1.41999948, 1) | |
1276 | p10.CFrame = CFrame.new(67.489624, 8.67401791, 72.7929764, -9.47785156e-006, -9.42233055e-006, 0.999972522, 0.292371064, 0.956263304, -7.54374832e-006, -0.956253231, 0.292334616, 1.01081387e-005) | |
1277 | p10.CanCollide = false | |
1278 | p10.Locked = true | |
1279 | p10.Elasticity = 0 | |
1280 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
1281 | p10.TopSurface = Enum.SurfaceType.Smooth | |
1282 | b10 = Instance.new("BlockMesh", p10) | |
1283 | b10.Name = "Mesh" | |
1284 | b10.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
1285 | p11 = Instance.new("Part", m) | |
1286 | p11.BrickColor = BrickColor.new("Really black") | |
1287 | p11.FormFactor = Enum.FormFactor.Custom | |
1288 | p11.Transparency = 1 | |
1289 | p11.Size = Vector3.new(1, 1.50999951, 1) | |
1290 | p11.CFrame = CFrame.new(67.509552, 7.11887455, 70.3475952, -1.87569385e-005, 1.80455972e-005, 0.999972522, -0.36222899, -0.932047009, -9.30004444e-006, 0.932039678, -0.362191886, 4.04359016e-005) | |
1291 | p11.CanCollide = false | |
1292 | p11.Locked = true | |
1293 | p11.Elasticity = 0 | |
1294 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
1295 | p11.TopSurface = Enum.SurfaceType.Smooth | |
1296 | b11 = Instance.new("BlockMesh", p11) | |
1297 | b11.Name = "Mesh" | |
1298 | b11.Scale = Vector3.new(0.550000012, 1, 0.550000012) | |
1299 | p12 = Instance.new("Part", m) | |
1300 | p12.Name = "BladeCenter" | |
1301 | p12.BrickColor = BrickColor.new("Dark stone grey") | |
1302 | p12.Material = "Concrete" | |
1303 | p12.FormFactor = Enum.FormFactor.Symmetric | |
1304 | p12.Size = Vector3.new(1, 2, 2) | |
1305 | p12.CFrame = CFrame.new(67.4995346, 6.83217764, 72.2514038, -0.999972522, 2.42275873e-005, 0.000103325896, -8.39982677e-005, 4.44650614e-005, -0.999960959, -4.06451727e-005, -0.999940753, -1.25430051e-005) | |
1306 | p12.CanCollide = false | |
1307 | p12.Transparency = 1 | |
1308 | p12.Locked = true | |
1309 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
1310 | p12.TopSurface = Enum.SurfaceType.Smooth | |
1311 | b12 = Instance.new("SpecialMesh", p12) | |
1312 | b12.MeshType = Enum.MeshType.Brick | |
1313 | b12.Name = "Mesh" | |
1314 | b12.Scale = Vector3.new(0.499999911, 1, 0.699999928) | |
1315 | p13 = Instance.new("Part", m) | |
1316 | p13.BrickColor = BrickColor.new("Really black") | |
1317 | p13.FormFactor = Enum.FormFactor.Custom | |
1318 | p13.Transparency = 1 | |
1319 | p13.Size = Vector3.new(2.91000009, 4.3300004, 1) | |
1320 | p13.CFrame = CFrame.new(67.5096359, 9.31026554, 73.9751816, 7.60371313e-006, 1.0943455e-005, 0.999972522, -0.119072244, -0.99284631, -7.55448127e-006, 0.992830038, -0.119038157, 1.01703836e-005) | |
1321 | p13.CanCollide = false | |
1322 | p13.Locked = true | |
1323 | p13.Elasticity = 0 | |
1324 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
1325 | p13.TopSurface = Enum.SurfaceType.Smooth | |
1326 | b13 = Instance.new("BlockMesh", p13) | |
1327 | b13.Name = "Mesh" | |
1328 | b13.Scale = Vector3.new(1, 1, 0.400000006) | |
1329 | p14 = Instance.new("Part", m) | |
1330 | p14.BrickColor = BrickColor.new("Really black") | |
1331 | p14.FormFactor = Enum.FormFactor.Custom | |
1332 | p14.Transparency = 1 | |
1333 | p14.Size = Vector3.new(2.5, 2.17999935, 1) | |
1334 | p14.CFrame = CFrame.new(67.4896011, 10.1621294, 72.6410059, -1.55498967e-007, -1.33476442e-005, 0.999972522, -0.462319613, 0.886669755, -7.56198779e-006, -0.886637092, -0.462338567, 1.01078904e-005) | |
1335 | p14.CanCollide = false | |
1336 | p14.Locked = true | |
1337 | p14.Elasticity = 0 | |
1338 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
1339 | p14.TopSurface = Enum.SurfaceType.Smooth | |
1340 | b14 = Instance.new("BlockMesh", p14) | |
1341 | b14.Name = "Mesh" | |
1342 | b14.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
1343 | p15 = Instance.new("Part", m) | |
1344 | p15.BrickColor = BrickColor.new("Really black") | |
1345 | p15.FormFactor = Enum.FormFactor.Custom | |
1346 | p15.Size = Vector3.new(1.16999996, 4.2699995, 1) | |
1347 | p15.CFrame = CFrame.new(67.5095901, 9.35303593, 70.6884613, -1.24399676e-005, -4.94209144e-006, 0.999972522, 0.645082474, 0.764063478, -7.52419282e-006, -0.764068604, 0.645045042, 1.0099785e-005) | |
1348 | p15.CanCollide = false | |
1349 | p15.Locked = true | |
1350 | p15.Transparency = 1 | |
1351 | p15.Elasticity = 0 | |
1352 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
1353 | p15.TopSurface = Enum.SurfaceType.Smooth | |
1354 | b15 = Instance.new("BlockMesh", p15) | |
1355 | b15.Name = "Mesh" | |
1356 | b15.Scale = Vector3.new(1, 1, 0.400000006) | |
1357 | p16 = Instance.new("Part", m) | |
1358 | p16.Transparency = 1 | |
1359 | p16.BrickColor = BrickColor.new("Really black") | |
1360 | p16.FormFactor = Enum.FormFactor.Custom | |
1361 | p16.Size = Vector3.new(1.68999994, 4.76000023, 1) | |
1362 | p16.CFrame = CFrame.new(67.4996033, 9.63990211, 75.3800278, 2.98175655e-006, 1.30014914e-005, 0.999972522, 0.258795738, -0.965893507, -7.53869244e-006, 0.965865672, 0.258821338, 1.01718706e-005) | |
1363 | p16.CanCollide = false | |
1364 | p16.Locked = true | |
1365 | p16.Elasticity = 0 | |
1366 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
1367 | p16.TopSurface = Enum.SurfaceType.Smooth | |
1368 | b16 = Instance.new("BlockMesh", p16) | |
1369 | b16.Name = "Mesh" | |
1370 | b16.Scale = Vector3.new(1, 1, 0.400000006) | |
1371 | p17 = Instance.new("Part", m) | |
1372 | p17.BrickColor = BrickColor.new("Really black") | |
1373 | p17.Transparency = 1 | |
1374 | p17.FormFactor = Enum.FormFactor.Custom | |
1375 | p17.Size = Vector3.new(1.78999996, 4.21999979, 1) | |
1376 | p17.CFrame = CFrame.new(67.499588, 9.28996372, 69.8789978, -9.50601952e-006, -9.41252802e-006, 0.999972522, 0.293352425, 0.955965877, -7.53842551e-006, -0.955955863, 0.293315947, 1.00904235e-005) | |
1377 | p17.CanCollide = false | |
1378 | p17.Locked = true | |
1379 | p17.Elasticity = 0 | |
1380 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
1381 | p17.TopSurface = Enum.SurfaceType.Smooth | |
1382 | b17 = Instance.new("BlockMesh", p17) | |
1383 | b17.Name = "Mesh" | |
1384 | b17.Scale = Vector3.new(1, 1, 0.400000006) | |
1385 | p18 = Instance.new("WedgePart", m) | |
1386 | p18.BrickColor = BrickColor.new("Dark stone grey") | |
1387 | p18.Name = "BladePart1" | |
1388 | p18.Material = "Concrete" | |
1389 | p18.Transparency = 1 | |
1390 | p18.Name = "Wedge" | |
1391 | p18.FormFactor = Enum.FormFactor.Symmetric | |
1392 | p18.Size = Vector3.new(1, 4, 2) | |
1393 | p18.CFrame = CFrame.new(67.499321, 6.83199787, 69.4816895, 0.999972522, -3.68033288e-005, -4.22928351e-005, 2.29664256e-005, -1.65102574e-005, 0.999963701, -2.03872096e-005, -0.999943435, -4.84290831e-005) | |
1394 | p18.CanCollide = false | |
1395 | p18.Locked = true | |
1396 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
1397 | p18.TopSurface = Enum.SurfaceType.Smooth | |
1398 | b18 = Instance.new("SpecialMesh", p18) | |
1399 | b18.MeshType = Enum.MeshType.Wedge | |
1400 | b18.Name = "Mesh" | |
1401 | b18.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
1402 | p19 = Instance.new("WedgePart", m) | |
1403 | p19.Transparency = 1 | |
1404 | p19.BrickColor = BrickColor.new("Dark stone grey") | |
1405 | p19.Name = "BladePart2" | |
1406 | p19.Material = "Concrete" | |
1407 | p19.Name = "Wedge" | |
1408 | p19.FormFactor = Enum.FormFactor.Symmetric | |
1409 | p19.Size = Vector3.new(1, 4, 2) | |
1410 | p19.CFrame = CFrame.new(67.4994736, 6.83213568, 75.0314102, -0.999972522, 3.68059118e-005, -0.000103325001, -8.40002976e-005, -4.4521752e-005, 0.999963701, 2.03864402e-005, 0.999943435, 1.26029336e-005) | |
1411 | p19.CanCollide = false | |
1412 | p19.Locked = true | |
1413 | p19.BottomSurface = Enum.SurfaceType.Smooth | |
1414 | p19.TopSurface = Enum.SurfaceType.Smooth | |
1415 | b19 = Instance.new("SpecialMesh", p19) | |
1416 | b19.MeshType = Enum.MeshType.Wedge | |
1417 | b19.Name = "Mesh" | |
1418 | b19.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
1419 | p20 = Instance.new("Part", m) | |
1420 | p20.BrickColor = BrickColor.new("Really black") | |
1421 | p20.Transparency = 1 | |
1422 | p20.FormFactor = Enum.FormFactor.Custom | |
1423 | p20.Size = Vector3.new(2.53000021, 2.39999938, 1) | |
1424 | p20.CFrame = CFrame.new(67.4996414, 7.91898966, 71.4148178, -1.09432585e-005, 7.6432425e-006, 0.999972522, 0.992849231, -0.119072601, -7.55000656e-006, 0.119038492, 0.992832959, 1.01311334e-005) | |
1425 | p20.CanCollide = false | |
1426 | p20.Locked = true | |
1427 | p20.Elasticity = 0 | |
1428 | p20.BottomSurface = Enum.SurfaceType.Smooth | |
1429 | p20.TopSurface = Enum.SurfaceType.Smooth | |
1430 | b20 = Instance.new("BlockMesh", p20) | |
1431 | b20.Name = "Mesh" | |
1432 | b20.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
1433 | p21 = Instance.new("Part", m) | |
1434 | p21.BrickColor = BrickColor.new("Bright blue") | |
1435 | p21.Material = "Neon" | |
1436 | p21.Transparency = 1 | |
1437 | p21.FormFactor = Enum.FormFactor.Custom | |
1438 | p21.Size = Vector3.new(1, 1.43999994, 1.59000015) | |
1439 | p21.CFrame = CFrame.new(67.509613, 9.57073689, 76.6228256, 0.999972522, -2.50856156e-005, -1.53699839e-005, -4.86196222e-005, -0.800835371, -0.598824739, 1.91311228e-005, 0.59883821, -0.800800025) | |
1440 | p21.CanCollide = false | |
1441 | p21.Locked = true | |
1442 | p21.Elasticity = 0 | |
1443 | p21.BottomSurface = Enum.SurfaceType.Smooth | |
1444 | p21.TopSurface = Enum.SurfaceType.Smooth | |
1445 | b21 = Instance.new("SpecialMesh", p21) | |
1446 | b21.MeshType = Enum.MeshType.Wedge | |
1447 | b21.Name = "Mesh" | |
1448 | b21.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
1449 | w1 = Instance.new("Weld", p1) | |
1450 | w1.Name = "Part_Weld" | |
1451 | w1.Part0 = p1 | |
1452 | w1.C0 = CFrame.new(-67.5030899, -72.5280457, -14.8209743, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) | |
1453 | w1.Part1 = p2 | |
1454 | w1.C1 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008) | |
1455 | w2 = Instance.new("Weld", p2) | |
1456 | w2.Name = "Part_Weld" | |
1457 | w2.Part0 = p2 | |
1458 | w2.C0 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008) | |
1459 | w2.Part1 = p3 | |
1460 | w2.C1 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105) | |
1461 | w3 = Instance.new("Weld", p3) | |
1462 | w3.Name = "Part_Weld" | |
1463 | w3.Part0 = p3 | |
1464 | w3.C0 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105) | |
1465 | w3.Part1 = p4 | |
1466 | w3.C1 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) | |
1467 | w4 = Instance.new("Weld", p4) | |
1468 | w4.Name = "Part_Weld" | |
1469 | w4.Part0 = p4 | |
1470 | w4.C0 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) | |
1471 | w4.Part1 = p5 | |
1472 | w4.C1 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) | |
1473 | w5 = Instance.new("Weld", p5) | |
1474 | w5.Name = "Part_Weld" | |
1475 | w5.Part0 = p5 | |
1476 | w5.C0 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252) | |
1477 | w5.Part1 = p6 | |
1478 | w5.C1 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015) | |
1479 | w6 = Instance.new("Weld", p6) | |
1480 | w6.Name = "Part_Weld" | |
1481 | w6.Part0 = p6 | |
1482 | w6.C0 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015) | |
1483 | w6.Part1 = p7 | |
1484 | w6.C1 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) | |
1485 | w7 = Instance.new("Weld", p7) | |
1486 | w7.Name = "Part_Weld" | |
1487 | w7.Part0 = p7 | |
1488 | w7.C0 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) | |
1489 | w7.Part1 = p8 | |
1490 | w7.C1 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) | |
1491 | w8 = Instance.new("Weld", p8) | |
1492 | w8.Name = "Part_Weld" | |
1493 | w8.Part0 = p8 | |
1494 | w8.C0 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088) | |
1495 | w8.Part1 = p9 | |
1496 | w8.C1 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005) | |
1497 | w9 = Instance.new("Weld", p9) | |
1498 | w9.Name = "Part_Weld" | |
1499 | w9.Part0 = p9 | |
1500 | w9.C0 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005) | |
1501 | w9.Part1 = p10 | |
1502 | w9.C1 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008) | |
1503 | w10 = Instance.new("Weld", p10) | |
1504 | w10.Name = "Part_Weld" | |
1505 | w10.Part0 = p10 | |
1506 | w10.C0 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008) | |
1507 | w10.Part1 = p11 | |
1508 | w10.C1 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005) | |
1509 | w11 = Instance.new("Weld", p11) | |
1510 | w11.Name = "Part_Weld" | |
1511 | w11.Part0 = p11 | |
1512 | w11.C0 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005) | |
1513 | w11.Part1 = p12 | |
1514 | w11.C1 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005) | |
1515 | w12 = Instance.new("Weld", p12) | |
1516 | w12.Name = "Part_Weld" | |
1517 | w12.Part0 = p12 | |
1518 | w12.C0 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005) | |
1519 | w12.Part1 = p13 | |
1520 | w12.C1 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008) | |
1521 | w13 = Instance.new("Weld", p13) | |
1522 | w13.Name = "Part_Weld" | |
1523 | w13.Part0 = p13 | |
1524 | w13.C0 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008) | |
1525 | w13.Part1 = p14 | |
1526 | w13.C1 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008) | |
1527 | w14 = Instance.new("Weld", p14) | |
1528 | w14.Name = "Part_Weld" | |
1529 | w14.Part0 = p14 | |
1530 | w14.C0 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008) | |
1531 | w14.Part1 = p15 | |
1532 | w14.C1 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008) | |
1533 | w15 = Instance.new("Weld", p15) | |
1534 | w15.Name = "Part_Weld" | |
1535 | w15.Part0 = p15 | |
1536 | w15.C0 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008) | |
1537 | w15.Part1 = p16 | |
1538 | w15.C1 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008) | |
1539 | w16 = Instance.new("Weld", p16) | |
1540 | w16.Name = "Part_Weld" | |
1541 | w16.Part0 = p16 | |
1542 | w16.C0 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008) | |
1543 | w16.Part1 = p17 | |
1544 | w16.C1 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008) | |
1545 | w17 = Instance.new("Weld", p17) | |
1546 | w17.Name = "Wedge_Weld" | |
1547 | w17.Part0 = p17 | |
1548 | w17.C0 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008) | |
1549 | w17.Part1 = p18 | |
1550 | w17.C1 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005) | |
1551 | w18 = Instance.new("Weld", p18) | |
1552 | w18.Name = "Wedge_Weld" | |
1553 | w18.Part0 = p18 | |
1554 | w18.C0 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005) | |
1555 | w18.Part1 = p19 | |
1556 | w18.C1 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) | |
1557 | w19 = Instance.new("Weld", p19) | |
1558 | w19.Name = "Part_Weld" | |
1559 | w19.Part0 = p19 | |
1560 | w19.C0 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005) | |
1561 | w19.Part1 = p20 | |
1562 | w19.C1 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009) | |
1563 | w20 = Instance.new("Weld", p20) | |
1564 | w20.Name = "Part_Weld" | |
1565 | w20.Part0 = p20 | |
1566 | w20.C0 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009) | |
1567 | w20.Part1 = p21 | |
1568 | w20.C1 = CFrame.new(-67.5104218, -38.2193756, 67.100563, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637) | |
1569 | m.Parent = char | |
1570 | m:MakeJoints() | |
1571 | ---------------------------------------------------- | |
1572 | local cor = Instance.new("Part", char.Titanius) | |
1573 | cor.Name = "Thingy" | |
1574 | cor.Locked = true | |
1575 | cor.BottomSurface = 0 | |
1576 | cor.CanCollide = false | |
1577 | cor.Size = Vector3.new(1, 13, 1) | |
1578 | cor.Transparency = 1 | |
1579 | cor.TopSurface = 0 | |
1580 | corw = Instance.new("Weld", cor) | |
1581 | corw.Part0 = rarm | |
1582 | corw.Part1 = cor | |
1583 | corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1584 | corw.C1 = CFrame.new(0, 0, 0) | |
1585 | weld1 = Instance.new("Weld", char.Titanius) | |
1586 | weld1.Part0 = cor | |
1587 | weld1.Part1 = p6 | |
1588 | weld1.C0 = CFrame.new(0, 0, 0) | |
1589 | ---------------------------------------------------- | |
1590 | hitb = Instance.new("Part", char.Titanius) | |
1591 | hitb.Name = "Thingy2" | |
1592 | hitb.Locked = true | |
1593 | hitb.BottomSurface = 0 | |
1594 | hitb.CanCollide = false | |
1595 | hitb.Size = Vector3.new(0, 8, 6) | |
1596 | hitb.Transparency = 1 | |
1597 | hitb.TopSurface = 0 | |
1598 | weld2 = Instance.new("Weld", char.Titanius) | |
1599 | weld2.Part0 = hitb | |
1600 | weld2.Part1 = p12 | |
1601 | weld2.C0 = CFrame.new(0, .6, 1) | |
1602 | ---------------------------------------------------- | |
1603 | function weld5(part0, part1, c0, c1) | |
1604 | weeld=Instance.new("Weld", part0) | |
1605 | weeld.Part0=part0 | |
1606 | weeld.Part1=part1 | |
1607 | weeld.C0=c0 | |
1608 | weeld.C1=c1 | |
1609 | return weeld | |
1610 | end | |
1611 | ---------------------------------------------------- | |
1612 | function newRay(start,face,range,wat) | |
1613 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
1614 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
1615 | return rey,hit,pos | |
1616 | end | |
1617 | ---------------------------------------------------- | |
1618 | mod5 = Instance.new("Model",char) | |
1619 | ||
1620 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1621 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1622 | local List = {} | |
1623 | for i,v in pairs(workspace:GetChildren())do | |
1624 | if v:IsA("Model")then | |
1625 | if v:findFirstChild("Torso")then | |
1626 | if v ~= char then | |
1627 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1628 | table.insert(List,v) | |
1629 | end | |
1630 | end | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | return List | |
1635 | end | |
1636 | ||
1637 | function Landing() | |
1638 | part=Instance.new('Part',mod5) | |
1639 | part.Anchored=true | |
1640 | part.CanCollide=false | |
1641 | part.FormFactor='Custom' | |
1642 | part.Size=Vector3.new(.2,.2,.2) | |
1643 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
1644 | part.Transparency=.7 | |
1645 | part.BrickColor=BrickColor.new('Really black') | |
1646 | mesh=Instance.new('SpecialMesh',part) | |
1647 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1648 | mesh.Scale=Vector3.new(10,5,10) | |
1649 | ||
1650 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
1651 | if v:FindFirstChild('Humanoid') then | |
1652 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1653 | v.Humanoid.PlatformStand = true | |
1654 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1655 | end | |
1656 | end | |
1657 | ||
1658 | coroutine.resume(coroutine.create(function() | |
1659 | for i=0,3.8,0.05 do | |
1660 | wait() | |
1661 | part.CFrame=part.CFrame | |
1662 | part.Transparency=i | |
1663 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
1664 | end | |
1665 | part.Parent = nil | |
1666 | end)) | |
1667 | end | |
1668 | ---------------------------------------------------- | |
1669 | mod4 = Instance.new("Model",char) | |
1670 | ||
1671 | ptez = {0.7, 0.8, 0.9, 1} | |
1672 | ||
1673 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1674 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1675 | local List = {} | |
1676 | for i,v in pairs(workspace:GetChildren())do | |
1677 | if v:IsA("Model")then | |
1678 | if v:findFirstChild("Torso")then | |
1679 | if v ~= char then | |
1680 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1681 | table.insert(List,v) | |
1682 | end | |
1683 | end | |
1684 | end | |
1685 | end | |
1686 | end | |
1687 | return List | |
1688 | end | |
1689 | ||
1690 | function GroundPound() | |
1691 | part=Instance.new('Part',mod4) | |
1692 | part.Anchored=true | |
1693 | part.CanCollide=false | |
1694 | part.FormFactor='Custom' | |
1695 | part.Size=Vector3.new(.2,.2,.2) | |
1696 | part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
1697 | part.Transparency=.7 | |
1698 | part.BrickColor=BrickColor.new('Really black') | |
1699 | mesh=Instance.new('SpecialMesh',part) | |
1700 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1701 | mesh.Scale=Vector3.new(3,3,3) | |
1702 | part2=Instance.new('Part',mod4) | |
1703 | part2.Anchored=true | |
1704 | part2.CanCollide=false | |
1705 | part2.FormFactor='Custom' | |
1706 | part2.Size=Vector3.new(.2,.2,.2) | |
1707 | part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6) | |
1708 | part2.Transparency=.7 | |
1709 | part2.BrickColor=BrickColor.new('Dark indigo') | |
1710 | mesh2=Instance.new('SpecialMesh',part2) | |
1711 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1712 | mesh2.Scale=Vector3.new(3,1.5,3) | |
1713 | x = Instance.new("Sound",char) | |
1714 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1715 | x.Pitch = ptez[math.random(1,#ptez)] | |
1716 | x.Volume = 1 | |
1717 | wait(.1) | |
1718 | x:Play() | |
1719 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do | |
1720 | if v:FindFirstChild('Humanoid') then | |
1721 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1722 | end | |
1723 | end | |
1724 | coroutine.resume(coroutine.create(function() | |
1725 | for i=0,0.62,0.13 do | |
1726 | wait() | |
1727 | part.CFrame=part.CFrame | |
1728 | part.Transparency=i | |
1729 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1730 | part2.CFrame=part2.CFrame | |
1731 | part2.Transparency=i | |
1732 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1733 | end | |
1734 | part.Parent=nil | |
1735 | part2.Parent=nil | |
1736 | x:Destroy() | |
1737 | end)) | |
1738 | end | |
1739 | ---------------------------------------------------- | |
1740 | mod=Instance.new('Model',char) | |
1741 | ||
1742 | function charge() | |
1743 | hed.Velocity=hed.CFrame.lookVector*100 | |
1744 | part=Instance.new('Part',mod) | |
1745 | part.Anchored=true | |
1746 | part.CanCollide=false | |
1747 | part.FormFactor='Custom' | |
1748 | part.Size=Vector3.new(.2,.2,.2) | |
1749 | part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0) | |
1750 | part.Transparency=.7 | |
1751 | part.BrickColor=BrickColor.new('Black') | |
1752 | mesh=Instance.new('SpecialMesh',part) | |
1753 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1754 | mesh.Scale=Vector3.new(10,5,10) | |
1755 | part2=part:clone() | |
1756 | part2.Parent=mod | |
1757 | part2.BrickColor=BrickColor.new('Bright red') | |
1758 | mesh2=mesh:clone() | |
1759 | mesh2.Parent=part2 | |
1760 | mesh2.Scale=Vector3.new(20,10,20) | |
1761 | part3=part2:clone() | |
1762 | part3.Parent = mod | |
1763 | part3.BrickColor=BrickColor.new('Really black') | |
1764 | mesh3=mesh2:clone() | |
1765 | mesh2.Parent=part3 | |
1766 | mesh3.Scale=Vector3.new(30,15,30) | |
1767 | coroutine.resume(coroutine.create(function() | |
1768 | for i=0,1,0.1 do | |
1769 | wait() | |
1770 | part.CFrame=part.CFrame | |
1771 | part.Transparency=i | |
1772 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
1773 | part2.CFrame=part2.CFrame | |
1774 | part2.Transparency=i | |
1775 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1776 | part3.CFrame=part3.CFrame | |
1777 | part3.Transparency=i | |
1778 | mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1) | |
1779 | end | |
1780 | part.Parent=nil | |
1781 | part2.Parent=nil | |
1782 | part3.Parent = nil | |
1783 | end)) | |
1784 | end | |
1785 | ---------------------------------------------------- | |
1786 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1787 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1788 | local List = {} | |
1789 | for i,v in pairs(workspace:GetChildren())do | |
1790 | if v:IsA("Model")then | |
1791 | if v:findFirstChild("Torso")then | |
1792 | if v ~= char then | |
1793 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1794 | table.insert(List,v) | |
1795 | end | |
1796 | end | |
1797 | end | |
1798 | end | |
1799 | end | |
1800 | return List | |
1801 | end | |
1802 | ||
1803 | mod3 = Instance.new("Model",rleg) | |
1804 | ||
1805 | function Stomp() | |
1806 | part=Instance.new('Part',mod3) | |
1807 | part.Anchored=true | |
1808 | part.CanCollide=false | |
1809 | part.FormFactor='Custom' | |
1810 | part.Size=Vector3.new(.2,.2,.2) | |
1811 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
1812 | part.Transparency=.7 | |
1813 | part.BrickColor=BrickColor.new('Dark indigo') | |
1814 | mesh=Instance.new('SpecialMesh',part) | |
1815 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1816 | mesh.Scale=Vector3.new(25,25,25) | |
1817 | part2=part:clone() | |
1818 | part2.Parent=mod3 | |
1819 | part2.BrickColor=BrickColor.new('Dark indigo') | |
1820 | mesh2=mesh:clone() | |
1821 | mesh2.Parent=part2 | |
1822 | mesh2.Scale=Vector3.new(15,15,15) | |
1823 | part3=part:clone() | |
1824 | part3.Parent=mod3 | |
1825 | part3.TopSurface=0 | |
1826 | part3.BottomSurface=0 | |
1827 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
1828 | mesh3=Instance.new('SpecialMesh',part3) | |
1829 | mesh3.MeshType = 3 | |
1830 | mesh3.Scale=Vector3.new(12,12,12) | |
1831 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
1832 | if v:FindFirstChild('Humanoid') then | |
1833 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1834 | v.Humanoid.PlatformStand = true | |
1835 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 800 | |
1836 | end | |
1837 | end | |
1838 | coroutine.resume(coroutine.create(function() | |
1839 | for i=0,3.8,0.05 do | |
1840 | wait() | |
1841 | part.CFrame=part.CFrame | |
1842 | part.Transparency=i | |
1843 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
1844 | part2.CFrame=part2.CFrame | |
1845 | part2.Transparency=i | |
1846 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1847 | part3.CFrame=part3.CFrame | |
1848 | part3.Transparency=i | |
1849 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
1850 | end | |
1851 | end)) | |
1852 | end | |
1853 | ---------------------------------------------------- | |
1854 | ||
1855 | local acos = math.acos | |
1856 | local sqrt = math.sqrt | |
1857 | local Vec3 = Vector3.new | |
1858 | local fromAxisAngle = CFrame.fromAxisAngle | |
1859 | ||
1860 | local function toAxisAngle(CFr) | |
1861 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
1862 | local Angle = math.acos((R00+R11+R22-1)/2) | |
1863 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1864 | A = A == 0 and 0.00001 or A | |
1865 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1866 | B = B == 0 and 0.00001 or B | |
1867 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1868 | C = C == 0 and 0.00001 or C | |
1869 | local x = (R21-R12)/sqrt(A) | |
1870 | local y = (R02-R20)/sqrt(B) | |
1871 | local z = (R10-R01)/sqrt(C) | |
1872 | return Vec3(x,y,z),Angle | |
1873 | end | |
1874 | ||
1875 | function ApplyTrig(Num,Func) | |
1876 | local Min,Max = Func(0),Func(1) | |
1877 | local i = Func(Num) | |
1878 | return (i-Min)/(Max-Min) | |
1879 | --[[if Func == "sin" then | |
1880 | return (math.sin((1-Num)*math.pi)+1)/2 | |
1881 | elseif Func == "cos" then | |
1882 | return (math.cos((1-Num)*math.pi)+1)/2 | |
1883 | end]] | |
1884 | end | |
1885 | ||
1886 | function LerpCFrame(CFrame1,CFrame2,Num) | |
1887 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
1888 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
1889 | end | |
1890 | ||
1891 | function Crater(Torso,Radius) | |
1892 | Spawn(function() | |
1893 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
1894 | local Ignore = {} | |
1895 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1896 | if v.Character ~= nil then | |
1897 | Ignore[#Ignore+1] = v.Character | |
1898 | end | |
1899 | end | |
1900 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
1901 | if Hit == nil then return end | |
1902 | local Parts = {} | |
1903 | for i = 1,360,10 do | |
1904 | local P = Instance.new("Part",Torso.Parent) | |
1905 | P.Anchored = true | |
1906 | P.FormFactor = "Custom" | |
1907 | P.BrickColor = Hit.BrickColor | |
1908 | P.Material = Hit.Material | |
1909 | P.TopSurface = "Smooth" | |
1910 | P.BottomSurface = "Smooth" | |
1911 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
1912 | 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))) | |
1913 | 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} | |
1914 | if math.random(0,5) == 0 then -- rubble | |
1915 | local P = Instance.new("Part",Torso.Parent) | |
1916 | P.Anchored = true | |
1917 | P.FormFactor = "Custom" | |
1918 | P.BrickColor = Hit.BrickColor | |
1919 | P.Material = Hit.Material | |
1920 | P.TopSurface = "Smooth" | |
1921 | P.BottomSurface = "Smooth" | |
1922 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1923 | 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))) | |
1924 | 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} | |
1925 | end | |
1926 | end | |
1927 | for i = 0,1,0.05 do | |
1928 | for i2,v in pairs(Parts) do | |
1929 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1930 | end | |
1931 | wait(0.02) | |
1932 | end | |
1933 | for i,v in pairs(Parts) do | |
1934 | if v[1].Size.X > 2.1 then | |
1935 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1936 | end | |
1937 | v[1].Anchored = false | |
1938 | end | |
1939 | for i = 0,1,0.05 do | |
1940 | for i2,v in pairs(Parts) do | |
1941 | v[1].Transparency = i | |
1942 | if i == 1 then | |
1943 | v[1]:Destroy() | |
1944 | elseif i >= 0.25 then | |
1945 | v[1].CanCollide = false | |
1946 | end | |
1947 | end | |
1948 | wait(0.02) | |
1949 | end | |
1950 | Parts = nil | |
1951 | end) | |
1952 | end | |
1953 | ||
1954 | ---------------------------------------------------- | |
1955 | mouse.KeyDown:connect(function(key) | |
1956 | if key == "r" then | |
1957 | if Debounces.CanAttack == true then | |
1958 | Debounces.CanAttack = false | |
1959 | Debounces.on = true | |
1960 | Debounces.NoIdl = true | |
1961 | to = char.Titanius.Thingy2.Touched:connect(function(ht) | |
1962 | hit = ht.Parent | |
1963 | if ht and hit:IsA("Model") then | |
1964 | if hit:FindFirstChild("Humanoid") then | |
1965 | if hit.Name ~= p.Name then | |
1966 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1967 | Debounces.Slashed = true]]-- | |
1968 | hit:FindFirstChild("Humanoid"):TakeDamage(19999999) | |
1969 | wait(1) | |
1970 | --Debounces.Slashed = false | |
1971 | --end | |
1972 | end | |
1973 | end | |
1974 | elseif ht and hit:IsA("Hat") then | |
1975 | if hit.Parent.Name ~= p.Name then | |
1976 | if hit.Parent:FindFirstChild("Humanoid") then | |
1977 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1978 | Debounces.Slashed = true]]-- | |
1979 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(109999999) | |
1980 | wait(1) | |
1981 | --Debounces.Slashed = false | |
1982 | end | |
1983 | end | |
1984 | end | |
1985 | end) | |
1986 | q = Instance.new("Sound",hed) | |
1987 | q.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
1988 | q.Pitch = 0.85 | |
1989 | q.Looped = false | |
1990 | q1 = Instance.new("Sound",hed) | |
1991 | q1.SoundId = "http://www.roblox.com/asset/?id=134012322" | |
1992 | q1.Pitch = 0.85 | |
1993 | q1.Looped = false | |
1994 | q:Play() | |
1995 | q1:Play() | |
1996 | for i = 1,20 do | |
1997 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
1998 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
1999 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
2000 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
2001 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 1) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
2002 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4) | |
2003 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.2, -3) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(0)), 0.5) | |
2004 | if Debounces.on == false then break end | |
2005 | wait() | |
2006 | end | |
2007 | n = Instance.new("Sound",hed) | |
2008 | n.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
2009 | n.Pitch = 0.94 | |
2010 | n.Looped = false | |
2011 | n1 = Instance.new("Sound",hed) | |
2012 | n1.SoundId = "http://www.roblox.com/asset/?id=168514932" | |
2013 | n1.Pitch = 0.94 | |
2014 | n1.Looped = false | |
2015 | n:Play() | |
2016 | n1:Play() | |
2017 | b = Instance.new("Sound",hed) | |
2018 | b.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
2019 | b.Pitch = 0.94 | |
2020 | b.Looped = false | |
2021 | b1 = Instance.new("Sound",hed) | |
2022 | b1.SoundId = "http://www.roblox.com/asset/?id=168586586" | |
2023 | b1.Pitch = 0.94 | |
2024 | b1.Looped = false | |
2025 | b:Play() | |
2026 | b1:Play() | |
2027 | for i = 1,26 do | |
2028 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.5) | |
2029 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.5) | |
2030 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.5) | |
2031 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.5) | |
2032 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.5) | |
2033 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .4) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.5) | |
2034 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 0.5) | |
2035 | if Debounces.on == false then break end | |
2036 | wait() | |
2037 | end | |
2038 | wait(.5) | |
2039 | to:disconnect() | |
2040 | q:Destroy() | |
2041 | q1:Destroy() | |
2042 | n:Destroy() | |
2043 | n1:Destroy() | |
2044 | if Debounces.CanAttack == false then | |
2045 | Debounces.CanAttack = true | |
2046 | Debounces.on = false | |
2047 | Debounces.NoIdl = false | |
2048 | end | |
2049 | end | |
2050 | end | |
2051 | end) | |
2052 | ---------------------------------------------------- | |
2053 | mouse.KeyDown:connect(function(key) | |
2054 | if key == "q" then | |
2055 | if Debounces.CanAttack == true then | |
2056 | Debounces.CanAttack = false | |
2057 | Debounces.on = true | |
2058 | Debounces.NoIdl = true | |
2059 | to = char.Titanius.Thingy2.Touched:connect(function(ht) | |
2060 | hit = ht.Parent | |
2061 | if ht and hit:IsA("Model") then | |
2062 | if hit:FindFirstChild("Humanoid") then | |
2063 | if hit.Name ~= p.Name then | |
2064 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2065 | Debounces.Slashed = true]]-- | |
2066 | hit:FindFirstChild("Humanoid"):TakeDamage(499999999) | |
2067 | wait(1) | |
2068 | --Debounces.Slashed = false | |
2069 | --end | |
2070 | end | |
2071 | end | |
2072 | elseif ht and hit:IsA("Hat") then | |
2073 | if hit.Parent.Name ~= p.Name then | |
2074 | if hit.Parent:FindFirstChild("Humanoid") then | |
2075 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
2076 | Debounces.Slashed = true]]-- | |
2077 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(499999999) | |
2078 | wait(1) | |
2079 | --Debounces.Slashed = false | |
2080 | end | |
2081 | end | |
2082 | end | |
2083 | end) | |
2084 | for i = 1, 20 do | |
2085 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 0.2) | |
2086 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 0.2) | |
2087 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5) | |
2088 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5) | |
2089 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) | |
2090 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) | |
2091 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2092 | if Debounces.on == false then break end | |
2093 | wait() | |
2094 | end | |
2095 | z = Instance.new("Sound",hed) | |
2096 | z.SoundId = "rbxassetid://160069154" | |
2097 | z.Looped = false | |
2098 | z.Pitch = .9 | |
2099 | z1 = Instance.new("Sound",hed) | |
2100 | z1.SoundId = "rbxassetid://160069154" | |
2101 | z1.Looped = false | |
2102 | z1.Pitch = .9 | |
2103 | wait(0.01) | |
2104 | z:Play() | |
2105 | z1:Play() | |
2106 | for i = 1, 12 do | |
2107 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 0.2) | |
2108 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2,.9,-1) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5) | |
2109 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5) | |
2110 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5) | |
2111 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10), 0, 0), 0.5) | |
2112 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, .6) * CFrame.Angles(math.rad(-65), 0, 0), 0.5) | |
2113 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2114 | if Debounces.on == false then break end | |
2115 | wait() | |
2116 | end | |
2117 | for i = 1, 12 do | |
2118 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(50)), 0.4) | |
2119 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-18)), 0.4) | |
2120 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(10),0), 0.5) | |
2121 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-10), 0), 0.5) | |
2122 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) | |
2123 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5) | |
2124 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2125 | if Debounces.on == false then break end | |
2126 | wait() | |
2127 | end | |
2128 | z = Instance.new("Sound",hed) | |
2129 | z.SoundId = "rbxassetid://168586621" | |
2130 | z.Looped = false | |
2131 | z.Pitch = 1 | |
2132 | z1 = Instance.new("Sound",hed) | |
2133 | z1.SoundId = "rbxassetid://168586621" | |
2134 | z1.Looped = false | |
2135 | z1.Pitch = 1 | |
2136 | wait(0.01) | |
2137 | z:Play() | |
2138 | z1:Play() | |
2139 | for i = 1, 12 do | |
2140 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(40), math.rad(-20), math.rad(10)), 0.5) | |
2141 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-18)), 0.4) | |
2142 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-40),0), 0.5) | |
2143 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(40), 0), 0.5) | |
2144 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.5) | |
2145 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(20), 0, math.rad(10)), 0.5) | |
2146 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(-110), math.rad(-90), math.rad(20)), 1) | |
2147 | if Debounces.on == false then break end | |
2148 | wait() | |
2149 | end | |
2150 | to:disconnect() | |
2151 | if Debounces.CanAttack == false then | |
2152 | Debounces.CanAttack = true | |
2153 | Debounces.on = false | |
2154 | Debounces.NoIdl = false | |
2155 | end | |
2156 | end | |
2157 | end | |
2158 | end) | |
2159 | ---------------------------------------------------- | |
2160 | Sit = false | |
2161 | mouse.KeyDown:connect(function(key) | |
2162 | if key == "v" then | |
2163 | if Sit == false then | |
2164 | Sit = true | |
2165 | hum.WalkSpeed = 0 | |
2166 | stanceToggle = "Sitting" | |
2167 | elseif Sit == true then | |
2168 | Sit = false | |
2169 | hum.WalkSpeed = 10 | |
2170 | stanceToggle = "Normal" | |
2171 | end | |
2172 | end | |
2173 | end) | |
2174 | ---------------------------------------------------- | |
2175 | mouse.KeyDown:connect(function(key) | |
2176 | if key == "p" then | |
2177 | Blaze() | |
2178 | end | |
2179 | end) | |
2180 | ------------------------------- | |
2181 | mouse.KeyDown:connect(function(key) | |
2182 | if key == "u" then | |
2183 | if Debounces.CanAttack == true then | |
2184 | Debounces.CanAttack = false | |
2185 | Debounces.NoIdl = true | |
2186 | Debounces.on = true | |
2187 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2188 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2189 | local List = {} | |
2190 | for i,v in pairs(workspace:GetChildren())do | |
2191 | if v:IsA("Model")then | |
2192 | if v:findFirstChild("Torso")then | |
2193 | if v ~= char then | |
2194 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2195 | table.insert(List,v) | |
2196 | end | |
2197 | end | |
2198 | end | |
2199 | end | |
2200 | end | |
2201 | return List | |
2202 | end | |
2203 | z = Instance.new("Sound",workspace) | |
2204 | z.SoundId = "rbxassetid://232213955" | |
2205 | z.Pitch = 0.75 | |
2206 | z.Volume = 5 | |
2207 | wait(0.2) | |
2208 | z:Play() | |
2209 | sp = Instance.new("Part",rarm) | |
2210 | sp.Anchored = true | |
2211 | sp.CanCollide = false | |
2212 | sp.Locked = true | |
2213 | sp.Transparency = 0 | |
2214 | sp.Material = "Neon" | |
2215 | sp.Size = Vector3.new(2,2,2) | |
2216 | sp.TopSurface = "SmoothNoOutlines" | |
2217 | sp.BottomSurface = "SmoothNoOutlines" | |
2218 | sp.BrickColor = TorsoColor | |
2219 | spm = Instance.new("SpecialMesh",sp) | |
2220 | spm.MeshType = "Sphere" | |
2221 | spm.Scale = Vector3.new(42,42,42) | |
2222 | sp2 = Instance.new("Part", rarm) | |
2223 | sp2.Name = "Energy" | |
2224 | sp2.BrickColor = TorsoColor | |
2225 | sp2.Size = Vector3.new(1, 1, 1) | |
2226 | sp2.Shape = "Ball" | |
2227 | sp2.CanCollide = false | |
2228 | sp2.Anchored = true | |
2229 | sp2.Locked = true | |
2230 | sp2.TopSurface = 0 | |
2231 | sp2.BottomSurface = 0 | |
2232 | sp2.Transparency = 1 | |
2233 | spm2 = Instance.new("SpecialMesh",sp2) | |
2234 | spm2.MeshId = "rbxassetid://9982590" | |
2235 | spm2.Scale = Vector3.new(4,4,4) | |
2236 | sp3 = Instance.new("Part", rarm) | |
2237 | sp3.Name = "Energy" | |
2238 | sp3.BrickColor = TorsoColor | |
2239 | sp3.Size = Vector3.new(1, 1, 1) | |
2240 | sp3.Shape = "Ball" | |
2241 | sp3.CanCollide = false | |
2242 | sp3.Anchored = true | |
2243 | sp3.Locked = true | |
2244 | sp3.TopSurface = 0 | |
2245 | sp3.BottomSurface = 0 | |
2246 | sp3.Transparency = 1 | |
2247 | spm3 = Instance.new("SpecialMesh",sp2) | |
2248 | spm3.MeshId = "rbxassetid://9982590" | |
2249 | spm3.Scale = Vector3.new(8,8,8) | |
2250 | for i = 1, 20 do | |
2251 | spm.Scale = spm.Scale - Vector3.new(2,2,2) | |
2252 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
2253 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*2,0.62*2,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
2254 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*2,0.62*2,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
2255 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5*2,-.2*2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
2256 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2257 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2258 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2259 | if Debounces.on == false then break end | |
2260 | rs:wait() | |
2261 | end | |
2262 | for i = 1, 100, 20 do rs:wait() | |
2263 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
2264 | end | |
2265 | for i = 1, 20 do | |
2266 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
2267 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*2,0.62*2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
2268 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*2,0.62*2,.2*2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
2269 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5*2,-.2*2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
2270 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
2271 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2272 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2273 | if Debounces.on == false then break end | |
2274 | rs:wait() | |
2275 | end | |
2276 | sp.Transparency = 1 | |
2277 | for i = 1, 20 do | |
2278 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*2,0.62*2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
2279 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2*2,0.62*2,-.2*2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
2280 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5*2,-.2*2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
2281 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
2282 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2283 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5*2, -1*2, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2284 | if Debounces.on == false then break end | |
2285 | rs:wait() | |
2286 | end | |
2287 | wait(1) | |
2288 | sp.Transparency = 0 | |
2289 | sp2.Transparency = 0.84 | |
2290 | for i = 1, 20 do | |
2291 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
2292 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
2293 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
2294 | sp3.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
2295 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*2,0.55*2,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
2296 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*2,0.55*2,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
2297 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5*2,-.2*2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
2298 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
2299 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5*2, -1*2, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
2300 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5*2, -1*2, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
2301 | if Debounces.on == false then break end | |
2302 | rs:wait() | |
2303 | end | |
2304 | for i = 1, 2880, 50 do | |
2305 | rs:wait() | |
2306 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
2307 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1*2,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2308 | sp3.CFrame = rarm.CFrame * CFrame.new(0,-1*2,0) * CFrame.Angles(math.rad(-i/-10), math.rad(-i/-10), math.rad(i/-10)) | |
2309 | rs:wait() | |
2310 | end | |
2311 | sp:Destroy() | |
2312 | sp2:Destroy() | |
2313 | sp3:Destroy() | |
2314 | local X = Instance.new("Part",char) | |
2315 | local O = Instance.new("ObjectValue",X) | |
2316 | O.Name = "creator" | |
2317 | X.Locked = true | |
2318 | X.Name = "Shell" | |
2319 | X.Anchored = false | |
2320 | X.CanCollide = false | |
2321 | X.Transparency = 0 | |
2322 | X.Reflectance = 0 | |
2323 | X.BottomSurface = 0 | |
2324 | X.TopSurface = 0 | |
2325 | X.Shape = 0 | |
2326 | local V = Instance.new("ObjectValue",X) | |
2327 | V.Value = char | |
2328 | V.Name = "creator" | |
2329 | X.BrickColor = TorsoColor | |
2330 | X.Size = Vector3.new(2,2,2) | |
2331 | X.Material = "Neon" | |
2332 | local Z = Instance.new("SpecialMesh",X) | |
2333 | Z.MeshType = "Sphere" | |
2334 | Z.Scale = Vector3.new(0.5,0.5,1) | |
2335 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
2336 | local bv = Instance.new("BodyVelocity",X) | |
2337 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2338 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
2339 | bv.velocity = X.CFrame.lookVector*75 | |
2340 | ||
2341 | Explode = X.Touched:connect(function(hit) | |
2342 | if hit ~= char and hit.Name ~= "Shell" then | |
2343 | local cf = X.CFrame | |
2344 | bv:Destroy() | |
2345 | X.Anchored = true | |
2346 | Z:Remove() | |
2347 | Explode:disconnect() | |
2348 | X.Size = Vector3.new(6,6,6) | |
2349 | X.Touched:connect(function(hit) end) | |
2350 | X.CanCollide = false | |
2351 | local part3 = Instance.new("Part", rarm) | |
2352 | part3.Anchored=true | |
2353 | part3.CanCollide=false | |
2354 | part3.Locked = true | |
2355 | part3.TopSurface = "SmoothNoOutlines" | |
2356 | part3.BottomSurface = "SmoothNoOutlines" | |
2357 | part3.FormFactor='Custom' | |
2358 | part3.Size=Vector3.new(2,2, 2) | |
2359 | part3.CFrame=X.CFrame | |
2360 | part3.Transparency=0 | |
2361 | part3.BrickColor=TorsoColor | |
2362 | local mesh3 = Instance.new("SpecialMesh",part3) | |
2363 | mesh3.MeshType = "Sphere" | |
2364 | mesh3.Scale = Vector3.new(2,2,2) | |
2365 | --debris:AddItem(X,8) | |
2366 | local part4 = Instance.new("Part", rarm) | |
2367 | part4.Material = "Neon" | |
2368 | part4.Anchored=true | |
2369 | part4.CanCollide=false | |
2370 | part4.Locked = true | |
2371 | part4.TopSurface = "SmoothNoOutlines" | |
2372 | part4.BottomSurface = "SmoothNoOutlines" | |
2373 | part4.FormFactor='Custom' | |
2374 | part4.Size=Vector3.new(2,2, 2) | |
2375 | part4.CFrame=X.CFrame | |
2376 | part4.Transparency=0 | |
2377 | part4.BrickColor=BrickColor.new("Black") | |
2378 | local mesh4 = Instance.new("SpecialMesh",part4) | |
2379 | mesh4.MeshType = "Sphere" | |
2380 | mesh4.Scale = Vector3.new(1,1,1) | |
2381 | local part7 = Instance.new("Part", rarm) | |
2382 | part7.Material = "Neon" | |
2383 | part7.Anchored=true | |
2384 | part7.CanCollide=false | |
2385 | part7.Locked = true | |
2386 | part7.TopSurface = "SmoothNoOutlines" | |
2387 | part7.BottomSurface = "SmoothNoOutlines" | |
2388 | part7.FormFactor='Custom' | |
2389 | part7.Size=Vector3.new(2,2, 2) | |
2390 | part7.CFrame=X.CFrame | |
2391 | part7.Transparency=0 | |
2392 | part7.BrickColor=BrickColor.new("Really black") | |
2393 | local mesh7 = Instance.new("SpecialMesh",part7) | |
2394 | mesh7.MeshType = "Sphere" | |
2395 | mesh7.Scale = Vector3.new(0.2, 0.2, 0.2) | |
2396 | --[[X.Touched:connect(function(ht) | |
2397 | hit = ht.Parent | |
2398 | if ht and hit:IsA("Model") then | |
2399 | if hit:FindFirstChild("Humanoid") then | |
2400 | if hit.Name ~= p.Name then | |
2401 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2402 | wait(.3) | |
2403 | end | |
2404 | end | |
2405 | elseif ht and hit:IsA("Hat") then | |
2406 | if hit.Parent.Name ~= p.Name then | |
2407 | if hit.Parent:FindFirstChild("Humanoid") then | |
2408 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2409 | wait(.3) | |
2410 | end | |
2411 | end | |
2412 | end | |
2413 | end) | |
2414 | part3.Touched:connect(function(ht) | |
2415 | hit = ht.Parent | |
2416 | if ht and hit:IsA("Model") then | |
2417 | if hit:FindFirstChild("Humanoid") then | |
2418 | if hit.Name ~= p.Name then | |
2419 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2420 | wait(.3) | |
2421 | end | |
2422 | end | |
2423 | elseif ht and hit:IsA("Hat") then | |
2424 | if hit.Parent.Name ~= p.Name then | |
2425 | if hit.Parent:FindFirstChild("Humanoid") then | |
2426 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2427 | wait(.3) | |
2428 | end | |
2429 | end | |
2430 | end | |
2431 | end)]]-- | |
2432 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
2433 | if v:FindFirstChild('Humanoid') then | |
2434 | v.Humanoid:TakeDamage(math.random(60,90)) | |
2435 | v.Humanoid.PlatformStand = true | |
2436 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
2437 | end | |
2438 | end | |
2439 | ||
2440 | local acos = math.acos | |
2441 | local sqrt = math.sqrt | |
2442 | local Vec3 = Vector3.new | |
2443 | local fromAxisAngle = CFrame.fromAxisAngle | |
2444 | ||
2445 | local function toAxisAngle(CFr) | |
2446 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
2447 | local Angle = math.acos((R00+R11+R22-1)/2) | |
2448 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2449 | A = A == 0 and 0.00001 or A | |
2450 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2451 | B = B == 0 and 0.00001 or B | |
2452 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2453 | C = C == 0 and 0.00001 or C | |
2454 | local x = (R21-R12)/sqrt(A) | |
2455 | local y = (R02-R20)/sqrt(B) | |
2456 | local z = (R10-R01)/sqrt(C) | |
2457 | return Vec3(x,y,z),Angle | |
2458 | end | |
2459 | ||
2460 | function ApplyTrig(Num,Func) | |
2461 | local Min,Max = Func(0),Func(1) | |
2462 | local i = Func(Num) | |
2463 | return (i-Min)/(Max-Min) | |
2464 | end | |
2465 | ||
2466 | function LerpCFrame(CFrame1,CFrame2,Num) | |
2467 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
2468 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
2469 | end | |
2470 | ||
2471 | function Crater(Torso,Radius) | |
2472 | Spawn(function() | |
2473 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
2474 | local Ignore = {} | |
2475 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2476 | if v.Character ~= nil then | |
2477 | Ignore[#Ignore+1] = v.Character | |
2478 | end | |
2479 | end | |
2480 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
2481 | if Hit == nil then return end | |
2482 | local Parts = {} | |
2483 | for i = 1,360,10 do | |
2484 | local P = Instance.new("Part",Torso.Parent) | |
2485 | P.Anchored = true | |
2486 | P.FormFactor = "Custom" | |
2487 | P.BrickColor = Hit.BrickColor | |
2488 | P.Material = Hit.Material | |
2489 | P.TopSurface = "Smooth" | |
2490 | P.BottomSurface = "Smooth" | |
2491 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
2492 | 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))) | |
2493 | 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} | |
2494 | if math.random(0,5) == 0 then -- rubble | |
2495 | local P = Instance.new("Part",Torso.Parent) | |
2496 | P.Anchored = true | |
2497 | P.FormFactor = "Custom" | |
2498 | P.BrickColor = Hit.BrickColor | |
2499 | P.Material = Hit.Material | |
2500 | P.TopSurface = "Smooth" | |
2501 | P.BottomSurface = "Smooth" | |
2502 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
2503 | 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))) | |
2504 | 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} | |
2505 | end | |
2506 | end | |
2507 | for i = 0,1,0.05 do | |
2508 | for i2,v in pairs(Parts) do | |
2509 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
2510 | end | |
2511 | wait(0.02) | |
2512 | end | |
2513 | for i,v in pairs(Parts) do | |
2514 | if v[1].Size.X > 2.1 then | |
2515 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
2516 | end | |
2517 | v[1].Anchored = false | |
2518 | end | |
2519 | for i = 0,1,0.05 do | |
2520 | for i2,v in pairs(Parts) do | |
2521 | v[1].Transparency = i | |
2522 | if i == 1 then | |
2523 | v[1]:Destroy() | |
2524 | elseif i >= 0.25 then | |
2525 | v[1].CanCollide = false | |
2526 | end | |
2527 | end | |
2528 | wait(0.02) | |
2529 | end | |
2530 | Parts = nil | |
2531 | end) | |
2532 | end | |
2533 | ||
2534 | ROW = function(out, trans, s, wt, t, ang, plus) | |
2535 | for i = 1, 360, 360/t do | |
2536 | local c = Instance.new("Part", game.Workspace) | |
2537 | c.FormFactor = 3 | |
2538 | c.TopSurface = 0 | |
2539 | c.BottomSurface = 0 | |
2540 | c.Size = s | |
2541 | c.Anchored = true | |
2542 | c.CanCollide = wt | |
2543 | c.Material=workspace.Base.Material | |
2544 | c.Transparency = trans | |
2545 | c.BrickColor = workspace.Base.BrickColor | |
2546 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
2547 | c.Locked=true | |
2548 | game.Debris:AddItem(c,15) | |
2549 | end | |
2550 | end | |
2551 | ||
2552 | Part = function(x,y,z,color,tr,cc,an,parent) | |
2553 | local p = Instance.new('Part',parent or Weapon) | |
2554 | p.formFactor = 'Custom' | |
2555 | p.Size = Vector3.new(x,y,z) | |
2556 | p.BrickColor = BrickColor.new(color) | |
2557 | p.CanCollide = cc | |
2558 | p.Transparency = tr | |
2559 | p.Anchored = an | |
2560 | p.TopSurface,p.BottomSurface = 0,0 | |
2561 | p.Locked=true | |
2562 | p:BreakJoints() | |
2563 | return p end | |
2564 | ||
2565 | Mesh = function(par,num,x,y,z) | |
2566 | local msh = _ | |
2567 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
2568 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
2569 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
2570 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
2571 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
2572 | end msh.Scale = Vector3.new(x,y,z) | |
2573 | return msh end | |
2574 | ||
2575 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
2576 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
2577 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
2578 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
2579 | v1,v2,v3=sz.x,sz.y,sz.z | |
2580 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
2581 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
2582 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
2583 | a.CFrame=cfr | |
2584 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2585 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2586 | ||
2587 | Spawn(function() | |
2588 | while wait() do | |
2589 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
2590 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
2591 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
2592 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
2593 | a.Transparency=a.Transparency+0.05 | |
2594 | a2.Transparency=a2.Transparency+0.05 | |
2595 | a3.Transparency=a3.Transparency+0.05 | |
2596 | end | |
2597 | end) | |
2598 | end | |
2599 | ||
2600 | Crater(X,20) | |
2601 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
2602 | z = Instance.new("Sound",workspace) | |
2603 | z.SoundId = "rbxassetid://231917744" | |
2604 | z.Pitch = .5 | |
2605 | z.Volume = 5 | |
2606 | z1 = Instance.new("Sound",workspace) | |
2607 | z1.SoundId = "rbxassetid://231917744" | |
2608 | z1.Pitch = .5 | |
2609 | z1.Volume = 5 | |
2610 | z2 = Instance.new("Sound",workspace) | |
2611 | z2.SoundId = "rbxassetid://231917744" | |
2612 | z2.Pitch = .5 | |
2613 | z2.Volume = 5 | |
2614 | z3 = Instance.new("Sound",workspace) | |
2615 | z3.SoundId = "rbxassetid://245537790" | |
2616 | z3.Pitch = .7 | |
2617 | z3.Volume = 5 | |
2618 | z4 = Instance.new("Sound",workspace) | |
2619 | z4.SoundId = "rbxassetid://245537790" | |
2620 | z4.Pitch = .7 | |
2621 | z4.Volume = 5 | |
2622 | z4a = Instance.new("Sound",workspace) | |
2623 | z4a.SoundId = "rbxassetid://419447292" | |
2624 | z4a.Pitch = 1 | |
2625 | z4a.Volume = 5 | |
2626 | z3a = Instance.new("Sound",workspace) | |
2627 | z3a.SoundId = "rbxassetid://421328847" | |
2628 | z3a.Pitch = 1 | |
2629 | z3a.Volume = 5 | |
2630 | wait(0.1) | |
2631 | z:Play() | |
2632 | z1:Play() | |
2633 | z2:Play() | |
2634 | z3:Play() | |
2635 | z4:Play() | |
2636 | z3a:Play() | |
2637 | z4a:Play() | |
2638 | ||
2639 | local part=Instance.new('Part',rarm) | |
2640 | part.Anchored=true | |
2641 | part.CanCollide=false | |
2642 | part.Locked = true | |
2643 | part.FormFactor='Custom' | |
2644 | part.Size=Vector3.new(2,2,2) | |
2645 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
2646 | part.Transparency=0 | |
2647 | part.BrickColor=BrickColor.new('Really black') | |
2648 | local mesh=Instance.new('SpecialMesh',part) | |
2649 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2650 | mesh.Scale=Vector3.new(4,4,4) | |
2651 | local part2=part:clone() | |
2652 | part2.Parent = rarm | |
2653 | part2.BrickColor=TorsoColor | |
2654 | local part5=part:clone() | |
2655 | part5.Parent = rarm | |
2656 | part5.BrickColor=TorsoColor | |
2657 | local part6=part:clone() | |
2658 | part6.Parent = rarm | |
2659 | part6.BrickColor=BrickColor.new("Black") | |
2660 | local mesh2=mesh:clone() | |
2661 | mesh2.Parent=part2 | |
2662 | mesh2.Scale=Vector3.new(6, 6, 6) | |
2663 | local mesh5=mesh:clone() | |
2664 | mesh5.Parent=part5 | |
2665 | mesh5.Scale=Vector3.new(6, 6, 6) | |
2666 | local mesh6=mesh:clone() | |
2667 | mesh6.Parent=part6 | |
2668 | mesh6.Scale=Vector3.new(6, 6, 6) | |
2669 | local blast = Instance.new("Part", rarm) | |
2670 | blast.BrickColor = BrickColor.new("Really black") | |
2671 | blast.Anchored = true | |
2672 | blast.CanCollide = false | |
2673 | blast.Locked = true | |
2674 | blast.Size = Vector3.new(2, 2, 2) | |
2675 | blast.TopSurface = "Smooth" | |
2676 | blast.BottomSurface = "Smooth" | |
2677 | blast.Transparency = 0 | |
2678 | blast.CFrame = HandCF | |
2679 | local bm = Instance.new("SpecialMesh", blast) | |
2680 | bm.Scale = Vector3.new(10,2,10) | |
2681 | bm.MeshId = "rbxassetid://3270017" | |
2682 | local blast2 = Instance.new("Part", rarm) | |
2683 | blast2.BrickColor = BrickColor.new("Really black") | |
2684 | blast2.Anchored = true | |
2685 | blast2.CanCollide = false | |
2686 | blast2.Locked = true | |
2687 | blast2.Size = Vector3.new(2, 2, 2) | |
2688 | blast2.TopSurface = "Smooth" | |
2689 | blast2.BottomSurface = "Smooth" | |
2690 | blast2.Transparency = 0 | |
2691 | blast2.CFrame = HandCF | |
2692 | local bm2 = Instance.new("SpecialMesh", blast2) | |
2693 | bm2.Scale = Vector3.new(6,2,6) | |
2694 | bm2.MeshId = "rbxassetid://3270017" | |
2695 | local blast3 = Instance.new("Part", rarm) | |
2696 | blast3.BrickColor = BrickColor.new("Really black") | |
2697 | blast3.Anchored = true | |
2698 | blast3.CanCollide = false | |
2699 | blast3.Locked = true | |
2700 | blast3.Size = Vector3.new(1, 1, 1) | |
2701 | blast3.TopSurface = "Smooth" | |
2702 | blast3.BottomSurface = "Smooth" | |
2703 | blast3.Transparency = 0 | |
2704 | blast3.CFrame = HandCF | |
2705 | local bm3 = Instance.new("SpecialMesh", blast3) | |
2706 | bm3.Scale = Vector3.new(6,2,6) | |
2707 | bm3.MeshId = "rbxassetid://3270017" | |
2708 | for i = 1,120 do rs:wait() | |
2709 | X.Transparency = X.Transparency + (1/120) | |
2710 | part.Transparency = part.Transparency + (1/120) | |
2711 | part2.Transparency = part2.Transparency + (1/120) | |
2712 | part3.Transparency = part3.Transparency + (1/120) | |
2713 | part4.Transparency = part4.Transparency + (1/120) | |
2714 | part5.Transparency = part5.Transparency + (1/120) | |
2715 | part6.Transparency = part6.Transparency + (1/120) | |
2716 | part7.Transparency = part7.Transparency + (1/120) | |
2717 | blast.Transparency = blast.Transparency + (1/120) | |
2718 | blast2.Transparency = blast2.Transparency + (1/120) | |
2719 | blast3.Transparency = blast3.Transparency + (1/120) | |
2720 | X.Size = X.Size + Vector3.new(1.6,1.6,1.6) | |
2721 | --part3.Size = part3.Size + Vector3.new(6,6,6) | |
2722 | mesh.Scale = mesh.Scale + Vector3.new(2,.4,2) | |
2723 | mesh2.Scale = mesh2.Scale + Vector3.new(2.2,.4,2.2) | |
2724 | mesh3.Scale = mesh3.Scale + Vector3.new(6,6,6) | |
2725 | mesh4.Scale = mesh4.Scale + Vector3.new(3.4,3.4,3.4) | |
2726 | mesh5.Scale = mesh5.Scale + Vector3.new(3.2,.4,3.2) | |
2727 | mesh6.Scale = mesh6.Scale + Vector3.new(4,.4,4) | |
2728 | mesh7.Scale = mesh7.Scale + Vector3.new(8,8,8) | |
2729 | bm.Scale = bm.Scale + Vector3.new(12,12,.4) | |
2730 | bm2.Scale = bm2.Scale + Vector3.new(8,8,.4) | |
2731 | bm3.Scale = bm3.Scale + Vector3.new(8,8,.4) | |
2732 | X.CFrame = cf | |
2733 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
2734 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
2735 | part3.CFrame=X.CFrame | |
2736 | part4.CFrame=X.CFrame | |
2737 | part7.CFrame=X.CFrame | |
2738 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
2739 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
2740 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2741 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
2742 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
2743 | rs:wait() | |
2744 | end | |
2745 | X:Destroy() | |
2746 | part:Destroy() | |
2747 | part2:Destroy() | |
2748 | part3:Destroy() | |
2749 | part4:Destroy() | |
2750 | part5:Destroy() | |
2751 | part6:Destroy() | |
2752 | blast:Destroy() | |
2753 | blast2:Destroy() | |
2754 | blast3:Destroy() | |
2755 | z:Destroy() | |
2756 | z1:Destroy() | |
2757 | z2:Destroy() | |
2758 | z3:Destroy() | |
2759 | z4:Destroy() | |
2760 | end | |
2761 | end) | |
2762 | for i = 1, 20 do | |
2763 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*2,0.55*2,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
2764 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*2,0.55*2,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
2765 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5*2,-.2*2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
2766 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
2767 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5*2, -1*2, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
2768 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5*2, -1*2, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
2769 | if Debounces.on == false then break end | |
2770 | rs:wait() | |
2771 | end | |
2772 | if Debounces.CanAttack == false then | |
2773 | Debounces.CanAttack = true | |
2774 | Debounces.NoIdl = false | |
2775 | Debounces.on = false | |
2776 | end | |
2777 | end | |
2778 | end | |
2779 | end) | |
2780 | ---------------------------------------------------- | |
2781 | mouse.KeyDown:connect(function(key) | |
2782 | if key == "t" then | |
2783 | if Debounces.CanAttack == true then | |
2784 | Debounces.CanAttack = false | |
2785 | Debounces.on = true | |
2786 | Debounces.NoIdl = true | |
2787 | for i = 1, 20 do | |
2788 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-5)), 0.4) | |
2789 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,0.5,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
2790 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
2791 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
2792 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .6) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.4) | |
2793 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.2) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4) | |
2794 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
2795 | if Debounces.on == false then break end | |
2796 | wait() | |
2797 | end | |
2798 | Spawn(function() | |
2799 | local Parts = {} | |
2800 | for Y = -5,5 do | |
2801 | local P = Instance.new("Part",char) | |
2802 | P.Anchored = true | |
2803 | P.FormFactor = "Custom" | |
2804 | P.CanCollide = false | |
2805 | P.Size = Vector3.new(1,2,1) | |
2806 | P.TopSurface = "SmoothNoOutlines" | |
2807 | P.BottomSurface = "SmoothNoOutlines" | |
2808 | P.BrickColor = BrickColor.new("Really black") | |
2809 | P.Name = tostring(Y) | |
2810 | local i = (Y+5)/(10) | |
2811 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
2812 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
2813 | --[[P.Touched:connect(function(ht) | |
2814 | local hit = ht.Parent | |
2815 | if hit:FindFirstChild("Humanoid") then | |
2816 | hit.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
2817 | end | |
2818 | end)]]-- | |
2819 | s = Instance.new("Sound",P) | |
2820 | s.SoundId = "rbxassetid://228343271" | |
2821 | s.Volume = .7 | |
2822 | s.Pitch = 0.9 | |
2823 | s:Play() | |
2824 | P.Touched:connect(function(ht) | |
2825 | hit = ht.Parent | |
2826 | if ht and hit:IsA("Model") then | |
2827 | if hit:FindFirstChild("Humanoid") then | |
2828 | if hit.Name ~= p.Name then | |
2829 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2830 | Debounces.Slashed = true]]-- | |
2831 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(10000020,10000030)) | |
2832 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2833 | wait(1) | |
2834 | --Debounces.Slashed = false | |
2835 | --end | |
2836 | end | |
2837 | end | |
2838 | elseif ht and hit:IsA("Hat") then | |
2839 | if hit.Parent.Name ~= p.Name then | |
2840 | if hit.Parent:FindFirstChild("Humanoid") then | |
2841 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2842 | Debounces.Slashed = true]]-- | |
2843 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (10000020,10000030)) | |
2844 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2845 | wait(1) | |
2846 | --Debounces.Slashed = false | |
2847 | --end | |
2848 | end | |
2849 | end | |
2850 | end | |
2851 | end) | |
2852 | Parts[#Parts+1] = P | |
2853 | end | |
2854 | local BREAKIT = false | |
2855 | local CParts = {} | |
2856 | local Rocks = {} | |
2857 | local LastPos = nil | |
2858 | for i = 1,70 do | |
2859 | for i2,v in pairs(Parts) do | |
2860 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
2861 | local cf = v.CFrame | |
2862 | v.Size = v.Size+Vector3.new(2,2,0) | |
2863 | v.CFrame = cf | |
2864 | v.Transparency = v.Transparency+0.02 | |
2865 | if v.Transparency >= 0.975 then BREAKIT = true end | |
2866 | if v.Name == "0" then | |
2867 | local Ignore = {} | |
2868 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2869 | if v.Character ~= nil then | |
2870 | Ignore[#Ignore+1] = v.Character | |
2871 | end | |
2872 | end | |
2873 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-100,0)) | |
2874 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
2875 | if Hit ~= nil then | |
2876 | if #Rocks == 0 then | |
2877 | for i = 1,5 do | |
2878 | local P = Instance.new("Part",char) | |
2879 | Rocks[#Rocks+1] = P | |
2880 | P.Anchored = true | |
2881 | P.FormFactor = "Custom" | |
2882 | P.BrickColor = Hit.BrickColor | |
2883 | P.Material = Hit.Material | |
2884 | P.TopSurface = "Smooth" | |
2885 | P.BottomSurface = "Smooth" | |
2886 | P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100) | |
2887 | end | |
2888 | end | |
2889 | for i,P in pairs(Rocks) do | |
2890 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2891 | end | |
2892 | local P = Instance.new("Part",char) | |
2893 | CParts[#CParts+1] = {P,tick()} | |
2894 | P.Anchored = true | |
2895 | P.FormFactor = "Custom" | |
2896 | P.BrickColor = Hit.BrickColor | |
2897 | P.Material = Hit.Material | |
2898 | P.TopSurface = "Smooth" | |
2899 | P.BottomSurface = "Smooth" | |
2900 | P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100) | |
2901 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2902 | Pos = Pos.p | |
2903 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2904 | local P = P:Clone() | |
2905 | CParts[#CParts+1] = {P,tick()} | |
2906 | P.Parent = char | |
2907 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
2908 | Pos = Pos.p | |
2909 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
2910 | if LastPos ~= nil then | |
2911 | local P = P:Clone() | |
2912 | CParts[#CParts+1] = {P,tick()} | |
2913 | P.Parent = char | |
2914 | P.BrickColor = BrickColor.new("Dark indigo") | |
2915 | P.Material = "Neon" | |
2916 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2917 | Pos = Pos.p | |
2918 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2919 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
2920 | --P.Velocity = Vector3.new(0,-1000,0) | |
2921 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
2922 | end | |
2923 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2924 | end | |
2925 | end | |
2926 | end | |
2927 | if BREAKIT then break end | |
2928 | wait(0.002) | |
2929 | end | |
2930 | for i,v in pairs(Rocks) do | |
2931 | CParts[#CParts+1] = {v,tick()} | |
2932 | end | |
2933 | for i,v in pairs(Parts) do | |
2934 | v:Destroy() | |
2935 | end | |
2936 | Parts = nil | |
2937 | while true do | |
2938 | local t = tick() | |
2939 | local p = nil | |
2940 | for i,v in pairs(CParts) do | |
2941 | if t-v[2] > 4 then | |
2942 | v[1].Transparency = v[1].Transparency+0.05 | |
2943 | if v[1].Transparency >= 1 then | |
2944 | v[1]:Destroy() | |
2945 | CParts[i] = nil | |
2946 | end | |
2947 | end | |
2948 | p = v | |
2949 | end | |
2950 | if p == nil then break end | |
2951 | wait(0.002) | |
2952 | end | |
2953 | for i,v in pairs(CParts) do | |
2954 | v:Destroy() | |
2955 | end | |
2956 | CParts = {} | |
2957 | end) | |
2958 | for i = 1, 20 do | |
2959 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-0)), 0.4) | |
2960 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4) | |
2961 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4) | |
2962 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4) | |
2963 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -1.4) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
2964 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.6, -.9) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
2965 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
2966 | if Debounces.on == false then break end | |
2967 | wait() | |
2968 | end | |
2969 | if Debounces.CanAttack == false then | |
2970 | Debounces.CanAttack = true | |
2971 | Debounces.on = false | |
2972 | Debounces.NoIdl = false | |
2973 | end | |
2974 | end | |
2975 | end | |
2976 | end) | |
2977 | ---------------------------------------------------- | |
2978 | mouse.KeyDown:connect(function(key) | |
2979 | if key == "e" then | |
2980 | if Debounces.CanAttack == true then | |
2981 | Debounces.CanAttack = false | |
2982 | Debounces.on = true | |
2983 | Debounces.NoIdl = true | |
2984 | for i = 1, 18 do | |
2985 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.7, 0) * CFrame.Angles(math.rad(90),math.rad(50),math.rad(90)), 0.4) | |
2986 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) | |
2987 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
2988 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) | |
2989 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) | |
2990 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
2991 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
2992 | if Debounces.on == false then break end | |
2993 | wait() | |
2994 | end | |
2995 | local HandCF = CFrame.new(char.Titanius.Handle.Position - Vector3.new(0,8.8,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2996 | local rng = Instance.new("Part", char.Titanius.Handle) | |
2997 | rng.Anchored = true | |
2998 | rng.BrickColor = BrickColor.new("Really black") | |
2999 | rng.CanCollide = true | |
3000 | rng.FormFactor = 3 | |
3001 | rng.Name = "Ring" | |
3002 | rng.Size = Vector3.new(1, 1, 1) | |
3003 | rng.CanCollide = false | |
3004 | rng.Transparency = 0.35 | |
3005 | rng.TopSurface = 0 | |
3006 | rng.BottomSurface = 0 | |
3007 | rng.CFrame = HandCF | |
3008 | local rngm = Instance.new("SpecialMesh", rng) | |
3009 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3010 | rngm.Scale = Vector3.new(1, 1, 2) | |
3011 | x = Instance.new("Sound", hed) | |
3012 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
3013 | x.Looped = false | |
3014 | x.Pitch = .7 | |
3015 | x.Volume = 1 | |
3016 | x1 = Instance.new("Sound", hed) | |
3017 | x1.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
3018 | x1.Looped = false | |
3019 | x1.Pitch = .7 | |
3020 | x1.Volume = 1 | |
3021 | x:Play() | |
3022 | x1:Play() | |
3023 | rngto = rng.Touched:connect(function(ht) | |
3024 | hit = ht.Parent | |
3025 | if ht and hit:IsA("Model") then | |
3026 | if hit:FindFirstChild("Humanoid") then | |
3027 | if hit.Name ~= p.Name then | |
3028 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3029 | Debounces.Slashed = true]]-- | |
3030 | hit:FindFirstChild("Humanoid"):TakeDamage(1000000) | |
3031 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3032 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 | |
3033 | --Debounces.Slashed = false | |
3034 | --end | |
3035 | end | |
3036 | end | |
3037 | elseif ht and hit:IsA("Hat") then | |
3038 | if hit.Parent.Name ~= p.Name then | |
3039 | if hit.Parent:FindFirstChild("Humanoid") then | |
3040 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
3041 | Debounces.Slashed = true]]-- | |
3042 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(100000) | |
3043 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3044 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120 | |
3045 | --Debounces.Slashed = false | |
3046 | end | |
3047 | end | |
3048 | end | |
3049 | end) | |
3050 | coroutine.wrap(function() | |
3051 | for i = 1, 60, 2 do | |
3052 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
3053 | rng.Size = rngm.Scale | |
3054 | rng.CFrame = HandCF | |
3055 | rng.Transparency = i/60 | |
3056 | wait() | |
3057 | end | |
3058 | wait() | |
3059 | rng:Destroy() | |
3060 | end)() | |
3061 | for i = 1, 18 do | |
3062 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.4) | |
3063 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4) | |
3064 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
3065 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4) | |
3066 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4) | |
3067 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
3068 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, 0.2) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3069 | if Debounces.on == false then break end | |
3070 | wait() | |
3071 | end | |
3072 | x:Destroy() | |
3073 | x1:Destroy() | |
3074 | if Debounces.CanAttack == false then | |
3075 | Debounces.CanAttack = true | |
3076 | Debounces.on = false | |
3077 | Debounces.NoIdl = false | |
3078 | end | |
3079 | end | |
3080 | end | |
3081 | end) | |
3082 | ---------------------------------------------------- | |
3083 | mouse.KeyDown:connect(function(key) | |
3084 | if key == "y" then | |
3085 | if Debounces.CanAttack == true then | |
3086 | Debounces.CanAttack = false | |
3087 | Debounces.on = true | |
3088 | Debounces.NoIdl = true | |
3089 | for i = 1, 15 do | |
3090 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
3091 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.2) | |
3092 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
3093 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.2) | |
3094 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
3095 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
3096 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3097 | if Debounces.on == false then break end | |
3098 | wait() | |
3099 | end | |
3100 | x = Instance.new("Sound",char) | |
3101 | x.SoundId = "rbxassetid://228343271" | |
3102 | x.Pitch = 1 | |
3103 | x.Volume = .8 | |
3104 | wait(.1) | |
3105 | x:Play() | |
3106 | Debounces.on = false | |
3107 | Debounces.Here = false | |
3108 | shot = shot + 1 | |
3109 | local rng = Instance.new("Part", char) | |
3110 | rng.Anchored = true | |
3111 | rng.BrickColor = BrickColor.new("Really black") | |
3112 | rng.CanCollide = false | |
3113 | rng.FormFactor = 3 | |
3114 | rng.Name = "Ring" | |
3115 | rng.Size = Vector3.new(1, 1, 1) | |
3116 | rng.Transparency = 0.35 | |
3117 | rng.TopSurface = 0 | |
3118 | rng.BottomSurface = 0 | |
3119 | rng2 = rng:clone() | |
3120 | rng3 = rng2:clone() | |
3121 | rng4 = rng2:clone() | |
3122 | local rngm = Instance.new("SpecialMesh", rng) | |
3123 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3124 | rngm.Scale = Vector3.new(10, 10, 1) | |
3125 | rngm2 = rngm:clone() | |
3126 | rngm2.Scale = Vector3.new(5, 5, 1) | |
3127 | rngm3=rngm2:clone() | |
3128 | rngm3.Parent = rng3 | |
3129 | rngm3.Scale = Vector3.new(8, 8, 1) | |
3130 | rngm4 = rngm2:clone() | |
3131 | rngm4.Parent = rng4 | |
3132 | rngm4.Scale = Vector3.new(6, 6, 1) | |
3133 | local bem = Instance.new("Part", char) | |
3134 | bem.Anchored = true | |
3135 | bem.BrickColor = BrickColor.new("Dark indigo") | |
3136 | bem.CanCollide = false | |
3137 | bem.FormFactor = 3 | |
3138 | bem.Name = "Beam" .. shot | |
3139 | bem.Size = Vector3.new(1, 1, 1) | |
3140 | bem.Transparency = 0.35 | |
3141 | bem.TopSurface = 0 | |
3142 | bem.BottomSurface = 0 | |
3143 | local bemm = Instance.new("SpecialMesh", bem) | |
3144 | bemm.MeshType = 4 | |
3145 | bemm.Scale = Vector3.new(1, 4, 4) | |
3146 | local out = Instance.new("Part", char) | |
3147 | out.Anchored = true | |
3148 | out.BrickColor = BrickColor.new("Dark indigo") | |
3149 | out.CanCollide = false | |
3150 | out.FormFactor = 3 | |
3151 | out.Name = "Out" | |
3152 | out.Size = Vector3.new(4, 4, 4) | |
3153 | out.Transparency = 0.35 | |
3154 | out.TopSurface = 0 | |
3155 | out.BottomSurface = 0 | |
3156 | local outm = Instance.new("SpecialMesh", out) | |
3157 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
3158 | outm.Scale = Vector3.new(4, 4, 4) | |
3159 | local bnd = Instance.new("Part", char) | |
3160 | bnd.Anchored = true | |
3161 | bnd.BrickColor = BrickColor.new("Dark indigo") | |
3162 | bnd.CanCollide = false | |
3163 | bnd.FormFactor = 3 | |
3164 | bnd.Name = "Bend" | |
3165 | bnd.Size = Vector3.new(1, 1, 1) | |
3166 | bnd.Transparency = 1 | |
3167 | bnd.TopSurface = 0 | |
3168 | bnd.BottomSurface = 0 | |
3169 | local bndm = Instance.new("SpecialMesh", bnd) | |
3170 | bndm.MeshType = 3 | |
3171 | bndm.Scale = Vector3.new(8, 8, 8) | |
3172 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
3173 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
3174 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
3175 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
3176 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
3177 | rng4.CFrame = rng3.CFrame * CFrame.new(0, -.5, 0) | |
3178 | Debounces.Shewt = true | |
3179 | coroutine.wrap(function() | |
3180 | for i = 1, 20, 0.2 do | |
3181 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
3182 | rngm3.Scale = Vector3.new(8 + i*2, 8 + i*2, 1) | |
3183 | rngm4.Scale = Vector3.new(6 + i*2, 6 + i*2, 1) | |
3184 | rng.Transparency = i/20 | |
3185 | rng3.Transparency = 1/16 | |
3186 | rng4.Transparency = i/12 | |
3187 | wait() | |
3188 | end | |
3189 | wait() | |
3190 | rng:Destroy() | |
3191 | end)() | |
3192 | if Debounces.Shewt == true then | |
3193 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
3194 | hit = ht.Parent | |
3195 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
3196 | if HasntTouched(hit.Name) == true and deb == false then | |
3197 | deb = true | |
3198 | coroutine.wrap(function() | |
3199 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3200 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
3201 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(10000020,10000030)) | |
3202 | end)() | |
3203 | table.insert(Touche, hit.Name) | |
3204 | deb = false | |
3205 | end | |
3206 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
3207 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
3208 | deb = true | |
3209 | coroutine.wrap(function() | |
3210 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
3211 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
3212 | wait(1) | |
3213 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
3214 | end)() | |
3215 | table.insert(Touche, hit.Parent.Name) | |
3216 | deb = false | |
3217 | for i, v in pairs(Touche) do | |
3218 | print(v) | |
3219 | end | |
3220 | end | |
3221 | end | |
3222 | end) | |
3223 | end | |
3224 | for i = 0, 260, 8 do | |
3225 | bem.Size = Vector3.new(i, 2, 2) | |
3226 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
3227 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
3228 | bnd.Size = Vector3.new(1,1,1) | |
3229 | bndm.Scale = Vector3.new(8,8,8) | |
3230 | if i % 10 == 0 then | |
3231 | local newRng = rng2:Clone() | |
3232 | newRng.Parent = char | |
3233 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
3234 | local newRngm = rngm2:clone() | |
3235 | newRngm.Parent=newRng | |
3236 | coroutine.wrap(function() | |
3237 | for i = 1, 10, 0.2 do | |
3238 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 1) | |
3239 | newRng.Transparency = i/10 | |
3240 | wait() | |
3241 | end | |
3242 | wait() | |
3243 | newRng:Destroy() | |
3244 | end)() | |
3245 | end | |
3246 | wait() | |
3247 | end | |
3248 | wait() | |
3249 | Debounces.Shewt = false | |
3250 | bem:Destroy() | |
3251 | out:Destroy() | |
3252 | bnd:Destroy() | |
3253 | Debounces.Ready = false | |
3254 | for i, v in pairs(Touche) do | |
3255 | table.remove(Touche, i) | |
3256 | end | |
3257 | wait() | |
3258 | table.insert(Touche, char.Name) | |
3259 | Debounces.NoIdl = false | |
3260 | if Debounces.CanAttack == false then | |
3261 | Debounces.CanAttack = true | |
3262 | end | |
3263 | end | |
3264 | end | |
3265 | end) | |
3266 | ---------------------------------------------------- | |
3267 | sidz = {"231917888", "231917845", "231917806"} | |
3268 | ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1} | |
3269 | mouse.KeyDown:connect(function(key) | |
3270 | if key == "f" then | |
3271 | if Debounces.CanAttack == true then | |
3272 | Debounces.CanAttack = false | |
3273 | Debounces.on = true | |
3274 | Debounces.NoIdl = true | |
3275 | for i = 1, 10 do | |
3276 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.4) | |
3277 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.4) | |
3278 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
3279 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
3280 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
3281 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
3282 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3283 | if Debounces.on == false then break end | |
3284 | wait() | |
3285 | end | |
3286 | z = Instance.new("Sound",char) | |
3287 | z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)] | |
3288 | z.Pitch = ptz[math.random(1,#ptz)] | |
3289 | z.Volume = 1 | |
3290 | z1 = Instance.new("Sound",char) | |
3291 | z1.SoundId = z.SoundId | |
3292 | z1.Pitch = z.Pitch | |
3293 | z1.Volume = 1 | |
3294 | wait(1) | |
3295 | z:Play() | |
3296 | z1:Play() | |
3297 | Stomp() | |
3298 | for i = 1, 20 do | |
3299 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.6) | |
3300 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.6) | |
3301 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
3302 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.6) | |
3303 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6) | |
3304 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, -1.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6) | |
3305 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3306 | if Debounces.on == false then break end | |
3307 | wait() | |
3308 | end | |
3309 | if Debounces.CanAttack == false then | |
3310 | Debounces.CanAttack = true | |
3311 | Debounces.on = false | |
3312 | Debounces.NoIdl = false | |
3313 | end | |
3314 | end | |
3315 | end | |
3316 | end) | |
3317 | ---------------------------------------------------- | |
3318 | mouse.KeyDown:connect(function(key) | |
3319 | if key == "g" then | |
3320 | if Debounces.CanAttack == true then | |
3321 | Debounces.CanAttack = false | |
3322 | Debounces.on = true | |
3323 | Debounces.NoIdl = true | |
3324 | chrg = lleg.Touched:connect(function(ht) | |
3325 | hit = ht.Parent | |
3326 | if ht and hit:IsA("Model") then | |
3327 | if hit:FindFirstChild("Humanoid") then | |
3328 | if hit.Name ~= p.Name then | |
3329 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3330 | Debounces.Slashed = true]]-- | |
3331 | hit:FindFirstChild("Humanoid"):TakeDamage(29999999) | |
3332 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3333 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
3334 | --Debounces.Slashed = false | |
3335 | --end | |
3336 | end | |
3337 | end | |
3338 | elseif ht and hit:IsA("Hat") then | |
3339 | if hit.Parent.Name ~= p.Name then | |
3340 | if hit.Parent:FindFirstChild("Humanoid") then | |
3341 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
3342 | Debounces.Slashed = true]]-- | |
3343 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2999999999) | |
3344 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3345 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
3346 | --Debounces.Slashed = false | |
3347 | end | |
3348 | end | |
3349 | end | |
3350 | end) | |
3351 | for i = 1, 14 do | |
3352 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.5) | |
3353 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.5) | |
3354 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.5) | |
3355 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
3356 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.8, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
3357 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
3358 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) | |
3359 | if Debounces.on == false then break end | |
3360 | wait() | |
3361 | end | |
3362 | charge() | |
3363 | z = Instance.new("Sound",char) | |
3364 | z.SoundId = "rbxassetid://100632875" | |
3365 | z.Volume = 1 | |
3366 | z.Pitch = .8 | |
3367 | z1 = Instance.new("Sound",char) | |
3368 | z1.SoundId = "rbxassetid://100632875" | |
3369 | z1.Volume = 1 | |
3370 | z1.Pitch = .9 | |
3371 | z:Play() | |
3372 | z1:Play() | |
3373 | wait(1) | |
3374 | z:Destroy() | |
3375 | z1:Destroy() | |
3376 | chrg:disconnect() | |
3377 | if Debounces.CanAttack == false then | |
3378 | Debounces.CanAttack = true | |
3379 | Debounces.on = false | |
3380 | Debounces.NoIdl = false | |
3381 | end | |
3382 | end | |
3383 | end | |
3384 | end) | |
3385 | ---------------------------------------------------- | |
3386 | pt = {0.7, 0.8, 0.9} | |
3387 | mouse.KeyDown:connect(function(key) | |
3388 | if key == "h" then | |
3389 | if Debounces.CanJoke == true then | |
3390 | Debounces.CanJoke = false | |
3391 | u = Instance.new("Sound") | |
3392 | u.SoundId = "http://www.roblox.com/asset/?id=333446256" | |
3393 | u.Parent = char | |
3394 | u.Looped = false | |
3395 | u.Pitch = pt[math.random(1,#pt)] | |
3396 | u.Volume = 1 | |
3397 | u2 = Instance.new("Sound") | |
3398 | u2.SoundId = "http://www.roblox.com/asset/?id=333446256" | |
3399 | u2.Parent = char | |
3400 | u2.Looped = false | |
3401 | u2.Pitch = u.Pitch | |
3402 | u2.Volume = 1 | |
3403 | wait(.01) | |
3404 | u:Play() | |
3405 | u2:Play() | |
3406 | wait(6) | |
3407 | u:Destroy() | |
3408 | u2:Destroy() | |
3409 | if Debounces.CanJoke == false then | |
3410 | Debounces.CanJoke = true | |
3411 | end | |
3412 | end | |
3413 | end | |
3414 | end) | |
3415 | ---------------------------------------------------- | |
3416 | --Insert awesome nuke cmd here-- | |
3417 | ||
3418 | ---------------------------------------------------- | |
3419 | mouse.KeyDown:connect(function(key) | |
3420 | if key == "l" then | |
3421 | if Debounces.CanJoke == true then | |
3422 | Debounces.CanJoke = false | |
3423 | z = Instance.new("Sound",char) | |
3424 | z.SoundId = "rbxassetid://233774928" | |
3425 | z.Pitch = .76 | |
3426 | z.Volume = 1 | |
3427 | wait() | |
3428 | z:Play() | |
3429 | wait(6) | |
3430 | z:Destroy() | |
3431 | if Debounces.CanJoke == false then | |
3432 | Debounces.CanJoke = true | |
3433 | end | |
3434 | end | |
3435 | end | |
3436 | end) | |
3437 | ---------------------------------------------------- | |
3438 | mouse.KeyDown:connect(function(key) | |
3439 | if key == "j" then | |
3440 | if Debounces.CanJoke == true then | |
3441 | Debounces.CanJoke = false | |
3442 | z = Instance.new("Sound",char) | |
3443 | z.SoundId = "rbxassetid://135017456" | |
3444 | z.Pitch = .76 | |
3445 | z.Volume = 1 | |
3446 | wait() | |
3447 | z:Play() | |
3448 | wait(6) | |
3449 | z:Destroy() | |
3450 | if Debounces.CanJoke == false then | |
3451 | Debounces.CanJoke = true | |
3452 | end | |
3453 | end | |
3454 | end | |
3455 | end) | |
3456 | ---------------------------------------------------- | |
3457 | mouse.KeyDown:connect(function(key) | |
3458 | if key == "k" then | |
3459 | if Debounces.CanJoke == true then | |
3460 | Debounces.CanJoke = false | |
3461 | z = Instance.new("Sound",char) | |
3462 | z.SoundId = "rbxassetid://135017578" | |
3463 | z.Pitch = .76 | |
3464 | z.Volume = 1 | |
3465 | wait() | |
3466 | z:Play() | |
3467 | wait(4) | |
3468 | z:Destroy() | |
3469 | if Debounces.CanJoke == false then | |
3470 | Debounces.CanJoke = true | |
3471 | end | |
3472 | end | |
3473 | end | |
3474 | end) | |
3475 | ---------------------------------------------------- | |
3476 | mouse.KeyDown:connect(function(key) | |
3477 | if key == "x" then | |
3478 | if Debounces.CanAttack == true then | |
3479 | Debounces.CanAttack = false | |
3480 | Debounces.NoIdl = true | |
3481 | Debounces.on = true | |
3482 | Debounces.ks = true | |
3483 | for i = 1, 10 do | |
3484 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6) | |
3485 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.6) | |
3486 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
3487 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.6) | |
3488 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.6) | |
3489 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.7, .6) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6) | |
3490 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3491 | if Debounces.on == false then break end | |
3492 | wait() | |
3493 | end | |
3494 | z = Instance.new("Sound",hed) | |
3495 | z.SoundId = "rbxassetid://169445092" | |
3496 | z.Volume = 1 | |
3497 | wait(0.1) | |
3498 | z:Play() | |
3499 | kik = rleg.Touched:connect(function(ht) | |
3500 | hit = ht.Parent | |
3501 | if ht and hit:IsA("Model") then | |
3502 | if hit:FindFirstChild("Humanoid") then | |
3503 | if hit.Name ~= p.Name then | |
3504 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3505 | Debounces.Slashed = true]]-- | |
3506 | if Debounces.ks==true then | |
3507 | z = Instance.new("Sound",hed) | |
3508 | z.SoundId = "rbxassetid://169380525" | |
3509 | z.Volume = 1 | |
3510 | z:Play() | |
3511 | Debounces.ks=false | |
3512 | end | |
3513 | hit:FindFirstChild("Humanoid"):TakeDamage(29999999) | |
3514 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3515 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
3516 | --Debounces.Slashed = false | |
3517 | --end | |
3518 | end | |
3519 | end | |
3520 | elseif ht and hit:IsA("Hat") then | |
3521 | if hit.Parent.Name ~= p.Name then | |
3522 | if hit.Parent:FindFirstChild("Humanoid") then | |
3523 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3524 | Debounces.Slashed = true]]-- | |
3525 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2999999) | |
3526 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3527 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
3528 | --Debounces.Slashed = false | |
3529 | --end | |
3530 | end | |
3531 | end | |
3532 | end | |
3533 | end) | |
3534 | for i = 1, 8 do | |
3535 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
3536 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.7) | |
3537 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,.2)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.7) | |
3538 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.7) | |
3539 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
3540 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.6, -1.4) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.7) | |
3541 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3542 | if Debounces.on == false then break end | |
3543 | wait() | |
3544 | end | |
3545 | kik:disconnect() | |
3546 | if Debounces.CanAttack == false then | |
3547 | Debounces.CanAttack = true | |
3548 | Debounces.on = false | |
3549 | Debounces.NoIdl = false | |
3550 | end | |
3551 | end | |
3552 | end | |
3553 | end) | |
3554 | ---------------------------------------------------- | |
3555 | mouse.KeyDown:connect(function(key) | |
3556 | if key == "c" then | |
3557 | if Debounces.CanAttack == true then | |
3558 | Debounces.CanAttack = false | |
3559 | Debounces.NoIdl = true | |
3560 | Debounces.on = true | |
3561 | SIDZ = {"231917744", "231917742"} | |
3562 | PTZ = {0.7, 0.8, 0.9, 1} | |
3563 | for i = 1, 20 do | |
3564 | wait() | |
3565 | for i,v in pairs(char.Titanius:children()) do | |
3566 | if v:IsA("Part") or v:IsA("WedgePart") then | |
3567 | v.Transparency = 1 | |
3568 | end | |
3569 | end | |
3570 | end | |
3571 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
3572 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
3573 | local List = {} | |
3574 | for i,v in pairs(workspace:GetChildren())do | |
3575 | if v:IsA("Model")then | |
3576 | if v:findFirstChild("Torso")then | |
3577 | if v ~= char then | |
3578 | if(v.Torso.Position -Position).magnitude <= Distance then | |
3579 | table.insert(List,v) | |
3580 | end | |
3581 | end | |
3582 | end | |
3583 | end | |
3584 | end | |
3585 | return List | |
3586 | end | |
3587 | GroundPound() | |
3588 | for i = 1, 5 do | |
3589 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
3590 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
3591 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
3592 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
3593 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
3594 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3595 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3596 | if Debounces.on == false then break end | |
3597 | wait() | |
3598 | end | |
3599 | GroundPound() | |
3600 | for i = 1, 5 do | |
3601 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
3602 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
3603 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
3604 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
3605 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3606 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
3607 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3608 | if Debounces.on == false then break end | |
3609 | wait() | |
3610 | end | |
3611 | GroundPound() | |
3612 | for i = 1, 5 do | |
3613 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
3614 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
3615 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
3616 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
3617 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
3618 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3619 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3620 | if Debounces.on == false then break end | |
3621 | wait() | |
3622 | end | |
3623 | GroundPound() | |
3624 | for i = 1, 5 do | |
3625 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
3626 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
3627 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
3628 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
3629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3630 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
3631 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3632 | if Debounces.on == false then break end | |
3633 | wait() | |
3634 | end | |
3635 | GroundPound() | |
3636 | for i = 1, 5 do | |
3637 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
3638 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
3639 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
3640 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
3641 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
3642 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3643 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3644 | if Debounces.on == false then break end | |
3645 | wait() | |
3646 | end | |
3647 | GroundPound() | |
3648 | for i = 1, 5 do | |
3649 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
3650 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
3651 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
3652 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
3653 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
3654 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
3655 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3656 | if Debounces.on == false then break end | |
3657 | wait() | |
3658 | end | |
3659 | for i = 1, 18 do | |
3660 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4) | |
3661 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4) | |
3662 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
3663 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
3664 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
3665 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
3666 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3667 | if Debounces.on == false then break end | |
3668 | wait() | |
3669 | end | |
3670 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
3671 | if v:FindFirstChild('Humanoid') then | |
3672 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
3673 | v.Humanoid.PlatformStand = true | |
3674 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
3675 | end | |
3676 | end | |
3677 | x = Instance.new("Sound",char) | |
3678 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
3679 | x.Pitch = PTZ[math.random(1,#PTZ)] | |
3680 | x.Volume = 1 | |
3681 | wait(0.1) | |
3682 | x:Play() | |
3683 | Crater(hed,20) | |
3684 | for i = 1, 14 do | |
3685 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) | |
3686 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) | |
3687 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) | |
3688 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) | |
3689 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
3690 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
3691 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3692 | if Debounces.on == false then break end | |
3693 | wait() | |
3694 | end | |
3695 | if Debounces.CanAttack == false then | |
3696 | Debounces.CanAttack = true | |
3697 | Debounces.on = false | |
3698 | Debounces.NoIdl = false | |
3699 | for i = 1, 20 do | |
3700 | wait() | |
3701 | for i,v in pairs(char.Titanius:children()) do | |
3702 | if v:IsA("Part") or v:IsA("WedgePart") then | |
3703 | v.Transparency = 1 | |
3704 | end | |
3705 | end | |
3706 | end | |
3707 | end | |
3708 | end | |
3709 | end | |
3710 | end) | |
3711 | ----------------------------------------------------176349813 | |
3712 | mouse.KeyDown:connect(function(key) | |
3713 | if key == "b" then | |
3714 | hum.WalkSpeed = 10 | |
3715 | if Debounces.CanAttack == true then | |
3716 | Debounces.CanAttack = false | |
3717 | Debounces.NoIdl = true | |
3718 | Debounces.on = true | |
3719 | for i = 1,20 do | |
3720 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
3721 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
3722 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
3723 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
3724 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(-5)), 0.1) | |
3725 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(5)), 0.1) | |
3726 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
3727 | if Debounces.on == false then break end | |
3728 | wait() | |
3729 | end | |
3730 | wait(1) | |
3731 | v = Instance.new("Sound") | |
3732 | v.SoundId = "rbxassetid://199978176" | |
3733 | v.Parent = char | |
3734 | v.Looped = false | |
3735 | v.Pitch = 1 | |
3736 | v.Volume = 3 | |
3737 | wait(.01) | |
3738 | v:Play() | |
3739 | ||
3740 | if Daytime == true then | |
3741 | Daytime = false | |
3742 | l.TimeOfDay = 24 | |
3743 | else | |
3744 | Daytime = true | |
3745 | l.TimeOfDay = 12 | |
3746 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
3747 | end | |
3748 | ||
3749 | local Shockwave = function() | |
3750 | local rng1 = Instance.new("Part", char) | |
3751 | rng1.Anchored = true | |
3752 | rng1.BrickColor = BrickColor.new("Really black") | |
3753 | rng1.CanCollide = false | |
3754 | rng1.FormFactor = 3 | |
3755 | rng1.Name = "Ring" | |
3756 | rng1.Size = Vector3.new(1, 1, 1) | |
3757 | rng1.Transparency = 0.35 | |
3758 | rng1.TopSurface = 0 | |
3759 | rng1.BottomSurface = 0 | |
3760 | local rngm1 = Instance.new("SpecialMesh", rng) | |
3761 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3762 | rngm1.Scale = Vector3.new(10, 10, 1) | |
3763 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
3764 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
3765 | Wave.Name = "Shockwave" | |
3766 | Wave.BrickColor = BrickColor.new("Really black") | |
3767 | Wave.Size = Vector3.new(1, 1, 1) | |
3768 | Wave.Shape = "Ball" | |
3769 | Wave.CanCollide = false | |
3770 | Wave.Anchored = true | |
3771 | Wave.TopSurface = 0 | |
3772 | Wave.BottomSurface = 0 | |
3773 | Wave.Touched:connect(function(hit) | |
3774 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
3775 | local Occlude = true | |
3776 | local NotOccludes = { | |
3777 | char.Name; | |
3778 | "Wings"; | |
3779 | "Scythe"; | |
3780 | "Thingy"; | |
3781 | "Thingy2"; -- put all of the names in a table pls | |
3782 | } | |
3783 | for i,v in pairs(NotOccludes) do | |
3784 | if hit.Parent.Name == v then | |
3785 | Occlude = false | |
3786 | end | |
3787 | end | |
3788 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
3789 | if Occlude then | |
3790 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
3791 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
3792 | end | |
3793 | end | |
3794 | end) | |
3795 | ||
3796 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
3797 | ||
3798 | coroutine.wrap(function() | |
3799 | for i = 1, 20, 0.2 do | |
3800 | rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
3801 | rng1.Transparency = i/20 | |
3802 | wait() | |
3803 | end | |
3804 | wait() | |
3805 | rng1:Destroy() | |
3806 | end)() | |
3807 | ||
3808 | Delay(0, function() | |
3809 | ||
3810 | if Daytime == false then | |
3811 | for i = 1, 50, 1 do | |
3812 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3813 | Wave.CFrame = char.Torso.CFrame | |
3814 | local t = i / 50 | |
3815 | Wave.Transparency = t | |
3816 | wait() | |
3817 | end | |
3818 | else | |
3819 | for i = 1, 50, 1 do | |
3820 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3821 | Wave.CFrame = char.Torso.CFrame | |
3822 | local t = i / 50 | |
3823 | Wave.Transparency = t | |
3824 | wait() | |
3825 | end | |
3826 | end | |
3827 | Wave:Destroy() | |
3828 | end) | |
3829 | Delay(0, function() | |
3830 | while wait() do | |
3831 | if Wave ~= nil then | |
3832 | Wave.CFrame = char.Torso.CFrame | |
3833 | else | |
3834 | break | |
3835 | end | |
3836 | end | |
3837 | end) | |
3838 | end | |
3839 | Shockwave() | |
3840 | for i = 1, 15 do | |
3841 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
3842 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
3843 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
3844 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
3845 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
3846 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3847 | if Debounces.on == false then break end | |
3848 | wait() | |
3849 | end | |
3850 | for i = 1, 15 do | |
3851 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
3852 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
3853 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
3854 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
3855 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3856 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
3857 | if Debounces.on == false then break end | |
3858 | wait() | |
3859 | end | |
3860 | for i = 1, 15 do | |
3861 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
3862 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
3863 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
3864 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
3865 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
3866 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3867 | if Debounces.on == false then break end | |
3868 | wait() | |
3869 | end | |
3870 | for i = 1, 15 do | |
3871 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
3872 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
3873 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
3874 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
3875 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3876 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
3877 | if Debounces.on == false then break end | |
3878 | wait() | |
3879 | end | |
3880 | for i = 1, 15 do | |
3881 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
3882 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
3883 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
3884 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
3885 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
3886 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3887 | if Debounces.on == false then break end | |
3888 | wait() | |
3889 | end | |
3890 | for i = 1, 15 do | |
3891 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
3892 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
3893 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
3894 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
3895 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
3896 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
3897 | if Debounces.on == false then break end | |
3898 | wait() | |
3899 | end | |
3900 | wait(1.4) | |
3901 | Debounces.NoIdl = false | |
3902 | hum.WalkSpeed = 10 | |
3903 | Debounces.on = false | |
3904 | wait() | |
3905 | if Debounces.CanAttack == false then | |
3906 | Debounces.CanAttack = true | |
3907 | v:Destroy() | |
3908 | end | |
3909 | end | |
3910 | end | |
3911 | end) | |
3912 | ---------------------------------------------------- | |
3913 | Grab = false | |
3914 | mouse.KeyDown:connect(function(key) | |
3915 | if key == "z" then | |
3916 | Debounces.on = true | |
3917 | Debounces.NoIdl = true | |
3918 | if Grab == false then | |
3919 | gp = nil | |
3920 | con1=larm.Touched:connect(function(hit) -- this is grab | |
3921 | ht = hit.Parent | |
3922 | hum1=ht:FindFirstChild('Humanoid') | |
3923 | if hum1 ~= nil then | |
3924 | hum1.PlatformStand=true | |
3925 | gp = ht | |
3926 | Grab = true | |
3927 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0)) | |
3928 | asd.Parent = larm | |
3929 | asd.Name = "asd" | |
3930 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
3931 | elseif hum1 == nil then | |
3932 | con1:disconnect() | |
3933 | wait() return | |
3934 | end | |
3935 | end) | |
3936 | for i = 1, 18 do | |
3937 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) | |
3938 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
3939 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
3940 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) | |
3941 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
3942 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
3943 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9) | |
3944 | if Debounces.on == false then break end | |
3945 | wait() | |
3946 | end | |
3947 | con1:disconnect() | |
3948 | Debounces.on = false | |
3949 | Debounces.NoIdl = false | |
3950 | elseif Grab == true then | |
3951 | Grab = false | |
3952 | for i = 1, 20 do | |
3953 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) | |
3954 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) | |
3955 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
3956 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
3957 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
3958 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
3959 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
3960 | if Debounces.on == false then end | |
3961 | wait() | |
3962 | end | |
3963 | if gp ~= nil then | |
3964 | for i,v in pairs(larm:GetChildren()) do | |
3965 | if v.Name == "asd" and v:IsA("Weld") then | |
3966 | v:Remove() | |
3967 | end | |
3968 | end | |
3969 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
3970 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
3971 | bv.P = 125000000000000 | |
3972 | bv.velocity = char.Head.CFrame.lookVector * 1000 | |
3973 | for i = 1, 12 do | |
3974 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) | |
3975 | if Debounces.on == false then end | |
3976 | wait() | |
3977 | end | |
3978 | ht=nil | |
3979 | Spawn(function() | |
3980 | wait(0.5) | |
3981 | bv:Destroy() | |
3982 | end) | |
3983 | Debounces.on = false | |
3984 | Debounces.NoIdl = false | |
3985 | elseif ht == nil then wait() | |
3986 | Grab = false | |
3987 | Debounces.on = false | |
3988 | Debounces.NoIdl = false | |
3989 | end | |
3990 | end | |
3991 | end | |
3992 | end) | |
3993 | ---------------------------------------------------- | |
3994 | mouse.KeyDown:connect(function(key) | |
3995 | if string.byte(key) == 52 then | |
3996 | char.Humanoid.WalkSpeed = 100 | |
3997 | end | |
3998 | end) | |
3999 | mouse.KeyUp:connect(function(key) | |
4000 | if string.byte(key) == 52 then | |
4001 | char.Humanoid.WalkSpeed = 100 | |
4002 | end | |
4003 | end) | |
4004 | ---------------------------------------------------- | |
4005 | ||
4006 | -------------------------------------------------- | |
4007 | local animpose = "Idle" | |
4008 | local lastanimpose = "Idle" | |
4009 | local sine = 0 | |
4010 | local change = 1 | |
4011 | local val = 0 | |
4012 | local ffing = false | |
4013 | ---------------------------------------------------- | |
4014 | --[[x = Instance.new("Sound", char) | |
4015 | x.SoundId = "http://www.roblox.com/asset/?id=187922823" | |
4016 | x.Looped = true | |
4017 | x.Volume = 1 | |
4018 | x.Pitch = 1 | |
4019 | local footsteps = false]]-- | |
4020 | ------------------------------- | |
4021 | game:GetService("RunService").RenderStepped:connect(function() | |
4022 | --[[if char.Humanoid.Jump == true then | |
4023 | jump = true | |
4024 | else | |
4025 | jump = false | |
4026 | end]] | |
4027 | char.Humanoid.FreeFalling:connect(function(f) | |
4028 | if f then | |
4029 | ffing = true | |
4030 | else | |
4031 | ffing = false | |
4032 | end | |
4033 | end) | |
4034 | sine = sine + change | |
4035 | if jumpn == true then | |
4036 | animpose = "Jumping" | |
4037 | elseif ffing == true then | |
4038 | animpose = "Freefalling" | |
4039 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
4040 | animpose = "Idle" | |
4041 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
4042 | animpose = "Walking" | |
4043 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
4044 | animpose = "Running" | |
4045 | end | |
4046 | if animpose ~= lastanimpose then | |
4047 | sine = 0 | |
4048 | if Debounces.NoIdl == false then | |
4049 | if animpose == "Idle" then | |
4050 | for i = 1, 2 do | |
4051 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
4052 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
4053 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
4054 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
4055 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.1 - 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(14 - 5 * math.cos(sine / 10)), math.rad(20), 0), 0.4) | |
4056 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(0, math.rad(20), math.rad(0)), 0.05) | |
4057 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10 + 3 * math.cos(sine / 10)), math.rad(0), math.rad(0)), 0.05) | |
4058 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
4059 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
4060 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
4061 | end | |
4062 | elseif animpose == "Walking" then | |
4063 | for i = 1, 2 do | |
4064 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2) | |
4065 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2) | |
4066 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2) | |
4067 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2) | |
4068 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
4069 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
4070 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1) | |
4071 | end | |
4072 | elseif animpose == "Running" then | |
4073 | for i = 1, 2 do | |
4074 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2) | |
4075 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2) | |
4076 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) | |
4077 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) | |
4078 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) | |
4079 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) | |
4080 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
4081 | end | |
4082 | wait() | |
4083 | end | |
4084 | else | |
4085 | end | |
4086 | end | |
4087 | lastanimpose = animpose | |
4088 | if Debounces.NoIdl == false then | |
4089 | if animpose == "Idle" then | |
4090 | if stanceToggle == "Normal" then | |
4091 | change = 0.5 | |
4092 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.06 - 0.2 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
4093 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
4094 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.06 - 0.4 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
4095 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -0.4) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
4096 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.1 - 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(14 - 5 * math.cos(sine / 10)), math.rad(20), 0), 0.4) | |
4097 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4 - 0.32 * math.cos(sine / 10), 0) * CFrame.Angles(0, math.rad(20), math.rad(0)), 0.05) | |
4098 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10 + 3 * math.cos(sine / 10)), math.rad(0), math.rad(0)), 0.05) | |
4099 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2.1 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
4100 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.2 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
4101 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
4102 | elseif stanceToggle == "Sitting" then | |
4103 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, .9, -1) * CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(-50)), 0.2) | |
4104 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2) | |
4105 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2) | |
4106 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2) | |
4107 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2) | |
4108 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2) | |
4109 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
4110 | end | |
4111 | elseif animpose == "Walking" then | |
4112 | if stanceToggle == "Normal" then | |
4113 | change = 1 | |
4114 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.1, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
4115 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -0.4) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
4116 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
4117 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
4118 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -2, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
4119 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2.1 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
4120 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -1 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
4121 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
4122 | end | |
4123 | elseif animpose == "Running" then | |
4124 | change = 1 | |
4125 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.7,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
4126 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4,1.1,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
4127 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
4128 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/10), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.4) | |
4129 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
4130 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
4131 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1) | |
4132 | end | |
4133 | end | |
4134 | --[[if animpose == "Walking" then | |
4135 | if footsteps == false then | |
4136 | x:Play() | |
4137 | footsteps = true | |
4138 | end | |
4139 | x.Pitch = 1.1 | |
4140 | elseif animpose == "Idle" then | |
4141 | x:Stop() | |
4142 | footsteps = false | |
4143 | elseif animpose == "Running" then | |
4144 | x.Pitch = 1.2 | |
4145 | if footsteps == false then | |
4146 | x:Play() | |
4147 | footsteps = true | |
4148 | end | |
4149 | end]]-- | |
4150 | end) | |
4151 | --------------------------------------------------- | |
4152 | Reaper = Instance.new("Model",char) | |
4153 | Reaper.Name = "Reaper" | |
4154 | rh = Instance.new("Part") | |
4155 | rh.Name = "rh" | |
4156 | rh.Parent = Reaper | |
4157 | rh.Locked = true | |
4158 | rh.CanCollide = false | |
4159 | mesh = Instance.new("SpecialMesh") | |
4160 | rh.formFactor = "Symmetric" | |
4161 | mesh.MeshType = "FileMesh" | |
4162 | mesh.MeshId = "http://www.roblox.com/asset/?id=21057410" | |
4163 | mesh.TextureId = "http://www.roblox.com/asset/?id=250577405" | |
4164 | mesh.Scale = Vector3.new(2.05, 2.05, 2.05) | |
4165 | mesh.Parent = rh | |
4166 | local weld = Instance.new("Weld") | |
4167 | weld.Parent = rh | |
4168 | weld.Part0 = rh | |
4169 | weld.Part1 = char.Head | |
4170 | weld.C0 = CFrame.new(0, -0.045, -0.028)*CFrame.Angles(0, 0, 0) | |
4171 | -- ~ CL 2016 |