SHOW:
|
|
- or go back to the newest paste.
1 | - | Player=game:GetService("Players").LocalPlayer |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end Player=game:GetService("Players").LocalPlayer | |
6 | Character=Player.Character | |
7 | PlayerGui=Player.PlayerGui | |
8 | Backpack=Player.Backpack | |
9 | Torso=Character.Torso | |
10 | Head=Character.Head | |
11 | Humanoid=Character.Humanoid | |
12 | LeftArm=Character["Left Arm"] | |
13 | LeftLeg=Character["Left Leg"] | |
14 | rarm=Character["Right Arm"] | |
15 | RightLeg=Character["Right Leg"] | |
16 | cam=game.Workspace.CurrentCamera | |
17 | LS=Torso["Left Shoulder"] | |
18 | RS=Torso["Right Shoulder"] | |
19 | RH=Torso["Right Hip"] | |
20 | Face = Head.face | |
21 | Neck=Torso.Neck | |
22 | it=Instance.new | |
23 | attacktype=1 | |
24 | vt=Vector3.new | |
25 | cf=CFrame.new | |
26 | euler=CFrame.fromEulerAnglesXYZ | |
27 | angles=CFrame.Angles | |
28 | cloaked=false | |
29 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
30 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
31 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
32 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
33 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
34 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
35 | RootPart=Character.HumanoidRootPart | |
36 | RootJoint=RootPart.RootJoint | |
37 | RootCF=euler(-1.57,0,3.14) | |
38 | attack = false | |
39 | bounce=false | |
40 | cooldown=false | |
41 | deeznuts=false | |
42 | attackdebounce = false | |
43 | deb=false | |
44 | equipped=true | |
45 | hand=false | |
46 | MMouse=nil | |
47 | combo=0 | |
48 | mana=0 | |
49 | trispeed=.5 | |
50 | attackmode='none' | |
51 | local idle=0 | |
52 | local Anim="Idle" | |
53 | local Effects={} | |
54 | local gun=false | |
55 | local shoot=false | |
56 | player=nil | |
57 | mana=0 | |
58 | cam = workspace.CurrentCamera | |
59 | ZTarget = nil | |
60 | RocketTarget = nil | |
61 | local m = Instance.new("Model",Character) | |
62 | m.Name = "WeaponModel" | |
63 | ||
64 | local m2 = Instance.new("Model",Character) | |
65 | m2.Name = "MetalMan" | |
66 | ||
67 | for i,v in pairs(Character.Head:children())do | |
68 | if v:IsA('Decal')then v:Destroy()end | |
69 | end | |
70 | ||
71 | mouse=Player:GetMouse() | |
72 | --save shoulders | |
73 | RSH, LSH=nil, nil | |
74 | --welds | |
75 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
76 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
77 | LH=Torso["Left Hip"] | |
78 | RH=Torso["Right Hip"] | |
79 | TorsoColor=Torso.BrickColor | |
80 | function NoOutline(Part) | |
81 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
82 | end | |
83 | player=Player | |
84 | ch=Character | |
85 | RSH=ch.Torso["Right Shoulder"] | |
86 | LSH=ch.Torso["Left Shoulder"] | |
87 | -- | |
88 | RSH.Parent=nil | |
89 | LSH.Parent=nil | |
90 | -- | |
91 | RW.Name="Right Shoulder" | |
92 | RW.Part0=ch.Torso | |
93 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
94 | RW.C1=cf(0, 0.5, 0) | |
95 | RW.Part1=ch["Right Arm"] | |
96 | RW.Parent=ch.Torso | |
97 | -- | |
98 | LW.Name="Left Shoulder" | |
99 | LW.Part0=ch.Torso | |
100 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
101 | LW.C1=cf(0, 0.5, 0) | |
102 | LW.Part1=ch["Left Arm"] | |
103 | LW.Parent=ch.Torso | |
104 | ||
105 | function swait(num) | |
106 | if num==0 or num==nil then | |
107 | game:service'RunService'.Heartbeat:wait(0) | |
108 | else | |
109 | for i=0,num do | |
110 | game:service'RunService'.Heartbeat:wait(0) | |
111 | end | |
112 | end | |
113 | end | |
114 | ||
115 | function nooutline(part) | |
116 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
117 | end | |
118 | ||
119 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
120 | local fp=it("Part") | |
121 | fp.formFactor=formfactor | |
122 | fp.Parent=parent | |
123 | fp.Reflectance=reflectance | |
124 | fp.Transparency=transparency | |
125 | fp.CanCollide=false | |
126 | fp.Locked=true | |
127 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
128 | fp.Name=name | |
129 | fp.Size=size | |
130 | fp.Position=Character.Torso.Position | |
131 | nooutline(fp) | |
132 | fp.Material=material | |
133 | fp:BreakJoints() | |
134 | return fp | |
135 | end | |
136 | ||
137 | function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
138 | local fp = it("Part") | |
139 | fp.formFactor = formfactor | |
140 | fp.Parent = parent | |
141 | fp.Reflectance = reflectance | |
142 | fp.Transparency = transparency | |
143 | fp.CanCollide = false | |
144 | fp.Locked=true | |
145 | fp.BrickColor = brickcolor | |
146 | fp.Name = name | |
147 | fp.Size = size | |
148 | fp.Position = EffectPart.Position | |
149 | NoOutline(fp) | |
150 | fp.Material="Neon" | |
151 | fp:BreakJoints() | |
152 | return fp | |
153 | end | |
154 | ||
155 | function wweld(parent,part0,part1,c0) | |
156 | local weld=it("Weld") | |
157 | weld.Parent=parent | |
158 | weld.Part0=part0 | |
159 | weld.Part1=part1 | |
160 | weld.C0=c0 | |
161 | return weld | |
162 | end | |
163 | ||
164 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
165 | local mesh=it(Mesh) | |
166 | mesh.Parent=part | |
167 | if Mesh=="SpecialMesh" then | |
168 | mesh.MeshType=meshtype | |
169 | mesh.MeshId=meshid | |
170 | end | |
171 | mesh.Offset=offset | |
172 | mesh.Scale=scale | |
173 | return mesh | |
174 | end | |
175 | ||
176 | function decal(part,face,texture,transparency,shiny,specular,name) | |
177 | local d=it("Decal",part) | |
178 | d.Shiny=shiny | |
179 | d.Face=face | |
180 | d.Specular=specular | |
181 | d.Transparency=transparency | |
182 | d.Texture=texture | |
183 | d.Name=name | |
184 | return d | |
185 | end | |
186 | ||
187 | function weld(parent,part0,part1,c0,c1) | |
188 | local weld=it("Weld") | |
189 | weld.Parent=parent | |
190 | weld.Part0=part0 | |
191 | weld.Part1=part1 | |
192 | weld.C0=c0 | |
193 | weld.C1=c1 | |
194 | return weld | |
195 | end | |
196 | ||
197 | so = function(id,par,vol,pit) | |
198 | coroutine.resume(coroutine.create(function() | |
199 | local sou = Instance.new("Sound",par or workspace) | |
200 | sou.Volume=vol | |
201 | sou.Pitch=pit or 1 | |
202 | sou.SoundId=id | |
203 | swait() | |
204 | sou:play() | |
205 | game:GetService("Debris"):AddItem(sou,6) | |
206 | end)) | |
207 | end | |
208 | ||
209 | function clerp(a,b,t) | |
210 | local qa = {QuaternionFromCFrame(a)} | |
211 | local qb = {QuaternionFromCFrame(b)} | |
212 | local ax, ay, az = a.x, a.y, a.z | |
213 | local bx, by, bz = b.x, b.y, b.z | |
214 | local _t = 1-t | |
215 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
216 | end | |
217 | ||
218 | function QuaternionFromCFrame(cf) | |
219 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
220 | local trace = m00 + m11 + m22 | |
221 | if trace > 0 then | |
222 | local s = math.sqrt(1 + trace) | |
223 | local recip = 0.5/s | |
224 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
225 | else | |
226 | local i = 0 | |
227 | if m11 > m00 then | |
228 | i = 1 | |
229 | end | |
230 | if m22 > (i == 0 and m00 or m11) then | |
231 | i = 2 | |
232 | end | |
233 | if i == 0 then | |
234 | local s = math.sqrt(m00-m11-m22+1) | |
235 | local recip = 0.5/s | |
236 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
237 | elseif i == 1 then | |
238 | local s = math.sqrt(m11-m22-m00+1) | |
239 | local recip = 0.5/s | |
240 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
241 | elseif i == 2 then | |
242 | local s = math.sqrt(m22-m00-m11+1) | |
243 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
244 | end | |
245 | end | |
246 | end | |
247 | ||
248 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
249 | local xs, ys, zs = x + x, y + y, z + z | |
250 | local wx, wy, wz = w*xs, w*ys, w*zs | |
251 | local xx = x*xs | |
252 | local xy = x*ys | |
253 | local xz = x*zs | |
254 | local yy = y*ys | |
255 | local yz = y*zs | |
256 | local zz = z*zs | |
257 | 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)) | |
258 | end | |
259 | ||
260 | function QuaternionSlerp(a, b, t) | |
261 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
262 | local startInterp, finishInterp; | |
263 | if cosTheta >= 0.0001 then | |
264 | if (1 - cosTheta) > 0.0001 then | |
265 | local theta = math.acos(cosTheta) | |
266 | local invSinTheta = 1/math.sin(theta) | |
267 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
268 | finishInterp = math.sin(t*theta)*invSinTheta | |
269 | else | |
270 | startInterp = 1-t | |
271 | finishInterp = t | |
272 | end | |
273 | else | |
274 | if (1+cosTheta) > 0.0001 then | |
275 | local theta = math.acos(-cosTheta) | |
276 | local invSinTheta = 1/math.sin(theta) | |
277 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
278 | finishInterp = math.sin(t*theta)*invSinTheta | |
279 | else | |
280 | startInterp = t-1 | |
281 | finishInterp = t | |
282 | end | |
283 | end | |
284 | 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 | |
285 | end | |
286 | ||
287 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
288 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
289 | end | |
290 | ||
291 | ||
292 | local RbxUtility = LoadLibrary("RbxUtility") | |
293 | local Create = RbxUtility.Create | |
294 | local co1 = 9 | |
295 | local co2 = 20 | |
296 | local co3 = 12 | |
297 | local co4 = 45 | |
298 | local cooldown1 = 0 | |
299 | local cooldown2 = 0 | |
300 | local cooldown3 = 0 | |
301 | local cooldown4 = 0 | |
302 | local skillcolorscheme = BrickColor.new("Pastel Blue").Color | |
303 | local scrn = Instance.new("ScreenGui", Player.PlayerGui) | |
304 | makeframe = function(par, trans, pos, size, color) | |
305 | local frame = Instance.new("Frame", par) | |
306 | frame.BackgroundTransparency = trans | |
307 | frame.BorderSizePixel = 0 | |
308 | frame.Position = pos | |
309 | frame.Size = size | |
310 | frame.BackgroundColor3 = color | |
311 | return frame | |
312 | end | |
313 | ||
314 | ||
315 | ||
316 | ||
317 | CreatePart = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size, MeshId) | |
318 | ||
319 | if PartType == "Part" then | |
320 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
321 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
322 | return Part | |
323 | else | |
324 | do | |
325 | if PartType == "WedgePart" then | |
326 | local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
327 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
328 | return Part | |
329 | end | |
330 | end | |
331 | end | |
332 | end | |
333 | ||
334 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
335 | ||
336 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
337 | if Mesh == "SpecialMesh" then | |
338 | Msh.MeshType = MeshType | |
339 | Msh.MeshId = MeshId | |
340 | end | |
341 | return Msh | |
342 | end | |
343 | ||
344 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
345 | ||
346 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
347 | return Weld | |
348 | end | |
349 | ||
350 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
351 | ||
352 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
353 | return Weld | |
354 | end | |
355 | } | |
356 | ||
357 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12)) | |
358 | handle.Transparency = 1 | |
359 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
360 | WedgeSpot = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2)) | |
361 | WedgeSpot.Transparency = 1 | |
362 | WedgeWeld = CreateWeld(m, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
363 | mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5)) | |
364 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
365 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
366 | EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
367 | EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
368 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1)) | |
369 | EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
370 | EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
371 | ||
372 | local rarmc1 = RW.C1 | |
373 | local larmc1 = LW.C1 | |
374 | local rlegc1 = RH.C1 | |
375 | local llegc1 = LH.C1 | |
376 | function PlayAnimationFromTable(table, speed, bool) | |
377 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
378 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
379 | RW.C0 = clerp(RW.C0, table[3], speed) | |
380 | LW.C0 = clerp(LW.C0, table[4], speed) | |
381 | RH.C0 = clerp(RH.C0, table[5], speed) | |
382 | LH.C0 = clerp(LH.C0, table[6], speed) | |
383 | if bool == true then | |
384 | if resetc1 == false then | |
385 | resetc1 = true | |
386 | RootJoint.C1 = RootJoint.C1 | |
387 | Torso.Neck.C1 = Torso.Neck.C1 | |
388 | RW.C1 = rarmc1 | |
389 | LW.C1 = larmc1 | |
390 | RH.C1 = rlegc1 | |
391 | LH.C1 = llegc1 | |
392 | end | |
393 | end | |
394 | end | |
395 | function BladeSaw() | |
396 | attack=true | |
397 | local chargecounter = 0 | |
398 | Reaper3 = Instance.new("Model",Character) | |
399 | Reaper3.Name = "Reaper3" | |
400 | rh = Instance.new("Part") | |
401 | rh.Name = "rh" | |
402 | rh.Parent = Reaper3 | |
403 | rh.Locked = true | |
404 | rh.CanCollide = false | |
405 | mesh = Instance.new("SpecialMesh") | |
406 | rh.formFactor = "Symmetric" | |
407 | mesh.MeshType = "FileMesh" | |
408 | mesh.MeshId = "rbxassetid://74322089" | |
409 | mesh.Scale = Vector3.new(2.51, 2.51, 1.65) | |
410 | mesh.Parent = rh | |
411 | local weld = Instance.new("Weld") | |
412 | weld.Parent = rh | |
413 | weld.Part0 = rh | |
414 | weld.Part1 = Player.Character['Right Arm'] | |
415 | weld.C0 = CFrame.new(0,1.8,0)*CFrame.Angles(math.rad(0),math.rad (90),math.rad(0)) | |
416 | game:GetService("Debris"):AddItem(Reaper3,.55) | |
417 | for i=0,1,.09 do | |
418 | swait() | |
419 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(-30)),0.3) | |
420 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3) | |
421 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.3) | |
422 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.3) | |
423 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.3) | |
424 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.3) | |
425 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
426 | end | |
427 | wait(0.3) | |
428 | local Part = Instance.new("Part",Character) | |
429 | Part.Size = Vector3.new(1,5,1) | |
430 | Part.BrickColor = BrickColor.Gray() | |
431 | Part.Material = "Neon" | |
432 | Part.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)) | |
433 | Part.CanCollide = false | |
434 | Part.Touched:connect(function(hit) | |
435 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent ~= Character then | |
436 | if not D then D = true | |
437 | hit.Parent.Humanoid:TakeDamage(30) | |
438 | wait(1) | |
439 | D = false | |
440 | end | |
441 | end | |
442 | end) | |
443 | local sm = Instance.new("SpecialMesh",Part) | |
444 | sm.MeshId = "rbxassetid://74322089" | |
445 | sm.Scale = Vector3.new(2.9, 2.9, 1.65) | |
446 | local AS = Instance.new("BodyVelocity",Part) | |
447 | AS.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
448 | AS.velocity = Character.HumanoidRootPart.CFrame.lookVector*70 | |
449 | coroutine.resume(coroutine.create(function() | |
450 | for i = 1,320 do | |
451 | Part.CFrame = Part.CFrame*CFrame.Angles(0,0,2.5) | |
452 | game:GetService"RunService".RenderStepped:wait() | |
453 | end | |
454 | Part:remove() | |
455 | end)) | |
456 | ||
457 | ||
458 | for i = 0,1,0.09 do | |
459 | swait() | |
460 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(50)),0.3) | |
461 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
462 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.3) | |
463 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.3) | |
464 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.3) | |
465 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.3) | |
466 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3) | |
467 | end | |
468 | attack=false | |
469 | bounce=false | |
470 | scfr=nil | |
471 | end | |
472 | ||
473 | ||
474 | function FastBladeSaw() | |
475 | attack=true | |
476 | local chargecounter = 0 | |
477 | Reaper3 = Instance.new("Model",Character) | |
478 | Reaper3.Name = "Reaper3" | |
479 | rh = Instance.new("Part") | |
480 | rh.Name = "rh" | |
481 | rh.Parent = Reaper3 | |
482 | rh.Locked = true | |
483 | rh.CanCollide = false | |
484 | mesh = Instance.new("SpecialMesh") | |
485 | rh.formFactor = "Symmetric" | |
486 | mesh.MeshType = "FileMesh" | |
487 | mesh.MeshId = "rbxassetid://74322089" | |
488 | mesh.Scale = Vector3.new(0.75,0.75,1) | |
489 | mesh.Parent = rh | |
490 | local weld = Instance.new("Weld") | |
491 | weld.Parent = rh | |
492 | weld.Part0 = rh | |
493 | weld.Part1 = Player.Character['Right Arm'] | |
494 | weld.C0 = CFrame.new(0,1.35,0)*CFrame.Angles(math.rad(0),math.rad (90),math.rad(0)) | |
495 | game:GetService("Debris"):AddItem(Reaper3,.55) | |
496 | for i=0,1,.14 do | |
497 | swait() | |
498 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(-30)),0.4) | |
499 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.4) | |
500 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
501 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4) | |
502 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4) | |
503 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4) | |
504 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
505 | end | |
506 | wait(0.3) | |
507 | local Part = Instance.new("Part",Character) | |
508 | Part.Size = Vector3.new(1,5,1) | |
509 | Part.BrickColor = BrickColor.Gray() | |
510 | Part.Material = "Neon" | |
511 | Part.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)) | |
512 | Part.CanCollide = false | |
513 | Part.Touched:connect(function(hit) | |
514 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent ~= Character then | |
515 | if not D then D = true | |
516 | hit.Parent.Humanoid:TakeDamage(10) | |
517 | wait(.5) | |
518 | D = false | |
519 | end | |
520 | end | |
521 | end) | |
522 | local sm = Instance.new("SpecialMesh",Part) | |
523 | sm.MeshId = "rbxassetid://74322089" | |
524 | sm.Scale = Vector3.new(0.856,0.856,1.2) | |
525 | local AS = Instance.new("BodyVelocity",Part) | |
526 | AS.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
527 | AS.velocity = Character.HumanoidRootPart.CFrame.lookVector*170 | |
528 | coroutine.resume(coroutine.create(function() | |
529 | for i = 1,250 do | |
530 | Part.CFrame = Part.CFrame*CFrame.Angles(0,0,2.5) | |
531 | game:GetService"RunService".RenderStepped:wait() | |
532 | end | |
533 | Part:remove() | |
534 | end)) | |
535 | ||
536 | for i = 0,1,0.14 do | |
537 | swait() | |
538 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(50)),0.4) | |
539 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.4) | |
540 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.4) | |
541 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4) | |
542 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4) | |
543 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4) | |
544 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4) | |
545 | end | |
546 | attack=false | |
547 | bounce=false | |
548 | scfr=nil | |
549 | end | |
550 | ||
551 | ||
552 | function BigBladeSaw() | |
553 | attack=true | |
554 | local chargecounter = 0 | |
555 | Reaper3 = Instance.new("Model",Character) | |
556 | Reaper3.Name = "Reaper3" | |
557 | rh = Instance.new("Part") | |
558 | rh.Name = "rh" | |
559 | rh.Parent = Reaper3 | |
560 | rh.Locked = true | |
561 | rh.CanCollide = false | |
562 | mesh = Instance.new("SpecialMesh") | |
563 | rh.formFactor = "Symmetric" | |
564 | mesh.MeshType = "FileMesh" | |
565 | mesh.MeshId = "rbxassetid://74322089" | |
566 | mesh.Scale = Vector3.new(30,30,10) | |
567 | mesh.Parent = rh | |
568 | local weld = Instance.new("Weld") | |
569 | weld.Parent = rh | |
570 | weld.Part0 = rh | |
571 | weld.Part1 = Player.Character.Torso | |
572 | weld.C0 = CFrame.new(0,-24,0)*CFrame.Angles(math.rad(0),math.rad (90),math.rad(0)) | |
573 | game:GetService("Debris"):AddItem(Reaper3,1.814) | |
574 | for i=0,1,.09 do | |
575 | swait() | |
576 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
577 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
578 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
579 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
580 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
581 | end | |
582 | for i=0,1,.09 do | |
583 | swait() | |
584 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
585 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
586 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
587 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
588 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
589 | end | |
590 | for i=0,1,.09 do | |
591 | swait() | |
592 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
593 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
594 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
595 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
596 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
597 | end | |
598 | for i=0,1,.09 do | |
599 | swait() | |
600 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
601 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
602 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
603 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
604 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
605 | end | |
606 | for i=0,1,.09 do | |
607 | swait() | |
608 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
609 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
610 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
611 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
612 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
613 | end | |
614 | for i=0,1,.09 do | |
615 | swait() | |
616 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
617 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
618 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
619 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
620 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
621 | end | |
622 | for i=0,1,.14 do | |
623 | swait() | |
624 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
625 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
626 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
627 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
628 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
629 | end | |
630 | for i=0,1,.14 do | |
631 | swait() | |
632 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
633 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
634 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
635 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-20)),0.4) | |
636 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
637 | end | |
638 | wait(0.3) | |
639 | local Part = Instance.new("Part",Character) | |
640 | Part.Size = Vector3.new(1,5,1) | |
641 | Part.BrickColor = BrickColor.Gray() | |
642 | Part.Material = "Neon" | |
643 | Part.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,-3.3,-24)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)) | |
644 | Part.CanCollide = false | |
645 | Part.Touched:connect(function(hit) | |
646 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent ~= Character then | |
647 | if not D then D = true | |
648 | hit.Parent.Humanoid:TakeDamage(75) | |
649 | wait(.5) | |
650 | D = false | |
651 | end | |
652 | end | |
653 | end) | |
654 | local sm = Instance.new("SpecialMesh",Part) | |
655 | sm.MeshId = "rbxassetid://74322089" | |
656 | sm.Scale = Vector3.new(35,35,10) | |
657 | local AS = Instance.new("BodyVelocity",Part) | |
658 | AS.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
659 | AS.velocity = Character.HumanoidRootPart.CFrame.lookVector*40 | |
660 | coroutine.resume(coroutine.create(function() | |
661 | for i = 1,250 do | |
662 | Part.CFrame = Part.CFrame*CFrame.Angles(0,0,2.5) | |
663 | game:GetService"RunService".RenderStepped:wait() | |
664 | end | |
665 | Part:remove() | |
666 | end)) | |
667 | ||
668 | ||
669 | for i = 0,1,0.09 do | |
670 | swait() | |
671 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(70),math.rad(0),math.rad(0)),0.3) | |
672 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
673 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.3) | |
674 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.3) | |
675 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.3) | |
676 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.3) | |
677 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
678 | end | |
679 | attack=false | |
680 | bounce=false | |
681 | scfr=nil | |
682 | end | |
683 | ||
684 | ||
685 | function IceBladeSaw() | |
686 | attack=true | |
687 | local chargecounter = 0 | |
688 | Reaper3 = Instance.new("Model",Character) | |
689 | Reaper3.Name = "Reaper3" | |
690 | rh = Instance.new("Part") | |
691 | rh.Name = "rh" | |
692 | rh.Parent = Reaper3 | |
693 | rh.Transparency = 0.4 | |
694 | rh.Locked = true | |
695 | rh.CanCollide = false | |
696 | mesh = Instance.new("SpecialMesh") | |
697 | rh.formFactor = "Symmetric" | |
698 | mesh.MeshType = "FileMesh" | |
699 | mesh.MeshId = "rbxassetid://74322089" | |
700 | mesh.TextureId = "rbxassetid://106388578" | |
701 | mesh.Scale = Vector3.new(2.51, 2.51, 1.65) | |
702 | mesh.Parent = rh | |
703 | local weld = Instance.new("Weld") | |
704 | weld.Parent = rh | |
705 | weld.Part0 = rh | |
706 | weld.Part1 = Player.Character['Right Arm'] | |
707 | weld.C0 = CFrame.new(0,1.8,0)*CFrame.Angles(math.rad(0),math.rad (90),math.rad(0)) | |
708 | game:GetService("Debris"):AddItem(Reaper3,.55) | |
709 | ||
710 | for i=0,1,.09 do | |
711 | swait() | |
712 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(-30)),0.3) | |
713 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3) | |
714 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.3) | |
715 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.3) | |
716 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.3) | |
717 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.3) | |
718 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
719 | end | |
720 | wait(0.3) | |
721 | local Part = Instance.new("Part",Character) | |
722 | Part.Size = Vector3.new(1,5,1) | |
723 | Part.Transparency = 0.4 | |
724 | Part.BrickColor = BrickColor.Gray() | |
725 | Part.Material = "Neon" | |
726 | Part.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)) | |
727 | Part.CanCollide = false | |
728 | Part.Touched:connect(function(hit) | |
729 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent ~= Character then | |
730 | if not D then D = true | |
731 | hit.Parent.Humanoid:TakeDamage(30) | |
732 | wait(1) | |
733 | D = false | |
734 | end | |
735 | end | |
736 | end) | |
737 | ||
738 | Part.Touched:connect(function(hit) | |
739 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent ~= Character then | |
740 | hit.Parent.Torso.Anchored = true | |
741 | wait(6) | |
742 | hit.Parent.Torso.Anchored = false | |
743 | end | |
744 | end) | |
745 | ||
746 | ||
747 | ||
748 | local sm = Instance.new("SpecialMesh",Part) | |
749 | sm.MeshId = "rbxassetid://74322089" | |
750 | sm.TextureId = "rbxassetid://106388578" | |
751 | sm.Scale = Vector3.new(2.9, 2.9, 1.65) | |
752 | local AS = Instance.new("BodyVelocity",Part) | |
753 | AS.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
754 | AS.velocity = Character.HumanoidRootPart.CFrame.lookVector*70 | |
755 | coroutine.resume(coroutine.create(function() | |
756 | for i = 1,320 do | |
757 | Part.CFrame = Part.CFrame*CFrame.Angles(0,0,2.5) | |
758 | game:GetService"RunService".RenderStepped:wait() | |
759 | end | |
760 | Part:remove() | |
761 | end)) | |
762 | ||
763 | for i = 0,1,0.09 do | |
764 | swait() | |
765 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0) *angles(math.rad(0),math.rad(0),math.rad(50)),0.3) | |
766 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
767 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.3) | |
768 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.3) | |
769 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.3) | |
770 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.3) | |
771 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3) | |
772 | end | |
773 | attack=false | |
774 | bounce=false | |
775 | scfr=nil | |
776 | end | |
777 | ||
778 | ||
779 | ||
780 | ||
781 | mouse.KeyDown:connect(function(k) | |
782 | k=k:lower() | |
783 | if attack == false and k == 'e' then | |
784 | FastBladeSaw() | |
785 | end | |
786 | if attack == false and k == 'q' then | |
787 | BladeSaw() | |
788 | end | |
789 | if attack == false and k == 'f' then | |
790 | IceBladeSaw() | |
791 | end | |
792 | if attack == false and k == 'r' then | |
793 | BigBladeSaw() | |
794 | end | |
795 | if attack == false and k == 'l' and deeznuts==false then | |
796 | cooldown=true | |
797 | Nothing() | |
798 | deeznuts=false | |
799 | end | |
800 | end) | |
801 | ||
802 | ||
803 | local sine = 0 | |
804 | local change = 1 | |
805 | local val = 0 | |
806 | ||
807 | while true do | |
808 | swait() | |
809 | sine = sine + change | |
810 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
811 | local velderp=RootPart.Velocity.y | |
812 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
813 | if equipped==true or equipped==false then | |
814 | if attack==false then | |
815 | idle=idle+1 | |
816 | else | |
817 | idle=0 | |
818 | end | |
819 | if idle>=500 then | |
820 | if attack==false then | |
821 | end | |
822 | end | |
823 | ||
824 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
825 | Anim="Jump" | |
826 | if attack==false then | |
827 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
828 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
829 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3) | |
830 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3) | |
831 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
832 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
833 | end | |
834 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
835 | Anim="Fall" | |
836 | if attack==false then | |
837 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
838 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3) | |
839 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
840 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
841 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
842 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
843 | end | |
844 | elseif torvel<1 and hitfloor~=nil then | |
845 | Anim="Idle" | |
846 | if attack==false then | |
847 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
848 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
849 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.3) | |
850 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
851 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3) | |
852 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3) | |
853 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
854 | end | |
855 | elseif torvel>2 and hitfloor~=nil then | |
856 | Anim="Walk" | |
857 | if attack==false then | |
858 | change=3 | |
859 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
860 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
861 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70)*math.cos(sine/16.5), math.rad(6), math.rad(5)), 0.2) | |
862 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-70)*math.cos(sine/-16.5), math.rad(-6), math.rad(-5)), 0.2) | |
863 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2)*math.cos(sine/16),math.rad(90),math.rad(0)),.3) | |
864 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4*math.cos(sine/-16)),math.rad(-90),math.rad(0)),.3) | |
865 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
866 | end | |
867 | end | |
868 | end | |
869 | if #Effects>0 then | |
870 | for e=1,#Effects do | |
871 | if Effects[e]~=nil then | |
872 | local Thing=Effects[e] | |
873 | if Thing~=nil then | |
874 | local Part=Thing[1] | |
875 | local Mode=Thing[2] | |
876 | local Delay=Thing[3] | |
877 | local IncX=Thing[4] | |
878 | local IncY=Thing[5] | |
879 | local IncZ=Thing[6] | |
880 | if Thing[1].Transparency<=1 then | |
881 | if Thing[2]=="Block1" then | |
882 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
883 | Mesh=Thing[1].Mesh | |
884 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
885 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
886 | elseif Thing[2]=="Cylinder" then | |
887 | Mesh=Thing[1].Mesh | |
888 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
889 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
890 | elseif Thing[2]=="Blood" then | |
891 | Mesh=Thing[7] | |
892 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
893 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
894 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
895 | elseif Thing[2]=="Elec" then | |
896 | Mesh=Thing[1].Mesh | |
897 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
898 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
899 | elseif Thing[2]=="Disappear" then | |
900 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
901 | end | |
902 | else | |
903 | Part.Parent=nil | |
904 | table.remove(Effects,e) | |
905 | end | |
906 | end | |
907 | end | |
908 | end | |
909 | end | |
910 | end |