SHOW:
|
|
- or go back to the newest paste.
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 | |
6 | ||
7 | local plr = game.Players.LocalPlayer | |
8 | local chr = plr.Character | |
9 | local maus = plr:GetMouse() | |
10 | local PGui = plr.PlayerGui | |
11 | local lleg = chr["Left Leg"] | |
12 | local rleg = chr["Right Leg"] | |
13 | local larm = chr["Left Arm"] | |
14 | local rarm = chr["Right Arm"] | |
15 | local hed = chr.Head | |
16 | local rutprt = chr.HumanoidRootPart | |
17 | local torso = chr.Torso | |
18 | local otheranims = false | |
19 | local armmovement = false | |
20 | local equipped = false | |
21 | if chr:findFirstChild("Animate") then | |
22 | chr.Animate.Disabled = true | |
23 | end | |
24 | local RunSpeed = 26 | |
25 | local WlkSpeed = 16 | |
26 | local CrawlSpeed = 8 | |
27 | local runnin = false | |
28 | local disabled = false | |
29 | local sitting = false | |
30 | local tik = 0 | |
31 | local slidehitdb = false | |
32 | local fldb = { | |
33 | w = false, | |
34 | a = false, | |
35 | s = false, | |
36 | d = false | |
37 | } | |
38 | local reganims = { | |
39 | "Idling", | |
40 | "Walking", | |
41 | "Sprinting", | |
42 | "Crawling", | |
43 | "SpeedCrawling", | |
44 | "PreCrawl", | |
45 | "CrawlJump", | |
46 | "CrawlFall", | |
47 | "PreSuperJump", | |
48 | "SuperJump", | |
49 | "Sliding", | |
50 | "Jumping", | |
51 | "Falling", | |
52 | "Crouching" | |
53 | } | |
54 | local Meows = { | |
55 | "60871617", | |
56 | "151742282", | |
57 | "138093919", | |
58 | "169836751", | |
59 | "439998659", | |
60 | "593617525", | |
61 | "748861274", | |
62 | "361967959", | |
63 | "130808361" | |
64 | } | |
65 | local leftnekoface = "260195370" | |
66 | local rightnekoface = "260196558" | |
67 | local swing = "Right" | |
68 | local armanim = "" | |
69 | local hitdb = false | |
70 | local nskn = NumberSequenceKeypoint.new | |
71 | local RightNekoColor = BrickColor.new("Really black") | |
72 | local LeftNekoColor = BrickColor.new("Institutional white") | |
73 | local BeltColor = BrickColor.new("Brown") | |
74 | local nfc1 = BrickColor.new("Crimson").Color | |
75 | local NekoFabricColor = BrickColor.new(Color3.new(nfc1.r - 0.1, nfc1.g - 0.1, nfc1.b - 0.1)) | |
76 | local ltouched = false | |
77 | local rtouched = false | |
78 | local launched = false | |
79 | local newobj = Instance.new | |
80 | local tasercharge = 100 | |
81 | local BaseDamage = 12 | |
82 | local DamageMult = 1 | |
83 | local taser = false | |
84 | chr.Humanoid.MaxHealth = 85 | |
85 | for i, x in pairs(hed:GetChildren()) do | |
86 | if x:IsA("Sound") then | |
87 | x:Destroy() | |
88 | end | |
89 | end | |
90 | function Lerp(a, b, i) | |
91 | local com1 = { | |
92 | a.X, | |
93 | a.Y, | |
94 | a.Z, | |
95 | a:toEulerAnglesXYZ() | |
96 | } | |
97 | local com2 = { | |
98 | b.X, | |
99 | b.Y, | |
100 | b.Z, | |
101 | b:toEulerAnglesXYZ() | |
102 | } | |
103 | local calx = com1[1] + (com2[1] - com1[1]) * i | |
104 | local caly = com1[2] + (com2[2] - com1[2]) * i | |
105 | local calz = com1[3] + (com2[3] - com1[3]) * i | |
106 | local cala = com1[4] + (com2[4] - com1[4]) * i | |
107 | local calb = com1[5] + (com2[5] - com1[5]) * i | |
108 | local calc = com1[6] + (com2[6] - com1[6]) * i | |
109 | return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc) | |
110 | end | |
111 | function TwnSingleNumber(s, f, m) | |
112 | local wot = s + (f - s) * m | |
113 | return wot | |
114 | end | |
115 | function TwnVector3(q, w, e) | |
116 | local begin = { | |
117 | q.x, | |
118 | q.y, | |
119 | q.z | |
120 | } | |
121 | local ending = { | |
122 | w.x, | |
123 | w.y, | |
124 | w.z | |
125 | } | |
126 | local bgx = begin[1] + (ending[1] - begin[1]) * e | |
127 | local bgy = begin[2] + (ending[2] - begin[2]) * e | |
128 | local bgz = begin[3] + (ending[3] - begin[3]) * e | |
129 | return Vector3.new(bgx, bgy, bgz) | |
130 | end | |
131 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
132 | local wld = newobj("Weld", wp1) | |
133 | wld.Part0 = wp0 | |
134 | wld.Part1 = wp1 | |
135 | wld.C1 = CFrame.new(wc0x, wc0y, wc0z) | |
136 | return wld | |
137 | end | |
138 | function Avg(a, b) | |
139 | return CFrame.new((a.X + b.X) / 2, (a.Y + b.Y) / 2, (a.Z + b.Z) / 2) | |
140 | end | |
141 | function nPart(parent, name, shape, formfactor, material, anch, collide, trans, refl, sf, color, size, cfr) | |
142 | local p = newobj("Part") | |
143 | p.Name = name | |
144 | p.Shape = shape | |
145 | p.FormFactor = formfactor | |
146 | p.Material = material | |
147 | p.Anchored = anch | |
148 | p.CanCollide = collide | |
149 | p.Transparency = trans | |
150 | p.Reflectance = refl | |
151 | p.TopSurface = sf | |
152 | p.BottomSurface = sf | |
153 | p.LeftSurface = sf | |
154 | p.RightSurface = sf | |
155 | p.FrontSurface = sf | |
156 | p.BackSurface = sf | |
157 | p.BrickColor = color | |
158 | p.Size = size | |
159 | p.CFrame = cfr | |
160 | p:breakJoints("") | |
161 | p.Parent = parent | |
162 | return p | |
163 | end | |
164 | function TakeDamage(h,d) | |
165 | h:TakeDamage(d) | |
166 | end | |
167 | local larmweld = newWeld(torso, larm, 0, 0, 0) | |
168 | local rarmweld = newWeld(torso, rarm, 0, 0, 0) | |
169 | local llegweld = newWeld(torso, lleg, 0, 0, 0) | |
170 | local rlegweld = newWeld(torso, rleg, 0, 0, 0) | |
171 | local headweld = newWeld(torso, hed, 0, 0, 0) | |
172 | local rutwald = newobj("Weld", rutprt) | |
173 | rutwald.Part0 = rutprt | |
174 | rutwald.Part1 = torso | |
175 | rutwald.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0) | |
176 | larmweld.C1 = CFrame.new(0, 0.5, 0) | |
177 | rarmweld.C1 = CFrame.new(0, 0.5, 0) | |
178 | rlegweld.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
179 | llegweld.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0) | |
180 | function GetTorso(target) | |
181 | if target:findFirstChild("Torso") then | |
182 | return target.Torso | |
183 | elseif target:findFirstChild("UpperTorso") then | |
184 | return target.UpperTorso | |
185 | end | |
186 | end | |
187 | local alldecals = { | |
188 | "387418012", | |
189 | "339886198", | |
190 | "486961931", | |
191 | "339302474", | |
192 | "339302316", | |
193 | "339303212", | |
194 | "339302607", | |
195 | "339302826", | |
196 | "339303065", | |
197 | "339303400", | |
198 | "150037981", | |
199 | "167241003", | |
200 | "235558077", | |
201 | "265452635", | |
202 | "260161937", | |
203 | "242814125", | |
204 | "230417107", | |
205 | "252230874", | |
206 | "231949998", | |
207 | "229222676", | |
208 | "181607551", | |
209 | "231953209", | |
210 | "123431503", | |
211 | "184905165", | |
212 | "172755711", | |
213 | "161494218", | |
214 | "292791711", | |
215 | "205912841", | |
216 | "68953525", | |
217 | "180163702", | |
218 | "123385234", | |
219 | "138847283", | |
220 | "159127645", | |
221 | "172511645", | |
222 | "210175195", | |
223 | "206539362", | |
224 | "192486406", | |
225 | "96613287", | |
226 | "131764585", | |
227 | "168427244", | |
228 | "128595009", | |
229 | "96687581", | |
230 | "171590601", | |
231 | "172329151", | |
232 | "72116648", | |
233 | "221557708", | |
234 | "214883980" | |
235 | } | |
236 | local anim = "Idling" | |
237 | local lastanim = "Idling" | |
238 | local val = 0 | |
239 | local syne = 0 | |
240 | local num = 0 | |
241 | local runtime = 0 | |
242 | local NekoNekoKnuckles = newobj("Model", chr) | |
243 | NekoNekoKnuckles.Name = "Neko Neko Knuckles" | |
244 | local RightNeko = newobj("Model", NekoNekoKnuckles) | |
245 | RightNeko.Name = "Right Neko" | |
246 | local LeftNeko = newobj("Model", NekoNekoKnuckles) | |
247 | LeftNeko.Name = "Left Neko" | |
248 | local tasersoundid = "758554256" | |
249 | local Belt = Instance.new("Model", NekoNekoKnuckles) | |
250 | Belt.Name = "Belt" | |
251 | local bel1 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BeltColor, Vector3.new(2.01, 0.2, 1.01), CFrame.new(0, 0, 0)) | |
252 | local bel1w = newobj("Weld", bel1) | |
253 | bel1w.Part0 = bel1 | |
254 | bel1w.Part1 = torso | |
255 | bel1w.C0 = CFrame.new(0, 0.85, 0) | |
256 | local bel2 = nPart(Belt, "BeltR", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(0.4, 0.6, 0.8), CFrame.new(0, 0, 0)) | |
257 | local bel2w = newobj("Weld", bel2) | |
258 | bel2w.Part0 = bel2 | |
259 | bel2w.Part1 = bel1 | |
260 | bel2w.C0 = CFrame.new(-1.1, 0.25, 0) * CFrame.Angles(0, 0, math.rad(-5)) | |
261 | local bel3 = nPart(Belt, "BeltL", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(0.4, 0.6, 0.8), CFrame.new(0, 0, 0)) | |
262 | local bel3w = newobj("Weld", bel3) | |
263 | bel3w.Part0 = bel3 | |
264 | bel3w.Part1 = bel1 | |
265 | bel3w.C0 = CFrame.new(1.1, 0.25, 0) * CFrame.Angles(0, 0, math.rad(5)) | |
266 | local bel4 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
267 | local bel4w = newobj("Weld", bel4) | |
268 | bel4w.Part0 = bel4 | |
269 | bel4w.Part1 = bel2 | |
270 | bel4w.C0 = CFrame.new(0, 0.39, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
271 | local bel4m = newobj("CylinderMesh", bel4) | |
272 | local taserattright1 = newobj("Attachment", bel4) | |
273 | local bel6 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
274 | local bel6w = newobj("Weld", bel6) | |
275 | bel6w.Part0 = bel6 | |
276 | bel6w.Part1 = bel2 | |
277 | bel6w.C0 = CFrame.new(0, -0.39, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
278 | local bel6m = newobj("CylinderMesh", bel6) | |
279 | local taserattright3 = newobj("Attachment", bel6) | |
280 | taserattright3.Position = Vector3.new(0, 0, 0) | |
281 | local bel5 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
282 | local bel5w = newobj("Weld", bel5) | |
283 | bel5w.Part0 = bel5 | |
284 | bel5w.Part1 = bel3 | |
285 | bel5w.C0 = CFrame.new(0, 0.39, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
286 | local bel5m = newobj("CylinderMesh", bel5) | |
287 | local taserattleft1 = newobj("Attachment", bel5) | |
288 | taserattleft1.Position = Vector3.new(0, 0, 0) | |
289 | local bel7 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
290 | local bel7w = newobj("Weld", bel7) | |
291 | bel7w.Part0 = bel7 | |
292 | bel7w.Part1 = bel3 | |
293 | bel7w.C0 = CFrame.new(0, -0.39, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
294 | local bel7m = newobj("CylinderMesh", bel7) | |
295 | local taserattleft3 = newobj("Attachment", bel7) | |
296 | taserattleft3.Position = Vector3.new(0, 0, 0) | |
297 | local bel8 = nPart(Belt, "Battery", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Dark stone grey"), Vector3.new(1.4, 0.6, 0.3), CFrame.new(0, 0, 0)) | |
298 | local bel8w = newobj("Weld", bel8) | |
299 | bel8w.Part0 = bel8 | |
300 | bel8w.Part1 = bel1 | |
301 | bel8w.C0 = CFrame.new(0, 0.1, -0.6) * CFrame.Angles(math.rad(5), 0, 0) | |
302 | local bel9 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
303 | local bel9w = newobj("Weld", bel9) | |
304 | bel9w.Part0 = bel9 | |
305 | bel9w.Part1 = bel8 | |
306 | bel9w.C0 = CFrame.new(-0.15, 0.69, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
307 | local bel9m = newobj("CylinderMesh", bel9) | |
308 | local taserattleft4 = newobj("Attachment", bel9) | |
309 | taserattleft4.Position = Vector3.new(0, 0, 0) | |
310 | local bel10 = nPart(Belt, "Belt", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.1, 0.05, 0.1), CFrame.new(0, 0, 0)) | |
311 | local bel10w = newobj("Weld", bel10) | |
312 | bel10w.Part0 = bel10 | |
313 | bel10w.Part1 = bel8 | |
314 | bel10w.C0 = CFrame.new(-0.15, -0.69, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
315 | local bel7m = newobj("CylinderMesh", bel10) | |
316 | local taserattright4 = newobj("Attachment", bel10) | |
317 | taserattright4.Position = Vector3.new(0, 0, 0) | |
318 | local cable1 = newobj("RopeConstraint", bel8) | |
319 | cable1.Attachment0 = taserattright1 | |
320 | cable1.Attachment1 = taserattright4 | |
321 | cable1.Thickness = 0.02 | |
322 | cable1.Enabled = true | |
323 | cable1.Visible = true | |
324 | cable1.Length = 1.2 | |
325 | cable1.Color = BrickColor.new("Really black") | |
326 | local cable2 = newobj("RopeConstraint", bel8) | |
327 | cable2.Attachment0 = taserattleft1 | |
328 | cable2.Attachment1 = taserattleft4 | |
329 | cable2.Thickness = 0.02 | |
330 | cable2.Enabled = true | |
331 | cable2.Visible = true | |
332 | cable2.Length = 1.2 | |
333 | cable2.Color = BrickColor.new("Really black") | |
334 | local bel11 = nPart(Belt, "Battery", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Really red"), Vector3.new(1.3, 0.1, 0.1), CFrame.new(0, 0, 0)) | |
335 | local bel11w = newobj("Weld", bel11) | |
336 | bel11w.Part0 = bel11 | |
337 | bel11w.Part1 = bel8 | |
338 | bel11w.C0 = CFrame.new(0, 0.2, -0.11) | |
339 | local gu = Instance.new("SurfaceGui", bel8) | |
340 | gu.Name = "BatteryIndicator" | |
341 | gu.Adornee = bel11 | |
342 | gu.Face = "Back" | |
343 | gu.CanvasSize = Vector2.new(3000, 1000) | |
344 | local tb = Instance.new("TextLabel", gu) | |
345 | tb.Name = "Battery" | |
346 | tb.Size = UDim2.new(1, 0, 1, 0) | |
347 | tb.Position = UDim2.new(0, 0, 0, 0) | |
348 | tb.TextTransparency = 1 | |
349 | tb.BackgroundTransparency = 0 | |
350 | tb.BorderSizePixel = 0 | |
351 | tb.TextStrokeTransparency = 1 | |
352 | tb.Text = "" | |
353 | tb.Rotation = 0 | |
354 | tb.BackgroundColor3 = Color3.new(0, 0.5, 0.1) | |
355 | local rn1 = nPart(RightNeko, "RightHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, NekoFabricColor, Vector3.new(1.01, 1.3, 1.01), CFrame.new(0, 0, 0)) | |
356 | local rn1w = newobj("Weld", rn1) | |
357 | rn1w.Part0 = rn1 | |
358 | rn1w.Part1 = rarm | |
359 | rn1w.C0 = CFrame.new(0, 0.4, 0) | |
360 | local rn2 = nPart(RightNeko, "RightHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(1.05, 0.3, 1.05), CFrame.new(0, 0, 0)) | |
361 | local rn2w = newobj("Weld", rn2) | |
362 | rn2w.Part0 = rn2 | |
363 | rn2w.Part1 = rn1 | |
364 | rn2w.C0 = CFrame.new(0, -0.6, 0) | |
365 | local rn5 = nPart(RightNeko, "RightHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(0.5, 0.3, 0.2), CFrame.new(0, 0, 0)) | |
366 | local rn5w = newobj("Weld", rn5) | |
367 | rn5w.Part0 = rn5 | |
368 | rn5w.Part1 = rn1 | |
369 | rn5w.C0 = CFrame.new(0, -0.3, 0.415) | |
370 | local rn6 = nPart(RightNeko, "RightHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(1.05, 0.3, 0.4), CFrame.new(0, 0, 0)) | |
371 | local rn6w = newobj("Weld", rn6) | |
372 | rn6w.Part0 = rn6 | |
373 | rn6w.Part1 = rn1 | |
374 | rn6w.C0 = CFrame.new(0, -0.3, 0) | |
375 | local rn7 = nPart(RightNeko, "RightHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(0.5, 1.05, 0.5), CFrame.new(0, 0, 0)) | |
376 | local rn7w = newobj("Weld", rn7) | |
377 | rn7w.Part0 = rn7 | |
378 | rn7w.Part1 = rn1 | |
379 | rn7w.C0 = CFrame.new(0.2, 0, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
380 | local rn7m = newobj("CylinderMesh", rn7) | |
381 | local rnbell = nPart(RightNeko, "RightBell", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.25, 0.25, 0.15), CFrame.new(0, 0, 0)) | |
382 | local rnbellw = newobj("Weld", rnbell) | |
383 | rnbellw.Part0 = rnbell | |
384 | rnbellw.Part1 = rn1 | |
385 | rnbellw.C0 = CFrame.new(0, -0.15, 0.5) | |
386 | local rnbellm = newobj("SpecialMesh", rnbell) | |
387 | rnbellm.MeshType = "Sphere" | |
388 | local rnbellp2 = nPart(RightNeko, "RightBellSetting", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.28, 0.05, 0.28), CFrame.new(0, 0, 0)) | |
389 | local rnbellw2 = newobj("Weld", rnbellp2) | |
390 | rnbellw2.Part0 = rnbellp2 | |
391 | rnbellw2.Part1 = rn1 | |
392 | rnbellw2.C0 = CFrame.new(0, -0.5, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
393 | local rnbellm2 = newobj("CylinderMesh", rnbellp2) | |
394 | local rnbellp3 = nPart(RightNeko, "RightBellTop", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.05, 0.13, 0.1), CFrame.new(0, 0, 0)) | |
395 | local rnbellw3 = newobj("Weld", rnbellp3) | |
396 | rnbellw3.Part0 = rnbellp3 | |
397 | rnbellw3.Part1 = rn1 | |
398 | rnbellw3.C0 = CFrame.new(0, -0.15, 0.53) | |
399 | local rnbf = newobj("PointLight", rnbell) | |
400 | rnbf.Shadows = true | |
401 | rnbf.Range = 10 | |
402 | rnbf.Brightness = 3 | |
403 | rnbf.Enabled = false | |
404 | local rnding = newobj("Sound", rnbell) | |
405 | rnding.SoundId = "http://www.roblox.com/asset?id=138134386" | |
406 | rnding.Volume = 0.2 | |
407 | local rn3 = nPart(RightNeko, "RightHead", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(1.45, 1.4, 1.45), CFrame.new(0, 0, 0)) | |
408 | local rn3w = newobj("Weld", rn3) | |
409 | local taserattright2 = newobj("Attachment", rn3) | |
410 | taserattright2.Position = Vector3.new(0, 0.3, 0.45) | |
411 | local tasercon = newobj("RopeConstraint", rn3) | |
412 | tasercon.Attachment0 = taserattright1 | |
413 | tasercon.Attachment1 = taserattright3 | |
414 | tasercon.Thickness = 0.02 | |
415 | tasercon.Enabled = true | |
416 | tasercon.Visible = true | |
417 | tasercon.Length = 3.4 | |
418 | tasercon.Color = RightNekoColor | |
419 | rn3w.Part0 = rn3 | |
420 | rn3w.Part1 = rn1 | |
421 | rn3w.C0 = CFrame.new(0, 0.55, 0) | |
422 | local rn3m = newobj("SpecialMesh", rn3) | |
423 | rn3m.MeshType = "Sphere" | |
424 | local rnfang1 = nPart(RightNeko, "RightFang", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.2, 0.2, 0.2), CFrame.new(0, 0, 0)) | |
425 | local rnfang1w = newobj("Weld", rnfang1) | |
426 | rnfang1w.Part0 = rnfang1 | |
427 | rnfang1w.Part1 = rn3 | |
428 | rnfang1w.C0 = CFrame.new(0.1, -0.36, -0.56) * CFrame.Angles(math.rad(-110), 0, 0) | |
429 | local rnfang1m = newobj("SpecialMesh", rnfang1) | |
430 | rnfang1m.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
431 | rnfang1m.Scale = Vector3.new(0.03, 0.12, 0.03) | |
432 | local rnfang2 = nPart(RightNeko, "RightFang", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.2, 0.2, 0.2), CFrame.new(0, 0, 0)) | |
433 | local rnfang2w = newobj("Weld", rnfang2) | |
434 | rnfang2w.Part0 = rnfang2 | |
435 | rnfang2w.Part1 = rn3 | |
436 | rnfang2w.C0 = CFrame.new(-0.1, -0.36, -0.56) * CFrame.Angles(math.rad(-110), 0, 0) | |
437 | local rnfang2m = newobj("SpecialMesh", rnfang2) | |
438 | rnfang2m.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
439 | rnfang2m.Scale = Vector3.new(0.03, 0.12, 0.03) | |
440 | local rnface = newobj("Decal", rn3) | |
441 | rnface.Texture = "http://www.roblox.com/asset?id=" .. rightnekoface | |
442 | rnface.Face = "Bottom" | |
443 | local rnpunch = newobj("Sound", rn3) | |
444 | rnpunch.SoundId = "http://www.roblox.com/asset?id=146163534" | |
445 | rnpunch.Volume = 0.3 | |
446 | local ratt1 = newobj("Attachment", rn3) | |
447 | ratt1.Position = Vector3.new(0.35, -0.5, 0) | |
448 | local ratt2 = newobj("Attachment", rn3) | |
449 | ratt2.Position = Vector3.new(-0.35, -0.5, 0) | |
450 | local rartrail = newobj("Trail", rn3) | |
451 | rartrail.Attachment0 = ratt1 | |
452 | rartrail.Attachment1 = ratt2 | |
453 | rartrail.Transparency = NumberSequence.new({ | |
454 | nskn(0, 0.66, 0), | |
455 | nskn(1, 1, 0) | |
456 | }) | |
457 | rartrail.Lifetime = 0.123 | |
458 | local ratt3 = newobj("Attachment", rn3) | |
459 | ratt3.Position = Vector3.new(0, 0, 0) | |
460 | local ratt4 = newobj("Attachment", rn1) | |
461 | ratt4.Position = Vector3.new(0, -0.4, 0) | |
462 | local rspring = newobj("SpringConstraint", rn1) | |
463 | rspring.Attachment0 = ratt3 | |
464 | rspring.Attachment1 = ratt4 | |
465 | rspring.Coils = 8 | |
466 | rspring.Visible = true | |
467 | rspring.LimitsEnabled = true | |
468 | rspring.Enabled = true | |
469 | rspring.MaxLength = 80 | |
470 | rspring.Color = rn3.BrickColor | |
471 | rspring.Thickness = 0.2 | |
472 | rspring.FreeLength = 4 | |
473 | rspring.Stiffness = 30 | |
474 | rspring.Radius = 0.5 | |
475 | rspring.Damping = 0 | |
476 | local rn4 = nPart(RightNeko, "RightEars", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, RightNekoColor, Vector3.new(1.575, 0.2, 1.575), CFrame.new(0, 0, 0)) | |
477 | local rn4w = newobj("Weld", rn4) | |
478 | rn4w.Part0 = rn4 | |
479 | rn4w.Part1 = rn3 | |
480 | rn4w.C0 = CFrame.new(-0.04, -0.6, 0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
481 | local rn4m = newobj("SpecialMesh", rn4) | |
482 | rn4m.Scale = Vector3.new(1, 0.7, 1) | |
483 | rn4m.MeshId = "http://www.roblox.com/asset?id=1374148" | |
484 | rn4m.TextureId = "http://www.roblox.com/asset?id=14817175" | |
485 | local ln1 = nPart(LeftNeko, "LeftHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, NekoFabricColor, Vector3.new(1.01, 1.3, 1.01), CFrame.new(0, 0, 0)) | |
486 | local ln1w = newobj("Weld", ln1) | |
487 | ln1w.Part0 = ln1 | |
488 | ln1w.Part1 = larm | |
489 | ln1w.C0 = CFrame.new(0, 0.4, 0) | |
490 | local ln2 = nPart(LeftNeko, "LeftHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(1.05, 0.3, 1.05), CFrame.new(0, 0, 0)) | |
491 | local ln2w = newobj("Weld", ln2) | |
492 | ln2w.Part0 = ln2 | |
493 | ln2w.Part1 = ln1 | |
494 | ln2w.C0 = CFrame.new(0, -0.6, 0) | |
495 | local ln5 = nPart(LeftNeko, "LeftHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(0.5, 0.3, 0.2), CFrame.new(0, 0, 0)) | |
496 | local ln5w = newobj("Weld", ln5) | |
497 | ln5w.Part0 = ln5 | |
498 | ln5w.Part1 = ln1 | |
499 | ln5w.C0 = CFrame.new(0, -0.3, 0.415) | |
500 | local ln6 = nPart(LeftNeko, "LeftHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(1.05, 0.3, 0.4), CFrame.new(0, 0, 0)) | |
501 | local ln6w = newobj("Weld", ln6) | |
502 | ln6w.Part0 = ln6 | |
503 | ln6w.Part1 = ln1 | |
504 | ln6w.C0 = CFrame.new(0, -0.3, 0) | |
505 | local ln7 = nPart(LeftNeko, "LeftHandle", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(0.5, 1.05, 0.5), CFrame.new(0, 0, 0)) | |
506 | local ln7w = newobj("Weld", ln7) | |
507 | ln7w.Part0 = ln7 | |
508 | ln7w.Part1 = ln1 | |
509 | ln7w.C0 = CFrame.new(0.2, 0, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
510 | local ln7m = newobj("CylinderMesh", ln7) | |
511 | local lnbell = nPart(LeftNeko, "LeftBell", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.25, 0.25, 0.15), CFrame.new(0, 0, 0)) | |
512 | local lnbellw = newobj("Weld", lnbell) | |
513 | lnbellw.Part0 = lnbell | |
514 | lnbellw.Part1 = ln1 | |
515 | lnbellw.C0 = CFrame.new(0, -0.15, 0.5) | |
516 | local lnbellm = newobj("SpecialMesh", lnbell) | |
517 | lnbellm.MeshType = "Sphere" | |
518 | local lnbellp2 = nPart(LeftNeko, "LeftBellSetting", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.28, 0.05, 0.28), CFrame.new(0, 0, 0)) | |
519 | local lnbellw2 = newobj("Weld", lnbellp2) | |
520 | lnbellw2.Part0 = lnbellp2 | |
521 | lnbellw2.Part1 = ln1 | |
522 | lnbellw2.C0 = CFrame.new(0, -0.5, -0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
523 | local lnbellm2 = newobj("CylinderMesh", lnbellp2) | |
524 | local lnbellp3 = nPart(LeftNeko, "LeftBellTop", 1, 3, "SmoothPlastic", false, false, 0, 0.4, 10, BrickColor.new("New Yeller"), Vector3.new(0.05, 0.13, 0.1), CFrame.new(0, 0, 0)) | |
525 | local lnbellw3 = newobj("Weld", lnbellp3) | |
526 | lnbellw3.Part0 = lnbellp3 | |
527 | lnbellw3.Part1 = ln1 | |
528 | lnbellw3.C0 = CFrame.new(0, -0.15, 0.53) | |
529 | local lnbf = newobj("PointLight", lnbell) | |
530 | lnbf.Shadows = true | |
531 | lnbf.Range = 10 | |
532 | lnbf.Brightness = 3 | |
533 | lnbf.Enabled = false | |
534 | local lnding = newobj("Sound", lnbell) | |
535 | lnding.SoundId = "http://www.roblox.com/asset?id=138134386" | |
536 | lnding.Volume = 0.2 | |
537 | local ln3 = nPart(LeftNeko, "LeftHead", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(1.45, 1.4, 1.45), CFrame.new(0, 0, 0)) | |
538 | local ln3w = newobj("Weld", ln3) | |
539 | local taserattleft2 = newobj("Attachment", ln3) | |
540 | taserattleft2.Position = Vector3.new(0, 0.3, 0.45) | |
541 | local tasercon2 = newobj("RopeConstraint", ln3) | |
542 | tasercon2.Attachment0 = taserattleft1 | |
543 | tasercon2.Attachment1 = taserattleft3 | |
544 | tasercon2.Thickness = 0.02 | |
545 | tasercon2.Enabled = true | |
546 | tasercon2.Visible = true | |
547 | tasercon2.Length = 3.4 | |
548 | tasercon2.Color = LeftNekoColor | |
549 | ln3w.Part0 = ln3 | |
550 | ln3w.Part1 = ln1 | |
551 | ln3w.C0 = CFrame.new(0, 0.55, 0) | |
552 | local ln3m = newobj("SpecialMesh", ln3) | |
553 | ln3m.MeshType = "Sphere" | |
554 | local lnface = newobj("Decal", ln3) | |
555 | lnface.Texture = "http://www.roblox.com/asset?id=" .. leftnekoface | |
556 | lnface.Face = "Bottom" | |
557 | local lnpunch = newobj("Sound", ln3) | |
558 | lnpunch.SoundId = "http://www.roblox.com/asset?id=146163534" | |
559 | lnpunch.Volume = 0.3 | |
560 | local latt1 = newobj("Attachment", ln3) | |
561 | latt1.Position = Vector3.new(0.35, -0.5, 0) | |
562 | local latt2 = newobj("Attachment", ln3) | |
563 | latt2.Position = Vector3.new(-0.35, -0.5, 0) | |
564 | local lartrail = newobj("Trail", ln3) | |
565 | lartrail.Attachment0 = latt1 | |
566 | lartrail.Attachment1 = latt2 | |
567 | lartrail.Transparency = NumberSequence.new({ | |
568 | nskn(0, 0.66, 0), | |
569 | nskn(1, 1, 0) | |
570 | }) | |
571 | lartrail.Lifetime = 0.123 | |
572 | local lnfang1 = nPart(LeftNeko, "LeftFang", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.2, 0.2, 0.2), CFrame.new(0, 0, 0)) | |
573 | local lnfang1w = newobj("Weld", lnfang1) | |
574 | lnfang1w.Part0 = lnfang1 | |
575 | lnfang1w.Part1 = ln3 | |
576 | lnfang1w.C0 = CFrame.new(0.1, -0.42, -0.522) * CFrame.Angles(math.rad(-110), 0, 0) | |
577 | local lnfang1m = newobj("SpecialMesh", lnfang1) | |
578 | lnfang1m.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
579 | lnfang1m.Scale = Vector3.new(0.03, 0.12, 0.03) | |
580 | local lnfang2 = nPart(LeftNeko, "LeftFang", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, BrickColor.new("Fossil"), Vector3.new(0.2, 0.2, 0.2), CFrame.new(0, 0, 0)) | |
581 | local lnfang2w = newobj("Weld", lnfang2) | |
582 | lnfang2w.Part0 = lnfang2 | |
583 | lnfang2w.Part1 = ln3 | |
584 | lnfang2w.C0 = CFrame.new(-0.1, -0.42, -0.522) * CFrame.Angles(math.rad(-110), 0, 0) | |
585 | local lnfang2m = newobj("SpecialMesh", lnfang2) | |
586 | lnfang2m.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
587 | lnfang2m.Scale = Vector3.new(0.03, 0.12, 0.03) | |
588 | local latt3 = newobj("Attachment", ln3) | |
589 | latt3.Position = Vector3.new(0, 0, 0) | |
590 | local latt4 = newobj("Attachment", ln1) | |
591 | latt4.Position = Vector3.new(0, -0.4, 0) | |
592 | local lspring = newobj("SpringConstraint", ln1) | |
593 | lspring.Attachment0 = latt3 | |
594 | lspring.Attachment1 = latt4 | |
595 | lspring.Coils = 8 | |
596 | lspring.Visible = true | |
597 | lspring.LimitsEnabled = true | |
598 | lspring.Enabled = true | |
599 | lspring.MaxLength = 80 | |
600 | lspring.Color = ln3.BrickColor | |
601 | lspring.Thickness = 0.2 | |
602 | lspring.FreeLength = 4 | |
603 | lspring.Stiffness = 30 | |
604 | lspring.Radius = 0.5 | |
605 | lspring.Damping = 0 | |
606 | local ln4 = nPart(LeftNeko, "LeftEars", 1, 3, "SmoothPlastic", false, false, 0, 0, 10, LeftNekoColor, Vector3.new(1.575, 0.2, 1.575), CFrame.new(0, 0, 0)) | |
607 | local ln4w = newobj("Weld", ln4) | |
608 | ln4w.Part0 = ln4 | |
609 | ln4w.Part1 = ln3 | |
610 | ln4w.C0 = CFrame.new(-0.04, -0.6, 0.15) * CFrame.Angles(math.rad(90), 0, 0) | |
611 | local ln4m = newobj("SpecialMesh", ln4) | |
612 | ln4m.Scale = Vector3.new(1, 0.7, 1) | |
613 | ln4m.MeshId = "http://www.roblox.com/asset?id=1374148" | |
614 | ln4m.TextureId = "http://www.roblox.com/asset?id=59596104" | |
615 | function GetHumanoidFromPart(prt) | |
616 | local hyoom | |
617 | if prt and prt.Parent and prt.Parent.Parent then | |
618 | for i, x in pairs(prt.Parent:GetChildren()) do | |
619 | if x:IsA("Humanoid") then | |
620 | hyoom = x | |
621 | end | |
622 | end | |
623 | if hyoom and prt.Parent:IsA("Model") and prt.Parent ~= chr then | |
624 | return hyoom | |
625 | end | |
626 | end | |
627 | end | |
628 | function GetRPFromPart(prt) | |
629 | local RP, RP2 | |
630 | if prt and prt.Parent and prt.Parent.Parent then | |
631 | RP = prt.Parent:findFirstChild("HumanoidRootPart") | |
632 | RP2 = prt.Parent.Parent:findFirstChild("HumanoidRootPart") | |
633 | if RP then | |
634 | return RP | |
635 | elseif not RP and RP2 then | |
636 | return RP2 | |
637 | end | |
638 | end | |
639 | end | |
640 | local rhitdb = false | |
641 | local lhitdb = false | |
642 | rn3.Touched:connect(function(hit) | |
643 | if hit and hit.Parent and not rhitdb and swing == "Right" and (armanim == "RightSwing2" or armanim == "RightSwing1" or armanim == "Launching") then | |
644 | do | |
645 | local enhum = GetHumanoidFromPart(hit) | |
646 | local rootpart = GetRPFromPart(hit) | |
647 | if enhum then | |
648 | local nyaa = newobj("Sound", rn3) | |
649 | nyaa.SoundId = "http://www.roblox.com/asset?id=" .. Meows[math.random(1, #Meows)] | |
650 | nyaa.Pitch = math.random(80, 120) * 0.01 | |
651 | nyaa:Play("") | |
652 | if taser and tasercharge >= 20 and not launched then | |
653 | do | |
654 | local tasers = newobj("Sound", rn3) | |
655 | tasers.SoundId = "http://www.roblox.com/asset?id=" .. tasersoundid | |
656 | tasers.Pitch = 0.8 | |
657 | tasers.Volume = 0.9 | |
658 | tasers:Play("") | |
659 | tasercharge = tasercharge - 20 | |
660 | enhum.PlatformStand = true | |
661 | local ht = enhum.Changed:connect(function(tz) | |
662 | if tz == "PlatformStand" then | |
663 | enhum.PlatformStand = true | |
664 | end | |
665 | end) | |
666 | if rootpart then | |
667 | rootpart.Velocity = rootpart.Velocity + (rutprt.CFrame * CFrame.new(0, 1, -1)).p - rutprt.CFrame.p.unit * 25 | |
668 | end | |
669 | spawn(function() | |
670 | wait(".35") | |
671 | ht:disconnect("") | |
672 | enhum.PlatformStand = false | |
673 | end) | |
674 | game:service("Debris"):AddItem(tasers, 1) | |
675 | end | |
676 | end | |
677 | rnpunch:Play("") | |
678 | game:service("Debris"):AddItem(nyaa, 2) | |
679 | rhitdb = true | |
680 | TakeDamage(enhum, BaseDamage * DamageMult) | |
681 | spawn(function() | |
682 | wait(0.7) | |
683 | rhitdb = false | |
684 | end) | |
685 | end | |
686 | end | |
687 | end | |
688 | end) | |
689 | ln3.Touched:connect(function(hit) | |
690 | if hit and hit.Parent and not lhitdb and swing == "Left" and (armanim == "LeftSwing2" or armanim == "LeftSwing1" or armanim == "Launching") then | |
691 | do | |
692 | local enhum = GetHumanoidFromPart(hit) | |
693 | if enhum then | |
694 | local nyaa = newobj("Sound", ln3) | |
695 | nyaa.SoundId = "http://www.roblox.com/asset?id=" .. Meows[math.random(1, #Meows)] | |
696 | nyaa.Pitch = math.random(80, 120) * 0.01 | |
697 | nyaa:Play("") | |
698 | lnpunch:Play("") | |
699 | if taser and tasercharge >= 20 and not launched then | |
700 | do | |
701 | local tasers = newobj("Sound", ln3) | |
702 | tasers.SoundId = "http://www.roblox.com/asset?id=" .. tasersoundid | |
703 | tasers.Pitch = 0.8 | |
704 | tasers.Volume = 0.9 | |
705 | tasers:Play("") | |
706 | tasercharge = tasercharge - 20 | |
707 | enhum.PlatformStand = true | |
708 | local ht = enhum.Changed:connect(function(tz) | |
709 | if tz == "PlatformStand" then | |
710 | enhum.PlatformStand = true | |
711 | end | |
712 | end) | |
713 | spawn(function() | |
714 | wait(".35") | |
715 | ht:disconnect("") | |
716 | enhum.PlatformStand = false | |
717 | end) | |
718 | game:service("Debris"):AddItem(tasers, 1) | |
719 | end | |
720 | end | |
721 | game:service("Debris"):AddItem(nyaa, 2) | |
722 | lhitdb = true | |
723 | TakeDamage(enhum, BaseDamage * DamageMult) | |
724 | spawn(function() | |
725 | wait(0.7) | |
726 | lhitdb = false | |
727 | end) | |
728 | end | |
729 | end | |
730 | end | |
731 | end) | |
732 | maus.KeyDown:connect(function(kei) | |
733 | if string.byte(kei) == 48 and not otheranims and not sitting and not disabled then | |
734 | runnin = true | |
735 | end | |
736 | if kei == "w" then | |
737 | fldb.w = true | |
738 | end | |
739 | if kei == "a" then | |
740 | fldb.a = true | |
741 | end | |
742 | if kei == "s" then | |
743 | fldb.s = true | |
744 | end | |
745 | if kei == "d" then | |
746 | fldb.d = true | |
747 | end | |
748 | if string.byte(kei) == 50 and not crawling then | |
749 | if crouching then | |
750 | otheranims = false | |
751 | crouching = false | |
752 | chr.Humanoid.WalkSpeed = 18 | |
753 | elseif not crouching and not otheranims then | |
754 | otheranims = true | |
755 | crouching = true | |
756 | anim = "Crouching" | |
757 | end | |
758 | end | |
759 | if kei == "l" then | |
760 | rnbf.Enabled = not rnbf.Enabled | |
761 | lnbf.Enabled = not lnbf.Enabled | |
762 | end | |
763 | if kei == "e" and not otheranims and not armmovement and not disabled and not lit and not crawling then | |
764 | otheranims = true | |
765 | anim = "PreSuperJump" | |
766 | chr.Humanoid.WalkSpeed = 0 | |
767 | jumpcharge = true | |
768 | end | |
769 | if kei == "f" and not otheranims and not armmovement and not launched and not disabled and not crawling and not lit and equipped then | |
770 | armmovement = true | |
771 | launchcharge = true | |
772 | armanim = "LaunchCharge" | |
773 | end | |
774 | if kei == "r" and not otheranims and not armmovement and not launched and not disabled then | |
775 | if taser then | |
776 | taser = false | |
777 | tasercon.Attachment1 = taserattright3 | |
778 | tasercon2.Attachment1 = taserattleft3 | |
779 | elseif not taser and tasercharge >= 20 then | |
780 | taser = true | |
781 | tasercon.Attachment1 = taserattright2 | |
782 | tasercon2.Attachment1 = taserattleft2 | |
783 | end | |
784 | end | |
785 | if kei == "c" and not armmovement and not sitting and not disabled and not jumpcharge then | |
786 | if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude >= RunSpeed - 2.5 and not otheranims and not crawling then | |
787 | otheranims = true | |
788 | anim = "Sliding" | |
789 | do | |
790 | local tempvelocity = newobj("BodyVelocity", rutprt) | |
791 | tempvelocity.Name = "TemporaryVelocity" | |
792 | tempvelocity.maxForce = Vector3.new(math.huge, 0, math.huge) | |
793 | tempvelocity.velocity = (rutprt.CFrame * CFrame.new(0, 0, -1)).p - rutprt.CFrame.p.unit * RunSpeed | |
794 | coroutine.resume(coroutine.create(function() | |
795 | local totesvelocity = RunSpeed | |
796 | repeat | |
797 | if (tempvelocity.velocity * Vector3.new(1, 1, 1)).magnitude <= 10 then | |
798 | tempvelocity:destroy("") | |
799 | runnin = false | |
800 | crawling = true | |
801 | chr.Humanoid.WalkSpeed = 8 | |
802 | elseif (tempvelocity.velocity * Vector3.new(1, 1, 1)).magnitude > 10 then | |
803 | totesvelocity = totesvelocity - 1.2 * (RunSpeed / 100) | |
804 | tempvelocity.velocity = (rutprt.CFrame * CFrame.new(0, 0, -1)).p - rutprt.CFrame.p.unit * totesvelocity | |
805 | end | |
806 | wait("") | |
807 | until tempvelocity.Parent == nil | |
808 | end)) | |
809 | end | |
810 | elseif (torso.Velocity * Vector3.new(1, 0, 1)).magnitude <= RunSpeed - 2 then | |
811 | if not crawling then | |
812 | otheranims = true | |
813 | anim = "PreCrawl" | |
814 | wait(".2") | |
815 | crawling = true | |
816 | chr.Humanoid.WalkSpeed = 8 | |
817 | elseif crawling then | |
818 | crawling = false | |
819 | otheranims = false | |
820 | chr.Humanoid.WalkSpeed = WlkSpeed | |
821 | end | |
822 | end | |
823 | end | |
824 | end) | |
825 | maus.KeyUp:connect(function(kei) | |
826 | if string.byte(kei) == 48 and not otheranims and not sitting and not disabled then | |
827 | runnin = false | |
828 | end | |
829 | if kei == "w" then | |
830 | fldb.w = false | |
831 | end | |
832 | if kei == "a" then | |
833 | fldb.a = false | |
834 | end | |
835 | if kei == "s" then | |
836 | fldb.s = false | |
837 | end | |
838 | if kei == "d" then | |
839 | fldb.d = false | |
840 | end | |
841 | if kei == "c" and rutprt:findFirstChild("TemporaryVelocity") and otheranims then | |
842 | otheranims = false | |
843 | rutprt.TemporaryVelocity:destroy("") | |
844 | end | |
845 | if kei == "f" and launchcharge and armmovement and not launched and not crawling and not jumpcharge and not otheranims then | |
846 | launchcharge = false | |
847 | launched = true | |
848 | armanim = "Launching" | |
849 | DamageMult = 1.5 | |
850 | do | |
851 | local oldat1 = tasercon.Attachment1 | |
852 | local oldat2 = tasercon2.Attachment1 | |
853 | tasercon.Attachment1 = nil | |
854 | tasercon2.Attachment1 = nil | |
855 | rn3w.Parent = nil | |
856 | ln3w.Parent = nil | |
857 | rn3w.Part0 = nil | |
858 | ln3w.Part0 = nil | |
859 | rspring.Parent = nil | |
860 | lspring.Parent = nil | |
861 | rn3.CanCollide = true | |
862 | ln3.CanCollide = true | |
863 | wait("0") | |
864 | rn3.Velocity = (rutprt.CFrame * CFrame.new(-1, 0.4, -2).p - rutprt.CFrame.p).unit * 100 | |
865 | ln3.Velocity = (rutprt.CFrame * CFrame.new(1, 0.4, -2).p - rutprt.CFrame.p).unit * 100 | |
866 | wait("") | |
867 | rspring.Parent = rn3 | |
868 | lspring.Parent = ln3 | |
869 | spawn(function() | |
870 | wait(0.7) | |
871 | rn3.CanCollide = false | |
872 | ln3.CanCollide = false | |
873 | tasercon.Attachment1 = oldat1 | |
874 | tasercon2.Attachment1 = oldat2 | |
875 | rn3w.Parent = rn3 | |
876 | ln3w.Parent = ln3 | |
877 | ln3w.Part0 = ln3 | |
878 | ln3w.Part1 = ln1 | |
879 | ln3w.C0 = CFrame.new(0, 0.55, 0) | |
880 | rn3w.Part0 = rn3 | |
881 | rn3w.Part1 = rn1 | |
882 | rn3w.C0 = CFrame.new(0, 0.55, 0) | |
883 | if launchhitdb then | |
884 | launchhitdb = false | |
885 | end | |
886 | armmovement = false | |
887 | wait("2.5") | |
888 | ltouched = false | |
889 | rtouched = false | |
890 | launched = false | |
891 | end) | |
892 | end | |
893 | end | |
894 | if kei == "e" and otheranims and jumpcharge and not crawling then | |
895 | if runnin then | |
896 | chr.Humanoid.WalkSpeed = RunSpeed | |
897 | else | |
898 | chr.Humanoid.WalkSpeed = WlkSpeed | |
899 | end | |
900 | local rei = Ray.new(rleg.CFrame.p, (rleg.CFrame * CFrame.new(0, 1.25, 0)).p - rleg.CFrame.p.unit * -3) | |
901 | local parthit, point = Workspace:FindPartOnRay(rei, chr) | |
902 | if parthit and point and parthit.CanCollide then | |
903 | chr.Humanoid.Jump = true | |
904 | anim = "SuperJump" | |
905 | local aasdd = newobj("BodyVelocity", rutprt) | |
906 | aasdd.maxForce = Vector3.new(0, 1 / 0, 0) | |
907 | aasdd.velocity = Vector3.new(0, jumpheight, 0) | |
908 | game:service("Debris"):AddItem(aasdd, 0.05) | |
909 | jumpcharge = false | |
910 | otheranims = false | |
911 | else | |
912 | otheranims = false | |
913 | jumpheight = 10 | |
914 | end | |
915 | end | |
916 | end) | |
917 | local funcrt, funclt | |
918 | maus.Button1Down:connect(function() | |
919 | if not otheranims and not sitting and not disabled and not armmovement and equipped then | |
920 | if taser and tasercharge >= 20 then | |
921 | DamageMult = 0.8 | |
922 | else | |
923 | DamageMult = 1 | |
924 | end | |
925 | armmovement = true | |
926 | armanim = swing .. "Swing1" | |
927 | wait(0.22) | |
928 | armanim = swing .. "Swing2" | |
929 | if swing == "Right" then | |
930 | rnding:Play() | |
931 | spawn(function() | |
932 | wait(0.6) | |
933 | rnding:Stop() | |
934 | end) | |
935 | else | |
936 | lnding:Play() | |
937 | spawn(function() | |
938 | wait(0.6) | |
939 | lnding:Stop() | |
940 | end) | |
941 | end | |
942 | wait(0.15) | |
943 | armmovement = false | |
944 | if swing == "Right" then | |
945 | swing = "Left" | |
946 | else | |
947 | swing = "Right" | |
948 | end | |
949 | end | |
950 | end) | |
951 | chr.Humanoid.Changed:connect(function(chng) | |
952 | if (crouching or disabled) and chng == "Jump" then | |
953 | chr.Humanoid.Jump = false | |
954 | end | |
955 | end) | |
956 | game:service("RunService").RenderStepped:connect(function() | |
957 | tasercharge = tasercharge + 0.04 | |
958 | if tasercharge < 0 then | |
959 | tasercharge = 0 | |
960 | end | |
961 | if tasercharge > 100 then | |
962 | tasercharge = 100 | |
963 | end | |
964 | tb.Size = UDim2.new(tasercharge / 100, 0, 1, 0) | |
965 | if anim ~= "PreCrawl" and (anim ~= "IdleCrawl" or armanim == "Digging") and anim ~= "Sliding" and anim ~= "Jumping" and anim ~= "Falling" then | |
966 | syne = syne + 0.95 | |
967 | end | |
968 | chr.Humanoid.CameraOffset = rutprt.CFrame:toObjectSpace(hed.CFrame).p + Vector3.new(0, -1.25, 0) | |
969 | if not otheranims then | |
970 | if 1 > (torso.Velocity * Vector3.new(1, 0, 1)).magnitude and not dnc and not chr.Humanoid.Jump then | |
971 | anim = "Idling" | |
972 | chr.Humanoid.JumpPower = 54 | |
973 | elseif 1 < (rutprt.Velocity * Vector3.new(1, 0, 1)).magnitude and (rutprt.Velocity * Vector3.new(1, 0, 1)).magnitude < RunSpeed - 5 and not chr.Humanoid.Jump then | |
974 | anim = "Walking" | |
975 | dnc = false | |
976 | chr.Humanoid.JumpPower = 56 | |
977 | elseif (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > RunSpeed - 10 and not chr.Humanoid.Jump then | |
978 | anim = "Sprinting" | |
979 | dnc = false | |
980 | chr.Humanoid.JumpPower = 62 | |
981 | end | |
982 | if torso.Velocity.y > 4 then | |
983 | anim = "Jumping" | |
984 | dnc = false | |
985 | elseif torso.Velocity.y < -4 then | |
986 | anim = "Falling" | |
987 | dnc = false | |
988 | end | |
989 | end | |
990 | local rpvl = (torso.Velocity * Vector3.new(1, 0, 1)).magnitude / RunSpeed | |
991 | local rpvl2 = (torso.Velocity * Vector3.new(1, 0, 1)).magnitude | |
992 | if otheranims and crawling then | |
993 | if 1 > (torso.Velocity * Vector3.new(1, 0, 1)).magnitude and not chr.Humanoid.Jump then | |
994 | anim = "IdleCrawl" | |
995 | chr.Humanoid.JumpPower = 0 | |
996 | elseif 1 < (torso.Velocity * Vector3.new(1, 0, 1)).magnitude and (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 12 and not chr.Humanoid.Jump then | |
997 | anim = "Crawling" | |
998 | idled = false | |
999 | chr.Humanoid.JumpPower = 38 | |
1000 | elseif 1 < (torso.Velocity * Vector3.new(1, 0, 1)).magnitude and (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 12 and not chr.Humanoid.Jump then | |
1001 | anim = "SpeedCrawling" | |
1002 | idled = false | |
1003 | chr.Humanoid.JumpPower = 46 | |
1004 | end | |
1005 | end | |
1006 | if otheranims and crawling then | |
1007 | if torso.Velocity.y > 2 then | |
1008 | anim = "CrawlJump" | |
1009 | elseif torso.Velocity.y < -6 then | |
1010 | anim = "CrawlFall" | |
1011 | end | |
1012 | end | |
1013 | if anim ~= lastanim then | |
1014 | runtime = 0 | |
1015 | end | |
1016 | if not armmovement and not equipped then | |
1017 | rn1w.Part1 = torso | |
1018 | rn1w.C1 = CFrame.new(0.4, -0.3, 0.6) * CFrame.Angles(math.rad(-11), math.rad(183), math.rad(85)) | |
1019 | ln1w.Part1 = torso | |
1020 | ln1w.C1 = CFrame.new(-0.4, -1, 0.6) * CFrame.Angles(math.rad(11), math.rad(-183), math.rad(-85)) | |
1021 | else | |
1022 | rn1w.Part1 = rarm | |
1023 | rn1w.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1024 | ln1w.Part1 = larm | |
1025 | ln1w.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1026 | end | |
1027 | lastanim = anim | |
1028 | local idlesineinc = 32.5 | |
1029 | if anim == "Idling" then | |
1030 | if not armmovement and not equipped then | |
1031 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.1) | |
1032 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.1) | |
1033 | elseif not armmovement and equipped then | |
1034 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.2, 0.4 + math.cos(syne / idlesineinc) / 25, 0.1) * CFrame.Angles(math.rad(105), math.rad(-15), math.rad(-20)), 0.1) | |
1035 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.1, 0.2 + math.cos(syne / idlesineinc) / 25, -0.65) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(15)), 0.1) | |
1036 | end | |
1037 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1.9 - math.cos(syne / idlesineinc) / 20, math.cos(syne / idlesineinc) / 35) * CFrame.Angles(-(math.cos(syne / idlesineinc) / 35), 0, math.rad(-2.5)), 0.1) | |
1038 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.9 - math.cos(syne / idlesineinc) / 20, math.cos(syne / idlesineinc) / 35) * CFrame.Angles(-(math.cos(syne / idlesineinc) / 35), 0, math.rad(2.5)), 0.1) | |
1039 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5 + math.cos(syne / idlesineinc) / 50, -math.cos(syne / idlesineinc) / 60) * CFrame.Angles(-math.cos(syne / idlesineinc) / 60, 0, 0), 0.1) | |
1040 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -0.1 + math.cos(syne / idlesineinc) / 20, 0) * CFrame.Angles(math.cos(syne / idlesineinc) / 35 + math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1041 | end | |
1042 | if anim == "Walking" then | |
1043 | if not armmovement and not equipped then | |
1044 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525, -0.1) * CFrame.Angles(math.cos(syne / 6) / 1.25, -(math.cos(syne / 6) / 10) + math.rad(5), -(math.cos(syne / 6.75) / 10) + math.rad(8)), 0.1) | |
1045 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, -0.1) * CFrame.Angles(-(math.cos(syne / 6) / 1.25), -(math.cos(syne / 6) / 10) - math.rad(5), -(math.cos(syne / 6.75) / 10) - math.rad(8)), 0.1) | |
1046 | elseif not armmovement and equipped then | |
1047 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4, 0.425, -0.2) * CFrame.Angles(math.rad(40), math.rad(10), math.rad(5)), 0.1) | |
1048 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.4, 0.425, -0.2) * CFrame.Angles(math.rad(40), math.rad(-10), math.rad(-5)), 0.1) | |
1049 | end | |
1050 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.515, -1.8 - math.sin(syne / 6) / 4 + math.sin(rutprt.RotVelocity.y / 2) / 13, -(math.cos(syne / 6) / 1.125) - 0.15) * CFrame.Angles(math.cos(syne / 6) / 1.125 + math.rad(5), 0, math.rad(-1)), 0.1) | |
1051 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.515, -1.8 + math.sin(syne / 6) / 4 - math.sin(rutprt.RotVelocity.y / 2) / 13, math.cos(syne / 6) / 1.125 - 0.15) * CFrame.Angles(-(math.cos(syne / 6) / 1.125) + math.rad(5), 0, math.rad(1)), 0.1) | |
1052 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5 + math.cos(syne / 20) / 50, 0) * CFrame.Angles(-math.cos(syne / 3) / 20 + math.rad(2), -math.cos(syne / 6) / 10, 0), 0.1) | |
1053 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -0.2 + math.cos(syne / 3.375) / 20, math.cos(syne / 3) / 5) * CFrame.Angles(math.cos(syne / 3) / 20 + math.rad(-10), math.cos(syne / 6) / 8, -math.cos(syne / 6) / 25 + math.sin(rutprt.RotVelocity.y / 2) / 6), 0.1) | |
1054 | end | |
1055 | if anim == "Sprinting" then | |
1056 | if not armmovement and not equipped then | |
1057 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525, math.cos(syne / 4) / 15) * CFrame.Angles(-math.cos(syne / 2.5) / 5 + math.rad(-55), 0, math.rad(12.5)), 0.1) | |
1058 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, -math.cos(syne / 4) / 15) * CFrame.Angles(-math.cos(syne / 2.5) / 5 + math.rad(-55), 0, math.rad(-12.5)), 0.1) | |
1059 | elseif not armmovement and equipped then | |
1060 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4, 0.5, -0.1) * CFrame.Angles(math.rad(-5), math.rad(10), math.rad(35)), 0.1) | |
1061 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.4, 0.5, -0.1) * CFrame.Angles(math.rad(-5), math.rad(-10), math.rad(-35)), 0.1) | |
1062 | end | |
1063 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55 + math.cos(syne / 4) / 20, -1.4 - math.sin(syne / 4) / 2.4 + math.sin(rutprt.RotVelocity.y / 2) / 8, -(math.cos(syne / 4) * 2.5) - 0.125) * CFrame.Angles(math.cos(syne / 4) * 2.1 + math.rad(-8), 0, math.rad(-2.5)), 0.1) | |
1064 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55 - math.cos(syne / 4) / 20, -1.4 + math.sin(syne / 4) / 2.4 - math.sin(rutprt.RotVelocity.y / 2) / 8, math.cos(syne / 4) * 2.5 - 0.125) * CFrame.Angles(-(math.cos(syne / 4) * 2.1) + math.rad(-8), 0, math.rad(2.5)), 0.1) | |
1065 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.55 + math.cos(syne / 20) / 50, 0) * CFrame.Angles(-math.cos(syne / 2.5) / 10 + math.rad(20), -math.cos(syne / 2.5) / 8, 0), 0.1) | |
1066 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -0.27 + math.cos(syne / 2.5) / 5, math.cos(syne / 2.5)) * CFrame.Angles(math.cos(syne / 2.5) / 6 + math.rad(-25), math.cos(syne / 2.5) / 8, math.cos(syne / 4) / 15 + math.sin(rutprt.RotVelocity.y / 3) / 2.5), 0.1) | |
1067 | chr.Humanoid.CameraOffset = rutprt.CFrame:toObjectSpace(hed.CFrame).p + Vector3.new(math.cos(syne / 2.5) / 30, -1.3 - math.cos(syne / 5) / 25, -0.1) | |
1068 | end | |
1069 | if anim == "Jumping" then | |
1070 | if not armmovement then | |
1071 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(50)), 0.1) | |
1072 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-50)), 0.1) | |
1073 | end | |
1074 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1.4, 0) * CFrame.Angles(math.rad(-17.5), 0, math.rad(-2.5)), 0.1) | |
1075 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.1, -0.1) * CFrame.Angles(math.rad(-17.5), 0, math.rad(2.5)), 0.1) | |
1076 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5 + math.cos(syne / 20) / 50, 0) * CFrame.Angles(math.cos(syne / 20) / 40, 0, 0), 0.1) | |
1077 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -0.1 + math.cos(syne / 20) / 20, 0) * CFrame.Angles(-rpvl * chr.Humanoid.JumpPower / 58 / 1.5, math.rad(0), math.rad(0)), 0.1) | |
1078 | end | |
1079 | if anim == "Falling" then | |
1080 | if not armmovement then | |
1081 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(70)), 0.035) | |
1082 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-70)), 0.035) | |
1083 | end | |
1084 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1.2, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-2.5)), 0.035) | |
1085 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.9, 0) * CFrame.Angles(math.rad(0), 0, math.rad(2.5)), 0.035) | |
1086 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, -0.3) * CFrame.Angles(math.rad(-40), 0, 0), 0.035) | |
1087 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -1, 0) * CFrame.Angles(rpvl / 3, math.rad(0), math.rad(0)), 0.1) | |
1088 | end | |
1089 | if anim == "Sliding" then | |
1090 | if equipped then | |
1091 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4 - math.sin(rutprt.RotVelocity.y / 2) / 9, 0.535, 0.5 + math.sin(rutprt.RotVelocity.y / 2) / 3) * CFrame.Angles(math.rad(-65), 0, math.rad(-15)), 0.17) | |
1092 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, -0.2 - math.sin(rutprt.RotVelocity.y / 2) / 3) * CFrame.Angles(math.rad(-120) - math.sin(rutprt.RotVelocity.y / 2) / 7, 0, math.rad(-40)), 0.17) | |
1093 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1 + math.sin(rutprt.RotVelocity.y / 2) / 3, -0.125) * CFrame.Angles(math.rad(-17.5) - math.sin(rutprt.RotVelocity.y / 2) / 9, 0, math.rad(-2.5)), 0.17) | |
1094 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.6 - math.sin(rutprt.RotVelocity.y / 2) / 4, 0.15) * CFrame.Angles(math.rad(-10) + math.sin(rutprt.RotVelocity.y / 2) / 9, 0, math.rad(2.5)), 0.17) | |
1095 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, -0.6) * CFrame.Angles(math.rad(-50), math.rad(-18), math.rad(-10)), 0.17) | |
1096 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(65), math.rad(30) + math.sin(rutprt.RotVelocity.y / 2) / 3, math.rad(0)), 0.17) | |
1097 | else | |
1098 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4 - math.sin(rutprt.RotVelocity.y / 2) / 9, 0.535, 0.5 + math.sin(rutprt.RotVelocity.y / 2) / 3) * CFrame.Angles(math.rad(-60), 0, math.rad(-15)), 0.17) | |
1099 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, -0.2 - math.sin(rutprt.RotVelocity.y / 2) / 3) * CFrame.Angles(math.rad(-105) - math.sin(rutprt.RotVelocity.y / 2) / 7, 0, math.rad(-40)), 0.17) | |
1100 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1 + math.sin(rutprt.RotVelocity.y / 2) / 3, -0.125) * CFrame.Angles(math.rad(-17.5) - math.sin(rutprt.RotVelocity.y / 2) / 9, 0, math.rad(-2.5)), 0.17) | |
1101 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.6 - math.sin(rutprt.RotVelocity.y / 2) / 4, 0.15) * CFrame.Angles(math.rad(-10) + math.sin(rutprt.RotVelocity.y / 2) / 9, 0, math.rad(2.5)), 0.17) | |
1102 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, -0.6) * CFrame.Angles(math.rad(-50), math.rad(-8), math.rad(-10)), 0.17) | |
1103 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -1.7, 0) * CFrame.Angles(math.rad(70), math.rad(20) + math.sin(rutprt.RotVelocity.y / 2) / 3, math.rad(0)), 0.17) | |
1104 | end | |
1105 | end | |
1106 | if armmovement then | |
1107 | if armanim == "RightSwing1" then | |
1108 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4, 0.25 + math.cos(syne / idlesineinc) / 25, 1.2) * CFrame.Angles(math.rad(95), math.rad(-15), math.rad(15)), 0.25) | |
1109 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.2, 0.35 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(math.rad(45), math.rad(10), math.rad(10)), 0.25) | |
1110 | end | |
1111 | if armanim == "RightSwing2" then | |
1112 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(0.8, 0.3 + math.cos(syne / idlesineinc) / 25, -0.8) * CFrame.Angles(math.rad(95), math.rad(15), math.rad(-15)), 0.55) | |
1113 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.2, 0.45 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(math.rad(45), math.rad(10), math.rad(-10)), 0.55) | |
1114 | end | |
1115 | if armanim == "LeftSwing1" then | |
1116 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.4, 0.25 + math.cos(syne / idlesineinc) / 25, 1.2) * CFrame.Angles(math.rad(95), math.rad(10), math.rad(15)), 0.25) | |
1117 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.2, 0.35 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(math.rad(45), math.rad(10), math.rad(10)), 0.25) | |
1118 | end | |
1119 | if armanim == "LeftSwing2" then | |
1120 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-0.8, 0.3 + math.cos(syne / idlesineinc) / 25, -0.8) * CFrame.Angles(math.rad(95), math.rad(-15), math.rad(15)), 0.55) | |
1121 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.2, 0.45 + math.cos(syne / idlesineinc) / 25, 0) * CFrame.Angles(math.rad(45), math.rad(10), math.rad(10)), 0.55) | |
1122 | end | |
1123 | if armanim == "Digging" then | |
1124 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.15 - math.cos(syne * 0.6) / 8, 1.2 + math.cos(syne * 0.6) * 0.6, -0.1) * CFrame.Angles(math.rad(179), 0, math.rad(-15)), 0.6) | |
1125 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.15 - math.cos(syne * 0.6) / 8, 1.2 - math.cos(syne * 0.6) * 0.6, -0.1) * CFrame.Angles(math.rad(179), 0, math.rad(15)), 0.6) | |
1126 | end | |
1127 | if armanim == "LaunchCharge" then | |
1128 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.45, 0.3 + math.cos(syne / idlesineinc) / 25, 0.8) * CFrame.Angles(math.rad(95), math.rad(10), math.rad(-15)), 0.5) | |
1129 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.45, 0.3 + math.cos(syne / idlesineinc) / 25, 0.8) * CFrame.Angles(math.rad(95), math.rad(-10), math.rad(15)), 0.5) | |
1130 | end | |
1131 | if armanim == "Launching" then | |
1132 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.35, 0.3 + math.cos(syne / idlesineinc) / 25, -0.4) * CFrame.Angles(math.rad(95), math.rad(10), math.rad(15)), 0.5) | |
1133 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.35, 0.3 + math.cos(syne / idlesineinc) / 25, -0.4) * CFrame.Angles(math.rad(95), math.rad(-10), math.rad(-15)), 0.5) | |
1134 | end | |
1135 | else | |
1136 | armanim = "Empty" | |
1137 | end | |
1138 | if jumpcharge and 100 > jumpheight then | |
1139 | jumpheight = jumpheight + 2.5 | |
1140 | elseif not jumpcharge then | |
1141 | jumpheight = 5 | |
1142 | end | |
1143 | if anim == "PreSuperJump" then | |
1144 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(50)), 0.06) | |
1145 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.5, 0.525, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-50)), 0.06) | |
1146 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1, 0.3) * CFrame.Angles(math.rad(-40), 0, math.rad(-2.5)), 0.06) | |
1147 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -0.6, -0.65) * CFrame.Angles(math.rad(10), 0, math.rad(2.5)), 0.06) | |
1148 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, 0.3) * CFrame.Angles(math.rad(40), 0, 0), 0.06) | |
1149 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -1.6, 0.2) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(0)), 0.06) | |
1150 | end | |
1151 | if anim == "SuperJump" then | |
1152 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4, 0.525, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(20)), 0.1) | |
1153 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.4, 0.525, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-20)), 0.1) | |
1154 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.55, -1.8, 0) * CFrame.Angles(math.rad(-2.5), 0, math.rad(-2.5)), 0.2) | |
1155 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.55, -1.8, 0) * CFrame.Angles(math.rad(-2.5), 0, math.rad(2.5)), 0.2) | |
1156 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, 0.3) * CFrame.Angles(math.rad(30), 0, 0), 0.1) | |
1157 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.1) | |
1158 | chr.Humanoid.Jump = true | |
1159 | end | |
1160 | if anim == "Crouching" then | |
1161 | if not armmovement then | |
1162 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.4, 0.35, -0.225) * CFrame.Angles(math.rad(70), 0, math.rad(-15)), 0.075) | |
1163 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.4, 0.35, -0.225) * CFrame.Angles(math.rad(70), 0, math.rad(15)), 0.075) | |
1164 | end | |
1165 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.5, -0.55, -1) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.075) | |
1166 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.5, -0.65, -1.275) * CFrame.Angles(math.rad(60), 0, math.rad(0)), 0.075) | |
1167 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(5), 0, 0), 0.05) | |
1168 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 0.075) | |
1169 | end | |
1170 | if anim == "PreCrawl" then | |
1171 | if not armmovement then | |
1172 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.45, 0.9, -0.175) * CFrame.Angles(math.rad(150), 0, math.rad(-25)), 0.2) | |
1173 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.45, 0.9, -0.175) * CFrame.Angles(math.rad(150), 0, math.rad(25)), 0.2) | |
1174 | end | |
1175 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.5, -1.6, -0.1) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.2) | |
1176 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.5, -1.6, -0.1) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.2) | |
1177 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.35, 0.25) * CFrame.Angles(math.rad(72.5), 0, 0), 0.2) | |
1178 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(-80), math.rad(0), math.rad(0)), 0.2) | |
1179 | end | |
1180 | if crawling then | |
1181 | if anim == "Crawling" then | |
1182 | if not armmovement then | |
1183 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.25, 1 - math.cos(syne / 10) / 2 - math.sin(rutprt.RotVelocity.y / 2) / 7, -0.35 + math.cos(syne / 10) / 6) * CFrame.Angles(math.rad(155) + math.sin(syne / 10) / 7, 0, math.rad(-25) + math.cos(syne / 10) / 13), 0.175) | |
1184 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.25, 1 + math.cos(syne / 10) / 2 + math.sin(rutprt.RotVelocity.y / 2) / 7, -0.35 - math.cos(syne / 10) / 6) * CFrame.Angles(math.rad(165) - math.sin(syne / 10) / 7, 0, math.rad(25) - math.cos(syne / 10) / 13), 0.175) | |
1185 | end | |
1186 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.525, -1.5 - math.cos(syne / 10) / 3 + math.sin(rutprt.RotVelocity.y / 2) / 7, -0.3 + math.sin(syne / 10) / 5) * CFrame.Angles(math.rad(-5) - math.cos(syne / 10) / 9, 0, -math.cos(syne / 10) / 15), 0.175) | |
1187 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.525, -1.5 + math.cos(syne / 10) / 3 - math.sin(rutprt.RotVelocity.y / 2) / 7, -0.3 - math.sin(syne / 10) / 5) * CFrame.Angles(math.rad(-5) + math.cos(syne / 10) / 9, 0, -math.cos(syne / 10) / 15), 0.175) | |
1188 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.35, math.cos(syne / 30) / 20 + 0.25) * CFrame.Angles(math.cos(syne / 30) / 25 + math.rad(75), 0, 0), 0.175) | |
1189 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -2.1, 0) * CFrame.Angles(math.rad(-82) + math.cos(syne / 5) / 12, math.cos(syne / 10) / 15 - math.sin(rutprt.RotVelocity.y / 2) / 7, math.cos(syne / 5) / 15), 0.15) | |
1190 | end | |
1191 | if anim == "CrawlJump" then | |
1192 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.35, 0.4, -0.175) * CFrame.Angles(math.rad(10), 0, math.rad(15)), 0.15) | |
1193 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.35, 0.4, -0.175) * CFrame.Angles(math.rad(10), 0, math.rad(-15)), 0.15) | |
1194 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.5, -1.8, -0.1) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.15) | |
1195 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.5, -1.8, -0.1) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.15) | |
1196 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.35, 0.25) * CFrame.Angles(math.rad(55), 0, 0), 0.15) | |
1197 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -2.1, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.15) | |
1198 | end | |
1199 | if anim == "CrawlFall" then | |
1200 | rarmweld.C0 = Lerp(rarmweld.C0, CFrame.new(1.35, 1.2, -0.175) * CFrame.Angles(math.rad(170), 0, math.rad(-10)), 0.15) | |
1201 | larmweld.C0 = Lerp(larmweld.C0, CFrame.new(-1.35, 1.2, -0.175) * CFrame.Angles(math.rad(170), 0, math.rad(10)), 0.15) | |
1202 | llegweld.C0 = Lerp(llegweld.C0, CFrame.new(-0.5, -1.5, -0.3) * CFrame.Angles(math.rad(5), 0, math.rad(0)), 0.15) | |
1203 | rlegweld.C0 = Lerp(rlegweld.C0, CFrame.new(0.5, -1.5, -0.3) * CFrame.Angles(math.rad(5), 0, math.rad(0)), 0.15) | |
1204 | headweld.C0 = Lerp(headweld.C0, CFrame.new(0, 1.35, 0.3) * CFrame.Angles(math.rad(90), 0, 0), 0.15) | |
1205 | rutwald.C0 = Lerp(rutwald.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-110), math.rad(0), math.rad(0)), 0.15) | |
1206 | end | |
1207 | end | |
1208 | if crouching then | |
1209 | chr.Humanoid.WalkSpeed = 0 | |
1210 | end | |
1211 | if runnin and not disabled and not otheranims and not sitting then | |
1212 | chr.Humanoid.WalkSpeed = RunSpeed | |
1213 | elseif not runnin and not disabled and not otheranims and not sitting then | |
1214 | chr.Humanoid.WalkSpeed = WlkSpeed | |
1215 | elseif not runnin and not disabled and otheranims and crawling and not sitting then | |
1216 | chr.Humanoid.WalkSpeed = CrawlSpeed | |
1217 | end | |
1218 | end) | |
1219 | local hp = newobj("HopperBin", plr.Backpack) | |
1220 | hp.Name = "Neko Neko Knuckles" | |
1221 | hp.TextureId = "rbxassetid://985312942" | |
1222 | hp.Selected:connect(function() | |
1223 | equipped = true | |
1224 | end) | |
1225 | hp.Deselected:connect(function() | |
1226 | equipped = false | |
1227 | end) |