SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | ||
146 | warn'Controls:Q Strong punch|E Normal punch|R Long range|T Up-Dash|X Front dash|' | |
147 | plr = game.Players.LocalPlayer | |
148 | char = plr.Character | |
149 | hum = char.Humanoid | |
150 | local cam = game.Workspace.CurrentCamera | |
151 | t = char.Torso | |
152 | h = char.Head | |
153 | ra = char["Right Arm"] | |
154 | la = char["Left Arm"] | |
155 | rl = char["Right Leg"] | |
156 | ll = char["Left Leg"] | |
157 | tors = char.Torso | |
158 | lleg = char["Left Leg"] | |
159 | root = char.HumanoidRootPart | |
160 | char.Humanoid.MaxHealth = 250000 | |
161 | wait() | |
162 | char.Humanoid.Health = 250000 | |
163 | hed = char.Head | |
164 | rleg = char["Right Leg"] | |
165 | rarm = char["Right Arm"] | |
166 | larm = char["Left Arm"] | |
167 | vt = Vector3.new | |
168 | bc = BrickColor.new | |
169 | br = BrickColor.random | |
170 | it = Instance.new | |
171 | cf = CFrame.new | |
172 | ||
173 | ----------------------------------- | |
174 | function chatfunc(text) | |
175 | local chat = coroutine.wrap(function() | |
176 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
177 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
178 | end | |
179 | local naeeym2 = Instance.new("BillboardGui",Character) | |
180 | naeeym2.Size = UDim2.new(0,100,0,40) | |
181 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
182 | naeeym2.Adornee = Character.Head | |
183 | naeeym2.Name = "TalkingBillBoard" | |
184 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
185 | tecks2.BackgroundTransparency = 1 | |
186 | tecks2.BorderSizePixel = 0 | |
187 | tecks2.Text = "" | |
188 | tecks2.Font = "ArialBold" | |
189 | tecks2.TextSize = 30 | |
190 | tecks2.TextStrokeTransparency = 0 | |
191 | tecks2.TextColor3 = Color3.new(255,255,0) | |
192 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
193 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
194 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
195 | tecks3.BackgroundTransparency = 1 | |
196 | tecks3.BorderSizePixel = 0 | |
197 | tecks3.Text = "" | |
198 | tecks3.Font = "ArialBold" | |
199 | tecks3.TextSize = 30 | |
200 | tecks3.TextStrokeTransparency = 0 | |
201 | tecks3.TextColor3 = Color3.new(255,255,0) | |
202 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
203 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
204 | for i = 1,string.len(text),1 do | |
205 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=138089340", Character, .6, .8) | |
206 | tecks2.Text = string.sub(text,1,i) | |
207 | tecks3.Text = string.sub(text,1,i) | |
208 | wait(0.01) | |
209 | end | |
210 | wait(2) | |
211 | for i = 1, 50 do | |
212 | swait() | |
213 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
214 | tecks2.Rotation = tecks2.Rotation - .8 | |
215 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
216 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
217 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
218 | tecks3.Rotation = tecks2.Rotation + .8 | |
219 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
220 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
221 | end | |
222 | naeeym2:Destroy() | |
223 | end) | |
224 | chat() | |
225 | end | |
226 | function onChatted(msg) | |
227 | chatfunc(msg) | |
228 | end | |
229 | ||
230 | ----------------------------------- | |
231 | ||
232 | local Create = LoadLibrary("RbxUtility").Create | |
233 | ||
234 | CFuncs = { | |
235 | ["Part"] = { | |
236 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
237 | local Part = Create("Part"){ | |
238 | Parent = Parent, | |
239 | Reflectance = Reflectance, | |
240 | Transparency = Transparency, | |
241 | CanCollide = false, | |
242 | Locked = true, | |
243 | BrickColor = BrickColor.new(tostring(BColor)), | |
244 | Name = Name, | |
245 | Size = Size, | |
246 | Material = Material, | |
247 | } | |
248 | RemoveOutlines(Part) | |
249 | return Part | |
250 | end; | |
251 | }; | |
252 | ||
253 | ["Mesh"] = { | |
254 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
255 | local Msh = Create(Mesh){ | |
256 | Parent = Part, | |
257 | Offset = OffSet, | |
258 | Scale = Scale, | |
259 | } | |
260 | if Mesh == "SpecialMesh" then | |
261 | Msh.MeshType = MeshType | |
262 | Msh.MeshId = MeshId | |
263 | end | |
264 | return Msh | |
265 | end; | |
266 | }; | |
267 | ||
268 | ["Mesh"] = { | |
269 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
270 | local Msh = Create(Mesh){ | |
271 | Parent = Part, | |
272 | Offset = OffSet, | |
273 | Scale = Scale, | |
274 | } | |
275 | if Mesh == "SpecialMesh" then | |
276 | Msh.MeshType = MeshType | |
277 | Msh.MeshId = MeshId | |
278 | end | |
279 | return Msh | |
280 | end; | |
281 | }; | |
282 | ||
283 | ["Weld"] = { | |
284 | Create = function(Parent, Part0, Part1, C0, C1) | |
285 | local Weld = Create("Weld"){ | |
286 | Parent = Parent, | |
287 | Part0 = Part0, | |
288 | Part1 = Part1, | |
289 | C0 = C0, | |
290 | C1 = C1, | |
291 | } | |
292 | return Weld | |
293 | end; | |
294 | }; | |
295 | ||
296 | ["Sound"] = { | |
297 | Create = function(id, par, vol, pit) | |
298 | coroutine.resume(coroutine.create(function() | |
299 | local S = Create("Sound"){ | |
300 | Volume = vol, | |
301 | Pitch = pit or 1, | |
302 | SoundId = id, | |
303 | Parent = par or workspace, | |
304 | } | |
305 | wait() | |
306 | S:play() | |
307 | game:GetService("Debris"):AddItem(S, 10) | |
308 | end)) | |
309 | end; | |
310 | }; | |
311 | ||
312 | ["ParticleEmitter"] = { | |
313 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
314 | local fp = Create("ParticleEmitter"){ | |
315 | Parent = Parent, | |
316 | Color = ColorSequence.new(Color1, Color2), | |
317 | LightEmission = LightEmission, | |
318 | Size = Size, | |
319 | Texture = Texture, | |
320 | Transparency = Transparency, | |
321 | ZOffset = ZOffset, | |
322 | Acceleration = Accel, | |
323 | Drag = Drag, | |
324 | LockedToPart = LockedToPart, | |
325 | VelocityInheritance = VelocityInheritance, | |
326 | EmissionDirection = EmissionDirection, | |
327 | Enabled = Enabled, | |
328 | Lifetime = LifeTime, | |
329 | Rate = Rate, | |
330 | Rotation = Rotation, | |
331 | RotSpeed = RotSpeed, | |
332 | Speed = Speed, | |
333 | VelocitySpread = VelocitySpread, | |
334 | } | |
335 | return fp | |
336 | end; | |
337 | }; | |
338 | ||
339 | CreateTemplate = { | |
340 | ||
341 | }; | |
342 | } | |
343 | ||
344 | ||
345 | ||
346 | New = function(Object, Parent, Name, Data) | |
347 | local Object = Instance.new(Object) | |
348 | for Index, Value in pairs(Data or {}) do | |
349 | Object[Index] = Value | |
350 | end | |
351 | Object.Parent = Parent | |
352 | Object.Name = Name | |
353 | return Object | |
354 | end | |
355 | local m = Instance.new("Model",char) | |
356 | ||
357 | function CreatePart(parent,transparency,reflectance,material,brickcolor) | |
358 | local p = Instance.new("Part") | |
359 | p.Parent = parent | |
360 | p.Size = Vector3.new(1,1,1) | |
361 | p.Transparency = transparency | |
362 | p.Reflectance = reflectance | |
363 | p.CanCollide = false | |
364 | p.Locked = true | |
365 | p.BrickColor = brickcolor | |
366 | p.Material = material | |
367 | return p | |
368 | end | |
369 | ||
370 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
371 | local mesh = Instance.new("SpecialMesh",parent) | |
372 | mesh.MeshType = meshtype | |
373 | mesh.Scale = Vector3.new(x1,y1,z1) | |
374 | return mesh | |
375 | end | |
376 | ||
377 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
378 | local mesh = Instance.new("SpecialMesh",parent) | |
379 | mesh.MeshType = "FileMesh" | |
380 | mesh.MeshId = meshid | |
381 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
382 | mesh.Scale = Vector3.new(x1,y1,z1) | |
383 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
384 | return mesh | |
385 | end | |
386 | ||
387 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
388 | local weld = Instance.new("Weld") | |
389 | weld.Parent = parent | |
390 | weld.Part0 = part0 | |
391 | weld.Part1 = part1 | |
392 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
393 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
394 | return weld | |
395 | end | |
396 | ||
397 | ||
398 | function ApplyTrig(Num,Func) | |
399 | local Min,Max = Func(0),Func(1) | |
400 | local i = Func(Num) | |
401 | return (i-Min)/(Max-Min) | |
402 | --[[if Func == "sin" then | |
403 | return (math.sin((1-Num)*math.pi)+1)/2 | |
404 | elseif Func == "cos" then | |
405 | return (math.cos((1-Num)*math.pi)+1)/2 | |
406 | end]] | |
407 | end | |
408 | ||
409 | local acos = math.acos | |
410 | local sqrt = math.sqrt | |
411 | local Vec3 = Vector3.new | |
412 | ||
413 | local function toAxisAngle(CFr) | |
414 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
415 | local Angle = math.acos((R00+R11+R22-1)/2) | |
416 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
417 | A = A == 0 and 0.00001 or A | |
418 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
419 | B = B == 0 and 0.00001 or B | |
420 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
421 | C = C == 0 and 0.00001 or C | |
422 | local x = (R21-R12)/sqrt(A) | |
423 | local y = (R02-R20)/sqrt(B) | |
424 | local z = (R10-R01)/sqrt(C) | |
425 | return Vec3(x,y,z),Angle | |
426 | end | |
427 | ||
428 | local fromAxisAngle = CFrame.fromAxisAngle | |
429 | ||
430 | function LerpCFrame(CFrame1,CFrame2,Num) | |
431 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
432 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
433 | end | |
434 | ||
435 | ||
436 | ||
437 | ||
438 | ||
439 | local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random()) | |
440 | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
441 | local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random()) | |
442 | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
443 | ||
444 | Player=game:GetService("Players").LocalPlayer | |
445 | Character=Player.Character | |
446 | PlayerGui=Player.PlayerGui | |
447 | Backpack=Player.Backpack | |
448 | Torso=Character.Torso | |
449 | Head=Character.Head | |
450 | Humanoid=Character.Humanoid | |
451 | m=Instance.new('Model',Character) | |
452 | LeftArm=Character["Left Arm"] | |
453 | LeftLeg=Character["Left Leg"] | |
454 | RightArm=Character["Right Arm"] | |
455 | RightLeg=Character["Right Leg"] | |
456 | LS=Torso["Left Shoulder"] | |
457 | LH=Torso["Left Hip"] | |
458 | RS=Torso["Right Shoulder"] | |
459 | RH=Torso["Right Hip"] | |
460 | Face = Head.face | |
461 | Neck=Torso.Neck | |
462 | it=Instance.new | |
463 | attacktype=1 | |
464 | vt=Vector3.new | |
465 | cf=CFrame.new | |
466 | euler=CFrame.fromEulerAnglesXYZ | |
467 | angles=CFrame.Angles | |
468 | cloaked=false | |
469 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
470 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
471 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
472 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
473 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
474 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
475 | RootPart=Character.HumanoidRootPart | |
476 | RootJoint=RootPart.RootJoint | |
477 | RootCF=euler(-1.57,0,3.14) | |
478 | attack = false | |
479 | attackdebounce = false | |
480 | deb=false | |
481 | equipped=true | |
482 | hand=false | |
483 | MMouse=nil | |
484 | combo=0 | |
485 | mana=0 | |
486 | trispeed=.2 | |
487 | attackmode='none' | |
488 | local idle=0 | |
489 | local Anim="Idle" | |
490 | local Effects={} | |
491 | local gun=false | |
492 | local shoot=false | |
493 | local sine = 0 | |
494 | local change = 1 | |
495 | player=nil | |
496 | shirt = Instance.new("Shirt", char) | |
497 | shirt.Name = "Shirt" | |
498 | pants = Instance.new("Pants", char) | |
499 | pants.Name = "Pants" | |
500 | ||
501 | hum.WalkSpeed = 20 | |
502 | ||
503 | asd = Instance.new("Sound",char) | |
504 | asd.SoundId = "http://www.roblox.com/asset/?id = 969947758" | |
505 | asd.Volume = 3 | |
506 | asd.Looped = true | |
507 | ||
508 | ||
509 | ||
510 | ||
511 | ||
512 | ||
513 | local txt = Instance.new("BillboardGui", char) | |
514 | CV="Lime green" | |
515 | txt.Adornee = char .Head | |
516 | txt.Name = "_status" | |
517 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
518 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
519 | local text = Instance.new("TextLabel", txt) | |
520 | text.Size = UDim2.new(10, 0, 7, 0) | |
521 | text.FontSize = "Size24" | |
522 | text.TextScaled = true | |
523 | text.TextTransparency = 0 | |
524 | text.BackgroundTransparency = 1 | |
525 | text.TextTransparency = 0 | |
526 | text.TextStrokeTransparency = 0 | |
527 | text.Font = "Bodoni" | |
528 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
529 | text.TextColor3 = Color3.fromRGB(255,255,0) | |
530 | text.Text = " " | |
531 | v=Instance.new("Part") | |
532 | v.Name = "ColorBrick" | |
533 | v.Parent= plr.Character | |
534 | v.FormFactor="Symmetric" | |
535 | v.Anchored=true | |
536 | v.CanCollide=false | |
537 | v.BottomSurface="Smooth" | |
538 | v.TopSurface="Smooth" | |
539 | v.Size=Vector3.new(10,5,3) | |
540 | v.Transparency=0 | |
541 | v.CFrame=char.Torso.CFrame | |
542 | v.BrickColor=BrickColor.new("Lime green") | |
543 | v.Transparency=1 | |
544 | v.Shape="Block" | |
545 | ||
546 | mouse=Player:GetMouse() | |
547 | --save shoulders | |
548 | RSH, LSH=nil, nil | |
549 | --welds | |
550 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
551 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
552 | LH=Torso["Left Hip"] | |
553 | RH=Torso["Right Hip"] | |
554 | TorsoColor=Torso.BrickColor | |
555 | function NoOutline(Part) | |
556 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
557 | end | |
558 | player=Player | |
559 | ch=Character | |
560 | RSH=ch.Torso["Right Shoulder"] | |
561 | LSH=ch.Torso["Left Shoulder"] | |
562 | -- | |
563 | RSH.Parent=nil | |
564 | LSH.Parent=nil | |
565 | -- | |
566 | RW.Name="Right Shoulder" | |
567 | RW.Part0=ch.Torso | |
568 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
569 | RW.C1=cf(0, 0.5, 0) | |
570 | RW.Part1=ch["Right Arm"] | |
571 | RW.Parent=ch.Torso | |
572 | -- | |
573 | LW.Name="Left Shoulder" | |
574 | LW.Part0=ch.Torso | |
575 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
576 | LW.C1=cf(0, 0.5, 0) | |
577 | LW.Part1=ch["Left Arm"] | |
578 | LW.Parent=ch.Torso | |
579 | ||
580 | local Stats=Instance.new("BoolValue") | |
581 | Stats.Name="Stats" | |
582 | Stats.Parent=Character | |
583 | local Atk=Instance.new("NumberValue") | |
584 | Atk.Name="Damage" | |
585 | Atk.Parent=Stats | |
586 | Atk.Value=1 | |
587 | local Def=Instance.new("NumberValue") | |
588 | Def.Name="Defense" | |
589 | Def.Parent=Stats | |
590 | Def.Value=1 | |
591 | local Speed=Instance.new("NumberValue") | |
592 | Speed.Name="Speed" | |
593 | Speed.Parent=Stats | |
594 | Speed.Value=1 | |
595 | local Mvmt=Instance.new("NumberValue") | |
596 | Mvmt.Name="Movement" | |
597 | Mvmt.Parent=Stats | |
598 | Mvmt.Value=1 | |
599 | ||
600 | local donum=0 | |
601 | ||
602 | ||
603 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
604 | local fp=it("Part") | |
605 | fp.formFactor=formfactor | |
606 | fp.Parent=parent | |
607 | fp.Reflectance=reflectance | |
608 | fp.Transparency=transparency | |
609 | fp.CanCollide=false | |
610 | fp.Locked=true | |
611 | fp.BrickColor=brickcolor | |
612 | fp.Name=name | |
613 | fp.Size=size | |
614 | fp.Position=Torso.Position | |
615 | NoOutline(fp) | |
616 | fp.Material="SmoothPlastic" | |
617 | fp:BreakJoints() | |
618 | return fp | |
619 | end | |
620 | ||
621 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
622 | local mesh=it(Mesh) | |
623 | mesh.Parent=part | |
624 | if Mesh=="SpecialMesh" then | |
625 | mesh.MeshType=meshtype | |
626 | if meshid~="nil" then | |
627 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
628 | end | |
629 | end | |
630 | mesh.Offset=offset | |
631 | mesh.Scale=scale | |
632 | return mesh | |
633 | end | |
634 | ||
635 | function weld(parent,part0,part1,c0) | |
636 | local weld=it("Weld") | |
637 | weld.Parent=parent | |
638 | weld.Part0=part0 | |
639 | weld.Part1=part1 | |
640 | weld.C0=c0 | |
641 | return weld | |
642 | end | |
643 | ||
644 | local Color1=Torso.BrickColor | |
645 | ||
646 | local bodvel=Instance.new("BodyVelocity") | |
647 | local bg=Instance.new("BodyGyro") | |
648 | ||
649 | function swait(num) | |
650 | if num==0 or num==nil then | |
651 | game:service'RunService'.Stepped:wait(0) | |
652 | else | |
653 | for i=0,num do | |
654 | game:service'RunService'.Stepped:wait(0) | |
655 | end | |
656 | end | |
657 | end | |
658 | ||
659 | ||
660 | so = function(id,par,vol,pit) | |
661 | coroutine.resume(coroutine.create(function() | |
662 | local sou = Instance.new("Sound",par or workspace) | |
663 | sou.Volume=vol | |
664 | sou.Pitch=pit or 1 | |
665 | sou.SoundId=id | |
666 | swait() | |
667 | sou:play() | |
668 | game:GetService("Debris"):AddItem(sou,6) | |
669 | end)) | |
670 | end | |
671 | ||
672 | function clerp(a,b,t) | |
673 | local qa = {QuaternionFromCFrame(a)} | |
674 | local qb = {QuaternionFromCFrame(b)} | |
675 | local ax, ay, az = a.x, a.y, a.z | |
676 | local bx, by, bz = b.x, b.y, b.z | |
677 | local _t = 1-t | |
678 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
679 | end | |
680 | ||
681 | function QuaternionFromCFrame(cf) | |
682 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
683 | local trace = m00 + m11 + m22 | |
684 | if trace > 0 then | |
685 | local s = math.sqrt(1 + trace) | |
686 | local recip = 0.5/s | |
687 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
688 | else | |
689 | local i = 0 | |
690 | if m11 > m00 then | |
691 | i = 1 | |
692 | end | |
693 | if m22 > (i == 0 and m00 or m11) then | |
694 | i = 2 | |
695 | end | |
696 | if i == 0 then | |
697 | local s = math.sqrt(m00-m11-m22+1) | |
698 | local recip = 0.5/s | |
699 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
700 | elseif i == 1 then | |
701 | local s = math.sqrt(m11-m22-m00+1) | |
702 | local recip = 0.5/s | |
703 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
704 | elseif i == 2 then | |
705 | local s = math.sqrt(m22-m00-m11+1) | |
706 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
707 | end | |
708 | end | |
709 | end | |
710 | ||
711 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
712 | local xs, ys, zs = x + x, y + y, z + z | |
713 | local wx, wy, wz = w*xs, w*ys, w*zs | |
714 | local xx = x*xs | |
715 | local xy = x*ys | |
716 | local xz = x*zs | |
717 | local yy = y*ys | |
718 | local yz = y*zs | |
719 | local zz = z*zs | |
720 | 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)) | |
721 | end | |
722 | ||
723 | function QuaternionSlerp(a, b, t) | |
724 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
725 | local startInterp, finishInterp; | |
726 | if cosTheta >= 0.0001 then | |
727 | if (1 - cosTheta) > 0.0001 then | |
728 | local theta = math.acos(cosTheta) | |
729 | local invSinTheta = 1/math.sin(theta) | |
730 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
731 | finishInterp = math.sin(t*theta)*invSinTheta | |
732 | else | |
733 | startInterp = 1-t | |
734 | finishInterp = t | |
735 | end | |
736 | else | |
737 | if (1+cosTheta) > 0.0001 then | |
738 | local theta = math.acos(-cosTheta) | |
739 | local invSinTheta = 1/math.sin(theta) | |
740 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
741 | finishInterp = math.sin(t*theta)*invSinTheta | |
742 | else | |
743 | startInterp = t-1 | |
744 | finishInterp = t | |
745 | end | |
746 | end | |
747 | 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 | |
748 | end | |
749 | ||
750 | local function CFrameFromTopBack(at, top, back) | |
751 | local right = top:Cross(back) | |
752 | return CFrame.new(at.x, at.y, at.z, | |
753 | right.x, top.x, back.x, | |
754 | right.y, top.y, back.y, | |
755 | right.z, top.z, back.z) | |
756 | end | |
757 | ||
758 | function Triangle(a, b, c) | |
759 | local edg1 = (c-a):Dot((b-a).unit) | |
760 | local edg2 = (a-b):Dot((c-b).unit) | |
761 | local edg3 = (b-c):Dot((a-c).unit) | |
762 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
763 | a, b, c = a, b, c | |
764 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
765 | a, b, c = b, c, a | |
766 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
767 | a, b, c = c, a, b | |
768 | else | |
769 | assert(false, "unreachable") | |
770 | end | |
771 | ||
772 | local len1 = (c-a):Dot((b-a).unit) | |
773 | local len2 = (b-a).magnitude - len1 | |
774 | local width = (a + (b-a).unit*len1 - c).magnitude | |
775 | ||
776 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
777 | ||
778 | local list = {} | |
779 | ||
780 | if len1 > 0.01 then | |
781 | local w1 = Instance.new('WedgePart', m) | |
782 | game:GetService("Debris"):AddItem(w1,5) | |
783 | w1.Material = "SmoothPlastic" | |
784 | w1.FormFactor = 'Custom' | |
785 | w1.BrickColor = BrickColor.new("Really red") | |
786 | w1.Transparency = 0 | |
787 | w1.Reflectance = 0 | |
788 | w1.Material = "SmoothPlastic" | |
789 | w1.CanCollide = false | |
790 | local l1 = Instance.new("PointLight",w1) | |
791 | l1.Color = Color3.new(170,0,0) | |
792 | NoOutline(w1) | |
793 | local sz = Vector3.new(0.2, width, len1) | |
794 | w1.Size = sz | |
795 | local sp = Instance.new("SpecialMesh",w1) | |
796 | sp.MeshType = "Wedge" | |
797 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
798 | w1:BreakJoints() | |
799 | w1.Anchored = true | |
800 | w1.Parent = workspace | |
801 | w1.Transparency = 0.7 | |
802 | table.insert(Effects,{w1,"Disappear",.01}) | |
803 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
804 | table.insert(list,w1) | |
805 | end | |
806 | ||
807 | if len2 > 0.01 then | |
808 | local w2 = Instance.new('WedgePart', m) | |
809 | game:GetService("Debris"):AddItem(w2,5) | |
810 | w2.Material = "SmoothPlastic" | |
811 | w2.FormFactor = 'Custom' | |
812 | w2.BrickColor = BrickColor.new("Really red") | |
813 | w2.Transparency = 0 | |
814 | w2.Reflectance = 0 | |
815 | w2.Material = "SmoothPlastic" | |
816 | w2.CanCollide = false | |
817 | local l2 = Instance.new("PointLight",w2) | |
818 | l2.Color = Color3.new(170,0,0) | |
819 | NoOutline(w2) | |
820 | local sz = Vector3.new(0.2, width, len2) | |
821 | w2.Size = sz | |
822 | local sp = Instance.new("SpecialMesh",w2) | |
823 | sp.MeshType = "Wedge" | |
824 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
825 | w2:BreakJoints() | |
826 | w2.Anchored = true | |
827 | w2.Parent = workspace | |
828 | w2.Transparency = 0.7 | |
829 | table.insert(Effects,{w2,"Disappear",.01}) | |
830 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
831 | table.insert(list,w2) | |
832 | end | |
833 | return unpack(list) | |
834 | end | |
835 | ||
836 | ||
837 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
838 | if hit.Parent==nil then | |
839 | return | |
840 | end | |
841 | h=hit.Parent:FindFirstChildOfClass("Humanoid") | |
842 | for _,v in pairs(hit.Parent:children()) do | |
843 | if v:IsA("Humanoid") then | |
844 | h=v | |
845 | end | |
846 | end | |
847 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
848 | h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
849 | end | |
850 | if hit.Parent.className=="Hat" then | |
851 | hit=hit.Parent.Parent:findFirstChild("Head") | |
852 | end | |
853 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
854 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
855 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
856 | return | |
857 | end]] | |
858 | -- hs(hit,1.2) | |
859 | c=Instance.new("ObjectValue") | |
860 | c.Name="creator" | |
861 | c.Value=game:service("Players").LocalPlayer | |
862 | c.Parent=h | |
863 | game:GetService("Debris"):AddItem(c,.5) | |
864 | Damage=math.random(minim,maxim) | |
865 | -- h:TakeDamage(Damage) | |
866 | blocked=false | |
867 | block=hit.Parent:findFirstChild("Block") | |
868 | if block~=nil then | |
869 | print(block.className) | |
870 | if block.className=="NumberValue" then | |
871 | if block.Value>0 then | |
872 | blocked=true | |
873 | if decreaseblock==nil then | |
874 | block.Value=block.Value-1 | |
875 | end | |
876 | end | |
877 | end | |
878 | if block.className=="IntValue" then | |
879 | if block.Value>0 then | |
880 | blocked=true | |
881 | if decreaseblock~=nil then | |
882 | block.Value=block.Value-1 | |
883 | end | |
884 | end | |
885 | end | |
886 | end | |
887 | if blocked==false then | |
888 | -- h:TakeDamage(Damage) | |
889 | h.Health=h.Health-Damage | |
890 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red")) | |
891 | else | |
892 | h.Health=h.Health-(Damage/2) | |
893 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
894 | end | |
895 | if Type=="Knockdown" then | |
896 | hum=hit.Parent.Humanoid | |
897 | hum.PlatformStand=true | |
898 | coroutine.resume(coroutine.create(function(HHumanoid) | |
899 | swait(1) | |
900 | HHumanoid.PlatformStand=false | |
901 | end),hum) | |
902 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
903 | hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
904 | local bodvol=Instance.new("BodyVelocity") | |
905 | bodvol.velocity=angle*knockback | |
906 | bodvol.P=5000 | |
907 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
908 | bodvol.Parent=hit | |
909 | rl=Instance.new("BodyAngularVelocity") | |
910 | rl.P=3000 | |
911 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
912 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
913 | rl.Parent=hit | |
914 | game:GetService("Debris"):AddItem(bodvol,.5) | |
915 | game:GetService("Debris"):AddItem(rl,.5) | |
916 | elseif Type=="Normal" then | |
917 | bp=Instance.new("BodyVelocity") | |
918 | bp.P=100000 | |
919 | bp.maxForce=Vector3.new(math.huge,0,math.huge) | |
920 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
921 | if KnockbackType==1 then | |
922 | bp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
923 | elseif KnockbackType==2 then | |
924 | bp.velocity=Property.CFrame.lookVector*knockback | |
925 | end | |
926 | if knockback>0 then | |
927 | bp.Parent=hit.Parent.Torso | |
928 | ||
929 | end | |
930 | game:GetService("Debris"):AddItem(bp,.5) | |
931 | elseif Type=="Up" then | |
932 | local bodyVelocity=Instance.new("BodyVelocity") | |
933 | bodyVelocity.velocity=vt(0,60,0) | |
934 | bodyVelocity.P=5000 | |
935 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
936 | bodyVelocity.Parent=hit | |
937 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
938 | rl=Instance.new("BodyAngularVelocity") | |
939 | rl.P=3000 | |
940 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
941 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
942 | rl.Parent=hit | |
943 | game:GetService("Debris"):AddItem(rl,.5) | |
944 | elseif Type=="Snare" then | |
945 | bp=Instance.new("BodyPosition") | |
946 | bp.P=2000 | |
947 | bp.D=100 | |
948 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
949 | bp.position=hit.Parent.Torso.Position | |
950 | bp.Parent=hit.Parent.Torso | |
951 | game:GetService("Debris"):AddItem(bp,1) | |
952 | elseif Type=="Target" then | |
953 | if Targetting==false then | |
954 | ZTarget=hit.Parent.Torso | |
955 | coroutine.resume(coroutine.create(function(Part) | |
956 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
957 | swait(1) | |
958 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
959 | end),ZTarget) | |
960 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
961 | targetgui=Instance.new("BillboardGui") | |
962 | targetgui.Parent=ZTarget | |
963 | targetgui.Size=UDim2.new(10,100,10,100) | |
964 | targ=Instance.new("ImageLabel") | |
965 | targ.Parent=targetgui | |
966 | targ.BackgroundTransparency=1 | |
967 | targ.Image="rbxassetid://4834067" | |
968 | targ.Size=UDim2.new(1,0,1,0) | |
969 | cam.CameraType="Scriptable" | |
970 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
971 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
972 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
973 | Targetting=true | |
974 | RocketTarget=ZTarget | |
975 | for i=1,Property do | |
976 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
977 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
978 | swait() | |
979 | end | |
980 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
981 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
982 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
983 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
984 | end | |
985 | Targetting=true | |
986 | RocketTarget=true | |
987 | targetgui.Parent=true | |
988 | cam.CameraType="Custom" | |
989 | end | |
990 | end | |
991 | debounce=Instance.new("BoolValue") | |
992 | debounce.Name="DebounceHit" | |
993 | debounce.Parent=hit.Parent | |
994 | debounce.Value=true | |
995 | game:GetService("Debris"):AddItem(debounce,Delay) | |
996 | c=Instance.new("ObjectValue") | |
997 | c.Name="creator" | |
998 | c.Value=Player | |
999 | c.Parent=h | |
1000 | game:GetService("Debris"):AddItem(c,.5) | |
1001 | CRIT=true | |
1002 | hitDeb=true | |
1003 | AttackPos=6 | |
1004 | end | |
1005 | end | |
1006 | ||
1007 | showDamage=function(Char,Dealt,du,Color) | |
1008 | m=Instance.new("Model") | |
1009 | m.Name=tostring(Dealt) | |
1010 | h=Instance.new("Humanoid") | |
1011 | h.Health=0 | |
1012 | h.MaxHealth=0 | |
1013 | h.Parent=m | |
1014 | c=Instance.new("Part") | |
1015 | c.Transparency=0 | |
1016 | c.BrickColor=Color | |
1017 | c.Transparency = 1 | |
1018 | c.Name="Head" | |
1019 | c.TopSurface=0 | |
1020 | c.BottomSurface=0 | |
1021 | c.formFactor="Plate" | |
1022 | c.Size=Vector3.new(1,.4,1) | |
1023 | ||
1024 | local txt = Instance.new("BillboardGui", c) | |
1025 | txt.Adornee = c | |
1026 | txt.Name = "_status" | |
1027 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1028 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1029 | local text = Instance.new("TextLabel", txt) | |
1030 | text.Size = UDim2.new(10, 0, 7, 0) | |
1031 | text.FontSize = "Size12" | |
1032 | text.TextScaled = true | |
1033 | text.TextTransparency = 0.5 | |
1034 | text.BackgroundTransparency = 1 | |
1035 | text.TextTransparency = 0.5 | |
1036 | text.TextStrokeTransparency = 0.5 | |
1037 | text.Font = "SciFi" | |
1038 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
1039 | v=Instance.new("Part") | |
1040 | v.Name = "ColorBrick" | |
1041 | v.Parent=c | |
1042 | v.FormFactor="Symmetric" | |
1043 | v.Anchored=true | |
1044 | v.CanCollide=false | |
1045 | v.BottomSurface="Smooth" | |
1046 | v.TopSurface="Smooth" | |
1047 | v.Size=Vector3.new(10,5,3) | |
1048 | v.Transparency=1 | |
1049 | v.CFrame=c.CFrame | |
1050 | v.BrickColor=BrickColor.random() | |
1051 | v.Transparency=1 | |
1052 | text.TextColor3 = t.BrickColor.Color | |
1053 | v.Shape="Block" | |
1054 | text.Text = tostring(Dealt) | |
1055 | ms=Instance.new("CylinderMesh") | |
1056 | ms.Scale=Vector3.new(.8,.8,.8) | |
1057 | --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1058 | local rndm=math.random(1,#hitsounds) | |
1059 | local r=rndm | |
1060 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]-- | |
1061 | if CRIT==true then | |
1062 | ms.Scale=Vector3.new(1,1.25,1) | |
1063 | end | |
1064 | ms.Parent=c | |
1065 | c.Reflectance=0 | |
1066 | Instance.new("BodyGyro").Parent=c | |
1067 | c.Parent=m | |
1068 | if Char:findFirstChild("Head")~=nil then | |
1069 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1070 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
1071 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1072 | end | |
1073 | f=Instance.new("BodyPosition") | |
1074 | f.P=200000 | |
1075 | f.D=100 | |
1076 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1077 | f.position=c.Position+Vector3.new(0,3,0) | |
1078 | f.Parent=c | |
1079 | game:GetService("Debris"):AddItem(m,.5+du) | |
1080 | c.CanCollide=false | |
1081 | m.Parent=workspace | |
1082 | c.CanCollide=false | |
1083 | end | |
1084 | ||
1085 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1086 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1087 | end | |
1088 | ||
1089 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1090 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1091 | prt.Anchored=true | |
1092 | prt.CFrame=cframe | |
1093 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1094 | --http://www.roblox.com/asset/?id=4770560 | |
1095 | game:GetService("Debris"):AddItem(prt,2) | |
1096 | CF=prt.CFrame | |
1097 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1098 | for i=0,1,0.2 do | |
1099 | wait() | |
1100 | Part.CFrame=CF*cf(0,0,-0.4) | |
1101 | end | |
1102 | for i=0,1,delay do | |
1103 | wait() | |
1104 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
1105 | Mesh.Scale=Mesh.Scale | |
1106 | end | |
1107 | for i=0,1,0.1 do | |
1108 | wait() | |
1109 | Part.Transparency=i | |
1110 | end | |
1111 | Part.Parent=nil | |
1112 | end),prt,msh,CF) | |
1113 | end | |
1114 | ||
1115 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1116 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1117 | prt.Anchored=true | |
1118 | prt.Material = "Plastic" | |
1119 | prt.CFrame=cframe | |
1120 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1121 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1122 | game:GetService("Debris"):AddItem(prt,5) | |
1123 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1124 | for i=0,1,delay do | |
1125 | swait() | |
1126 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1127 | Part.Transparency=i | |
1128 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1129 | end | |
1130 | Part.Parent=nil | |
1131 | end),prt,msh) | |
1132 | end | |
1133 | ||
1134 | ||
1135 | ||
1136 | ||
1137 | function MagicBlockDash(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1138 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.3,0.3,0.3)) | |
1139 | prt.Anchored=true | |
1140 | prt.Material = "Neon" | |
1141 | prt.CFrame=cframe | |
1142 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1143 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1144 | game:GetService("Debris"):AddItem(prt,1) | |
1145 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1146 | for i=0,1,delay do | |
1147 | swait() | |
1148 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1149 | Part.Transparency=i | |
1150 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1151 | end | |
1152 | Part.Parent=nil | |
1153 | end),prt,msh) | |
1154 | end | |
1155 | ||
1156 | ||
1157 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1158 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1159 | prt.Anchored=true | |
1160 | prt.Material = "Neon" | |
1161 | prt.CFrame=cframe | |
1162 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1163 | game:GetService("Debris"):AddItem(prt,5) | |
1164 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1165 | local rtype = rottype | |
1166 | for i=0,1,delay do | |
1167 | swait() | |
1168 | if rtype == 1 then | |
1169 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1170 | elseif rtype == 2 then | |
1171 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1172 | end | |
1173 | Part.Transparency=i | |
1174 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1175 | end | |
1176 | Part.Parent=nil | |
1177 | end),prt,msh) | |
1178 | end | |
1179 | ||
1180 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1181 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1182 | prt.Anchored=true | |
1183 | prt.CFrame=cframe | |
1184 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1185 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1186 | game:GetService("Debris"):AddItem(prt,5) | |
1187 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1188 | for i=0,1,delay do | |
1189 | wait() | |
1190 | Part.Transparency=i | |
1191 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1192 | end | |
1193 | Part.Parent=nil | |
1194 | end),prt,msh) | |
1195 | end | |
1196 | ||
1197 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1198 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1199 | prt.Anchored=true | |
1200 | prt.Material = "Neon" | |
1201 | prt.CFrame=cframe | |
1202 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1203 | game:GetService("Debris"):AddItem(prt,5) | |
1204 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1205 | local rtype = rottype | |
1206 | for i=0,1,delay do | |
1207 | swait() | |
1208 | if rtype == 1 then | |
1209 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1210 | elseif rtype == 2 then | |
1211 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1212 | end | |
1213 | Part.Transparency=i | |
1214 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1215 | end | |
1216 | Part.Parent=nil | |
1217 | end),prt,msh) | |
1218 | end | |
1219 | ||
1220 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1221 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1222 | prt.Anchored=true | |
1223 | prt.Material = "Neon" | |
1224 | prt.CFrame=cframe | |
1225 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1226 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1227 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1228 | game:GetService("Debris"):AddItem(prt,5) | |
1229 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1230 | local rtype = rottype | |
1231 | for i=0,1,delay do | |
1232 | swait() | |
1233 | if rtype == 1 then | |
1234 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1235 | elseif rtype == 2 then | |
1236 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1237 | end | |
1238 | dec.Transparency=i | |
1239 | dec2.Transparency=i | |
1240 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1241 | end | |
1242 | Part.Parent=nil | |
1243 | end),prt,msh) | |
1244 | end | |
1245 | ||
1246 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1247 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1248 | prt.Anchored=true | |
1249 | prt.Material = "Neon" | |
1250 | prt.CFrame=cframe | |
1251 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1252 | game:GetService("Debris"):AddItem(prt,5) | |
1253 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1254 | local rtype = rottype | |
1255 | for i=0,1,delay do | |
1256 | swait() | |
1257 | if rtype == 1 then | |
1258 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1259 | elseif rtype == 2 then | |
1260 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1261 | end | |
1262 | prt.Transparency=i | |
1263 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1264 | end | |
1265 | Part.Parent=nil | |
1266 | end),prt,msh) | |
1267 | end | |
1268 | ||
1269 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1270 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1271 | prt.Anchored=true | |
1272 | prt.Material = "Neon" | |
1273 | prt.CFrame=cframe | |
1274 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
1275 | game:GetService("Debris"):AddItem(prt,5) | |
1276 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1277 | local rtype = rottype | |
1278 | for i=0,1,delay do | |
1279 | swait() | |
1280 | if rtype == 1 then | |
1281 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
1282 | elseif rtype == 2 then | |
1283 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
1284 | end | |
1285 | prt.Transparency=i | |
1286 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
1287 | end | |
1288 | Part.Parent=nil | |
1289 | end),prt,msh) | |
1290 | end | |
1291 | ||
1292 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
1293 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1294 | prt.Anchored=true | |
1295 | prt.Material = "Neon" | |
1296 | prt.CFrame=cframe | |
1297 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1298 | game:GetService("Debris"):AddItem(prt,5) | |
1299 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1300 | local rtype = rottype | |
1301 | for i=0,1,delay do | |
1302 | swait() | |
1303 | if rtype == 1 then | |
1304 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1305 | elseif rtype == 2 then | |
1306 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1307 | end | |
1308 | prt.Transparency=i | |
1309 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1310 | end | |
1311 | Part.Parent=nil | |
1312 | end),prt,msh) | |
1313 | end | |
1314 | ||
1315 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1316 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1317 | prt.Material = "Neon" | |
1318 | prt.Anchored=true | |
1319 | prt.CFrame=cframe | |
1320 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1321 | local wld=weld(prt,prt,Parent,cframe) | |
1322 | game:GetService("Debris"):AddItem(prt,5) | |
1323 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1324 | for i=0,1,delay do | |
1325 | wait() | |
1326 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
1327 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1328 | Part.Transparency=i | |
1329 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1330 | end | |
1331 | Part.Parent=nil | |
1332 | end),prt,msh,wld) | |
1333 | end | |
1334 | ||
1335 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1336 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1337 | prt.Anchored=false | |
1338 | prt.CFrame=cframe | |
1339 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1340 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
1341 | game:GetService("Debris"):AddItem(prt,5) | |
1342 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1343 | for i=0,1,delay do | |
1344 | wait() | |
1345 | Weld.C0=euler(i*20,0,0) | |
1346 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1347 | Part.Transparency=i | |
1348 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1349 | end | |
1350 | Part.Parent=nil | |
1351 | end),prt,msh,wld) | |
1352 | end | |
1353 | ||
1354 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1355 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1356 | prt.Anchored=true | |
1357 | prt.CFrame=cframe | |
1358 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1359 | game:GetService("Debris"):AddItem(prt,2) | |
1360 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1361 | for i=0,1,delay do | |
1362 | wait() | |
1363 | Part.CFrame=Part.CFrame | |
1364 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1365 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1366 | prt2.Anchored=true | |
1367 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1368 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
1369 | game:GetService("Debris"):AddItem(prt2,2) | |
1370 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1371 | for i=0,1,0.1 do | |
1372 | wait() | |
1373 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
1374 | end | |
1375 | Part.Parent=nil | |
1376 | end),prt2,msh2) | |
1377 | end | |
1378 | for i=0,1,delay*2 do | |
1379 | wait() | |
1380 | Part.CFrame=Part.CFrame | |
1381 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
1382 | end | |
1383 | Part.Parent=nil | |
1384 | end),prt,msh) | |
1385 | end | |
1386 | ||
1387 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1388 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1389 | prt.Anchored=true | |
1390 | prt.CFrame=cframe | |
1391 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1392 | game:GetService("Debris"):AddItem(prt,2) | |
1393 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1394 | for i=0,1,delay do | |
1395 | wait() | |
1396 | Part.CFrame=Part.CFrame | |
1397 | Part.Transparency=i | |
1398 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1399 | end | |
1400 | Part.Parent=nil | |
1401 | end),prt,msh) | |
1402 | end | |
1403 | ||
1404 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1405 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1406 | prt.Anchored=true | |
1407 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1408 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1409 | game:GetService("Debris"):AddItem(prt,2) | |
1410 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1411 | CF=Part.CFrame | |
1412 | Numbb=0 | |
1413 | randnumb=math.random()/10 | |
1414 | rand1=math.random()/10 | |
1415 | for i=0,1,rand1 do | |
1416 | wait() | |
1417 | CF=CF*cf(0,math.random()/2,0) | |
1418 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1419 | Part.CFrame=CF*euler(Numbb,0,0) | |
1420 | Part.Transparency=i | |
1421 | Numbb=Numbb+randnumb | |
1422 | end | |
1423 | Part.Parent=nil | |
1424 | end),prt,CF,Numbb,randnumb) | |
1425 | end | |
1426 | ||
1427 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1428 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1429 | prt.Anchored=true | |
1430 | prt.CFrame=cframe | |
1431 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1432 | game:GetService("Debris"):AddItem(prt,5) | |
1433 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1434 | for i=0,1,delay do | |
1435 | wait() | |
1436 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1437 | Part.Transparency=i | |
1438 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1439 | end | |
1440 | Part.Parent=nil | |
1441 | end),prt,msh) | |
1442 | end | |
1443 | ||
1444 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1445 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1446 | prt.Anchored=true | |
1447 | prt.CFrame=cframe | |
1448 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1449 | game:GetService("Debris"):AddItem(prt,2) | |
1450 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1451 | for i=0,1,delay do | |
1452 | wait() | |
1453 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
1454 | Part.Transparency=i | |
1455 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1456 | end | |
1457 | Part.Parent=nil | |
1458 | end),prt,msh) | |
1459 | end | |
1460 | ||
1461 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
1462 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1463 | prt.Anchored=true | |
1464 | prt.CFrame=cframe*cf(x,y,z) | |
1465 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
1466 | game:GetService("Debris"):AddItem(prt,5) | |
1467 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
1468 | local num=math.random() | |
1469 | local num2=math.random(-3,2)+math.random() | |
1470 | local numm=0 | |
1471 | for i=0,1,delay*2 do | |
1472 | swait() | |
1473 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
1474 | Part.Transparency=i | |
1475 | numm=numm+0.01 | |
1476 | end | |
1477 | Part.Parent=nil | |
1478 | Mesh.Parent=nil | |
1479 | end),prt,msh,x,y,z) | |
1480 | end | |
1481 | ||
1482 | function dmgstart(dmg,what) | |
1483 | hitcon = what.Touched:connect(function(hit) | |
1484 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
1485 | if hum and not hum:IsDescendantOf(Character) then | |
1486 | hum:TakeDamage(dmg) | |
1487 | end | |
1488 | end) | |
1489 | end | |
1490 | ||
1491 | function dmgstop() | |
1492 | hitcon:disconnect() | |
1493 | end | |
1494 | ||
1495 | function Cloak() | |
1496 | Face.Parent=nil | |
1497 | cloaked=true | |
1498 | for _,v in pairs(Torso.Parent:children()) do | |
1499 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1500 | coroutine.resume(coroutine.create(function() | |
1501 | for i=0,1,0.2 do | |
1502 | wait() | |
1503 | v.Transparency=i | |
1504 | end | |
1505 | v.Transparency=1 | |
1506 | end)) | |
1507 | end | |
1508 | if v.className=="Hat" then | |
1509 | hatp=v.Handle | |
1510 | coroutine.resume(coroutine.create(function(derp) | |
1511 | for i=0,1,0.2 do | |
1512 | wait() | |
1513 | derp.Transparency=i | |
1514 | end | |
1515 | derp.Transparency=1 | |
1516 | end),hatp) | |
1517 | end | |
1518 | end | |
1519 | for _,v in pairs(m:children()) do | |
1520 | if v.className=="Part" then | |
1521 | coroutine.resume(coroutine.create(function() | |
1522 | for i=0,1,0.2 do | |
1523 | wait() | |
1524 | v.Transparency=i | |
1525 | end | |
1526 | v.Transparency=1 | |
1527 | end)) | |
1528 | end | |
1529 | end | |
1530 | end | |
1531 | ||
1532 | function UnCloak() | |
1533 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
1534 | Face.Parent=Head | |
1535 | cloaked=false | |
1536 | for _,v in pairs(Torso.Parent:children()) do | |
1537 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1538 | coroutine.resume(coroutine.create(function() | |
1539 | for i=0,1,0.1 do | |
1540 | wait() | |
1541 | v.Transparency=v.Transparency-0.1 | |
1542 | end | |
1543 | v.Transparency=0 | |
1544 | end)) | |
1545 | end | |
1546 | if v.className=="Hat" then | |
1547 | hatp=v.Handle | |
1548 | coroutine.resume(coroutine.create(function(derp) | |
1549 | for i=0,1,0.1 do | |
1550 | wait() | |
1551 | derp.Transparency=derp.Transparency-0.1 | |
1552 | end | |
1553 | derp.Transparency=0 | |
1554 | end),hatp) | |
1555 | end | |
1556 | end | |
1557 | for _,v in pairs(m:children()) do | |
1558 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
1559 | coroutine.resume(coroutine.create(function() | |
1560 | for i=0,1,0.1 do | |
1561 | wait() | |
1562 | v.Transparency=v.Transparency-0.1 | |
1563 | end | |
1564 | v.Transparency=0 | |
1565 | end)) | |
1566 | v.Transparency=0 | |
1567 | end | |
1568 | end | |
1569 | end | |
1570 | ||
1571 | local jumped = false | |
1572 | function jump() | |
1573 | attack = true | |
1574 | jumped = true | |
1575 | hum.WalkSpeed = 0 | |
1576 | MagicBlock(bc("White"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015) | |
1577 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 0.7, 0.7) | |
1578 | CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7) | |
1579 | for i = 0,15,0.1 do | |
1580 | swait() | |
1581 | MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1582 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1583 | RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05) | |
1584 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05) | |
1585 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05) | |
1586 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05) | |
1587 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
1588 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
1589 | lig = Instance.new("PointLight",player.Character.Torso) | |
1590 | lig.Color=Color3.new(255,0,0) | |
1591 | lig.Range = 10 | |
1592 | end | |
1593 | local bv = Instance.new("BodyVelocity") | |
1594 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1595 | bv.velocity = Vector3.new(0,500,0) | |
1596 | bv.Parent = root | |
1597 | game:GetService("Debris"):AddItem(bv, 0.5) | |
1598 | local rng = Instance.new("Part", char) | |
1599 | rng.Anchored = true | |
1600 | rng.BrickColor = BrickColor.new("Neon orange") | |
1601 | rng.CanCollide = false | |
1602 | rng.FormFactor = 3 | |
1603 | rng.Name = "Ring" | |
1604 | rng.Size = Vector3.new(1, 1, 1) | |
1605 | rng.Transparency = 0 | |
1606 | rng.TopSurface = 0 | |
1607 | rng.BottomSurface = 0 | |
1608 | rng.Position = root.Position | |
1609 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1610 | local rngm = Instance.new("SpecialMesh", rng) | |
1611 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1612 | local rng2 = rng:Clone() | |
1613 | rng2.Parent = char | |
1614 | local rng2m = rng2.Mesh | |
1615 | local rng3 = rng:Clone() | |
1616 | rng3.Parent = char | |
1617 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
1618 | local rng3m = rng3.Mesh | |
1619 | local rng4 = rng:Clone() | |
1620 | rng4.Parent = char | |
1621 | local rng4m = rng4.Mesh | |
1622 | local rng5 = rng:Clone() | |
1623 | rng5.Parent = char | |
1624 | rng5.BrickColor = BrickColor.new("Dark stone grey") | |
1625 | local rng5m = rng5.Mesh | |
1626 | CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1) | |
1627 | wait() | |
1628 | local scaler = 10 | |
1629 | local scaler2 = 10 | |
1630 | game:GetService("Debris"):AddItem(bv, 2.4) | |
1631 | hum.WalkSpeed = 50 | |
1632 | MagicBlock(bc("White"),root.CFrame,15,15,15,10,10,10,0.015) | |
1633 | for i = 0,10,0.1 do | |
1634 | swait() | |
1635 | rng.Transparency = rng.Transparency + 0.01 | |
1636 | rng2.Transparency = rng2.Transparency + 0.01 | |
1637 | rng3.Transparency = rng3.Transparency + 0.01 | |
1638 | rng4.Transparency = rng4.Transparency + 0.01 | |
1639 | rng5.Transparency = rng5.Transparency + 0.01 | |
1640 | scaler = scaler - 0.125 | |
1641 | scaler2 = scaler2 - 0.1 | |
1642 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20) | |
1643 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30) | |
1644 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40) | |
1645 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50) | |
1646 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1647 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5) | |
1648 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5) | |
1649 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5) | |
1650 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5) | |
1651 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5) | |
1652 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5) | |
1653 | end | |
1654 | game:GetService("Debris"):AddItem(rng, 0.1) | |
1655 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
1656 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
1657 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
1658 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
1659 | hum.WalkSpeed = 16 | |
1660 | attack = false | |
1661 | jumped = false | |
1662 | end | |
1663 | ||
1664 | function dash() | |
1665 | attack = true | |
1666 | jumped = true | |
1667 | hum.WalkSpeed = 16 | |
1668 | killbrick = Instance.new("Part",char) | |
1669 | killbrick.Size = Vector3.new(1,1,1) | |
1670 | killbrick.Transparency = 1 | |
1671 | killbrick:BreakJoints() | |
1672 | killbrick.CanCollide = false | |
1673 | local wel = Instance.new("Weld",killbrick) | |
1674 | wel.Part0 = killbrick | |
1675 | wel.Part1 = char["Left Arm"] | |
1676 | wel.C0 = CFrame.new(0,1,0) | |
1677 | local bv = Instance.new("BodyVelocity") | |
1678 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1679 | bv.velocity = root.CFrame.lookVector*150 | |
1680 | bv.Parent = root | |
1681 | char.Head.face.Texture = "rbxassetid://126198982" | |
1682 | game:GetService("Debris"):AddItem(bv, 1) | |
1683 | local rng = Instance.new("Part", char) | |
1684 | rng.Anchored = true | |
1685 | rng.BrickColor = BrickColor.new("Neon orange") | |
1686 | rng.CanCollide = false | |
1687 | rng.FormFactor = 3 | |
1688 | rng.Name = "Ring" | |
1689 | rng.Size = Vector3.new(1, 1, 1) | |
1690 | rng.Transparency = 0 | |
1691 | rng.TopSurface = 0 | |
1692 | rng.BottomSurface = 0 | |
1693 | rng.CFrame = root.CFrame | |
1694 | local rngm = Instance.new("SpecialMesh", rng) | |
1695 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1696 | local rng2 = rng:Clone() | |
1697 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
1698 | rng2.Parent = char | |
1699 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
1700 | local rng2m = rng2.Mesh | |
1701 | local rng3 = rng:Clone() | |
1702 | rng3.Parent = char | |
1703 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
1704 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
1705 | local rng3m = rng3.Mesh | |
1706 | local rng4 = rng:Clone() | |
1707 | rng4.Parent = char | |
1708 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
1709 | local rng4m = rng4.Mesh | |
1710 | local rng5 = rng:Clone() | |
1711 | rng5.Parent = char | |
1712 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
1713 | local rng5m = rng5.Mesh | |
1714 | local rng6 = rng:Clone() | |
1715 | rng6.Material = "Neon" | |
1716 | rng6.CanCollide = false | |
1717 | rng6.BrickColor = BrickColor.new("Neon orange") | |
1718 | rng6.Parent = LeftLeg | |
1719 | local rng6m = rng6.Mesh | |
1720 | rng6m.Scale = vt(1,1,1) | |
1721 | rng6m.MeshType = "Sphere" | |
1722 | local rng7 = rng:Clone() | |
1723 | rng7.Material = "Plastic" | |
1724 | rng7.CanCollide = false | |
1725 | rng7.BrickColor = BrickColor.new("Bright red") | |
1726 | rng7.Parent = LeftLeg | |
1727 | local rng7m = rng7.Mesh | |
1728 | rng7m.Scale = vt(1,1,1) | |
1729 | rng7m.MeshType = "Sphere" | |
1730 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
1731 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1) | |
1732 | wait() | |
1733 | local scaler = 10/5 | |
1734 | local scaler2 = 10/5 | |
1735 | local hit = rng6.Touched:connect(function(hit) | |
1736 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
1737 | end) | |
1738 | for i = 0,10,0.1 do | |
1739 | swait() | |
1740 | rng.Transparency = rng.Transparency + 0.01 | |
1741 | rng2.Transparency = rng2.Transparency + 0.01 | |
1742 | rng3.Transparency = rng3.Transparency + 0.01 | |
1743 | rng4.Transparency = rng4.Transparency + 0.01 | |
1744 | rng5.Transparency = rng5.Transparency + 0.01 | |
1745 | rng6.Transparency = rng5.Transparency + 0.001 | |
1746 | rng7.Transparency = rng5.Transparency + 0.001 | |
1747 | scaler = scaler - 0.125/5 | |
1748 | scaler2 = scaler2 - 0.1/5 | |
1749 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
1750 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
1751 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
1752 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
1753 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
1754 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
1755 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1756 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
1757 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
1758 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
1759 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
1760 | rng6.CFrame = rng3.CFrame | |
1761 | rng7.CFrame = rng3.CFrame | |
1762 | end | |
1763 | game:GetService("Debris"):AddItem(rng, 0.1) | |
1764 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
1765 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
1766 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
1767 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
1768 | hum.WalkSpeed = 16 | |
1769 | hit:disconnect() | |
1770 | attack = false | |
1771 | killbrick:Destroy() | |
1772 | char.Head.face.Texture = "rbxassetid://29291814" | |
1773 | jumped = false | |
1774 | end | |
1775 | ||
1776 | ||
1777 | ||
1778 | function daash() | |
1779 | attack = false | |
1780 | jumped = false | |
1781 | hum.WalkSpeed = 16 | |
1782 | local bv = Instance.new("BodyVelocity") | |
1783 | bv.maxForce = Vector3.new(6000,6000,6000) | |
1784 | bv.velocity = root.CFrame.lookVector*150 | |
1785 | bv.Parent = root | |
1786 | char.Head.face.Texture = "rbxassetid://126198982" | |
1787 | game:GetService("Debris"):AddItem(bv, 1) | |
1788 | local rng = Instance.new("Part", char) | |
1789 | rng.Anchored = true | |
1790 | rng.BrickColor = BrickColor.new("White") | |
1791 | rng.CanCollide = false | |
1792 | rng.FormFactor = 3 | |
1793 | rng.Name = "Ring" | |
1794 | rng.Size = Vector3.new(1, 1, 1) | |
1795 | rng.Transparency = 0 | |
1796 | rng.TopSurface = 0 | |
1797 | rng.BottomSurface = 0 | |
1798 | rng.CFrame = root.CFrame | |
1799 | local rngm = Instance.new("SpecialMesh", rng) | |
1800 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1801 | local rng2 = rng:Clone() | |
1802 | rng2.BrickColor = BrickColor.new("White") | |
1803 | rng2.Parent = char | |
1804 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
1805 | local rng2m = rng2.Mesh | |
1806 | ||
1807 | local rng5m = rng.Mesh | |
1808 | CFuncs["Sound"].Create("rbxassetid://262562442", root, 1, 1) | |
1809 | wait() | |
1810 | local scaler = 10/5 | |
1811 | local scaler2 = 10/5 | |
1812 | local hit = rng.Touched:connect(function(hit) | |
1813 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
1814 | end) | |
1815 | for i = 0,10,0.1 do | |
1816 | swait() | |
1817 | MagicBlockDash(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1818 | MagicBlockDash(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1819 | rng.Transparency = rng.Transparency + 0.01 | |
1820 | rng2.Transparency = rng2.Transparency + 0.01 | |
1821 | ||
1822 | ||
1823 | scaler = scaler - 0.125/5 | |
1824 | scaler2 = scaler2 - 0.125/5 | |
1825 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1, scaler2/1, 0) | |
1826 | ||
1827 | ||
1828 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1829 | ||
1830 | end | |
1831 | game:GetService("Debris"):AddItem(rng, 0.1) | |
1832 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
1833 | hum.WalkSpeed = 16 | |
1834 | hit:disconnect() | |
1835 | attack = false | |
1836 | char.Head.face.Texture = "rbxassetid://29291814" | |
1837 | jumped = false | |
1838 | end | |
1839 | ||
1840 | ||
1841 | ||
1842 | function dashh() | |
1843 | attack = true | |
1844 | jumped = true | |
1845 | hum.WalkSpeed = 16 | |
1846 | local BV = Instance.new("BodyVelocity") | |
1847 | BV = Instance.new("BodyVelocity", tors) | |
1848 | BV.maxForce = Vector3.new(0,10000,0) | |
1849 | BV.P = 1000 | |
1850 | BV.velocity = Vector3.new(0,800,0) | |
1851 | char.Head.face.Texture = "rbxassetid://126198982" | |
1852 | game:GetService("Debris"):AddItem(BV, 1) | |
1853 | local rng = Instance.new("Part", char) | |
1854 | rng.Anchored = true | |
1855 | rng.BrickColor = BrickColor.new("Neon orange") | |
1856 | rng.CanCollide = false | |
1857 | rng.FormFactor = 3 | |
1858 | rng.Name = "Ring" | |
1859 | rng.Size = Vector3.new(1, 1, 1) | |
1860 | rng.Transparency = 0 | |
1861 | rng.TopSurface = 0 | |
1862 | rng.BottomSurface = 0 | |
1863 | rng.CFrame = root.CFrame | |
1864 | local rngm = Instance.new("SpecialMesh", rng) | |
1865 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1866 | local rng2 = rng:Clone() | |
1867 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
1868 | rng2.Parent = char | |
1869 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
1870 | local rng2m = rng2.Mesh | |
1871 | local rng3 = rng:Clone() | |
1872 | rng3.Parent = char | |
1873 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
1874 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
1875 | local rng3m = rng3.Mesh | |
1876 | local rng4 = rng:Clone() | |
1877 | rng4.Parent = char | |
1878 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
1879 | local rng4m = rng4.Mesh | |
1880 | local rng5 = rng:Clone() | |
1881 | rng5.Parent = char | |
1882 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
1883 | local rng5m = rng5.Mesh | |
1884 | local rng6 = rng:Clone() | |
1885 | rng6.Material = "Neon" | |
1886 | rng6.CanCollide = false | |
1887 | rng6.BrickColor = BrickColor.new("Neon orange") | |
1888 | rng6.Parent = LeftLeg | |
1889 | local rng6m = rng6.Mesh | |
1890 | rng6m.Scale = vt(1,1,1) | |
1891 | rng6m.MeshType = "Sphere" | |
1892 | local rng7 = rng:Clone() | |
1893 | rng7.Material = "Plastic" | |
1894 | rng7.CanCollide = false | |
1895 | rng7.BrickColor = BrickColor.new("Bright red") | |
1896 | rng7.Parent = LeftLeg | |
1897 | local rng7m = rng7.Mesh | |
1898 | rng7m.Scale = vt(1,1,1) | |
1899 | rng7m.MeshType = "Sphere" | |
1900 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
1901 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1) | |
1902 | wait() | |
1903 | local scaler = 10/5 | |
1904 | local scaler2 = 10/5 | |
1905 | local hit = rng6.Touched:connect(function(hit) | |
1906 | Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1) | |
1907 | end) | |
1908 | for i = 0,10,0.1 do | |
1909 | swait() | |
1910 | MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1911 | MagicBlock(bc("Dark stone grey"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
1912 | rng.Transparency = rng.Transparency + 0.01 | |
1913 | rng2.Transparency = rng2.Transparency + 0.01 | |
1914 | rng3.Transparency = rng3.Transparency + 0.01 | |
1915 | rng4.Transparency = rng4.Transparency + 0.01 | |
1916 | rng5.Transparency = rng5.Transparency + 0.01 | |
1917 | rng6.Transparency = rng5.Transparency + 0.001 | |
1918 | rng7.Transparency = rng5.Transparency + 0.001 | |
1919 | scaler = scaler - 0.125/5 | |
1920 | scaler2 = scaler2 - 0.1/5 | |
1921 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
1922 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
1923 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
1924 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
1925 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
1926 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
1927 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1928 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
1929 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
1930 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
1931 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
1932 | rng6.CFrame = rng3.CFrame | |
1933 | rng7.CFrame = rng3.CFrame | |
1934 | end | |
1935 | game:GetService("Debris"):AddItem(rng, 0.1) | |
1936 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
1937 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
1938 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
1939 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
1940 | hum.WalkSpeed = 16 | |
1941 | hit:disconnect() | |
1942 | attack = false | |
1943 | char.Head.face.Texture = "rbxassetid://29291814" | |
1944 | jumped = false | |
1945 | end | |
1946 | ||
1947 | ||
1948 | function dashs() | |
1949 | attack = true | |
1950 | jumped = true | |
1951 | hum.WalkSpeed = 16 | |
1952 | local bv = Instance.new("BodyVelocity") | |
1953 | bv.maxForce = Vector3.new(0, 0, 0) | |
1954 | bv.velocity = root.CFrame.lookVector*150 | |
1955 | bv.Parent = root | |
1956 | char.Head.face.Texture = "rbxassetid://126198982" | |
1957 | game:GetService("Debris"):AddItem(bv, 1) | |
1958 | local rng = Instance.new("Part", char) | |
1959 | rng.Anchored = true | |
1960 | rng.BrickColor = BrickColor.new("Neon orange") | |
1961 | rng.CanCollide = false | |
1962 | rng.FormFactor = 3 | |
1963 | rng.Name = "Ring" | |
1964 | rng.Size = Vector3.new(1, 1, 1) | |
1965 | rng.Transparency = 0 | |
1966 | rng.TopSurface = 0 | |
1967 | rng.BottomSurface = 0 | |
1968 | rng.CFrame = root.CFrame | |
1969 | local rngm = Instance.new("SpecialMesh", rng) | |
1970 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1971 | local rng2 = rng:Clone() | |
1972 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
1973 | rng2.Parent = char | |
1974 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
1975 | local rng2m = rng2.Mesh | |
1976 | local rng3 = rng:Clone() | |
1977 | rng3.Parent = char | |
1978 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
1979 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*20 | |
1980 | local rng3m = rng3.Mesh | |
1981 | local rng4 = rng:Clone() | |
1982 | rng4.Parent = char | |
1983 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*30 | |
1984 | local rng4m = rng4.Mesh | |
1985 | local rng5 = rng:Clone() | |
1986 | rng5.Parent = char | |
1987 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*40 | |
1988 | local rng5m = rng5.Mesh | |
1989 | local rng6 = rng:Clone() | |
1990 | rng6.Material = "Neon" | |
1991 | rng6.CanCollide = false | |
1992 | rng6.BrickColor = BrickColor.new("Neon orange") | |
1993 | rng6.Parent = LeftLeg | |
1994 | local rng6m = rng6.Mesh | |
1995 | rng6m.Scale = vt(1,1,1) | |
1996 | rng6m.MeshType = "Sphere" | |
1997 | local rng7 = rng:Clone() | |
1998 | rng7.Material = "Plastic" | |
1999 | rng7.CanCollide = false | |
2000 | rng7.BrickColor = BrickColor.new("Bright red") | |
2001 | rng7.Parent = LeftLeg | |
2002 | local rng7m = rng7.Mesh | |
2003 | rng7m.Scale = vt(1,1,1) | |
2004 | rng7m.MeshType = "Sphere" | |
2005 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
2006 | CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1) | |
2007 | wait() | |
2008 | local scaler = 10/5 | |
2009 | local scaler2 = 10/5 | |
2010 | local hit = rng6.Touched:connect(function(hit) | |
2011 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
2012 | end) | |
2013 | for i = 0,10,0.1 do | |
2014 | swait() | |
2015 | rng.Transparency = rng.Transparency + 0.01 | |
2016 | rng2.Transparency = rng2.Transparency + 0.01 | |
2017 | rng3.Transparency = rng3.Transparency + 0.01 | |
2018 | rng4.Transparency = rng4.Transparency + 0.01 | |
2019 | rng5.Transparency = rng5.Transparency + 0.01 | |
2020 | rng6.Transparency = rng5.Transparency + 0.001 | |
2021 | rng7.Transparency = rng5.Transparency + 0.001 | |
2022 | scaler = scaler - 0.125/5 | |
2023 | scaler2 = scaler2 - 0.1/5 | |
2024 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
2025 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
2026 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
2027 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0) | |
2028 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/0.5) | |
2029 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/0.3) | |
2030 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2031 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
2032 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
2033 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
2034 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
2035 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
2036 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
2037 | rng6.CFrame = rng3.CFrame | |
2038 | rng7.CFrame = rng3.CFrame | |
2039 | end | |
2040 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2041 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2042 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2043 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2044 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2045 | hum.WalkSpeed = 16 | |
2046 | hit:disconnect() | |
2047 | attack = false | |
2048 | char.Head.face.Texture = "rbxassetid://29291814" | |
2049 | jumped = false | |
2050 | end | |
2051 | ||
2052 | ||
2053 | ||
2054 | ||
2055 | ||
2056 | function punch() | |
2057 | attack = true | |
2058 | jumped = true | |
2059 | hum.WalkSpeed = 30 | |
2060 | killbrick = Instance.new("Part",rarm) | |
2061 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
2062 | killbrick.Transparency = 1 | |
2063 | killbrick:BreakJoints() | |
2064 | killbrick.CanCollide = false | |
2065 | killbrick.Anchored = true | |
2066 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
2067 | lig = Instance.new("PointLight",player.Character.Torso) | |
2068 | lig.Color=Color3.new(255,0,0) | |
2069 | lig.Range = 20 | |
2070 | local bv = Instance.new("BodyVelocity") | |
2071 | bv.maxForce = Vector3.new(1,1,1) | |
2072 | bv.velocity = root.CFrame.lookVector*150 | |
2073 | bv.Parent = root | |
2074 | char.Head.face.Texture = "rbxassetid://126198982" | |
2075 | game:GetService("Debris"):AddItem(bv, 1) | |
2076 | local rng = Instance.new("Part", char) | |
2077 | rng.Anchored = true | |
2078 | rng.BrickColor = BrickColor.new("Neon orange") | |
2079 | rng.CanCollide = false | |
2080 | rng.FormFactor = 3 | |
2081 | rng.Name = "Ring" | |
2082 | rng.Size = Vector3.new(1, 1, 1) | |
2083 | rng.Transparency = 0 | |
2084 | rng.TopSurface = 0 | |
2085 | rng.BottomSurface = 0 | |
2086 | rng.CFrame = root.CFrame | |
2087 | local rngm = Instance.new("SpecialMesh", rng) | |
2088 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2089 | local rng2 = rng:Clone() | |
2090 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2091 | rng2.Parent = char | |
2092 | rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2093 | local rng2m = rng2.Mesh | |
2094 | local rng3 = rng:Clone() | |
2095 | rng3.Parent = char | |
2096 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2097 | rng3.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2098 | local rng3m = Instance.new("SpecialMesh", rng3) | |
2099 | rng3m.MeshId = "http://www.roblox.com/asset/?id=665769722" | |
2100 | local rng4 = rng:Clone() | |
2101 | rng4.Parent = char | |
2102 | rng4.BrickColor = BrickColor.new("Dark stone grey") | |
2103 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*12 | |
2104 | local rng4m = rng4.Mesh | |
2105 | local rng5 = rng:Clone() | |
2106 | rng5.Parent = char | |
2107 | rng5.BrickColor = BrickColor.new("Dark stone grey") | |
2108 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
2109 | local rng5m = rng5.Mesh | |
2110 | local rng6 = rng:Clone() | |
2111 | rng6.Material = "Neon" | |
2112 | rng6.CanCollide = false | |
2113 | rng6.BrickColor = BrickColor.new("Neon orange") | |
2114 | rng6.Parent = LeftLeg | |
2115 | local rng6m = rng6.Mesh | |
2116 | rng6m.Scale = vt(1,1,1) | |
2117 | rng6m.MeshType = "Sphere" | |
2118 | local rng7 = rng:Clone() | |
2119 | rng7.Material = "Plastic" | |
2120 | rng7.CanCollide = false | |
2121 | rng7.BrickColor = BrickColor.new("Bright red") | |
2122 | rng7.Parent = LeftLeg | |
2123 | local rng7m = rng7.Mesh | |
2124 | rng7m.Scale = vt(1,1,1) | |
2125 | rng7m.MeshType = "Sphere" | |
2126 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1) | |
2127 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1) | |
2128 | wait() | |
2129 | local scaler = 10/5 | |
2130 | local scaler2 = 10/5 | |
2131 | local hit = rng6.Touched:connect(function(hit) | |
2132 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
2133 | CRIT=true | |
2134 | end) | |
2135 | for i = 0,10,0.1 do | |
2136 | swait() | |
2137 | rng.Transparency = rng.Transparency + 0.01 | |
2138 | rng2.Transparency = rng2.Transparency + 0.01 | |
2139 | rng3.Transparency = rng3.Transparency + 0.01 | |
2140 | rng4.Transparency = rng4.Transparency + 0.01 | |
2141 | rng5.Transparency = rng5.Transparency + 0.01 | |
2142 | rng6.Transparency = rng5.Transparency + 0.001 | |
2143 | rng7.Transparency = rng5.Transparency + 0.001 | |
2144 | scaler = scaler - 0.125/5 | |
2145 | scaler2 = scaler2 - 0.1/5 | |
2146 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
2147 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/7.5, scaler2/7.5, 0) | |
2148 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
2149 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
2150 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.2, scaler2/1.2, scaler2/1.2) | |
2151 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
2152 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2153 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
2154 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2155 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
2156 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
2157 | rng6.CFrame = killbrick.CFrame | |
2158 | rng7.CFrame = killbrick.CFrame | |
2159 | end | |
2160 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2161 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2162 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2163 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2164 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2165 | hum.WalkSpeed = 16 | |
2166 | hit:disconnect() | |
2167 | attack = false | |
2168 | killbrick:Destroy() | |
2169 | char.Head.face.Texture = "rbxassetid://29291814" | |
2170 | jumped = false | |
2171 | lig:Remove() | |
2172 | end | |
2173 | ||
2174 | ||
2175 | ||
2176 | ||
2177 | function punchd() | |
2178 | attack = true | |
2179 | jumped = true | |
2180 | hum.WalkSpeed = 30 | |
2181 | killbrick = Instance.new("Part",rarm) | |
2182 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
2183 | killbrick.Transparency = 1 | |
2184 | killbrick:BreakJoints() | |
2185 | killbrick.CanCollide = false | |
2186 | killbrick.Anchored = true | |
2187 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
2188 | lig = Instance.new("PointLight",player.Character.Torso) | |
2189 | lig.Color=Color3.new(255,0,0) | |
2190 | lig.Range = 20 | |
2191 | local bv = Instance.new("BodyVelocity") | |
2192 | bv.maxForce = Vector3.new(1,1,1) | |
2193 | bv.velocity = root.CFrame.lookVector*150 | |
2194 | bv.Parent = root | |
2195 | char.Head.face.Texture = "rbxassetid://126198982" | |
2196 | game:GetService("Debris"):AddItem(bv, 1) | |
2197 | local rng = Instance.new("Part", char) | |
2198 | rng.Anchored = true | |
2199 | rng.BrickColor = BrickColor.new("Neon orange") | |
2200 | rng.CanCollide = false | |
2201 | rng.FormFactor = 3 | |
2202 | rng.Name = "Ring" | |
2203 | rng.Size = Vector3.new(1, 1, 1) | |
2204 | rng.Transparency = 0 | |
2205 | rng.TopSurface = 0 | |
2206 | rng.BottomSurface = 0 | |
2207 | rng.CFrame = root.CFrame | |
2208 | local rngm = Instance.new("SpecialMesh", rng) | |
2209 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2210 | local rng2 = rng:Clone() | |
2211 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2212 | rng2.Parent = char | |
2213 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
2214 | local rng2m = rng2.Mesh | |
2215 | local rng3 = rng:Clone() | |
2216 | rng3.Parent = char | |
2217 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2218 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
2219 | local rng3m = rng3.Mesh | |
2220 | local rng4 = rng:Clone() | |
2221 | rng4.Parent = char | |
2222 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
2223 | local rng4m = rng4.Mesh | |
2224 | local rng5 = rng:Clone() | |
2225 | rng5.Parent = char | |
2226 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
2227 | local rng5m = rng5.Mesh | |
2228 | local rng6 = rng:Clone() | |
2229 | rng6.Material = "Neon" | |
2230 | rng6.CanCollide = false | |
2231 | rng6.BrickColor = BrickColor.new("Neon orange") | |
2232 | rng6.Parent = LeftLeg | |
2233 | local rng6m = rng6.Mesh | |
2234 | rng6m.Scale = vt(1,1,1) | |
2235 | rng6m.MeshType = "Sphere" | |
2236 | local rng7 = rng:Clone() | |
2237 | rng7.Material = "Plastic" | |
2238 | rng7.CanCollide = false | |
2239 | rng7.BrickColor = BrickColor.new("Bright red") | |
2240 | rng7.Parent = LeftLeg | |
2241 | local rng7m = rng7.Mesh | |
2242 | rng7m.Scale = vt(1,1,1) | |
2243 | rng7m.MeshType = "Sphere" | |
2244 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1) | |
2245 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1) | |
2246 | wait() | |
2247 | local scaler = 10/5 | |
2248 | local scaler2 = 10/5 | |
2249 | local hit = rng6.Touched:connect(function(hit) | |
2250 | Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1) | |
2251 | CRIT=true | |
2252 | end) | |
2253 | for i = 0,10,0.1 do | |
2254 | swait() | |
2255 | rng.Transparency = rng.Transparency + 0.01 | |
2256 | rng2.Transparency = rng2.Transparency + 0.01 | |
2257 | rng3.Transparency = rng3.Transparency + 0.01 | |
2258 | rng4.Transparency = rng4.Transparency + 0.01 | |
2259 | rng5.Transparency = rng5.Transparency + 0.01 | |
2260 | rng6.Transparency = rng5.Transparency + 0.001 | |
2261 | rng7.Transparency = rng5.Transparency + 0.001 | |
2262 | scaler = scaler - 0.125/5 | |
2263 | scaler2 = scaler2 - 0.1/5 | |
2264 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0) | |
2265 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
2266 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0) | |
2267 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
2268 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
2269 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
2270 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2271 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
2272 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2273 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
2274 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
2275 | rng6.CFrame = killbrick.CFrame | |
2276 | rng7.CFrame = killbrick.CFrame | |
2277 | end | |
2278 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2279 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2280 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2281 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2282 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2283 | hum.WalkSpeed = 16 | |
2284 | hit:disconnect() | |
2285 | attack = false | |
2286 | killbrick:Destroy() | |
2287 | char.Head.face.Texture = "rbxassetid://29291814" | |
2288 | jumped = false | |
2289 | lig:Remove() | |
2290 | end | |
2291 | ||
2292 | ||
2293 | ||
2294 | ||
2295 | function punch2() | |
2296 | attack = true | |
2297 | jumped = true | |
2298 | hum.WalkSpeed = 16 | |
2299 | killbrick = Instance.new("Part",rarm) | |
2300 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
2301 | killbrick.Transparency = 1 | |
2302 | killbrick:BreakJoints() | |
2303 | killbrick.CanCollide = false | |
2304 | killbrick.Anchored = true | |
2305 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
2306 | lig = Instance.new("PointLight",player.Character.Torso) | |
2307 | lig.Color=Color3.new(255,0,0) | |
2308 | lig.Range = 20 | |
2309 | local bv = Instance.new("BodyVelocity") | |
2310 | bv.maxForce = Vector3.new(1,1,1) | |
2311 | bv.velocity = root.CFrame.lookVector*150 | |
2312 | bv.Parent = root | |
2313 | char.Head.face.Texture = "rbxassetid://126198982" | |
2314 | game:GetService("Debris"):AddItem(bv, 1) | |
2315 | local rng = Instance.new("Part", char) | |
2316 | rng.Anchored = true | |
2317 | rng.BrickColor = BrickColor.new("Neon orange") | |
2318 | rng.CanCollide = false | |
2319 | rng.FormFactor = 3 | |
2320 | rng.Name = "Ring" | |
2321 | rng.Size = Vector3.new(1, 1, 1) | |
2322 | rng.Transparency = 0 | |
2323 | rng.TopSurface = 0 | |
2324 | rng.BottomSurface = 0 | |
2325 | rng.CFrame = root.CFrame | |
2326 | local rngm = Instance.new("SpecialMesh", rng) | |
2327 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2328 | local rng2 = rng:Clone() | |
2329 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2330 | rng2.Parent = char | |
2331 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
2332 | local rng2m = rng2.Mesh | |
2333 | local rng3 = rng:Clone() | |
2334 | rng3.Parent = char | |
2335 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2336 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
2337 | local rng3m = rng3.Mesh | |
2338 | local rng4 = rng:Clone() | |
2339 | rng4.Parent = char | |
2340 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
2341 | local rng4m = rng4.Mesh | |
2342 | local rng5 = rng:Clone() | |
2343 | rng5.Parent = char | |
2344 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
2345 | local rng5m = rng5.Mesh | |
2346 | local rng6 = rng:Clone() | |
2347 | rng6.Material = "Neon" | |
2348 | rng6.CanCollide = false | |
2349 | rng6.BrickColor = BrickColor.new("Neon orange") | |
2350 | rng6.Parent = LeftLeg | |
2351 | local rng6m = rng6.Mesh | |
2352 | rng6m.Scale = vt(1,1,1) | |
2353 | rng6m.MeshType = "Sphere" | |
2354 | local rng7 = rng:Clone() | |
2355 | rng7.Material = "Plastic" | |
2356 | rng7.CanCollide = false | |
2357 | rng7.BrickColor = BrickColor.new("Bright red") | |
2358 | rng7.Parent = LeftLeg | |
2359 | local rng7m = rng7.Mesh | |
2360 | rng7m.Scale = vt(1,1,1) | |
2361 | rng7m.MeshType = "Sphere" | |
2362 | CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1) | |
2363 | CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1) | |
2364 | wait() | |
2365 | local scaler = 10/5 | |
2366 | local scaler2 = 10/5 | |
2367 | local hit = rng6.Touched:connect(function(hit) | |
2368 | Damagefunc(hit,67,75,math.random(60,70),"Normal",root,.2,1) | |
2369 | end) | |
2370 | for i = 0,10,0.1 do | |
2371 | swait() | |
2372 | rng.Transparency = rng.Transparency + 0.01 | |
2373 | rng2.Transparency = rng2.Transparency + 0.01 | |
2374 | rng3.Transparency = rng3.Transparency + 0.01 | |
2375 | rng4.Transparency = rng4.Transparency + 0.01 | |
2376 | rng5.Transparency = rng5.Transparency + 0.01 | |
2377 | rng6.Transparency = rng5.Transparency + 0.001 | |
2378 | rng7.Transparency = rng5.Transparency + 0.001 | |
2379 | scaler = scaler - 0.125/5 | |
2380 | scaler2 = scaler2 - 0.1/5 | |
2381 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0) | |
2382 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0) | |
2383 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0) | |
2384 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
2385 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
2386 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
2387 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2388 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2389 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
2390 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
2391 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2392 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
2393 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
2394 | rng6.CFrame = killbrick.CFrame | |
2395 | rng7.CFrame = killbrick.CFrame | |
2396 | ||
2397 | end | |
2398 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2399 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2400 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2401 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2402 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2403 | hum.WalkSpeed = 16 | |
2404 | hit:disconnect() | |
2405 | attack = false | |
2406 | killbrick:Destroy() | |
2407 | char.Head.face.Texture = "rbxassetid://29291814" | |
2408 | jumped = false | |
2409 | lig:Remove() | |
2410 | end | |
2411 | ||
2412 | ||
2413 | function Crater(hed,Radius) | |
2414 | spawn(function() | |
2415 | local Ray = Ray.new(hed.Position,Vector3.new(0,-1,0)*10) | |
2416 | local Ignore = {} | |
2417 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2418 | if v.Character ~= nil then | |
2419 | Ignore[#Ignore+1] = v.Character | |
2420 | end | |
2421 | end | |
2422 | local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
2423 | if Hit == nil then return end | |
2424 | local Parts = {} | |
2425 | for i = 1,360,10 do | |
2426 | local P = Instance.new("Part",hed.Parent) | |
2427 | P.Anchored = true | |
2428 | P.FormFactor = "Custom" | |
2429 | P.BrickColor = Hit.BrickColor | |
2430 | P.Material = Hit.Material | |
2431 | P.TopSurface = "Smooth" | |
2432 | P.BottomSurface = "Smooth" | |
2433 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
2434 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2435 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
2436 | if math.random(0,5) == 0 then -- rubble | |
2437 | local P = Instance.new("Part",hed.Parent) | |
2438 | P.Anchored = true | |
2439 | P.FormFactor = "Custom" | |
2440 | P.BrickColor = Hit.BrickColor | |
2441 | P.Material = Hit.Material | |
2442 | P.TopSurface = "Smooth" | |
2443 | P.BottomSurface = "Smooth" | |
2444 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
2445 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2446 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
2447 | end | |
2448 | end | |
2449 | for i = 0,1,0.05 do | |
2450 | for i2,v in pairs(Parts) do | |
2451 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
2452 | end | |
2453 | wait(0) | |
2454 | end | |
2455 | for i,v in pairs(Parts) do | |
2456 | if v[1].Size.X > 2.1 then | |
2457 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
2458 | end | |
2459 | v[1].Anchored = false | |
2460 | end | |
2461 | for i = 0,1,0.05 do | |
2462 | for i2,v in pairs(Parts) do | |
2463 | v[1].Transparency = i | |
2464 | if i == 1 then | |
2465 | v[1]:Destroy() | |
2466 | elseif i >= 0.25 then | |
2467 | v[1].CanCollide = false | |
2468 | end | |
2469 | end | |
2470 | wait(0.02) | |
2471 | end | |
2472 | Parts = nil | |
2473 | end) | |
2474 | end | |
2475 | ||
2476 | ||
2477 | function shock() | |
2478 | attack = true | |
2479 | jumped = true | |
2480 | hum.WalkSpeed = 16 | |
2481 | killbrick = Instance.new("Part",rarm) | |
2482 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
2483 | killbrick.Transparency = 1 | |
2484 | killbrick:BreakJoints() | |
2485 | killbrick.CanCollide = false | |
2486 | killbrick.Anchored = true | |
2487 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
2488 | lig = Instance.new("PointLight",player.Character.Torso) | |
2489 | lig.Color=Color3.new(255,0,0) | |
2490 | lig.Range = 20 | |
2491 | local bv = Instance.new("BodyVelocity") | |
2492 | bv.maxForce = Vector3.new(1,1,1) | |
2493 | bv.velocity = root.CFrame.lookVector*150 | |
2494 | bv.Parent = root | |
2495 | char.Head.face.Texture = "rbxassetid://126198982" | |
2496 | game:GetService("Debris"):AddItem(bv, 1) | |
2497 | local rng = Instance.new("Part", char) | |
2498 | rng.Anchored = true | |
2499 | rng.BrickColor = BrickColor.new("Neon orange") | |
2500 | rng.CanCollide = false | |
2501 | rng.FormFactor = 3 | |
2502 | rng.Name = "Ring" | |
2503 | rng.Size = Vector3.new(1, 1, 1) | |
2504 | rng.Transparency = 0 | |
2505 | rng.TopSurface = 0 | |
2506 | rng.BottomSurface = 0 | |
2507 | rng.CFrame = root.CFrame | |
2508 | local rngm = Instance.new("SpecialMesh", rng) | |
2509 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2510 | local rng2 = rng:Clone() | |
2511 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2512 | rng2.Parent = char | |
2513 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
2514 | local rng2m = rng2.Mesh | |
2515 | local rng3 = rng:Clone() | |
2516 | rng3.Parent = char | |
2517 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2518 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
2519 | local rng3m = rng3.Mesh | |
2520 | local rng4 = rng:Clone() | |
2521 | rng4.Parent = char | |
2522 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
2523 | local rng4m = rng4.Mesh | |
2524 | local rng5 = rng:Clone() | |
2525 | rng5.Parent = char | |
2526 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
2527 | local rng5m = rng5.Mesh | |
2528 | local rng6 = rng:Clone() | |
2529 | rng6.Material = "Neon" | |
2530 | rng6.CanCollide = false | |
2531 | rng6.BrickColor = BrickColor.new("Neon orange") | |
2532 | rng6.Parent = LeftLeg | |
2533 | local rng6m = rng6.Mesh | |
2534 | rng6m.Scale = vt(1,1,1) | |
2535 | rng6m.MeshType = "Sphere" | |
2536 | local rng7 = rng:Clone() | |
2537 | rng7.Material = "Plastic" | |
2538 | rng7.CanCollide = false | |
2539 | rng7.BrickColor = BrickColor.new("Bright red") | |
2540 | rng7.Parent = LeftLeg | |
2541 | local rng7m = rng7.Mesh | |
2542 | rng7m.Scale = vt(1,1,1) | |
2543 | rng7m.MeshType = "Sphere" | |
2544 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
2545 | wait() | |
2546 | local scaler = 10/5 | |
2547 | local scaler2 = 10/5 | |
2548 | local hit = rng6.Touched:connect(function(hit) | |
2549 | Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1) | |
2550 | end) | |
2551 | for i = 0,10,0.1 do | |
2552 | swait() | |
2553 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
2554 | rng.Transparency = rng.Transparency + 0.01 | |
2555 | rng2.Transparency = rng2.Transparency + 0.01 | |
2556 | rng3.Transparency = rng3.Transparency + 0.01 | |
2557 | rng4.Transparency = rng4.Transparency + 0.01 | |
2558 | rng5.Transparency = rng5.Transparency + 0.01 | |
2559 | rng6.Transparency = rng5.Transparency + 0.001 | |
2560 | rng7.Transparency = rng5.Transparency + 0.001 | |
2561 | scaler = scaler - 0.125/5 | |
2562 | scaler2 = scaler2 - 0.1/5 | |
2563 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/0.25, scaler2/0.45, 0) | |
2564 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/0.5, scaler2/0.7, 0) | |
2565 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/0.75, scaler2/0.95, 0) | |
2566 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/0.9, scaler2/0.9, 0) | |
2567 | rng6.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6) | |
2568 | rng7.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6) | |
2569 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2570 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2571 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
2572 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
2573 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2574 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
2575 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
2576 | rng6.CFrame = killbrick.CFrame | |
2577 | rng7.CFrame = killbrick.CFrame | |
2578 | end | |
2579 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2580 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2581 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2582 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2583 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2584 | hum.WalkSpeed = 16 | |
2585 | hit:disconnect() | |
2586 | attack = false | |
2587 | killbrick:Destroy() | |
2588 | char.Head.face.Texture = "rbxassetid://29291814" | |
2589 | jumped = false | |
2590 | lig:Remove() | |
2591 | end | |
2592 | ||
2593 | ||
2594 | function punch3() | |
2595 | attack = true | |
2596 | jumped = true | |
2597 | hum.WalkSpeed = 16 | |
2598 | killbrick = Instance.new("Part",rarm) | |
2599 | killbrick.Size = Vector3.new(0.1,0.1,0.1) | |
2600 | killbrick.Transparency = 1 | |
2601 | killbrick:BreakJoints() | |
2602 | killbrick.CanCollide = false | |
2603 | killbrick.Anchored = true | |
2604 | killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0) | |
2605 | ||
2606 | killbrick2 = Instance.new("Part",rarm) | |
2607 | killbrick2.Size = Vector3.new(0.1,0.1,0.1) | |
2608 | killbrick2.Transparency = 1 | |
2609 | killbrick2:BreakJoints() | |
2610 | killbrick2.CanCollide = false | |
2611 | killbrick2.Anchored = true | |
2612 | killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-30) | |
2613 | lig = Instance.new("PointLight",player.Character.Torso) | |
2614 | lig.Color=Color3.new(255,0,0) | |
2615 | lig.Range = 20 | |
2616 | local bv = Instance.new("BodyVelocity") | |
2617 | bv.maxForce = Vector3.new(1,1,1) | |
2618 | bv.velocity = root.CFrame.lookVector*150 | |
2619 | bv.Parent = root | |
2620 | char.Head.face.Texture = "rbxassetid://126198982" | |
2621 | game:GetService("Debris"):AddItem(bv, 1) | |
2622 | local rng = Instance.new("Part", char) | |
2623 | rng.Anchored = true | |
2624 | rng.BrickColor = BrickColor.new("Neon orange") | |
2625 | rng.CanCollide = false | |
2626 | rng.FormFactor = 3 | |
2627 | rng.Name = "Ring" | |
2628 | rng.Size = Vector3.new(1, 1, 1) | |
2629 | rng.Transparency = 0 | |
2630 | rng.TopSurface = 0 | |
2631 | rng.BottomSurface = 0 | |
2632 | rng.CFrame = root.CFrame | |
2633 | local rngm = Instance.new("SpecialMesh", rng) | |
2634 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2635 | local rng2 = rng:Clone() | |
2636 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2637 | rng2.Parent = char | |
2638 | rng2.CFrame = root.CFrame + root.CFrame.lookVector*10 | |
2639 | local rng2m = rng2.Mesh | |
2640 | local rng3 = rng:Clone() | |
2641 | rng3.Parent = char | |
2642 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2643 | rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12 | |
2644 | local rng3m = rng3.Mesh | |
2645 | local rng4 = rng:Clone() | |
2646 | rng4.Parent = char | |
2647 | rng4.CFrame = root.CFrame + root.CFrame.lookVector*13 | |
2648 | local rng4m = rng4.Mesh | |
2649 | local rng5 = rng:Clone() | |
2650 | rng5.Parent = char | |
2651 | rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14 | |
2652 | local rng5m = rng5.Mesh | |
2653 | local rng6 = rng:Clone() | |
2654 | rng6.Material = "Neon" | |
2655 | rng6.CanCollide = false | |
2656 | rng6.BrickColor = BrickColor.new("Neon orange") | |
2657 | rng6.Parent = LeftLeg | |
2658 | local rng6m = rng6.Mesh | |
2659 | rng6m.Scale = vt(1,1,1) | |
2660 | rng6m.MeshType = "Sphere" | |
2661 | local rng7 = rng:Clone() | |
2662 | rng7.Material = "Plastic" | |
2663 | rng7.CanCollide = false | |
2664 | rng7.BrickColor = BrickColor.new("Bright red") | |
2665 | rng7.Parent = LeftLeg | |
2666 | local rng7m = rng7.Mesh | |
2667 | rng7m.Scale = vt(1,1,1) | |
2668 | rng7m.MeshType = "Sphere" | |
2669 | local rng8 = rng6:Clone() | |
2670 | rng8.Material = "Neon" | |
2671 | rng8.CanCollide = false | |
2672 | rng8.BrickColor = BrickColor.new("Neon orange") | |
2673 | rng8.Parent = LeftLeg | |
2674 | local rng8m = rng7.Mesh | |
2675 | rng8m.Scale = vt(1,1,1) | |
2676 | rng8m.MeshType = "Sphere" | |
2677 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
2678 | wait() | |
2679 | local scaler = 10/5 | |
2680 | local scaler2 = 10/5 | |
2681 | local hit = rng8.Touched:connect(function(hit) | |
2682 | Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1) | |
2683 | end) | |
2684 | for i = 0,10,0.1 do | |
2685 | swait() | |
2686 | rng.Transparency = rng.Transparency + 0.01 | |
2687 | rng2.Transparency = rng2.Transparency + 0.01 | |
2688 | rng3.Transparency = rng3.Transparency + 0.01 | |
2689 | rng4.Transparency = rng4.Transparency + 0.01 | |
2690 | rng5.Transparency = rng5.Transparency + 0.01 | |
2691 | rng6.Transparency = rng5.Transparency + 0.001 | |
2692 | rng7.Transparency = rng5.Transparency + 0.001 | |
2693 | rng8.Transparency = rng5.Transparency + 0.001 | |
2694 | scaler = scaler - 0.125/5 | |
2695 | scaler2 = scaler2 - 0.1/5 | |
2696 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0) | |
2697 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0) | |
2698 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0) | |
2699 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
2700 | rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5) | |
2701 | rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
2702 | rng8.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3) | |
2703 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2704 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
2705 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
2706 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
2707 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
2708 | rng6.CFrame = killbrick.CFrame | |
2709 | rng7.CFrame = killbrick.CFrame | |
2710 | rng8.CFrame = killbrick2.CFrame | |
2711 | end | |
2712 | game:GetService("Debris"):AddItem(rng, 0.1) | |
2713 | game:GetService("Debris"):AddItem(rng2, 0.1) | |
2714 | game:GetService("Debris"):AddItem(rng3, 0.1) | |
2715 | game:GetService("Debris"):AddItem(rng4, 0.1) | |
2716 | game:GetService("Debris"):AddItem(rng5, 0.1) | |
2717 | hum.WalkSpeed = 16 | |
2718 | hit:disconnect() | |
2719 | attack = false | |
2720 | killbrick:Destroy() | |
2721 | char.Head.face.Texture = "rbxassetid://29291814" | |
2722 | jumped = false | |
2723 | lig:Remove() | |
2724 | end | |
2725 | ||
2726 | ||
2727 | ||
2728 | function boom() | |
2729 | attack = true | |
2730 | jumped = true | |
2731 | hum.WalkSpeed = 0 | |
2732 | MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015) | |
2733 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1) | |
2734 | CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7) | |
2735 | for i = 0,15,0.1 do | |
2736 | swait() | |
2737 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
2738 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2739 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
2740 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
2741 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2742 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
2743 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
2744 | char.Head.face.Texture = "rbxassetid://126198982" | |
2745 | end | |
2746 | local rng = Instance.new("Part", char) | |
2747 | rng.Anchored = true | |
2748 | rng.BrickColor = BrickColor.new("Neon orange") | |
2749 | rng.CanCollide = false | |
2750 | rng.FormFactor = 3 | |
2751 | rng.Name = "Ring" | |
2752 | rng.Size = Vector3.new(1, 1, 1) | |
2753 | rng.Transparency = 0 | |
2754 | rng.TopSurface = 0 | |
2755 | rng.BottomSurface = 0 | |
2756 | rng.Position = root.Position | |
2757 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2758 | local rngm = Instance.new("SpecialMesh", rng) | |
2759 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2760 | local rng2 = rng:Clone() | |
2761 | rng2.Parent = char | |
2762 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
2763 | local rng2m = rng2.Mesh | |
2764 | local rng3 = rng:Clone() | |
2765 | rng3.Parent = char | |
2766 | local rng3m = rng3.Mesh | |
2767 | local rng4 = rng:Clone() | |
2768 | rng4.Parent = char | |
2769 | local rng4m = rng4.Mesh | |
2770 | local rng5 = rng:Clone() | |
2771 | rng5.Parent = char | |
2772 | rng5.BrickColor = BrickColor.new("Dark stone grey") | |
2773 | local rng5m = rng5.Mesh | |
2774 | local hit = rng5.Touched:connect(function(hit) | |
2775 | Damagefunc(hit,120,175,math.random(100,100),"Normal",root,.2,1) | |
2776 | end) | |
2777 | MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015) | |
2778 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1) | |
2779 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.85) | |
2780 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 10, 1) | |
2781 | wait() | |
2782 | local scaler = 10 | |
2783 | local scaler2 = 10 | |
2784 | for i = 0,10,0.1 do | |
2785 | swait() | |
2786 | rng.Transparency = rng.Transparency + 0.01 | |
2787 | rng2.Transparency = rng2.Transparency + 0.01 | |
2788 | rng3.Transparency = rng3.Transparency + 0.01 | |
2789 | rng4.Transparency = rng4.Transparency + 0.01 | |
2790 | rng5.Transparency = rng5.Transparency + 0.01 | |
2791 | scaler = scaler - 0.125 | |
2792 | scaler2 = scaler2 - 0.1 | |
2793 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4) | |
2794 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3) | |
2795 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2) | |
2796 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1) | |
2797 | rng5.Size = rng5m.Scale | |
2798 | rng5.CFrame = rng.CFrame | |
2799 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5) | |
2800 | text.Text = " DIE! " | |
2801 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2802 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
2803 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5) | |
2804 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2805 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5) | |
2806 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5) | |
2807 | end | |
2808 | hit:disconnect() | |
2809 | game:GetService("Debris"):AddItem(rng, 1) | |
2810 | game:GetService("Debris"):AddItem(rng2, 1) | |
2811 | game:GetService("Debris"):AddItem(rng3, 1) | |
2812 | game:GetService("Debris"):AddItem(rng4, 1) | |
2813 | game:GetService("Debris"):AddItem(rng5, 1) | |
2814 | hum.WalkSpeed = 16 | |
2815 | attack = false | |
2816 | text.Text = " " | |
2817 | char.Head.face.Texture = "rbxassetid://29291814" | |
2818 | jumped = false | |
2819 | end | |
2820 | ||
2821 | function shooty() | |
2822 | attack = true | |
2823 | MagicBlock(bc("Neon orange"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015) | |
2824 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1) | |
2825 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7) | |
2826 | for i = 0,15,0.1 do | |
2827 | swait() | |
2828 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
2829 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
2830 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
2831 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05) | |
2832 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
2833 | char.Head.face.Texture = "rbxassetid://126198982" | |
2834 | end | |
2835 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1) | |
2836 | local a = Instance.new("Part",Character) | |
2837 | a.Name = "Direction" | |
2838 | a.Anchored = true | |
2839 | a.BrickColor = bc("Neon orange") | |
2840 | a.Material = "Neon" | |
2841 | a.Transparency = 1 | |
2842 | a.CanCollide = false | |
2843 | local ray = Ray.new( | |
2844 | root.CFrame.p, -- origin | |
2845 | (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction | |
2846 | ) | |
2847 | local ignore = Character | |
2848 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2849 | a.BottomSurface = 10 | |
2850 | a.TopSurface = 10 | |
2851 | local distance = (root.CFrame.p - position).magnitude | |
2852 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2853 | a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2854 | local lb = Instance.new("Part") | |
2855 | lb.Parent = char | |
2856 | lb.BrickColor = bc("Neon orange") | |
2857 | local pie22 = Instance.new("ParticleEmitter") | |
2858 | pie22.Parent = char.Torso | |
2859 | pie22.Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color) | |
2860 | pie22.LightEmission = 0 | |
2861 | pie22.Size = NumberSequence.new(10,5) | |
2862 | pie22.Texture = "http://www.roblox.com/asset/?id=254959503" | |
2863 | pie22.Transparency = NumberSequence.new(0, 1) | |
2864 | pie22.EmissionDirection = "Top" | |
2865 | pie22.Enabled = true | |
2866 | pie22.Lifetime = NumberRange.new(1) | |
2867 | pie22.Rotation = NumberRange.new(-17, 17) | |
2868 | pie22.Rate = 200 | |
2869 | pie22.Speed = NumberRange.new(3) | |
2870 | pie22.LockedToPart = false | |
2871 | pie22.VelocitySpread = 3 | |
2872 | pie22.Name = "Haa" | |
2873 | pie22.Parent = lb | |
2874 | lb.CanCollide = false | |
2875 | lb.Material = "Neon" | |
2876 | lb.Anchored = true | |
2877 | lb.TopSurface = 0 | |
2878 | lb.BottomSurface = 0 | |
2879 | lb.Transparency = 0 | |
2880 | lb.Size = vt(0.5,0.5,0.5) | |
2881 | lb.CFrame = sorb.CFrame | |
2882 | lb.Anchored = false | |
2883 | local thingery = Instance.new("SpecialMesh",lb) | |
2884 | thingery.MeshType = "Sphere" | |
2885 | thingery.Scale = vt(25,25,25) | |
2886 | game:GetService("Debris"):AddItem(lb, 10) | |
2887 | local bv = Instance.new("BodyVelocity") | |
2888 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2889 | bv.velocity = a.CFrame.lookVector*150 | |
2890 | bv.Parent = lb | |
2891 | game:GetService("Debris"):AddItem(a, 0.1) | |
2892 | wait(0.05) | |
2893 | local hitted = false | |
2894 | lb.Touched:connect(function(hit) | |
2895 | if hitted == false then | |
2896 | hitted = true | |
2897 | lb.Anchored = true | |
2898 | lb.Transparency = 1 | |
2899 | local rng = Instance.new("Part", char) | |
2900 | rng.Anchored = true | |
2901 | rng.BrickColor = BrickColor.new("Neon orange") | |
2902 | rng.CanCollide = false | |
2903 | rng.FormFactor = 3 | |
2904 | rng.Name = "Ring" | |
2905 | rng.Size = Vector3.new(1, 1, 1) | |
2906 | rng.Transparency = 0 | |
2907 | rng.TopSurface = 0 | |
2908 | rng.BottomSurface = 0 | |
2909 | rng.CFrame = lb.CFrame | |
2910 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
2911 | local rngm = Instance.new("SpecialMesh", rng) | |
2912 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2913 | local rng2 = rng:Clone() | |
2914 | rng2.Parent = char | |
2915 | local rng2m = rng2.Mesh | |
2916 | local rng3 = rng:Clone() | |
2917 | rng3.Parent = char | |
2918 | rng3.BrickColor = BrickColor.new("Dark stone grey") | |
2919 | local rng3m = rng3.Mesh | |
2920 | local rng4 = rng:Clone() | |
2921 | rng4.Parent = char | |
2922 | local rng4m = rng4.Mesh | |
2923 | local rng5 = rng:Clone() | |
2924 | rng5.Parent = char | |
2925 | rng5.BrickColor = BrickColor.new("Dark stone grey") | |
2926 | rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
2927 | local rng5m = rng5.Mesh | |
2928 | rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
2929 | rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
2930 | rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360))) | |
2931 | MagicBlock(bc("White"),lb.CFrame,15,15,15,5,5,5,0.015) | |
2932 | local rng6 = rng:Clone() | |
2933 | rng6.Material = "Neon" | |
2934 | rng6.Parent = char | |
2935 | local rng6m = rng6.Mesh | |
2936 | rng6m.Scale = vt(1,1,1) | |
2937 | rng6m.MeshType = "Sphere" | |
2938 | local hita = rng6.Touched:connect(function(hit) | |
2939 | Damagefunc(hit,72,78,math.random(70,70),"Normal",root,.2,1) | |
2940 | end) | |
2941 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1) | |
2942 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.75) | |
2943 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1) | |
2944 | local scaler = 5 | |
2945 | local scaler2 = 5 | |
2946 | for i = 0,20,0.1 do | |
2947 | swait() | |
2948 | rng.Transparency = rng.Transparency + 0.005 | |
2949 | rng2.Transparency = rng2.Transparency + 0.005 | |
2950 | rng3.Transparency = rng3.Transparency + 0.005 | |
2951 | rng4.Transparency = rng4.Transparency + 0.005 | |
2952 | rng5.Transparency = rng5.Transparency + 0.005 | |
2953 | rng6.Transparency = rng6.Transparency + 0.005 | |
2954 | scaler = scaler - 0.005/2 | |
2955 | scaler2 = scaler2 - 0.05/2 | |
2956 | rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3) | |
2957 | rng6.CFrame = rng.CFrame | |
2958 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
2959 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0) | |
2960 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0) | |
2961 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0) | |
2962 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2963 | end | |
2964 | hita:disconnect() | |
2965 | game:GetService("Debris"):AddItem(rng, 1) | |
2966 | game:GetService("Debris"):AddItem(rng2, 1) | |
2967 | game:GetService("Debris"):AddItem(rng3, 1) | |
2968 | game:GetService("Debris"):AddItem(rng4, 1) | |
2969 | game:GetService("Debris"):AddItem(rng5, 1) | |
2970 | game:GetService("Debris"):AddItem(rng6, 1) | |
2971 | end | |
2972 | end) | |
2973 | for i = 0,2,0.1 do | |
2974 | swait() | |
2975 | MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
2976 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
2977 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
2978 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
2979 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
2980 | text.Text = " DIE! " | |
2981 | end | |
2982 | attack = false | |
2983 | text.Text = " " | |
2984 | char.Head.face.Texture = "rbxassetid://29291814" | |
2985 | end | |
2986 | ||
2987 | function superpunch() | |
2988 | attack = true | |
2989 | jumped = true | |
2990 | hum.WalkSpeed = 16 | |
2991 | chatfunc("You'll be fine as long as you dodge!") | |
2992 | wait(1.5) | |
2993 | text.Text = " " | |
2994 | wait(0.5) | |
2995 | CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1) | |
2996 | CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7) | |
2997 | wait(0.7) | |
2998 | chatfunc("Explosion Grenade!") | |
2999 | for i = 0,15,0.1 do | |
3000 | swait() | |
3001 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
3002 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05) | |
3003 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05) | |
3004 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05) | |
3005 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05) | |
3006 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05) | |
3007 | char.Head.face.Texture = "rbxassetid://126198982" | |
3008 | end | |
3009 | local rng = Instance.new("Part", char) | |
3010 | rng.Anchored = true | |
3011 | rng.BrickColor = BrickColor.new("Neon orange") | |
3012 | rng.CanCollide = false | |
3013 | rng.FormFactor = 3 | |
3014 | rng.Name = "Ring" | |
3015 | rng.Size = Vector3.new(1, 1, 1) | |
3016 | rng.Transparency = 0 | |
3017 | rng.TopSurface = 0 | |
3018 | rng.BottomSurface = 0 | |
3019 | rng.CFrame = root.CFrame | |
3020 | local rngm = Instance.new("SpecialMesh", rng) | |
3021 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3022 | local rng2 = rng:Clone() | |
3023 | rng2.Parent = char | |
3024 | rng2.BrickColor = BrickColor.new("Dark stone grey") | |
3025 | local rng2m = rng2.Mesh | |
3026 | local rng3 = rng:Clone() | |
3027 | rng3.Parent = char | |
3028 | local rng3m = rng3.Mesh | |
3029 | local rng4 = rng:Clone() | |
3030 | rng4.Parent = char | |
3031 | rng4.BrickColor = BrickColor.new("Dark stone grey") | |
3032 | local rng4m = rng4.Mesh | |
3033 | local rng5 = rng:Clone() | |
3034 | rng5.Parent = char | |
3035 | local rng5m = rng5.Mesh | |
3036 | local rng6 = rng:Clone() | |
3037 | rng6.Material = "Neon" | |
3038 | rng6.Parent = char | |
3039 | local rng6m = rng6.Mesh | |
3040 | rng6m.Scale = vt(1,1,1) | |
3041 | rng6m.MeshType = "Sphere" | |
3042 | local hita = rng6.Touched:connect(function(hit) | |
3043 | Damagefunc(hit,30000,44000,math.random(30000,40000),"Normal",root,.2,1) | |
3044 | end) | |
3045 | rng2.CFrame = root.CFrame | |
3046 | rng3.CFrame = root.CFrame | |
3047 | rng4.CFrame = root.CFrame | |
3048 | rng5.CFrame = root.CFrame | |
3049 | rng6.CFrame = root.CFrame | |
3050 | CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1) | |
3051 | CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85) | |
3052 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1) | |
3053 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1) | |
3054 | CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1) | |
3055 | wait() | |
3056 | local scaler = 10/5 | |
3057 | local scaler2 = 10/5 | |
3058 | MagicBlock(bc("Dark stone grey"),root.CFrame,30,30,30,5,5,5,0.015) | |
3059 | for i = 0,10,0.1 do | |
3060 | swait() | |
3061 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2 | |
3062 | rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/0.25 | |
3063 | rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/0.5 | |
3064 | rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/0.75 | |
3065 | rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2 | |
3066 | rng6.Size = rng6.Size + Vector3.new(scaler2/0.9, scaler2/0.9, scaler2/0.4) | |
3067 | rng6.CFrame = rng.CFrame | |
3068 | rng.Transparency = rng.Transparency + 0.01 | |
3069 | rng2.Transparency = rng2.Transparency + 0.01 | |
3070 | rng3.Transparency = rng3.Transparency + 0.01 | |
3071 | rng4.Transparency = rng4.Transparency + 0.01 | |
3072 | rng5.Transparency = rng5.Transparency + 0.01 | |
3073 | rng6.Transparency = rng6.Transparency + 0.01 | |
3074 | scaler = scaler - 0.125/5 | |
3075 | scaler2 = scaler2 - 0.1/5 | |
3076 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5) | |
3077 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1) | |
3078 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5) | |
3079 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0) | |
3080 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2) | |
3081 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5) | |
3082 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5) | |
3083 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5) | |
3084 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5) | |
3085 | end | |
3086 | hita:disconnect() | |
3087 | game:GetService("Debris"):AddItem(rng, 1) | |
3088 | game:GetService("Debris"):AddItem(rng2, 1) | |
3089 | game:GetService("Debris"):AddItem(rng3, 1) | |
3090 | game:GetService("Debris"):AddItem(rng4, 1) | |
3091 | game:GetService("Debris"):AddItem(rng5, 1) | |
3092 | hum.WalkSpeed = 16 | |
3093 | attack = false | |
3094 | char.Head.face.Texture = "rbxassetid://29291814" | |
3095 | jumped = false | |
3096 | end | |
3097 | ||
3098 | ||
3099 | ||
3100 | ||
3101 | ||
3102 | ||
3103 | ||
3104 | mouse.KeyDown:connect(function(k) | |
3105 | if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then | |
3106 | jump() | |
3107 | end | |
3108 | if k == "x" and attack == false then | |
3109 | dash() | |
3110 | end | |
3111 | if k == "t" and attack == false then | |
3112 | dashh() | |
3113 | end | |
3114 | if k == "r" and attack == false then | |
3115 | dashs() | |
3116 | end | |
3117 | if k == "p" and attack == false then | |
3118 | asd:Stop() | |
3119 | end | |
3120 | if k == "g" and attack == false then | |
3121 | chatfunc("Deku!") | |
3122 | end | |
3123 | if k == "1" and attack == false then | |
3124 | chatfunc("Weak!") | |
3125 | end | |
3126 | if k == "2" and attack == false then | |
3127 | chatfunc("That's what you consider strong?!") | |
3128 | end | |
3129 | if k == "3" and attack == false then | |
3130 | chatfunc("Useless!") | |
3131 | end | |
3132 | if k == "4" and attack == false then | |
3133 | chatfunc("What?!") | |
3134 | end | |
3135 | if k == "5" and attack == false then | |
3136 | chatfunc("Hmph.") | |
3137 | end | |
3138 | if k == "6" and attack == false then | |
3139 | chatfunc("Trash!") | |
3140 | end | |
3141 | if k == "7" and attack == false then | |
3142 | chatfunc("You're Nothing!") | |
3143 | end | |
3144 | if k == "h" and attack == false then | |
3145 | chatfunc("Die!") | |
3146 | end | |
3147 | if k == "m" and attack == false then | |
3148 | char.Head.face.Texture = "rbxassetid://126198982" | |
3149 | chatfunc("I'll crush you!") | |
3150 | end | |
3151 | if k == "j" and attack == false then | |
3152 | chatfunc("Idiot!") | |
3153 | end | |
3154 | if k == "k" and attack == false then | |
3155 | chatfunc("I'll crush that Half-n-Half bastard..") | |
3156 | end | |
3157 | if k == "l" and attack == false then | |
3158 | chatfunc("Remember who you are.. YOU'RE BENEATH ME!") | |
3159 | end | |
3160 | if k == "f" and attack == false then | |
3161 | daash() | |
3162 | end | |
3163 | if k == "u" and attack == false then | |
3164 | asd:Play() | |
3165 | end | |
3166 | if k == "e" and attack == false then | |
3167 | punch() | |
3168 | end | |
3169 | if k == "y" and attack == false then | |
3170 | punch3() | |
3171 | end | |
3172 | ||
3173 | if k == "q" and attack == false then | |
3174 | punch2() | |
3175 | end | |
3176 | if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then | |
3177 | boom() | |
3178 | end | |
3179 | if k == "v" and attack == false then | |
3180 | shooty() | |
3181 | end | |
3182 | if k == "l" and attack == false then | |
3183 | if Serious == true then | |
3184 | punchd() | |
3185 | end | |
3186 | end | |
3187 | if k == "b" and attack == false then | |
3188 | superpunch() | |
3189 | end | |
3190 | end) | |
3191 | mouse.KeyDown:connect(function(key) | |
3192 | if key=="8" then | |
3193 | Serious() | |
3194 | end | |
3195 | end) | |
3196 | Health = math.huge --------- Serious mode aura. | |
3197 | BaseHealth = math.huge | |
3198 | ||
3199 | ||
3200 | ||
3201 | ||
3202 | InForm = false | |
3203 | ||
3204 | Player = game.Players.LocalPlayer | |
3205 | Char = Player.Character | |
3206 | Torso = Char.Torso | |
3207 | ||
3208 | function Serious() | |
3209 | for X = 1, 1 do wait() | |
3210 | asd1 = Instance.new("Sound",char) | |
3211 | asd1.SoundId = "http://www.roblox.com/asset/?id = 934992368" | |
3212 | asd1.Volume = 2 | |
3213 | asd1.Looped = true | |
3214 | asd1:Play() | |
3215 | chatfunc("...") | |
3216 | wait(1.6) | |
3217 | chatfunc("...You..") | |
3218 | wait(1.6) | |
3219 | chatfunc("...") | |
3220 | wait(1.6) | |
3221 | chatfunc("There's no point in winning if both sides don't give it their all.") | |
3222 | wait(8) | |
3223 | for X = 1, 1 do wait() | |
3224 | local Effect = Instance.new("Part") | |
3225 | Effect.Name = "Effect" | |
3226 | Effect.Parent = Torso | |
3227 | Effect.CFrame = Torso.CFrame | |
3228 | Effect.BrickColor = BrickColor.new("Neon orange") | |
3229 | Effect.Shape = "Ball" | |
3230 | Effect.Size = Vector3.new(1, 1, 1) | |
3231 | Effect.Anchored = true | |
3232 | Effect.Material = "Neon" | |
3233 | Effect.CanCollide = false | |
3234 | Effect.CFrame = Torso.CFrame | |
3235 | Effect.Size = Effect.Size + Vector3.new(0.5) | |
3236 | Effect.Transparency = Effect.Transparency + 0.04 | |
3237 | end | |
3238 | end | |
3239 | ||
3240 | repeat | |
3241 | Torso:FindFirstChild("Effect"):Remove() | |
3242 | until Torso:FindFirstChild("Effect") == nil | |
3243 | ||
3244 | ||
3245 | local Color1 = Color3.new(255, 255, 0) | |
3246 | local Color2 = Color3.new(255, 255, 0) | |
3247 | ||
3248 | ||
3249 | local Aura = Instance.new('ParticleEmitter') | |
3250 | Aura.Name = "Aura" | |
3251 | Aura.Texture = "rbxassetid://254959503" | |
3252 | Aura.Parent = Torso | |
3253 | Aura.LightEmission = 0.6 | |
3254 | Aura.Transparency = NumberSequence.new(0.5) | |
3255 | Aura.Color = ColorSequence.new(BrickColor.new("Neon orange").Color) | |
3256 | Aura.Size = NumberSequence.new(7,4,1) | |
3257 | Aura.LockedToPart = false | |
3258 | Aura.Lifetime = NumberRange.new(3) | |
3259 | Aura.Rate = 40 | |
3260 | Aura.Speed = NumberRange.new(2) | |
3261 | Aura.Rotation = NumberRange.new(-420,420) | |
3262 | Aura.EmissionDirection = "Top" | |
3263 | MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05) | |
3264 | punch2() | |
3265 | chatfunc("DON'T UNDERESTIMATE ME!") | |
3266 | Instance.new("ForceField",char).Visible = false | |
3267 | hum.Name = "youdungoofed" | |
3268 | local Aura2 = Instance.new('ParticleEmitter') | |
3269 | Aura2.Name = "Aura" | |
3270 | Aura2.Texture = "rbxassetid://254959503" | |
3271 | Aura2.Parent = Torso | |
3272 | Aura2.LightEmission = 0 | |
3273 | Aura2.Transparency = NumberSequence.new(0.7) | |
3274 | Aura2.Color = ColorSequence.new(BrickColor.new("Grey").Color) | |
3275 | Aura2.Size = NumberSequence.new(10,6,1) | |
3276 | Aura2.LockedToPart = false | |
3277 | Aura2.Lifetime = NumberRange.new(3) | |
3278 | Aura2.Rate = 40 | |
3279 | Aura2.Speed = NumberRange.new(2) | |
3280 | Aura2.Rotation = NumberRange.new(3,-3) | |
3281 | Aura2.EmissionDirection = "Top" | |
3282 | local Aura3 = Instance.new('ParticleEmitter') | |
3283 | Aura3.Name = "Aura" | |
3284 | Aura3.Texture = "rbxassetid://245595131" | |
3285 | Aura3.Parent = Torso | |
3286 | Aura3.LightEmission = 1 | |
3287 | Aura3.Transparency = NumberSequence.new(0.7) | |
3288 | Aura3.Color = ColorSequence.new(BrickColor.new("Grey").Color) | |
3289 | Aura3.Size = NumberSequence.new(0.6) | |
3290 | Aura3.LockedToPart = false | |
3291 | Aura3.Lifetime = NumberRange.new(1) | |
3292 | Aura3.Rate = 40 | |
3293 | Aura3.Speed = NumberRange.new(2) | |
3294 | Aura3.Rotation = NumberRange.new(3,-3) | |
3295 | Aura3.EmissionDirection = "Top" | |
3296 | ||
3297 | ||
3298 | InForm = true | |
3299 | ||
3300 | Char.Humanoid.MaxHealth = Health | |
3301 | wait(0.3) | |
3302 | Char.Humanoid.Health = Health | |
3303 | ||
3304 | ||
3305 | end | |
3306 | ||
3307 | function Base() | |
3308 | InForm = false | |
3309 | local Effect = Instance.new("Part") | |
3310 | Effect.Name = "Effect" | |
3311 | Effect.Parent = Torso | |
3312 | Effect.CFrame = Torso.CFrame | |
3313 | Effect.BrickColor = BrickColor.new("White") | |
3314 | Effect.Shape = "Ball" | |
3315 | Effect.Size = Vector3.new(8, 8, 8) | |
3316 | Effect.Anchored = true | |
3317 | Effect.Material = "Neon" | |
3318 | Effect.CanCollide = false | |
3319 | for loop = 1, 25 do wait() | |
3320 | Effect.CFrame = Torso.CFrame | |
3321 | Effect.Size = Effect.Size + Vector3.new(-0.5) | |
3322 | Effect.Transparency = Effect.Transparency + 0.04 | |
3323 | end | |
3324 | repeat | |
3325 | Torso:FindFirstChild("Effect"):Remove() | |
3326 | until Torso:FindFirstChild("Effect") == nil | |
3327 | ||
3328 | for i, v in pairs(Torso:GetChildren()) do | |
3329 | if v:IsA('ParticleEmitter') then | |
3330 | v:Remove() | |
3331 | asd1:Destroy() | |
3332 | killbrick:Destroy() | |
3333 | end | |
3334 | end | |
3335 | char.Humanoid.MaxHealth = BaseHealth | |
3336 | wait(0.3) | |
3337 | char.Humanoid.Health = BaseHealth | |
3338 | ||
3339 | end | |
3340 | ||
3341 | mouse.KeyDown:connect(function(key) | |
3342 | if key=="9" then | |
3343 | Base() | |
3344 | end | |
3345 | end) | |
3346 | ||
3347 | Player.Chatted:connect(function(Message) | |
3348 | if Message == "Time to get serious." and InForm == false then | |
3349 | wait(0.10) | |
3350 | Serious() | |
3351 | end | |
3352 | if Message == "off" or Message == "Nice fight." and InForm == true then | |
3353 | Base() | |
3354 | end | |
3355 | end) | |
3356 | Humanoid.Animator.Parent = nil | |
3357 | idleanim=.4 | |
3358 | while true do | |
3359 | swait() | |
3360 | sine = sine + change | |
3361 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
3362 | local velderp=RootPart.Velocity.y | |
3363 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
3364 | if equipped==true or equipped==false then | |
3365 | if attack==false then | |
3366 | idle=idle+1 | |
3367 | else | |
3368 | idle=0 | |
3369 | end | |
3370 | if idle>=500 then | |
3371 | if attack==false then | |
3372 | --Sheath() | |
3373 | end | |
3374 | end | |
3375 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
3376 | Anim="Jump" | |
3377 | if attack==false then | |
3378 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
3379 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3380 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
3381 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
3382 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3383 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
3384 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3385 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
3386 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
3387 | end | |
3388 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
3389 | Anim="Fall" | |
3390 | if attack==false then | |
3391 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
3392 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3393 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3394 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
3395 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3396 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
3397 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3398 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
3399 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
3400 | end | |
3401 | elseif torvel<1 and hitfloor~=nil then | |
3402 | Anim="Idle" | |
3403 | if jumped == false then | |
3404 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3) | |
3405 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3) | |
3406 | end | |
3407 | if attack==false then | |
3408 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3409 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3) | |
3410 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3) | |
3411 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3) | |
3412 | end | |
3413 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
3414 | Anim="Walk" | |
3415 | if jumped == false then | |
3416 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3) | |
3417 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3) | |
3418 | end | |
3419 | if attack==false then | |
3420 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
3421 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
3422 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3) | |
3423 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3) | |
3424 | end | |
3425 | elseif torvel>=22 and hitfloor~=nil then | |
3426 | Anim="Run" | |
3427 | if jumped == false then | |
3428 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
3429 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
3430 | end | |
3431 | if attack==false then | |
3432 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
3433 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
3434 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
3435 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
3436 | end | |
3437 | end | |
3438 | end | |
3439 | end |