SHOW:
|
|
- or go back to the newest paste.
1 | - | Player=game:GetService("Players").LocalPlayer |
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 Player=game:GetService("Players").LocalPlayer | |
6 | Character=Player.Character | |
7 | PlayerGui=Player.PlayerGui | |
8 | Backpack=Player.Backpack | |
9 | Torso=Character.Torso | |
10 | Head=Character.Head | |
11 | Humanoid=Character.Humanoid | |
12 | LeftArm=Character["Left Arm"] | |
13 | LeftLeg=Character["Left Leg"] | |
14 | rarm=Character["Right Arm"] | |
15 | RightLeg=Character["Right Leg"] | |
16 | cam=game.Workspace.CurrentCamera | |
17 | LS=Torso["Left Shoulder"] | |
18 | LH=Torso["Left Hip"] | |
19 | RS=Torso["Right Shoulder"] | |
20 | RH=Torso["Right Hip"] | |
21 | Face = Head.face | |
22 | Neck=Torso.Neck | |
23 | it=Instance.new | |
24 | attacktype=1 | |
25 | vt=Vector3.new | |
26 | cf=CFrame.new | |
27 | euler=CFrame.fromEulerAnglesXYZ | |
28 | angles=CFrame.Angles | |
29 | cloaked=false | |
30 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
31 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
32 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
33 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
34 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
35 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
36 | RootPart=Character.HumanoidRootPart | |
37 | RootJoint=RootPart.RootJoint | |
38 | RootCF=euler(-1.57,0,3.14) | |
39 | attack = false | |
40 | bounce=false | |
41 | cooldown=false | |
42 | deeznuts=false | |
43 | attackdebounce = false | |
44 | deb=false | |
45 | equipped=true | |
46 | hand=false | |
47 | MMouse=nil | |
48 | combo=0 | |
49 | mana=0 | |
50 | trispeed=.5 | |
51 | attackmode='none' | |
52 | local idle=0 | |
53 | local Anim="Idle" | |
54 | local Effects={} | |
55 | local gun=false | |
56 | local shoot=false | |
57 | player=nil | |
58 | mana=0 | |
59 | cam = workspace.CurrentCamera | |
60 | ZTarget = nil | |
61 | RocketTarget = nil | |
62 | local m = Instance.new("Model",Character) | |
63 | m.Name = "WeaponModel" | |
64 | ||
65 | local m2 = Instance.new("Model",Character) | |
66 | m2.Name = "MetalMan" | |
67 | ||
68 | for i,v in pairs(Character.Head:children())do | |
69 | if v:IsA('Decal')then v:Destroy()end | |
70 | end | |
71 | ||
72 | ||
73 | Reaper = Instance.new("Model",Character) | |
74 | Reaper.Name = "Reaper" | |
75 | rh = Instance.new("Part") | |
76 | rh.Name = "rh" | |
77 | rh.Parent = Reaper | |
78 | rh.Locked = true | |
79 | rh.CanCollide = false | |
80 | mesh = Instance.new("SpecialMesh") | |
81 | rh.formFactor = "Symmetric" | |
82 | mesh.MeshType = "FileMesh" | |
83 | mesh.MeshId = "http://www.roblox.com/asset/?id=22149742" | |
84 | mesh.TextureId = "rbxassetid://188438213" | |
85 | mesh.Scale = Vector3.new(1,1,1) | |
86 | mesh.Parent = rh | |
87 | local weld = Instance.new("Weld") | |
88 | weld.Parent = rh | |
89 | weld.Part0 = rh | |
90 | weld.Part1 = Player.Character.Head | |
91 | weld.C0 = CFrame.new(0, 0, -0.010)*CFrame.Angles(0, 0, 0) | |
92 | ||
93 | mouse=Player:GetMouse() | |
94 | --save shoulders | |
95 | RSH, LSH=nil, nil | |
96 | --welds | |
97 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
98 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
99 | LH=Torso["Left Hip"] | |
100 | RH=Torso["Right Hip"] | |
101 | TorsoColor=Torso.BrickColor | |
102 | function NoOutline(Part) | |
103 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
104 | end | |
105 | player=Player | |
106 | ch=Character | |
107 | RSH=ch.Torso["Right Shoulder"] | |
108 | LSH=ch.Torso["Left Shoulder"] | |
109 | -- | |
110 | RSH.Parent=nil | |
111 | LSH.Parent=nil | |
112 | -- | |
113 | RW.Name="Right Shoulder" | |
114 | RW.Part0=ch.Torso | |
115 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
116 | RW.C1=cf(0, 0.5, 0) | |
117 | RW.Part1=ch["Right Arm"] | |
118 | RW.Parent=ch.Torso | |
119 | -- | |
120 | LW.Name="Left Shoulder" | |
121 | LW.Part0=ch.Torso | |
122 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
123 | LW.C1=cf(0, 0.5, 0) | |
124 | LW.Part1=ch["Left Arm"] | |
125 | LW.Parent=ch.Torso | |
126 | ||
127 | function swait(num) | |
128 | if num==0 or num==nil then | |
129 | game:service'RunService'.Heartbeat:wait(0) | |
130 | else | |
131 | for i=0,num do | |
132 | game:service'RunService'.Heartbeat:wait(0) | |
133 | end | |
134 | end | |
135 | end | |
136 | ||
137 | function nooutline(part) | |
138 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
139 | end | |
140 | ||
141 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
142 | local fp=it("Part") | |
143 | fp.formFactor=formfactor | |
144 | fp.Parent=parent | |
145 | fp.Reflectance=reflectance | |
146 | fp.Transparency=transparency | |
147 | fp.CanCollide=false | |
148 | fp.Locked=true | |
149 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
150 | fp.Name=name | |
151 | fp.Size=size | |
152 | fp.Position=Character.Torso.Position | |
153 | nooutline(fp) | |
154 | fp.Material=material | |
155 | fp:BreakJoints() | |
156 | return fp | |
157 | end | |
158 | ||
159 | function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
160 | local fp = it("Part") | |
161 | fp.formFactor = formfactor | |
162 | fp.Parent = parent | |
163 | fp.Reflectance = reflectance | |
164 | fp.Transparency = transparency | |
165 | fp.CanCollide = false | |
166 | fp.Locked=true | |
167 | fp.BrickColor = brickcolor | |
168 | fp.Name = name | |
169 | fp.Size = size | |
170 | fp.Position = EffectPart.Position | |
171 | NoOutline(fp) | |
172 | fp.Material="Neon" | |
173 | fp:BreakJoints() | |
174 | return fp | |
175 | end | |
176 | ||
177 | function wweld(parent,part0,part1,c0) | |
178 | local weld=it("Weld") | |
179 | weld.Parent=parent | |
180 | weld.Part0=part0 | |
181 | weld.Part1=part1 | |
182 | weld.C0=c0 | |
183 | return weld | |
184 | end | |
185 | ||
186 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
187 | local mesh=it(Mesh) | |
188 | mesh.Parent=part | |
189 | if Mesh=="SpecialMesh" then | |
190 | mesh.MeshType=meshtype | |
191 | mesh.MeshId=meshid | |
192 | end | |
193 | mesh.Offset=offset | |
194 | mesh.Scale=scale | |
195 | return mesh | |
196 | end | |
197 | ||
198 | function decal(part,face,texture,transparency,shiny,specular,name) | |
199 | local d=it("Decal",part) | |
200 | d.Shiny=shiny | |
201 | d.Face=face | |
202 | d.Specular=specular | |
203 | d.Transparency=transparency | |
204 | d.Texture=texture | |
205 | d.Name=name | |
206 | return d | |
207 | end | |
208 | ||
209 | function weld(parent,part0,part1,c0,c1) | |
210 | local weld=it("Weld") | |
211 | weld.Parent=parent | |
212 | weld.Part0=part0 | |
213 | weld.Part1=part1 | |
214 | weld.C0=c0 | |
215 | weld.C1=c1 | |
216 | return weld | |
217 | end | |
218 | ||
219 | so = function(id,par,vol,pit) | |
220 | coroutine.resume(coroutine.create(function() | |
221 | local sou = Instance.new("Sound",par or workspace) | |
222 | sou.Volume=vol | |
223 | sou.Pitch=pit or 1 | |
224 | sou.SoundId=id | |
225 | swait() | |
226 | sou:play() | |
227 | game:GetService("Debris"):AddItem(sou,6) | |
228 | end)) | |
229 | end | |
230 | ||
231 | function clerp(a,b,t) | |
232 | local qa = {QuaternionFromCFrame(a)} | |
233 | local qb = {QuaternionFromCFrame(b)} | |
234 | local ax, ay, az = a.x, a.y, a.z | |
235 | local bx, by, bz = b.x, b.y, b.z | |
236 | local _t = 1-t | |
237 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
238 | end | |
239 | ||
240 | function QuaternionFromCFrame(cf) | |
241 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
242 | local trace = m00 + m11 + m22 | |
243 | if trace > 0 then | |
244 | local s = math.sqrt(1 + trace) | |
245 | local recip = 0.5/s | |
246 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
247 | else | |
248 | local i = 0 | |
249 | if m11 > m00 then | |
250 | i = 1 | |
251 | end | |
252 | if m22 > (i == 0 and m00 or m11) then | |
253 | i = 2 | |
254 | end | |
255 | if i == 0 then | |
256 | local s = math.sqrt(m00-m11-m22+1) | |
257 | local recip = 0.5/s | |
258 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
259 | elseif i == 1 then | |
260 | local s = math.sqrt(m11-m22-m00+1) | |
261 | local recip = 0.5/s | |
262 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
263 | elseif i == 2 then | |
264 | local s = math.sqrt(m22-m00-m11+1) | |
265 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
266 | end | |
267 | end | |
268 | end | |
269 | ||
270 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
271 | local xs, ys, zs = x + x, y + y, z + z | |
272 | local wx, wy, wz = w*xs, w*ys, w*zs | |
273 | local xx = x*xs | |
274 | local xy = x*ys | |
275 | local xz = x*zs | |
276 | local yy = y*ys | |
277 | local yz = y*zs | |
278 | local zz = z*zs | |
279 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
280 | end | |
281 | ||
282 | function QuaternionSlerp(a, b, t) | |
283 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
284 | local startInterp, finishInterp; | |
285 | if cosTheta >= 0.0001 then | |
286 | if (1 - cosTheta) > 0.0001 then | |
287 | local theta = math.acos(cosTheta) | |
288 | local invSinTheta = 1/math.sin(theta) | |
289 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
290 | finishInterp = math.sin(t*theta)*invSinTheta | |
291 | else | |
292 | startInterp = 1-t | |
293 | finishInterp = t | |
294 | end | |
295 | else | |
296 | if (1+cosTheta) > 0.0001 then | |
297 | local theta = math.acos(-cosTheta) | |
298 | local invSinTheta = 1/math.sin(theta) | |
299 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
300 | finishInterp = math.sin(t*theta)*invSinTheta | |
301 | else | |
302 | startInterp = t-1 | |
303 | finishInterp = t | |
304 | end | |
305 | end | |
306 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
307 | end | |
308 | ||
309 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
310 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
311 | end | |
312 | ||
313 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
314 | if hit.Parent==nil then | |
315 | return | |
316 | end | |
317 | local h=hit.Parent:FindFirstChild("Humanoid") | |
318 | for _,v in pairs(hit.Parent:children()) do | |
319 | if v:IsA("Humanoid") then | |
320 | h=v | |
321 | end | |
322 | end | |
323 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
324 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
325 | end | |
326 | if hit.Parent.className=="Hat" then | |
327 | hit=hit.Parent.Parent:findFirstChild("Head") | |
328 | end | |
329 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
330 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
331 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
332 | return | |
333 | end]] | |
334 | -- hs(hit,1.2) | |
335 | local c=Instance.new("ObjectValue") | |
336 | c.Name="creator" | |
337 | c.Value=game:service("Players").LocalPlayer | |
338 | c.Parent=h | |
339 | game:GetService("Debris"):AddItem(c,.5) | |
340 | local Damage=math.random(minim,maxim) | |
341 | -- h:TakeDamage(Damage) | |
342 | local blocked=false | |
343 | local block=hit.Parent:findFirstChild("Block") | |
344 | if block~=nil then | |
345 | print(block.className) | |
346 | if block.className=="NumberValue" then | |
347 | if block.Value>0 then | |
348 | blocked=true | |
349 | if decreaseblock==nil then | |
350 | block.Value=block.Value-1 | |
351 | end | |
352 | end | |
353 | end | |
354 | if block.className=="IntValue" then | |
355 | if block.Value>0 then | |
356 | blocked=true | |
357 | if decreaseblock~=nil then | |
358 | block.Value=block.Value-1 | |
359 | end | |
360 | end | |
361 | end | |
362 | end | |
363 | if blocked==false then | |
364 | -- h:TakeDamage(Damage) | |
365 | h.Health=h.Health-Damage | |
366 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
367 | else | |
368 | h.Health=h.Health-(Damage/2) | |
369 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
370 | end | |
371 | if Type=="Knockdown" then | |
372 | local hum=hit.Parent.Humanoid | |
373 | hum.PlatformStand=true | |
374 | coroutine.resume(coroutine.create(function(HHumanoid) | |
375 | swait(1) | |
376 | HHumanoid.PlatformStand=false | |
377 | end),hum) | |
378 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
379 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
380 | local bodvol=Instance.new("BodyVelocity") | |
381 | bodvol.velocity=angle*knockback | |
382 | bodvol.P=0 | |
383 | bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003) | |
384 | bodvol.Parent=hit | |
385 | local rl=Instance.new("BodyAngularVelocity") | |
386 | rl.P=0 | |
387 | rl.maxTorque=Vector3.new(1,1,1)*1 | |
388 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
389 | rl.Parent=hit | |
390 | game:GetService("Debris"):AddItem(bodvol,2) | |
391 | game:GetService("Debris"):AddItem(rl,2) | |
392 | elseif Type=="Normal" then | |
393 | local vp=Instance.new("BodyVelocity") | |
394 | vp.P=0 | |
395 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
396 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
397 | if KnockbackType==1 then | |
398 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/4 | |
399 | elseif KnockbackType==2 then | |
400 | vp.velocity=Property.CFrame.lookVector*knockback | |
401 | end | |
402 | if knockback>0 then | |
403 | vp.Parent=hit.Parent.Torso | |
404 | end | |
405 | game:GetService("Debris"):AddItem(vp,.1) | |
406 | elseif Type=="Up" then | |
407 | local bodyVelocity=Instance.new("BodyVelocity") | |
408 | bodyVelocity.velocity=vt(0,60,0) | |
409 | bodyVelocity.P=0 | |
410 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
411 | bodyVelocity.Parent=hit | |
412 | game:GetService("Debris"):AddItem(bodyVelocity,.1) | |
413 | local rl=Instance.new("BodyAngularVelocity") | |
414 | rl.P=0 | |
415 | rl.maxTorque=Vector3.new(1,1,1)*1 | |
416 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
417 | rl.Parent=hit | |
418 | game:GetService("Debris"):AddItem(rl,2) | |
419 | elseif Type=="Snare" then | |
420 | local bp=Instance.new("BodyPosition") | |
421 | bp.P=0 | |
422 | bp.D=0 | |
423 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
424 | bp.position=hit.Parent.Torso.Position | |
425 | bp.Parent=hit.Parent.Torso | |
426 | game:GetService("Debris"):AddItem(bp,.1) | |
427 | elseif Type=="Target" then | |
428 | local Targetting = false | |
429 | if Targetting==false then | |
430 | ZTarget=hit.Parent.Torso | |
431 | coroutine.resume(coroutine.create(function(Part) | |
432 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
433 | swait(5) | |
434 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
435 | end),ZTarget) | |
436 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
437 | local targetgui=Instance.new("BillboardGui") | |
438 | targetgui.Parent=ZTarget | |
439 | targetgui.Size=UDim2.new(10,100,10,100) | |
440 | local targ=Instance.new("ImageLabel") | |
441 | targ.Parent=targetgui | |
442 | targ.BackgroundTransparency=1 | |
443 | targ.Image="rbxassetid://4834067" | |
444 | targ.Size=UDim2.new(1,0,1,0) | |
445 | cam.CameraType="Scriptable" | |
446 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
447 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
448 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
449 | Targetting=true | |
450 | RocketTarget=ZTarget | |
451 | for i=1,Property do | |
452 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
453 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
454 | swait() | |
455 | end | |
456 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
457 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
458 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
459 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
460 | end | |
461 | Targetting=false | |
462 | RocketTarget=nil | |
463 | targetgui.Parent=nil | |
464 | cam.CameraType="Custom" | |
465 | end | |
466 | end | |
467 | local debounce=Instance.new("BoolValue") | |
468 | debounce.Name="DebounceHit" | |
469 | debounce.Parent=hit.Parent | |
470 | debounce.Value=true | |
471 | game:GetService("Debris"):AddItem(debounce,1) | |
472 | c=Instance.new("ObjectValue") | |
473 | c.Name="creator" | |
474 | c.Value=Player | |
475 | c.Parent=h | |
476 | game:GetService("Debris"):AddItem(c,.5) | |
477 | ||
478 | end | |
479 | end | |
480 | ||
481 | for i,v in pairs(Character:children()) do | |
482 | if v:IsA("Accessory") then | |
483 | v:Destroy() | |
484 | end | |
485 | end | |
486 | for i,v in pairs(Character:children()) do | |
487 | if v:IsA("Hat") then | |
488 | v:Destroy() | |
489 | end | |
490 | end | |
491 | ||
492 | shirt = Instance.new("Shirt", Character) | |
493 | shirt.Name = "Shirt" | |
494 | pants = Instance.new("Pants", Character) | |
495 | pants.Name = "Pants" | |
496 | Character.Shirt.ShirtTemplate = "rbxassetid://752801935" | |
497 | Character.Pants.PantsTemplate = "rbxassetid://769974956" | |
498 | ||
499 | function ShowDamage(Pos, Text, Time, Color) | |
500 | local Rate = (1 / 30) | |
501 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
502 | local Text = (Text or "") | |
503 | local Time = (Time or 2) | |
504 | local Color = (Color or Color3.new(1, 0, 0)) | |
505 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
506 | EffectPart.Anchored = true | |
507 | local BillboardGui = Instance.new("BillboardGui") | |
508 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
509 | BillboardGui.Adornee = EffectPart | |
510 | local TextLabel = Instance.new("TextLabel") | |
511 | TextLabel.BackgroundTransparency = 1 | |
512 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
513 | TextLabel.Text = Text | |
514 | TextLabel.TextColor3 = Color | |
515 | TextLabel.TextScaled = true | |
516 | TextLabel.Font = Enum.Font.ArialBold | |
517 | TextLabel.Parent = BillboardGui | |
518 | BillboardGui.Parent = EffectPart | |
519 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
520 | EffectPart.Parent = game:GetService("Workspace") | |
521 | delay(0, function() | |
522 | local Frames = (Time / Rate) | |
523 | for Frame = 1, Frames do | |
524 | wait(Rate) | |
525 | local Percent = (Frame / Frames) | |
526 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
527 | TextLabel.TextTransparency = Percent | |
528 | end | |
529 | if EffectPart and EffectPart.Parent then | |
530 | EffectPart:Destroy() | |
531 | end | |
532 | end) | |
533 | end | |
534 | ||
535 | local RbxUtility = LoadLibrary("RbxUtility") | |
536 | local Create = RbxUtility.Create | |
537 | local co1 = 9 | |
538 | local co2 = 20 | |
539 | local co3 = 12 | |
540 | local co4 = 45 | |
541 | local cooldown1 = 0 | |
542 | local cooldown2 = 0 | |
543 | local cooldown3 = 0 | |
544 | local cooldown4 = 0 | |
545 | local skillcolorscheme = BrickColor.new("Pastel Blue").Color | |
546 | local scrn = Instance.new("ScreenGui", Player.PlayerGui) | |
547 | makeframe = function(par, trans, pos, size, color) | |
548 | local frame = Instance.new("Frame", par) | |
549 | frame.BackgroundTransparency = trans | |
550 | frame.BorderSizePixel = 0 | |
551 | frame.Position = pos | |
552 | frame.Size = size | |
553 | frame.BackgroundColor3 = color | |
554 | return frame | |
555 | end | |
556 | ||
557 | ||
558 | ||
559 | ||
560 | CreatePart = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size, MeshId) | |
561 | ||
562 | if PartType == "Part" then | |
563 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
564 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
565 | return Part | |
566 | else | |
567 | do | |
568 | if PartType == "WedgePart" then | |
569 | local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
570 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
571 | return Part | |
572 | end | |
573 | end | |
574 | end | |
575 | end | |
576 | ||
577 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
578 | ||
579 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
580 | if Mesh == "SpecialMesh" then | |
581 | Msh.MeshType = MeshType | |
582 | Msh.MeshId = MeshId | |
583 | end | |
584 | return Msh | |
585 | end | |
586 | ||
587 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
588 | ||
589 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
590 | return Weld | |
591 | end | |
592 | ||
593 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
594 | ||
595 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
596 | return Weld | |
597 | end | |
598 | } | |
599 | ||
600 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12)) | |
601 | handle.Transparency = 1 | |
602 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
603 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
604 | WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
605 | mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84)) | |
606 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
607 | WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
608 | mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811)) | |
609 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
610 | WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
611 | mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5)) | |
612 | --editing-- | |
613 | WedgeSpot = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
614 | WedgeWeld = CreateWeld(m, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
615 | mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5)) | |
616 | --editing-- | |
617 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
618 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
619 | EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
620 | EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
621 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1)) | |
622 | EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
623 | EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
624 | ||
625 | ||
626 | handle=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12)) | |
627 | handle.Transparency = 1 | |
628 | handleweld=weld(m2,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
629 | Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
630 | WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
631 | mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84)) | |
632 | Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
633 | WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
634 | mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811)) | |
635 | Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
636 | WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
637 | mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5)) | |
638 | --editing-- | |
639 | WedgeSpot = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
640 | WedgeWeld = CreateWeld(m2, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
641 | mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5)) | |
642 | --editing-- | |
643 | Hitbox=part(Enum.FormFactor.Custom,m2,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
644 | Hitboxweld=weld(m2,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
645 | EffectPart=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
646 | EffectPartweld=weld(m2,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
647 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1)) | |
648 | EffectPart2=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
649 | EffectPart2weld=weld(m2,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
650 | ||
651 | DarkRiftF=function(par) | |
652 | while lol == true do | |
653 | wait() | |
654 | local PWN={} | |
655 | for _,v in pairs(game.Workspace:children()) do | |
656 | if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then | |
657 | if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then | |
658 | table.insert(PWN,v.Torso) | |
659 | end | |
660 | end | |
661 | end | |
662 | for _,t in pairs(PWN) do | |
663 | local targ=par.Position-t.Position | |
664 | local Mag=targ.magnitude | |
665 | if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then | |
666 | if Mag<=30 then | |
667 | t.Parent.Humanoid:TakeDamage(.5) | |
668 | local rl=Instance.new("BodyAngularVelocity") | |
669 | rl.P=3000 | |
670 | rl.maxTorque=Vector3.new(500000,500000,500000)*5000 | |
671 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10 | |
672 | rl.Parent=t | |
673 | game:GetService("Debris"):AddItem(rl,.1) | |
674 | end | |
675 | if Mag<=20 then | |
676 | t.Parent.Humanoid:TakeDamage(.1) | |
677 | else | |
678 | local vl=Instance.new("BodyVelocity") | |
679 | vl.P=3000 | |
680 | vl.maxForce=Vector3.new(50000000000,50000000000,50000000000) | |
681 | vl.velocity=(t.Position-par.Position).unit*-(70/(Mag)) | |
682 | vl.Parent=t | |
683 | game:GetService("Debris"):AddItem(vl,.1) | |
684 | end | |
685 | end | |
686 | end | |
687 | wait(.08) | |
688 | end | |
689 | end | |
690 | ||
691 | function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) | |
692 | local msh1 = Instance.new("BlockMesh") | |
693 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
694 | local S=Instance.new("Part") | |
695 | S.Name="Effect" | |
696 | S.Material="Neon" | |
697 | S.formFactor=0 | |
698 | S.Size=Vector3.new(x1,y1,z1) | |
699 | S.BrickColor=color | |
700 | S.Reflectance = 0 | |
701 | S.TopSurface=0 | |
702 | S.BottomSurface=0 | |
703 | S.Transparency=0 | |
704 | S.Anchored=false | |
705 | S.CanCollide=false | |
706 | S.CFrame=part.CFrame | |
707 | S.Parent=game.Workspace | |
708 | msh1.Parent = S | |
709 | local W=Instance.new("Weld") | |
710 | W.Parent=S | |
711 | W.Part0=S | |
712 | W.Part1=part | |
713 | W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
714 | W.Parent=nil | |
715 | S.Anchored=true | |
716 | coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W) | |
717 | end | |
718 | ||
719 | local function BlackHole(parent,cframe) | |
720 | local effectsmsh = Instance.new("SpecialMesh") | |
721 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
722 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
723 | effectsmsh.Scale = Vector3.new(3,3,3) | |
724 | local effectsg = Instance.new("Part") | |
725 | effectsg.formFactor = 3 | |
726 | effectsg.CanCollide = false | |
727 | effectsg.Name = "Effect" | |
728 | effectsg.Locked = true | |
729 | effectsg.Transparency = 1 | |
730 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
731 | effectsg.Parent = parent | |
732 | effectsg.BrickColor = BrickColor.new("Royal purple") | |
733 | effectsg.Material="Neon" | |
734 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
735 | local Mesh = Instance.new("SpecialMesh") | |
736 | Mesh.Scale = Vector3.new(0.5,0.5,0.5) | |
737 | Mesh.MeshType = "Sphere" | |
738 | -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460" | |
739 | Part=Instance.new("Part") | |
740 | Part.Name="Effect" | |
741 | Part.formFactor=0 | |
742 | Part.Size=Vector3.new(1,1,1) | |
743 | Part.BrickColor=BrickColor.new("Royal purple") | |
744 | Part.Material="Neon" | |
745 | Part.Reflectance = 0 | |
746 | Part.TopSurface=0 | |
747 | Part.BottomSurface=0 | |
748 | Part.Transparency=0 | |
749 | Part.Anchored=true | |
750 | NoOutline(Part) | |
751 | Part.CanCollide=false | |
752 | Part.CFrame=cframe | |
753 | Part.Parent=parent | |
754 | Mesh.Parent = Part | |
755 | lol=true | |
756 | coroutine.resume(coroutine.create(function() | |
757 | DarkRiftF(Part) | |
758 | end)) | |
759 | for i=0,200 do | |
760 | wait() | |
761 | DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple")) | |
762 | Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2) | |
763 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
764 | end | |
765 | local fff=200 | |
766 | for i=0,100 do | |
767 | wait() | |
768 | DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple")) | |
769 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
770 | end | |
771 | for i=0,1,0.05 do | |
772 | wait() | |
773 | Part.Transparency=Part.Transparency+0.05 | |
774 | Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5) | |
775 | end | |
776 | lol=false | |
777 | Part.Parent=nil | |
778 | end),nil,nil) | |
779 | end | |
780 | ||
781 | function makeShockwave(height,color,speed,range,pulse) | |
782 | local range = range or 2000 | |
783 | local p = Instance.new("Part") | |
784 | p.Anchored = true | |
785 | p.CanCollide = false | |
786 | p.FormFactor = "Custom" | |
787 | p.BrickColor = color | |
788 | p.Parent = workspace | |
789 | local m = Instance.new("SpecialMesh",p) | |
790 | m.MeshId = "rbxassetid://3270017" | |
791 | local estimateSurvival = math.floor(range/speed) * 0.03 | |
792 | game:GetService("Debris"):AddItem(p,estimateSurvival) | |
793 | Spawn(function () | |
794 | for i = 1,range,speed do | |
795 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
796 | m.Scale = Vector3.new(i,i,i*height) | |
797 | p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0) | |
798 | wait() | |
799 | end | |
800 | p:Destroy() | |
801 | end) | |
802 | end | |
803 | ||
804 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
805 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
806 | prt.Anchored=true | |
807 | prt.CFrame=cframe | |
808 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1)) | |
809 | game:GetService("Debris"):AddItem(prt,2) | |
810 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
811 | for i=0,2,delay do | |
812 | wait() | |
813 | Part.CFrame=Part.CFrame | |
814 | Part.Transparency=i | |
815 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
816 | end | |
817 | Part.Parent=nil | |
818 | end),prt,msh) | |
819 | end | |
820 | ||
821 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
822 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
823 | prt.Anchored=true | |
824 | prt.CFrame=cframe | |
825 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
826 | game:GetService("Debris"):AddItem(prt,5) | |
827 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
828 | for i=0,1,delay do | |
829 | wait() | |
830 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
831 | Part.Transparency=i | |
832 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
833 | end | |
834 | Part.Parent=nil | |
835 | end),prt,msh) | |
836 | end | |
837 | ||
838 | local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
839 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt()) | |
840 | if Type~=2 then | |
841 | prt.Anchored=true | |
842 | end | |
843 | prt.CFrame=cframe | |
844 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
845 | game:GetService("Debris"):AddItem(prt,5) | |
846 | coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
847 | local wld=nil | |
848 | if dur==2 then | |
849 | wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0)) | |
850 | end | |
851 | for i=0,1,delay do | |
852 | swait() | |
853 | if dur==1 then | |
854 | Part.CFrame=Part.CFrame | |
855 | elseif dur==2 then | |
856 | wld.C0=cframe | |
857 | end | |
858 | Part.Transparency=i | |
859 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
860 | end | |
861 | Part.Parent=nil | |
862 | end),prt,msh,Type) | |
863 | end | |
864 | ||
865 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
866 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
867 | prt.Anchored=true | |
868 | prt.CFrame=cframe | |
869 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
870 | game:GetService("Debris"):AddItem(prt,5) | |
871 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
872 | for i=0,1,delay do | |
873 | swait() | |
874 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
875 | Part.Transparency=i | |
876 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
877 | end | |
878 | Part.Parent=nil | |
879 | end),prt,msh) | |
880 | end | |
881 | ||
882 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
883 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
884 | prt.Anchored=true | |
885 | prt.CFrame=cframe | |
886 | local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
887 | game:GetService("Debris"):AddItem(prt,5) | |
888 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
889 | for i=0,1,delay do | |
890 | wait() | |
891 | Part.CFrame=Part.CFrame | |
892 | Part.Transparency=i | |
893 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
894 | end | |
895 | Part.Parent=nil | |
896 | end),prt,msh) | |
897 | end | |
898 | ||
899 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
900 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt()) | |
901 | prt.Anchored=true | |
902 | prt.CFrame=cframe | |
903 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
904 | game:GetService("Debris"):AddItem(prt,5) | |
905 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
906 | end | |
907 | ||
908 | function Blast(parent) | |
909 | MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
910 | MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
911 | end | |
912 | ||
913 | function ChargeBall(parent,t) | |
914 | local counter=0 | |
915 | local size=1 | |
916 | for i=0,t,1 do | |
917 | swait() | |
918 | counter=counter+1 | |
919 | if counter%10==0 then | |
920 | if size==3 then | |
921 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
922 | elseif size==2 then | |
923 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
924 | end | |
925 | end | |
926 | if counter%5==0 then | |
927 | if size==1 then | |
928 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
929 | elseif size==2 then | |
930 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
931 | elseif size==3 then | |
932 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
933 | end | |
934 | end | |
935 | end | |
936 | end | |
937 | ||
938 | function ChargeBall2(parent,t) | |
939 | local counter=0 | |
940 | local size=1 | |
941 | for i=0,t,1 do | |
942 | swait() | |
943 | counter=counter+1 | |
944 | if counter%10==0 then | |
945 | if size==3 then | |
946 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
947 | elseif size==2 then | |
948 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
949 | end | |
950 | end | |
951 | if counter%5==0 then | |
952 | if size==1 then | |
953 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
954 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
955 | elseif size==2 then | |
956 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
957 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
958 | elseif size==3 then | |
959 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
960 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
961 | end | |
962 | end | |
963 | end | |
964 | end | |
965 | ||
966 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
967 | for _,c in pairs(workspace:children()) do | |
968 | local hum=c:findFirstChild("Humanoid") | |
969 | if hum~=nil then | |
970 | local head=c:findFirstChild("Torso") | |
971 | if head~=nil then | |
972 | local targ=head.Position-Part.Position | |
973 | local mag=targ.magnitude | |
974 | if mag<=dis and c.Name~=Character.Name then | |
975 | Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
976 | end | |
977 | end | |
978 | end | |
979 | end | |
980 | end | |
981 | ||
982 | ||
983 | function computeDirection(vec) | |
984 | local lenSquared = vec.magnitude * vec.magnitude | |
985 | local invSqrt = 1 / math.sqrt(lenSquared) | |
986 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
987 | end | |
988 | ||
989 | local rarmc1 = RW.C1 | |
990 | local larmc1 = LW.C1 | |
991 | local rlegc1 = RH.C1 | |
992 | local llegc1 = LH.C1 | |
993 | function PlayAnimationFromTable(table, speed, bool) | |
994 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
995 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
996 | RW.C0 = clerp(RW.C0, table[3], speed) | |
997 | LW.C0 = clerp(LW.C0, table[4], speed) | |
998 | RH.C0 = clerp(RH.C0, table[5], speed) | |
999 | LH.C0 = clerp(LH.C0, table[6], speed) | |
1000 | if bool == true then | |
1001 | if resetc1 == false then | |
1002 | resetc1 = true | |
1003 | RootJoint.C1 = RootJoint.C1 | |
1004 | Torso.Neck.C1 = Torso.Neck.C1 | |
1005 | RW.C1 = rarmc1 | |
1006 | LW.C1 = larmc1 | |
1007 | RH.C1 = rlegc1 | |
1008 | LH.C1 = llegc1 | |
1009 | end | |
1010 | end | |
1011 | end | |
1012 | ||
1013 | function GetsugaTenshou() | |
1014 | attack=true | |
1015 | local chargecounter = 0 | |
1016 | for i=0,1,.25 do | |
1017 | swait() | |
1018 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5) | |
1019 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1020 | end | |
1021 | chargecounter = chargecounter + 1 | |
1022 | wait(0.1) | |
1023 | local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"New Yeller","Wave",Vector3.new(1,1,1)) Wave.Parent = WedgeSpot | |
1024 | Wave.Material = 'Neon' | |
1025 | Wave.Transparency = 0 | |
1026 | Wave.Shape = "Ball" | |
1027 | Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0)) | |
1028 | local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*185 | |
1029 | so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9) | |
1030 | if Humanoid~=nil and bounce==false then | |
1031 | bounce=true | |
1032 | Wave.Touched:connect(function(hit) | |
1033 | if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then | |
1034 | Damagefunc(Wave,hit,5,8,math.random(3,3),"Normal",RootPart,.2,1) | |
1035 | end | |
1036 | end) | |
1037 | end | |
1038 | ||
1039 | ||
1040 | for i = 0,1,0.11 do | |
1041 | swait() | |
1042 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5) | |
1043 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1044 | end | |
1045 | attack=false | |
1046 | bounce=false | |
1047 | scfr=nil | |
1048 | end | |
1049 | ||
1050 | function Mugetsu() | |
1051 | attack=true | |
1052 | for i=0,1,.25 do | |
1053 | swait() | |
1054 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5) | |
1055 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1056 | end | |
1057 | wait(0.3) | |
1058 | spawn(function() | |
1059 | for i=1,55 do | |
1060 | wait() | |
1061 | local c = Character | |
1062 | local radius = 8 | |
1063 | local pos = WedgeSpot.CFrame | |
1064 | local clrz = {'Cyan','Teal'}; | |
1065 | for i = 1,2.7 do | |
1066 | local clr = clrz[math.random(1,#clrz)] | |
1067 | pos = WedgeSpot.CFrame | |
1068 | local p = Instance.new('Part',c) | |
1069 | local mafa = math.random(-360,360) | |
1070 | p.CanCollide = false | |
1071 | p.Size = Vector3.new(1,1,1) | |
1072 | local m = Instance.new('SpecialMesh',p) | |
1073 | m.MeshType = 'Sphere' | |
1074 | spawn(function() | |
1075 | for i = 0,50 do | |
1076 | local int,int2 = .05,.05 | |
1077 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
1078 | p.Transparency = p.Transparency + int2 | |
1079 | swait() | |
1080 | end | |
1081 | end) | |
1082 | p.BrickColor = BrickColor.new(clr) | |
1083 | p.Material = 'Neon' | |
1084 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
1085 | local bp = Instance.new('BodyPosition',p) | |
1086 | bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0) | |
1087 | bp.D = 100 | |
1088 | bp.P = 300 | |
1089 | bp.Position = pos.p | |
1090 | game.Debris:AddItem(p,10) | |
1091 | end | |
1092 | end | |
1093 | end) | |
1094 | wait(3) | |
1095 | local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","Wave",Vector3.new(10,10,10)) Wave.Parent = WedgeSpot | |
1096 | Wave.Material = "Neon" | |
1097 | Wave.Transparency = 0 | |
1098 | Wave.Shape = "Ball" | |
1099 | Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0)) | |
1100 | local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*180 | |
1101 | so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9) | |
1102 | ||
1103 | if Humanoid~=nil and bounce==false then | |
1104 | bounce=true | |
1105 | Wave.Touched:connect(function(hit) | |
1106 | if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then | |
1107 | Damagefunc(Wave,hit,80,90,math.random(3,3),"Normal",RootPart,.2,1) | |
1108 | end | |
1109 | end) | |
1110 | end | |
1111 | ||
1112 | ||
1113 | for i = 0,1,0.11 do | |
1114 | swait() | |
1115 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5) | |
1116 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1117 | end | |
1118 | attack=false | |
1119 | bounce=false | |
1120 | scfr=nil | |
1121 | end | |
1122 | mouse.KeyDown:connect(function(k) | |
1123 | k=k:lower() | |
1124 | if attack == false and k == 'e' then | |
1125 | Mugetsu() | |
1126 | end | |
1127 | if attack == false and k == 'q' then | |
1128 | GetsugaTenshou() | |
1129 | end | |
1130 | if attack == false and k == '1' and deeznuts==false then | |
1131 | deeznuts=true | |
1132 | MetalMan() | |
1133 | deeznuts=false | |
1134 | end | |
1135 | if attack == false and k == '0' and deeznuts==false then | |
1136 | cooldown=true | |
1137 | MegaMan() | |
1138 | deeznuts=false | |
1139 | end | |
1140 | end) | |
1141 | ||
1142 | ||
1143 | local sine = 0 | |
1144 | local change = 1 | |
1145 | local val = 0 | |
1146 | ||
1147 | while true do | |
1148 | swait() | |
1149 | sine = sine + change | |
1150 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1151 | local velderp=RootPart.Velocity.y | |
1152 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1153 | if equipped==true or equipped==false then | |
1154 | if attack==false then | |
1155 | idle=idle+1 | |
1156 | else | |
1157 | idle=0 | |
1158 | end | |
1159 | if idle>=500 then | |
1160 | if attack==false then | |
1161 | end | |
1162 | end | |
1163 | ||
1164 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1165 | Anim="Jump" | |
1166 | if attack==false then | |
1167 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1168 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1169 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3) | |
1170 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3) | |
1171 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1172 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1173 | end | |
1174 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1175 | Anim="Fall" | |
1176 | if attack==false then | |
1177 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1178 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3) | |
1179 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
1180 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
1181 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1182 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1183 | end | |
1184 | elseif torvel<1 and hitfloor~=nil then | |
1185 | Anim="Idle" | |
1186 | if attack==false then | |
1187 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1188 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1189 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3) | |
1190 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1191 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3) | |
1192 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3) | |
1193 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1194 | end | |
1195 | elseif torvel>2 and hitfloor~=nil then | |
1196 | Anim="Walk" | |
1197 | if attack==false then | |
1198 | change=3 | |
1199 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1200 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1201 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70)*math.cos(sine/16.5), math.rad(6), math.rad(5)), 0.2) | |
1202 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-70)*math.cos(sine/-16.5), math.rad(-6), math.rad(-5)), 0.2) | |
1203 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2)*math.cos(sine/16),math.rad(90),math.rad(0)),.3) | |
1204 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4*math.cos(sine/-16)),math.rad(-90),math.rad(0)),.3) | |
1205 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1206 | end | |
1207 | end | |
1208 | end | |
1209 | if #Effects>0 then | |
1210 | for e=1,#Effects do | |
1211 | if Effects[e]~=nil then | |
1212 | local Thing=Effects[e] | |
1213 | if Thing~=nil then | |
1214 | local Part=Thing[1] | |
1215 | local Mode=Thing[2] | |
1216 | local Delay=Thing[3] | |
1217 | local IncX=Thing[4] | |
1218 | local IncY=Thing[5] | |
1219 | local IncZ=Thing[6] | |
1220 | if Thing[1].Transparency<=1 then | |
1221 | if Thing[2]=="Block1" then | |
1222 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1223 | Mesh=Thing[1].Mesh | |
1224 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1225 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1226 | elseif Thing[2]=="Cylinder" then | |
1227 | Mesh=Thing[1].Mesh | |
1228 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1229 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1230 | elseif Thing[2]=="Blood" then | |
1231 | Mesh=Thing[7] | |
1232 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
1233 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1234 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1235 | elseif Thing[2]=="Elec" then | |
1236 | Mesh=Thing[1].Mesh | |
1237 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
1238 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1239 | elseif Thing[2]=="Disappear" then | |
1240 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1241 | end | |
1242 | else | |
1243 | Part.Parent=nil | |
1244 | table.remove(Effects,e) | |
1245 | end | |
1246 | end | |
1247 | end | |
1248 | end | |
1249 | end | |
1250 | end |