SHOW:
|
|
- or go back to the newest paste.
1 | - | Player = game.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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end Player = game.Players.LocalPlayer | |
6 | Character=Player.Character | |
7 | mouse = Player:GetMouse() | |
8 | --Lava=script.Parent.Parent.Damager | |
9 | it=Instance.new | |
10 | vt=Vector3.new | |
11 | cf=CFrame.new | |
12 | euler=CFrame.fromEulerAnglesXYZ | |
13 | angles=CFrame.Angles | |
14 | necko=cf(0,-7,0,-1,-0,-0,0,0,1,0,1,0) | |
15 | necko2=cf(0,3.5,0,-1,-0,-0,0,0,1,0,1,0) | |
16 | attack=true | |
17 | so = function(id,par,vol,pit) | |
18 | coroutine.resume(coroutine.create(function() | |
19 | local sou = Instance.new("Sound",par or workspace) | |
20 | sou.Volume=vol | |
21 | sou.Pitch=pit or 1 | |
22 | sou.SoundId=id | |
23 | wait() | |
24 | sou:play() | |
25 | game:GetService("Debris"):AddItem(sou,6) | |
26 | end)) | |
27 | end | |
28 | ||
29 | for _,v in pairs(Character:children()) do | |
30 | if v.className=="Part" then | |
31 | v.Anchored=false | |
32 | end | |
33 | end | |
34 | ||
35 | function NoOutline(Part) | |
36 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
37 | end | |
38 | ||
39 | for _,v in pairs(Character:children()) do | |
40 | if v:IsA("Part") then | |
41 | v:Remove() | |
42 | elseif v:IsA("Humanoid") then | |
43 | v:Remove() | |
44 | end | |
45 | end | |
46 | wait(1) | |
47 | local Head = Instance.new("Part") | |
48 | Head.formFactor = 3 | |
49 | Head.CanCollide = true | |
50 | Head.Name = "Head" | |
51 | Head.Locked = true | |
52 | Head.Size = Vector3.new(13.697, 6.848, 6.848) | |
53 | Head.Parent = Character | |
54 | Head.Material = "Granite" | |
55 | ||
56 | Head.BrickColor = BrickColor.new("Black") | |
57 | local smh = Instance.new("SpecialMesh",Head) | |
58 | smh.Scale = Vector3.new(1.3, 1.3, 1.3) | |
59 | local kek = Instance.new("PointLight", Head) | |
60 | kek.Range = 60 | |
61 | local Torso = Instance.new("Part") | |
62 | Torso.formFactor = 3 | |
63 | Torso.CanCollide = true | |
64 | Torso.Name = "Torso" | |
65 | Torso.Locked = true | |
66 | Torso.Size = Vector3.new(13.697, 13.697, 6.848) | |
67 | Torso.Parent = Character | |
68 | Torso.BrickColor = BrickColor.new("Neon orange") | |
69 | Torso.Material = "Granite" | |
70 | ||
71 | local msht = Instance.new("BlockMesh",Torso) | |
72 | local RightArm = Instance.new("Part") | |
73 | RightArm.formFactor = 3 | |
74 | RightArm.CanCollide = true | |
75 | RightArm.Name = "Right Arm" | |
76 | RightArm.Locked = true | |
77 | RightArm.Size = Vector3.new(6.848, 13.697, 6.848) | |
78 | RightArm.Parent = Character | |
79 | RightArm.Material = "Granite" | |
80 | RightArm.BrickColor = BrickColor.new("Neon orange") | |
81 | ||
82 | local mshra = Instance.new("BlockMesh",RightArm) | |
83 | local LeftArm = Instance.new("Part") | |
84 | LeftArm.formFactor = 3 | |
85 | LeftArm.CanCollide = true | |
86 | LeftArm.Name = "Left Arm" | |
87 | LeftArm.Locked = true | |
88 | LeftArm.Size = Vector3.new(6.848, 13.697, 6.848) | |
89 | LeftArm.Parent = Character | |
90 | LeftArm.Material = "Granite" | |
91 | LeftArm.BrickColor = BrickColor.new("Neon orange") | |
92 | ||
93 | local mshla = Instance.new("BlockMesh",LeftArm) | |
94 | local Helmet = Instance.new("Part") | |
95 | Helmet.formFactor = 3 | |
96 | Helmet.CanCollide = true | |
97 | Helmet.Name = "Helmet" | |
98 | Helmet.Locked = true | |
99 | Helmet.Size = Vector3.new(2, 2, 2) | |
100 | Helmet.Parent = Character | |
101 | ||
102 | local smh = Instance.new("SpecialMesh",Helmet) | |
103 | smh.Scale = Vector3.new(7, 7, 7) | |
104 | smh.MeshId = "http://www.roblox.com/asset/?id=47623768" | |
105 | smh.TextureId = "http://www.roblox.com/asset/?id=47623755" | |
106 | ||
107 | local Damager = Instance.new("Part") | |
108 | Damager.formFactor = 3 | |
109 | Damager.CanCollide = false | |
110 | Damager.Name = "Damager" | |
111 | Damager.Anchored = true | |
112 | Damager.Locked = true | |
113 | Damager.Material = "Granite" | |
114 | Damager.BrickColor = BrickColor.new("Bright red") | |
115 | Damager.Size = Vector3.new(54, 1, 54) | |
116 | Damager.Parent = Character | |
117 | Damager.CFrame = Torso.CFrame * CFrame.new(0,0.2,-40) | |
118 | local smh = Instance.new("BlockMesh",Damager) | |
119 | smh.Scale = Vector3.new(1, 1.3, 1) | |
120 | wait(1) | |
121 | Head=Character.Head | |
122 | Torso=Character.Torso | |
123 | LeftArm=Character["Left Arm"] | |
124 | RightArm=Character["Right Arm"] | |
125 | Helmet=Character.Helmet | |
126 | ||
127 | ||
128 | ||
129 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
130 | local fp = it("Part") | |
131 | fp.formFactor = formfactor | |
132 | fp.Parent = parent | |
133 | fp.Reflectance = reflectance | |
134 | fp.Transparency = transparency | |
135 | fp.CanCollide = false | |
136 | fp.Locked=true | |
137 | fp.BrickColor = brickcolor | |
138 | fp.Name = name | |
139 | fp.Size = size | |
140 | fp.Position = Torso.Position | |
141 | NoOutline(fp) | |
142 | fp.BottomSurface="Smooth" | |
143 | fp.TopSurface="Smooth" | |
144 | fp:BreakJoints() | |
145 | return fp | |
146 | end | |
147 | ||
148 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
149 | local mesh = it(Mesh) | |
150 | mesh.Parent = part | |
151 | if Mesh=="SpecialMesh" then | |
152 | mesh.MeshType = meshtype | |
153 | mesh.MeshId = meshid | |
154 | end | |
155 | mesh.Offset=offset | |
156 | mesh.Scale=scale | |
157 | return mesh | |
158 | end | |
159 | ||
160 | function weld(parent,part0,part1,c0) | |
161 | local weld = it("Weld") | |
162 | weld.Parent = parent | |
163 | weld.Part0 = part0 | |
164 | weld.Part1 = part1 | |
165 | weld.C0 = c0 | |
166 | return weld | |
167 | end | |
168 | ||
169 | ||
170 | function findNearestTorso(pos) | |
171 | local list = game.Workspace:children() | |
172 | local torso = nil | |
173 | local dist = 130 | |
174 | local temp = nil | |
175 | local human = nil | |
176 | local temp2 = nil | |
177 | for x = 1, #list do | |
178 | temp2 = list[x] | |
179 | if (temp2.className == "Model") and (temp2.Name~=Character) then | |
180 | temp = temp2:findFirstChild("Torso") | |
181 | human = temp2:findFirstChild("Humanoid") | |
182 | print(human) | |
183 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
184 | if (temp.Position - pos).magnitude < dist then | |
185 | torso = temp | |
186 | dist = (temp.Position - pos).magnitude | |
187 | end | |
188 | end | |
189 | end | |
190 | end | |
191 | return torso,dist | |
192 | end | |
193 | ||
194 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
195 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
196 | prt.Anchored=true | |
197 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
198 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
199 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
200 | for i=0,1,delay do | |
201 | wait() | |
202 | Part.CFrame=Part.CFrame | |
203 | Part.Transparency=i | |
204 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
205 | end | |
206 | Part.Parent=nil | |
207 | end),prt,msh) | |
208 | end | |
209 | ||
210 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
211 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
212 | prt.Anchored=true | |
213 | prt.CFrame=cframe | |
214 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
215 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
216 | for i=0,1,delay do | |
217 | wait() | |
218 | Part.CFrame=Part.CFrame | |
219 | Part.Transparency=i | |
220 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
221 | end | |
222 | Part.Parent=nil | |
223 | end),prt,msh) | |
224 | end | |
225 | ||
226 | function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
227 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
228 | prt.Anchored=true | |
229 | prt.CFrame=cframe | |
230 | --"http://www.roblox.com/asset/?id=168892465" | |
231 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
232 | game:GetService("Debris"):AddItem(prt,2) | |
233 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
234 | for i=0,1,delay do | |
235 | wait() | |
236 | Part.CFrame=Part.CFrame | |
237 | Part.Transparency=i | |
238 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
239 | end | |
240 | Part.Parent=nil | |
241 | end),prt,msh) | |
242 | end | |
243 | ||
244 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
245 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
246 | prt.Anchored=true | |
247 | prt.CFrame=cframe | |
248 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
249 | game:GetService("Debris"):AddItem(prt,2) | |
250 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
251 | for i=0,1,delay do | |
252 | wait() | |
253 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
254 | Part.Transparency=i | |
255 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
256 | end | |
257 | Part.Parent=nil | |
258 | end),prt,msh) | |
259 | end | |
260 | ||
261 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property) | |
262 | if hit.Parent==nil then | |
263 | return | |
264 | end | |
265 | CPlayer=Bin | |
266 | h=hit.Parent:FindFirstChild("Humanoid") | |
267 | for _,v in pairs(hit.Parent:children()) do | |
268 | if v:IsA("Humanoid") then | |
269 | h=v | |
270 | end | |
271 | end | |
272 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
273 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
274 | return | |
275 | end]] | |
276 | -- hs(hit,1.2) | |
277 | c=Instance.new("ObjectValue") | |
278 | c.Name="creator" | |
279 | c.Value=game:service("Players").LocalPlayer | |
280 | c.Parent=h | |
281 | game:GetService("Debris"):AddItem(c,.5) | |
282 | Damage=math.random(minim,maxim) | |
283 | -- h:TakeDamage(Damage) | |
284 | blocked=false | |
285 | block=hit.Parent:findFirstChild("Block") | |
286 | if block~=nil then | |
287 | if block.className=="IntValue" then | |
288 | if block.Value>0 then | |
289 | blocked=true | |
290 | block.Value=block.Value-1 | |
291 | end | |
292 | end | |
293 | end | |
294 | if blocked==false then | |
295 | h:TakeDamage(Damage) | |
296 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
297 | else | |
298 | h:TakeDamage(Damage/2) | |
299 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Bright blue")) | |
300 | end | |
301 | if Type=="Knockdown" then | |
302 | hum=hit.Parent.Humanoid | |
303 | hum.PlatformStand=true | |
304 | coroutine.resume(coroutine.create(function(HHumanoid) | |
305 | wait(1) | |
306 | HHumanoid.PlatformStand=false | |
307 | end),hum) | |
308 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
309 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
310 | local bodvol=Instance.new("BodyVelocity") | |
311 | bodvol.velocity=angle*knockback | |
312 | bodvol.P=5000 | |
313 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
314 | bodvol.Parent=hit | |
315 | rl=Instance.new("BodyAngularVelocity") | |
316 | rl.P=3000 | |
317 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
318 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
319 | rl.Parent=hit | |
320 | game:GetService("Debris"):AddItem(bodvol,.5) | |
321 | game:GetService("Debris"):AddItem(rl,.5) | |
322 | elseif Type=="Normal" then | |
323 | vp=Instance.new("BodyVelocity") | |
324 | vp.P=500 | |
325 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
326 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
327 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
328 | if knockback>0 then | |
329 | vp.Parent=hit.Parent.Torso | |
330 | end | |
331 | game:GetService("Debris"):AddItem(vp,.5) | |
332 | elseif Type=="Up" then | |
333 | local bodyVelocity=Instance.new("BodyVelocity") | |
334 | bodyVelocity.velocity=vt(0,20,0) | |
335 | bodyVelocity.P=5000 | |
336 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
337 | bodyVelocity.Parent=hit | |
338 | game:GetService("Debris"):AddItem(bodyVelocity,.5) | |
339 | elseif Type=="Snare" then | |
340 | bp=Instance.new("BodyPosition") | |
341 | bp.P=2000 | |
342 | bp.D=100 | |
343 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
344 | bp.position=hit.Parent.Torso.Position | |
345 | bp.Parent=hit.Parent.Torso | |
346 | game:GetService("Debris"):AddItem(bp,1) | |
347 | elseif Type=="Freeze" then | |
348 | BodPos=Instance.new("BodyPosition") | |
349 | BodPos.P=50000 | |
350 | BodPos.D=1000 | |
351 | BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
352 | BodPos.position=hit.Parent.Torso.Position | |
353 | BodPos.Parent=hit.Parent.Torso | |
354 | BodGy = it("BodyGyro") | |
355 | BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
356 | BodGy.P = 20e+003 | |
357 | BodGy.Parent=hit.Parent.Torso | |
358 | BodGy.cframe = hit.Parent.Torso.CFrame | |
359 | hit.Parent.Torso.Anchored=true | |
360 | coroutine.resume(coroutine.create(function(Part) | |
361 | wait(1.5) | |
362 | Part.Anchored=false | |
363 | end),hit.Parent.Torso) | |
364 | game:GetService("Debris"):AddItem(BodPos,3) | |
365 | game:GetService("Debris"):AddItem(BodGy,3) | |
366 | end | |
367 | c=Instance.new("ObjectValue") | |
368 | c.Name="creator" | |
369 | c.Value=Player | |
370 | c.Parent=h | |
371 | game:GetService("Debris"):AddItem(c,.5) | |
372 | CRIT=false | |
373 | hitDeb=true | |
374 | AttackPos=6 | |
375 | end | |
376 | end | |
377 | ||
378 | showDamage=function(Char,Dealt,du,Color) | |
379 | m=Instance.new("Model") | |
380 | m.Name=tostring(Dealt) | |
381 | h=Instance.new("Humanoid") | |
382 | h.Health=0 | |
383 | h.MaxHealth=0 | |
384 | h.Parent=m | |
385 | c=Instance.new("Part") | |
386 | c.Transparency=0 | |
387 | c.BrickColor=Color | |
388 | c.Name="Head" | |
389 | c.TopSurface=0 | |
390 | c.BottomSurface=0 | |
391 | c.formFactor="Plate" | |
392 | c.Size=Vector3.new(1,.4,1) | |
393 | ms=Instance.new("CylinderMesh") | |
394 | ms.Scale=Vector3.new(.8,.8,.8) | |
395 | if CRIT==true then | |
396 | ms.Scale=Vector3.new(1,1.25,1) | |
397 | end | |
398 | ms.Parent=c | |
399 | c.Reflectance=0 | |
400 | Instance.new("BodyGyro").Parent=c | |
401 | c.Parent=m | |
402 | if Char:findFirstChild("Head")~=nil then | |
403 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
404 | else | |
405 | c.CFrame=CFrame.new(Char["Torso"].CFrame.p+Vector3.new(0,1.5,0)) | |
406 | end | |
407 | f=Instance.new("BodyPosition") | |
408 | f.P=2000 | |
409 | f.D=100 | |
410 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
411 | f.position=c.Position+Vector3.new(0,3,0) | |
412 | f.Parent=c | |
413 | game:GetService("Debris"):AddItem(m,.5+du) | |
414 | c.CanCollide=false | |
415 | m.Parent=workspace | |
416 | c.CanCollide=false | |
417 | end | |
418 | ||
419 | colr = BrickColor.new("Flame reddish orange") | |
420 | ||
421 | con = Damager.Touched:connect(function(part) | |
422 | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Name~=Character.Name then | |
423 | if part:FindFirstChild("fiar") == nil and part:FindFirstChild("glow") == nil then | |
424 | fiar = Instance.new("Fire") | |
425 | fiar.Name = "fiar" | |
426 | fiar.Parent = part | |
427 | glow = Instance.new("PointLight") | |
428 | glow.Name = "glow" | |
429 | glow.Parent = part | |
430 | glow.Color = colr.Color | |
431 | end | |
432 | else | |
433 | end | |
434 | end) | |
435 | ||
436 | ||
437 | local roar=Instance.new("Sound") | |
438 | roar.Parent=Head | |
439 | roar.Volume=1 | |
440 | roar.Pitch=1 | |
441 | roar.SoundId="http://www.roblox.com/asset/?id=172088894" | |
442 | local roar2=Instance.new("Sound") | |
443 | roar2.Parent=Head | |
444 | roar2.Volume=1 | |
445 | roar2.Pitch=1 | |
446 | roar2.SoundId="http://www.roblox.com/asset/?id=172088894" | |
447 | local Neck=weld(Torso,Head,Torso,cf(0,0,0)) | |
448 | Neck.C0=necko*euler(0.2,0,0) | |
449 | Neck.C1=necko2 | |
450 | local Helmweld=weld(Torso,Head,Helmet,cf(0,3.8,0.5)*euler(0,3.14,0)) | |
451 | local RW=weld(Torso,Torso,RightArm,cf(0,0,0)) | |
452 | local LW=weld(Torso,Torso,LeftArm,cf(0,0,0)) | |
453 | RW.C0=cf(10,1,3)*euler(-0.8,0,0.2) | |
454 | RW.C1=cf(0,1,0) | |
455 | LW.C0=cf(-10,1,3)*euler(-0.8,0,-0.2) | |
456 | LW.C1=cf(0,1,0) | |
457 | Torso.CFrame=Torso.CFrame*cf(0,10,0) | |
458 | local BodPos=it("BodyPosition") | |
459 | BodPos.P=50000 | |
460 | BodPos.D=1000 | |
461 | BodPos.maxForce=vt(math.huge,math.huge,math.huge) | |
462 | BodPos.position=Damager.Position+vt(0,7,0) | |
463 | BodPos.Parent=Torso | |
464 | local BodGy=it("BodyGyro") | |
465 | BodGy.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge | |
466 | BodGy.P=20e+003 | |
467 | BodGy.Parent=Torso | |
468 | BodGy.cframe=Torso.CFrame | |
469 | --BodGy.cframe=cf(0,0,0)*euler(0,3.14*i,0) | |
470 | for _,v in pairs(Character:children()) do | |
471 | if v.className=="Part" then | |
472 | v.Transparency=1 | |
473 | end | |
474 | end | |
475 | --[[dur=script.Parent.Parent[" "] | |
476 | Hum=dur.Humanoid | |
477 | while Hum.Health>0 do | |
478 | wait() | |
479 | end]] | |
480 | local Humanoid=Instance.new("Humanoid") | |
481 | Humanoid.Parent=Character | |
482 | Humanoid.MaxHealth=4000 | |
483 | Humanoid.Health=Humanoid.MaxHealth | |
484 | coroutine.resume(coroutine.create(function() | |
485 | for i=1,50 do | |
486 | Humanoid.MaxHealth=4000 | |
487 | Humanoid.Health=4000 | |
488 | wait() | |
489 | end | |
490 | --_G["AddHumanoidDamageTag"](Humanoid,workspace.Map,1,"Ranged","Fire","Magic") | |
491 | end)) | |
492 | for _,v in pairs(Character:children()) do | |
493 | if v.className=="Part" then | |
494 | v.Transparency=0 | |
495 | end | |
496 | end | |
497 | ||
498 | function Fireball() | |
499 | attack=false | |
500 | for i=0,1,0.1 do | |
501 | wait() | |
502 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
503 | RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i) | |
504 | RW.C1=cf(0,1+4*i,0) | |
505 | LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i) | |
506 | LW.C1=cf(0,1+4*i,0) | |
507 | end | |
508 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
509 | refwld=weld(refprt,refprt,Torso,cf(0,-15,0)) | |
510 | game:GetService("Debris"):AddItem(refprt,4) | |
511 | fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10)) | |
512 | fireball.Anchored = true | |
513 | fireball.CFrame = refprt.CFrame | |
514 | frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
515 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
516 | prop=Instance.new("RocketPropulsion") | |
517 | prop.MaxSpeed=500000 | |
518 | prop.CartoonFactor=0 | |
519 | prop.MaxThrust=1000000 | |
520 | prop.Parent=fireball | |
521 | prop.Target=refprt | |
522 | prop.ThrustD=1.5 | |
523 | prop.TurnD=0 | |
524 | prop.TurnP=0 | |
525 | prop:Fire() | |
526 | fire=Instance.new("Fire") | |
527 | fire.Parent=fireball | |
528 | fire.Color=Color3.new(255/255,127/255,0) | |
529 | fire.SecondaryColor=Color3.new(0,0,0) | |
530 | fire.Size=5 | |
531 | fire.Heat=20 | |
532 | n=2 | |
533 | for i=0,1,0.05 do | |
534 | wait() | |
535 | frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i) | |
536 | refwld.C0=cf(0,-15-5*i,0) | |
537 | fire.Size=5+10*i | |
538 | fire.Heat=20+10*i | |
539 | Neck.C0=necko*euler(-0.6-0.1*i*n,0,0) | |
540 | RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n) | |
541 | RW.C1=cf(0,5,0) | |
542 | LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n) | |
543 | LW.C1=cf(0,5,0) | |
544 | n=n-0.05 | |
545 | end | |
546 | n=2 | |
547 | for i=0,1,0.1 do | |
548 | wait() | |
549 | frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i) | |
550 | fire.Size=15+5*i | |
551 | fire.Heat=30+10*i | |
552 | Neck.C0=necko*euler(-0.7-0.1*i*n,0,0) | |
553 | RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n) | |
554 | RW.C1=cf(0,5,0) | |
555 | LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n) | |
556 | LW.C1=cf(0,5,0) | |
557 | n=n-0.1 | |
558 | end | |
559 | refprt.Parent=nil | |
560 | debounce=false | |
561 | con1=fireball.Touched:connect(function(hit) | |
562 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Effect" then | |
563 | debounce=true | |
564 | fireball.Parent=nil | |
565 | CF=fireball.CFrame | |
566 | POS=fireball.Position | |
567 | b=Instance.new("Explosion") | |
568 | b.Parent=workspace | |
569 | b.Position=fireball.Position | |
570 | b.BlastPressure=0 | |
571 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
572 | refprt2.CFrame=CF | |
573 | refprt2.Anchored=true | |
574 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
575 | game:GetService("Debris"):AddItem(refprt2,1) | |
576 | for _,c in pairs(workspace:children()) do | |
577 | local hum=c:findFirstChild("Humanoid") | |
578 | if hum~=nil then | |
579 | local head=c:findFirstChild("Torso") | |
580 | if head~=nil then | |
581 | local targ=head.Position-POS | |
582 | local mag=targ.magnitude | |
583 | if mag<=20 and c.Name~=Character.Name then | |
584 | Damagefunc(head,25,40,math.random(50,100),"Knockdown",refprt2) | |
585 | end | |
586 | end | |
587 | end | |
588 | end | |
589 | coroutine.resume(coroutine.create(function(tehCF) | |
590 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
591 | for i=0,1,0.1 do | |
592 | wait(0.1) | |
593 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.1) | |
594 | end | |
595 | end),CF) | |
596 | end | |
597 | end) | |
598 | prop.ThrustP=2 | |
599 | target=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
600 | target.Position = mouse.Hit.p | |
601 | fireball.Anchored = false | |
602 | prop.Target=target | |
603 | for i=0,1,0.1 do | |
604 | wait() | |
605 | Neck.C0=necko*euler(-0.7+0.7*i,0,0) | |
606 | RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i) | |
607 | RW.C1=cf(0,5,0) | |
608 | LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i) | |
609 | LW.C1=cf(0,5,0) | |
610 | end | |
611 | game:GetService("Debris"):AddItem(fireball,3) | |
612 | wait(0.4) | |
613 | for i=0,1,0.1 do | |
614 | wait() | |
615 | Neck.C0=necko*euler(0.2*i,0,0) | |
616 | RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i) | |
617 | RW.C1=cf(0,5-4*i,0) | |
618 | LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i) | |
619 | LW.C1=cf(0,5-4*i,0) | |
620 | end | |
621 | attack=true | |
622 | end | |
623 | ||
624 | function Slam() | |
625 | attack=false | |
626 | --COME ON AND SLAM | |
627 | --AND WELCOME TO THE JAM | |
628 | for i=0,1,0.05 do | |
629 | wait() | |
630 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
631 | RW.C0=cf(10-4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,0.2-0.8*i) | |
632 | RW.C1=cf(0,1+4*i,0) | |
633 | LW.C0=cf(-10+4*i,1+4*i,3-3*i)*euler(-0.8-2*i,0,-0.2+0.8*i) | |
634 | LW.C1=cf(0,1+4*i,0) | |
635 | end | |
636 | n=2 | |
637 | for i=0,1,0.05 do | |
638 | wait() | |
639 | Neck.C0=necko*euler(-0.6-0.2*i*n,0,0) | |
640 | RW.C0=cf(6,5,0)*euler(-2.8-0.2*i*n,0,-0.6) | |
641 | RW.C1=cf(0,5,0) | |
642 | LW.C0=cf(-6,5,0)*euler(-2.8-0.2*i*n,0,0.6) | |
643 | LW.C1=cf(0,5,0) | |
644 | n=n-0.05 | |
645 | end | |
646 | for i=0,1,0.2 do | |
647 | wait() | |
648 | Neck.C0=necko*euler(-0.8+1*i,0,0) | |
649 | RW.C0=cf(6,5-3*i,2*i)*euler(-3+2*i,0,-0.6) | |
650 | RW.C1=cf(0,5-3*i,0) | |
651 | LW.C0=cf(-6,5-3*i,2*i)*euler(-3+2*i,0,0.6) | |
652 | LW.C1=cf(0,5-3*i,0) | |
653 | end | |
654 | tehCF=Torso.CFrame*cf(0,-5,10) | |
655 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
656 | refprt.Anchored=true | |
657 | refprt.CFrame=tehCF | |
658 | so("http://roblox.com/asset/?id=157878578",refprt,1,0.4) | |
659 | so("http://roblox.com/asset/?id=2101148",refprt,1,0.6) | |
660 | game:GetService("Debris"):AddItem(refprt,2) | |
661 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,5,5,5,0.05) | |
662 | MagicRing(BrickColor.new("Really red"),cf(refprt.Position)*euler(1.57,0,0),1,1,1,3,3,3,0.02) | |
663 | for _,c in pairs(workspace:children()) do | |
664 | local hum=c:findFirstChild("Humanoid") | |
665 | if hum~=nil then | |
666 | local head=c:findFirstChild("Torso") | |
667 | if head~=nil then | |
668 | local targ=head.Position-refprt.Position | |
669 | local mag=targ.magnitude | |
670 | if mag<=30 and c.Name~=Character.Name then | |
671 | Damagefunc(head,15,30,math.random(50,100),"",refprt) | |
672 | end | |
673 | end | |
674 | end | |
675 | end | |
676 | coroutine.resume(coroutine.create(function(Part) | |
677 | wait(0.5) | |
678 | for _,c in pairs(workspace:children()) do | |
679 | local hum=c:findFirstChild("Humanoid") | |
680 | if hum~=nil then | |
681 | local head=c:findFirstChild("Torso") | |
682 | if head~=nil then | |
683 | local targ=head.Position-Part.Position | |
684 | local mag=targ.magnitude | |
685 | if mag<=40 and c.Name~=Character.Name then | |
686 | Damagefunc(head,10,20,math.random(20,40),"Knockdown",refprt) | |
687 | end | |
688 | end | |
689 | end | |
690 | end | |
691 | end),refprt) | |
692 | wait(0.2) | |
693 | for i=0,1,0.1 do | |
694 | wait() | |
695 | Neck.C0=necko*euler(0.2,0,0) | |
696 | RW.C0=cf(6+4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,-0.6+0.8*i) | |
697 | RW.C1=cf(0,2-1*i,0) | |
698 | LW.C0=cf(-6-4*i,2-1*i,2+1*i)*euler(-1+0.2*i,0,0.6-0.8*i) | |
699 | LW.C1=cf(0,2-1*i,0) | |
700 | end | |
701 | attack=true | |
702 | end | |
703 | ||
704 | function Roar() | |
705 | attack=false | |
706 | for i=0,1,0.05 do | |
707 | wait() | |
708 | Neck.C0=necko*euler(0.2+0.2*i,0,0) | |
709 | RW.C0=cf(10-4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,0.2-0.8*i) | |
710 | RW.C1=cf(0,1+3*i,0) | |
711 | LW.C0=cf(-10+4*i,1+3*i,3-3*i)*euler(-0.8-1.4*i,0,-0.2+0.8*i) | |
712 | LW.C1=cf(0,1+3*i,0) | |
713 | end | |
714 | n=2 | |
715 | for i=0,1,0.05 do | |
716 | wait() | |
717 | Neck.C0=necko*euler(0.4+0.1*i*n,0,0) | |
718 | RW.C0=cf(6,4,0)*euler(-2.2+0.1*i*n,0,-0.6) | |
719 | RW.C1=cf(0,4,0) | |
720 | LW.C0=cf(-6,4,0)*euler(-2.2+0.1*i*n,0,0.6) | |
721 | LW.C1=cf(0,4,0) | |
722 | n=n-0.05 | |
723 | end | |
724 | roar:Play() | |
725 | roar2:Play() | |
726 | for i=0,1,0.2 do | |
727 | wait() | |
728 | Neck.C0=necko*euler(0.5-0.7*i,0,0) | |
729 | RW.C0=cf(6+4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,-0.6+1.2*i) | |
730 | RW.C1=cf(0,4-3*i,0) | |
731 | LW.C0=cf(-6-4*i,4-3*i,-1.8*i)*euler(-2.1+2.7*i,0,0.6-1.2*i) | |
732 | LW.C1=cf(0,4-3*i,0) | |
733 | noe=math.random(10,20) | |
734 | MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05) | |
735 | end | |
736 | for _,c in pairs(workspace:children()) do | |
737 | local hum=c:findFirstChild("Humanoid") | |
738 | if hum~=nil then | |
739 | local head=c:findFirstChild("Torso") | |
740 | if head~=nil then | |
741 | local targ=head.Position-Head.Position | |
742 | local mag=targ.magnitude | |
743 | if mag<=100 and c.Name~=Character.Name then | |
744 | Damagefunc(head,40,40,math.random(100,150),"Knockdown",Head) | |
745 | end | |
746 | end | |
747 | end | |
748 | end | |
749 | n=2 | |
750 | for i=0,1,0.2 do | |
751 | wait() | |
752 | Neck.C0=necko*euler(-0.2-0.1*i*n,0,0) | |
753 | RW.C0=cf(10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,0.6+0.1*i*n) | |
754 | RW.C1=cf(0,1,0) | |
755 | LW.C0=cf(-10,1,-1.8-0.2*i*n)*euler(0.6+0.1*i*n,0,-0.6-0.1*i*n) | |
756 | LW.C1=cf(0,1,0) | |
757 | noe=math.random(10,20) | |
758 | MagicRing(BrickColor.new("Really red"),Head.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,noe,noe,1,0.05) | |
759 | n=n-0.2 | |
760 | end | |
761 | wait(0.5) | |
762 | for i=0,1,0.1 do | |
763 | wait() | |
764 | Neck.C0=necko*euler(-0.3+0.5*i,0,0) | |
765 | RW.C0=cf(10,1,-2+5*i)*euler(0.7-1.5*i,0,0.7-0.5*i) | |
766 | RW.C1=cf(0,1,0) | |
767 | LW.C0=cf(-10,1,-2+5*i)*euler(0.7-1.5*i,0,-0.7+0.5*i) | |
768 | LW.C1=cf(0,1,0) | |
769 | end | |
770 | attack=true | |
771 | end | |
772 | ||
773 | function Scatterball() | |
774 | attack=false | |
775 | for i=0,1,0.1 do | |
776 | wait() | |
777 | Neck.C0=necko*euler(0.2-0.8*i,0,0) | |
778 | RW.C0=cf(10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,0.2-0.6*i) | |
779 | RW.C1=cf(0,1+4*i,0) | |
780 | LW.C0=cf(-10,1+4*i,3-3*i)*euler(-0.8-2.2*i,0,-0.2+0.6*i) | |
781 | LW.C1=cf(0,1+4*i,0) | |
782 | end | |
783 | refprt=part(3,Character,0,1,BrickColor.new("Black"),"Effect",vt()) | |
784 | refwld=weld(refprt,refprt,Torso,cf(0,-15,0)) | |
785 | game:GetService("Debris"):AddItem(refprt,4) | |
786 | fireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Fireball",vt(10,10,10)) | |
787 | frblmsh=mesh("SpecialMesh",fireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
788 | fireball.Anchored = true | |
789 | fireball.CFrame = refprt.CFrame | |
790 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
791 | prop=Instance.new("RocketPropulsion") | |
792 | prop.MaxSpeed=500000 | |
793 | prop.CartoonFactor=0 | |
794 | prop.MaxThrust=1000000 | |
795 | prop.Parent=fireball | |
796 | prop.Target=refprt | |
797 | prop.ThrustD=1.5 | |
798 | prop.TurnD=0 | |
799 | prop.TurnP=0 | |
800 | prop:Fire() | |
801 | fire=Instance.new("Fire") | |
802 | fire.Parent=fireball | |
803 | fire.Color=Color3.new(255/255,127/255,0) | |
804 | fire.SecondaryColor=Color3.new(0,0,0) | |
805 | fire.Size=5 | |
806 | fire.Heat=20 | |
807 | n=2 | |
808 | con1=fireball.Touched:connect(function(hit) | |
809 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then | |
810 | debounce=true | |
811 | minifireball.Parent=nil | |
812 | CF=minifireball.CFrame | |
813 | POS=minifireball.Position | |
814 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
815 | refprt2.CFrame=CF | |
816 | refprt2.Anchored=true | |
817 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
818 | game:GetService("Debris"):AddItem(refprt2,1) | |
819 | Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2) | |
820 | --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso) | |
821 | coroutine.resume(coroutine.create(function(tehCF) | |
822 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
823 | for i=0,1,0.1 do | |
824 | wait(0.1) | |
825 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1) | |
826 | end | |
827 | end),CF) | |
828 | end | |
829 | end) | |
830 | for i=0,1,0.05 do | |
831 | wait() | |
832 | frblmsh.Scale=vt(0.4+0.2*i,0.4+0.2*i,0.4+0.2*i) | |
833 | refwld.C0=cf(0,-15-5*i,0) | |
834 | fire.Size=5+10*i | |
835 | fire.Heat=20+10*i | |
836 | Neck.C0=necko*euler(-0.6-0.1*i*n,0,0) | |
837 | RW.C0=cf(10,5,0)*euler(-3-0.1*i*n,0,-0.4-0.1*i*n) | |
838 | RW.C1=cf(0,5,0) | |
839 | LW.C0=cf(-10,5,0)*euler(-3-0.1*i*n,0,0.4+0.1*i*n) | |
840 | LW.C1=cf(0,5,0) | |
841 | n=n-0.05 | |
842 | end | |
843 | n=2 | |
844 | for i=0,1,0.1 do | |
845 | wait() | |
846 | frblmsh.Scale=vt(0.6+0.8*i,0.6+0.8*i,0.6+0.8*i) | |
847 | fire.Size=15+5*i | |
848 | fire.Heat=30+10*i | |
849 | Neck.C0=necko*euler(-0.7-0.1*i*n,0,0) | |
850 | RW.C0=cf(10,5,0)*euler(-3.1-0.2*i*n,0,-0.5+0.6*i*n) | |
851 | RW.C1=cf(0,5,0) | |
852 | LW.C0=cf(-10,5,0)*euler(-3.1-0.2*i*n,0,0.5-0.6*i*n) | |
853 | LW.C1=cf(0,5,0) | |
854 | n=n-0.1 | |
855 | end | |
856 | wait(0.5) | |
857 | fireball.Anchored = false | |
858 | fireball.Parent=nil | |
859 | refprt.Parent=nil | |
860 | for _,c in pairs(workspace:children()) do | |
861 | local hum=c:findFirstChild("Humanoid") | |
862 | if hum~=nil then | |
863 | local head=c:findFirstChild("Torso") | |
864 | if head~=nil then | |
865 | local targ=head.Position-Torso.Position | |
866 | local mag=targ.magnitude | |
867 | if mag<=150 and c.Name~=Character.Name then | |
868 | minifireball=part(3,Character,0,0.5,BrickColor.new("Really red"),"Mini Fireball",vt(10,10,10)) | |
869 | minifireball.CFrame=fireball.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100) | |
870 | minifrblmsh=mesh("SpecialMesh",minifireball,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4)) | |
871 | game:GetService("Debris"):AddItem(minifireball,3) | |
872 | so("http://roblox.com/asset/?id=32791565",fireball,1,1) | |
873 | prop=Instance.new("RocketPropulsion") | |
874 | prop.MaxSpeed=500000 | |
875 | prop.CartoonFactor=0 | |
876 | prop.MaxThrust=1000000 | |
877 | prop.Parent=minifireball | |
878 | prop.Target=head | |
879 | prop.ThrustD=1.5 | |
880 | prop.TurnD=0 | |
881 | prop.TurnP=0 | |
882 | prop.ThrustP=10 | |
883 | prop:Fire() | |
884 | fire=Instance.new("Fire") | |
885 | fire.Parent=minifireball | |
886 | fire.Color=Color3.new(255/255,127/255,0) | |
887 | fire.SecondaryColor=Color3.new(0,0,0) | |
888 | fire.Size=5 | |
889 | fire.Heat=10 | |
890 | prop.Target=head | |
891 | con2=minifireball.Touched:connect(function(hit) | |
892 | if hit.Parent.Name~=Character.Name and debounce==false and hit.Name~="Mini Fireball" and hit.Name~="Effect" then | |
893 | debounce=true | |
894 | minifireball.Parent=nil | |
895 | CF=minifireball.CFrame | |
896 | POS=minifireball.Position | |
897 | refprt2=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt()) | |
898 | refprt2.CFrame=CF | |
899 | refprt2.Anchored=true | |
900 | so("http://roblox.com/asset/?id=2101148",refprt2,1,0.6) | |
901 | game:GetService("Debris"):AddItem(refprt2,1) | |
902 | Damagefunc(hit,10,20,math.random(20,40),"Knockdown",refprt2) | |
903 | --Damagefunc(hit,10,20,math.random(50,100),"Knockdown",Torso) | |
904 | coroutine.resume(coroutine.create(function(tehCF) | |
905 | MagicCircle(BrickColor.new("Bright red"),tehCF,1,1,1,3,3,3,0.05) | |
906 | for i=0,1,0.1 do | |
907 | wait(0.1) | |
908 | MagicBlock(BrickColor.new("Bright red"),tehCF,1,1,1,1,1,1,0.1) | |
909 | end | |
910 | end),CF) | |
911 | end | |
912 | end) | |
913 | end | |
914 | end | |
915 | end | |
916 | end | |
917 | for i=0,1,0.1 do | |
918 | wait() | |
919 | Neck.C0=necko*euler(-0.7+0.7*i,0,0) | |
920 | RW.C0=cf(10,5,0)*euler(-3.3+2*i,0,0.1-0.5*i) | |
921 | RW.C1=cf(0,5,0) | |
922 | LW.C0=cf(-10,5,0)*euler(-3.3+2*i,0,-0.1+0.5*i) | |
923 | LW.C1=cf(0,5,0) | |
924 | end | |
925 | game:GetService("Debris"):AddItem(fireball,3) | |
926 | wait(0.4) | |
927 | for i=0,1,0.1 do | |
928 | wait() | |
929 | Neck.C0=necko*euler(0.2*i,0,0) | |
930 | RW.C0=cf(10,5-4*i,3*i)*euler(-1.3+0.5*i,0,-0.4+0.6*i) | |
931 | RW.C1=cf(0,5-4*i,0) | |
932 | LW.C0=cf(-10,5-4*i,3*i)*euler(-1.3+0.5*i,0,0.4-0.6*i) | |
933 | LW.C1=cf(0,5-4*i,0) | |
934 | end | |
935 | attack=true | |
936 | end | |
937 | ||
938 | function Warp() | |
939 | attack=false | |
940 | for i=0,1,0.1 do | |
941 | wait() | |
942 | Neck.C0=necko*euler(0.2-0.2*i,0,0) | |
943 | RW.C0=cf(10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,0.2+1.37*i) | |
944 | RW.C1=cf(0,1+2.5*i,0) | |
945 | LW.C0=cf(-10,1+2.5*i,3-3*i)*euler(-0.8-0.77*i,0,-0.2-1.37*i) | |
946 | LW.C1=cf(0,1+2.5*i,0) | |
947 | end | |
948 | so("http://www.roblox.com/asset/?id=2101137",Torso,1,0.6) | |
949 | n=0 | |
950 | for i=0,1,0.02 do | |
951 | wait() | |
952 | if n==5 then | |
953 | n=0 | |
954 | WaveEffect(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-7,0)*euler(0,math.random(-50,50),0),1,1,1,5+5*i,2+2*i,5+5*i,0.1) | |
955 | end | |
956 | n=n+1 | |
957 | end | |
958 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,0,0),200,200,200,-10,-10,-10,0.05) | |
959 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(1.57,0,0),200,200,200,-10,-10,-10,0.05) | |
960 | MagicRing(BrickColor.new("Bright red"),cf(Torso.Position)*euler(0,1.57,0),200,200,200,-10,-10,-10,0.05) | |
961 | for _,c in pairs(workspace:children()) do | |
962 | local hum=c:findFirstChild("Humanoid") | |
963 | if hum~=nil then | |
964 | local head=c:findFirstChild("Torso") | |
965 | if head~=nil then | |
966 | local targ=head.Position-Torso.Position | |
967 | local mag=targ.magnitude | |
968 | if mag<=200 and c.Name~=Character.Name then | |
969 | Damagefunc(head,10,20,math.random(-100,-50),"Knockdown",Torso) | |
970 | end | |
971 | end | |
972 | end | |
973 | end | |
974 | so("http://www.roblox.com/asset/?id=161006182",Torso,1,0.2) | |
975 | so("http://www.roblox.com/asset/?id=158210228",Torso,1,0.4) | |
976 | for i=0,1,0.1 do | |
977 | wait() | |
978 | Neck.C0=necko*euler(0.2*i,0,0) | |
979 | RW.C0=cf(10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,1.57-1.37*i) | |
980 | RW.C1=cf(0,3.5-2.5*i,0) | |
981 | LW.C0=cf(-10,3.5-2.5*i,3*i)*euler(-1.57+0.77*i,0,-1.57+1.37*i) | |
982 | LW.C1=cf(0,3.5-2.5*i,0) | |
983 | end | |
984 | attack=true | |
985 | end | |
986 | mouse.Button1Down:connect(function() | |
987 | ||
988 | end) | |
989 | function onKeyDown(key) | |
990 | if attack == true then | |
991 | if key == "f" then | |
992 | Roar() | |
993 | elseif key == "z" then | |
994 | Slam() | |
995 | elseif key == "x" then | |
996 | Warp() | |
997 | elseif key == "c" then | |
998 | Fireball() | |
999 | elseif key == "v" then | |
1000 | Scatterball() | |
1001 | end | |
1002 | end | |
1003 | end | |
1004 | mouse.KeyDown:connect(onKeyDown) | |
1005 | coroutine.resume(coroutine.create(function(Hum) | |
1006 | while Hum.Health>0 do | |
1007 | wait() | |
1008 | end | |
1009 | Hum.Parent=nil | |
1010 | BodPos.Parent=nil | |
1011 | for _,i in pairs(Torso:children()) do | |
1012 | if i.className=="Weld" then | |
1013 | i.Parent=nil | |
1014 | end | |
1015 | end | |
1016 | for _,i in pairs(Character:children()) do | |
1017 | if i.className=="Part" then | |
1018 | coroutine.resume(coroutine.create(function(Part) | |
1019 | Part.CanCollide=false | |
1020 | local f=it("Fire") | |
1021 | f.Parent=Part | |
1022 | f.Color=Color3.new(255/255,0,0) | |
1023 | f.Heat=20 | |
1024 | f.Size=30 | |
1025 | f.SecondaryColor=Color3.new(0,0,0) | |
1026 | local BodPos2=it("BodyPosition") | |
1027 | BodPos2.P=50000 | |
1028 | BodPos2.D=1000 | |
1029 | BodPos2.maxForce=vt(math.huge,math.huge,math.huge) | |
1030 | BodPos2.position=Part.Position | |
1031 | BodPos2.Parent=Part | |
1032 | local rand1=math.random(-50,50)/100 | |
1033 | local rand2=math.random(-50,50)/100 | |
1034 | for i=0,100 do | |
1035 | wait() | |
1036 | BodPos2.position=BodPos2.position+vt(rand1,-0.5,rand2) | |
1037 | end | |
1038 | end),i) | |
1039 | end | |
1040 | end | |
1041 | wait(5) | |
1042 | Character.Parent=nil | |
1043 | end),Humanoid) | |
1044 | --[[while Humanoid.Health>0 do | |
1045 | wait(1) | |
1046 | target,distance=findNearestTorso(Torso.Position) | |
1047 | if target~=nil then | |
1048 | print(distance) | |
1049 | local pos=Vector3.new(target.Parent.Torso.Position.x,Torso.Position.Y,target.Parent.Torso.Position.z) | |
1050 | BodGy.cframe=CFrame.new(Torso.Position,pos)*euler(-0.2,3.14,0) | |
1051 | if math.random(1,10)==1 then | |
1052 | print("ror") | |
1053 | Roar() | |
1054 | if math.random(1,2)==1 then | |
1055 | Warp() | |
1056 | Slam() | |
1057 | end | |
1058 | else | |
1059 | if distance<=150 and distance>=50 then | |
1060 | dur=math.random(1,3) | |
1061 | if dur==1 then | |
1062 | Warp() | |
1063 | Slam() | |
1064 | else | |
1065 | attack=math.random(1,2) | |
1066 | if attack==1 then Fireball() | |
1067 | elseif attack==2 then Scatterball() | |
1068 | end | |
1069 | end | |
1070 | else | |
1071 | attack=math.random(1,3) | |
1072 | if attack==1 then Fireball() | |
1073 | elseif attack==2 then Slam() | |
1074 | elseif attack==3 then Scatterball() | |
1075 | end | |
1076 | end | |
1077 | end | |
1078 | --Fireball() | |
1079 | --Slam() | |
1080 | --Roar() | |
1081 | --Scatterball() | |
1082 | --Warp() | |
1083 | end | |
1084 | Torso.CFrame=Torso.CFrame*cf(0,10,0) | |
1085 | BodPos.position=Lava.Position+vt(0,2,0) | |
1086 | end]] |