SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | local plr = game:GetService("Players").LocalPlayer | |
145 | local plrg = plr.PlayerGui | |
146 | local mouse = plr:GetMouse() | |
147 | local char = plr.Character | |
148 | local h = char.Head | |
149 | local t = char.Torso | |
150 | local ra = char["Right Arm"] | |
151 | local la = char["Left Arm"] | |
152 | local rl = char["Right Leg"] | |
153 | local ll = char["Left Leg"] | |
154 | local rs = t["Right Shoulder"] | |
155 | local ls = t["Left Shoulder"] | |
156 | local rh = t["Right Hip"] | |
157 | local lh = t["Left Hip"] | |
158 | local nec = t.Neck | |
159 | local rad = math.rad | |
160 | local anim = "idle" | |
161 | local using = true | |
162 | local supermode = false | |
163 | local canattacc = false | |
164 | local songs = {"rbxassetid://147461803","rbxassetid://1484225071"} | |
165 | local rut = char.HumanoidRootPart | |
166 | local rutj = rut.RootJoint | |
167 | local hum = char:FindFirstChildOfClass("Humanoid") | |
168 | hum.WalkSpeed = 0 hum.JumpPower = 0 | |
169 | local ff = Instance.new("ForceField",char) ff.Visible = false | |
170 | local debrs = game:GetService("Debris") | |
171 | local mus local crack local expls | |
172 | local cursong = 1 | |
173 | expls = Instance.new("Sound",workspace) expls.Name = "Explso" expls.Volume = 5 expls.SoundId = "rbxassetid://262562442" | |
174 | local hitbox = Instance.new("Part",ra) hitbox.Size = Vector3.new(1,1,1) hitbox.CanCollide = false hitbox.Transparency = 1 | |
175 | local hitboxw = Instance.new("Weld",hitbox) hitboxw.Part0 = ra hitboxw.Part1 = hitbox hitboxw.C0 = CFrame.new(0,-.7,0) | |
176 | ||
177 | Player = owner | |
178 | Character = Player.Character | |
179 | local txt = Instance.new("BillboardGui", Character) | |
180 | txt.Adornee = Character.Head | |
181 | txt.Name = "_status" | |
182 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
183 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
184 | local text = Instance.new("TextLabel", txt) | |
185 | text.Size = UDim2.new(10, 0, 7, 0) | |
186 | text.FontSize = "Size24" | |
187 | text.TextScaled = true | |
188 | text.TextTransparency = 0 | |
189 | text.BackgroundTransparency = 1 | |
190 | text.TextTransparency = 0 | |
191 | text.TextStrokeTransparency = 0 | |
192 | text.Font = "Code" | |
193 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
194 | text.Text = "Insane" | |
195 | script.Name = "I'm just a text" | |
196 | ||
197 | wait(0.2) | |
198 | ||
199 | text.Font = "Code" | |
200 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
201 | text.Text = "iNsane" | |
202 | ||
203 | wait(0.2) | |
204 | ||
205 | text.Font = "Code" | |
206 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
207 | text.Text = "inSane" | |
208 | ||
209 | wait(0.2) | |
210 | ||
211 | text.Font = "Code" | |
212 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
213 | text.Text = "insAne" | |
214 | ||
215 | wait(0.2) | |
216 | ||
217 | text.Font = "Code" | |
218 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
219 | text.Text = "insaNe" | |
220 | ||
221 | wait(0.2) | |
222 | ||
223 | text.Font = "Code" | |
224 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
225 | text.Text = "insanE" | |
226 | ||
227 | wait(0.2) | |
228 | ||
229 | text.Font = "Code" | |
230 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
231 | text.Text = "insaNe" | |
232 | ||
233 | wait(0.2) | |
234 | ||
235 | text.Font = "Code" | |
236 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
237 | text.Text = "insAne" | |
238 | ||
239 | wait(0.2) | |
240 | ||
241 | text.Font = "Code" | |
242 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
243 | text.Text = "inSane" | |
244 | ||
245 | wait(0.2) | |
246 | ||
247 | text.Font = "Code" | |
248 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
249 | text.Text = "iNsane" | |
250 | ||
251 | wait(0.2) | |
252 | ||
253 | text.Font = "Code" | |
254 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
255 | text.Text = "Insane" | |
256 | ||
257 | wait(0.2) | |
258 | ||
259 | text.Font = "Code" | |
260 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
261 | text.Text = "inSAne" | |
262 | ||
263 | wait(0.2) | |
264 | ||
265 | ||
266 | text.Font = "Code" | |
267 | text.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
268 | text.Text = "INSANE" | |
269 | ||
270 | ||
271 | Player = game:GetService("Players").LocalPlayer | |
272 | PlayerGui = Player.PlayerGui | |
273 | Cam = workspace.CurrentCamera | |
274 | Backpack = Player.Backpack | |
275 | Character = Player.Character | |
276 | Humanoid = Character.Humanoid | |
277 | Mouse = Player:GetMouse() | |
278 | RootPart = Character["HumanoidRootPart"] | |
279 | Torso = Character["Torso"] | |
280 | Head = Character["Head"] | |
281 | RightArm = Character["Right Arm"] | |
282 | LeftArm = Character["Left Arm"] | |
283 | RightLeg = Character["Right Leg"] | |
284 | LeftLeg = Character["Left Leg"] | |
285 | RootJoint = RootPart["RootJoint"] | |
286 | Neck = Torso["Neck"] | |
287 | RightShoulder = Torso["Right Shoulder"] | |
288 | LeftShoulder = Torso["Left Shoulder"] | |
289 | RightHip = Torso["Right Hip"] | |
290 | LeftHip = Torso["Left Hip"] | |
291 | local sick = Instance.new("Sound",Torso) | |
292 | sick.SoundId = "rbxassetid://145082678" | |
293 | sick.Looped = true | |
294 | sick.Pitch = 1 | |
295 | sick.Volume = 10 | |
296 | sick:Play() | |
297 | ||
298 | local basgui = it("GuiMain") | |
299 | basgui.Parent = plr.PlayerGui | |
300 | basgui.Name = "VISgui" | |
301 | local fullscreenz = it("Frame") | |
302 | fullscreenz.Parent = basgui | |
303 | fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255) | |
304 | fullscreenz.BackgroundTransparency = 1 | |
305 | fullscreenz.BorderColor3 = Color3.new(17, 17, 17) | |
306 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
307 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
308 | local imgl2 = Instance.new("ImageLabel",fullscreenz) | |
309 | imgl2.BackgroundTransparency = 1 | |
310 | imgl2.BorderSizePixel = 0 | |
311 | imgl2.ImageTransparency = 0.5 | |
312 | imgl2.ImageColor3 = Color3.new(1,0,0) | |
313 | imgl2.Position = UDim2.new(0.75,-200,0.55,-200) | |
314 | imgl2.Size = UDim2.new(0,1000,0,1000) | |
315 | imgl2.Image = "rbxassetid://2325939897" | |
316 | local techc = imgl2:Clone() | |
317 | techc.Parent = fullscreenz | |
318 | techc.ImageTransparency = 0 | |
319 | techc.Size = UDim2.new(0,900,0,900) | |
320 | techc.Position = UDim2.new(0.75,-150,0.55,-150) | |
321 | techc.ImageColor3 = Color3.new(1,0,0) | |
322 | techc.Image = "rbxassetid://2273224484" | |
323 | local circl = imgl2:Clone() | |
324 | circl.Parent = fullscreenz | |
325 | circl.ImageTransparency = 0 | |
326 | circl.Size = UDim2.new(0,550,0,550) | |
327 | circl.Position = UDim2.new(0.75,25,0.55,25) | |
328 | circl.ImageColor3 = Color3.new(0,0,0) | |
329 | circl.Image = "rbxassetid://2312119891" | |
330 | local circl2 = imgl2:Clone() | |
331 | circl2.Parent = fullscreenz | |
332 | circl2.ImageTransparency = 0 | |
333 | circl2.Size = UDim2.new(0,700,0,700) | |
334 | circl2.Position = UDim2.new(0.75,-50,0.55,-50) | |
335 | circl2.ImageColor3 = Color3.new(1,0,0) | |
336 | circl2.Image = "rbxassetid://2312119891" | |
337 | local imgl2b = imgl2:Clone() | |
338 | imgl2b.Parent = fullscreenz | |
339 | imgl2b.ImageTransparency = 0 | |
340 | imgl2b.Size = UDim2.new(0,800,0,800) | |
341 | imgl2b.Position = UDim2.new(0.75,-100,0.55,-100) | |
342 | imgl2b.ImageColor3 = Color3.new(0,0,0) | |
343 | local ned = Instance.new("TextLabel",fullscreenz) | |
344 | ned.ZIndex = 2 | |
345 | ned.Font = "Arcade" | |
346 | ned.BackgroundTransparency = 1 | |
347 | ned.BorderSizePixel = 0.65 | |
348 | ned.Size = UDim2.new(0.3,0,0.2,0) | |
349 | ned.Position = UDim2.new(0.7,0,0.8,0) | |
350 | ned.TextColor3 = BrickColor.new("Really red").Color | |
351 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color | |
352 | ned.TextScaled = true | |
353 | ned.TextStrokeTransparency = 0 | |
354 | ned.Text = "INSANE" | |
355 | ned.TextSize = 24 | |
356 | ned.Rotation = 1 | |
357 | ned.TextXAlignment = "Right" | |
358 | ned.TextYAlignment = "Bottom" | |
359 | ||
360 | ArtificialHB = Instance.new("BindableEvent", script) | |
361 | ArtificialHB.Name = "Heartbeat" | |
362 | script:WaitForChild("Heartbeat") | |
363 | frame = 1 / 60 | |
364 | tf = 0 | |
365 | allowframeloss = false | |
366 | tossremainder = false | |
367 | lastframe = tick() | |
368 | script.Heartbeat:Fire() | |
369 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
370 | tf = tf + s | |
371 | if tf >= frame then | |
372 | if allowframeloss then | |
373 | script.Heartbeat:Fire() | |
374 | lastframe = tick() | |
375 | else | |
376 | for i = 1, math.floor(tf / frame) do | |
377 | script.Heartbeat:Fire() | |
378 | end | |
379 | lastframe = tick() | |
380 | end | |
381 | if tossremainder then | |
382 | tf = 0 | |
383 | else | |
384 | tf = tf - frame * math.floor(tf / frame) | |
385 | end | |
386 | end | |
387 | end) | |
388 | function swait(num) | |
389 | if num == 0 or num == nil then | |
390 | ArtificialHB.Event:wait() | |
391 | else | |
392 | for i = 0, num do | |
393 | ArtificialHB.Event:wait() | |
394 | end | |
395 | end | |
396 | end | |
397 | function sound(parent,id,vol,pit) | |
398 | local sound = Instance.new("Sound",parent) | |
399 | sound.Volume = vol | |
400 | sound.SoundId = "rbxassetid://"..id | |
401 | sound.Pitch = pit | |
402 | sound:Play() | |
403 | coroutine.resume(coroutine.create(function() | |
404 | ||
405 | repeat | |
406 | swait() | |
407 | until sound.Playing == false | |
408 | sound:Destroy() | |
409 | end)) | |
410 | end | |
411 | function dest(hit,type) | |
412 | local size = 50 | |
413 | if type == "big" then | |
414 | size = 300 | |
415 | end | |
416 | if hit.Name ~= "Destructed" and hit.Name ~= "ExplEff" and hit.Parent ~= char and hit.Parent.Parent ~= char then | |
417 | if hit.Size.x <size and hit.Size.y <size and hit.Size.z <size then | |
418 | if hit:IsA("Seat") or hit:IsA("VehicleSeat") then | |
419 | hit.Parent = nil | |
420 | end | |
421 | hit:ClearAllChildren() | |
422 | hit.Anchored = false hit.CanCollide = true hit.Parent = workspace | |
423 | hit.Name = "Destructed" | |
424 | if hit:IsA("Part") then | |
425 | hit.FormFactor = "Custom" | |
426 | end | |
427 | hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
428 | hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
429 | local clone = hit:Clone() clone.Parent = workspace | |
430 | local clone1 = hit:Clone() clone1.Parent = workspace | |
431 | local clone2 = hit:Clone() clone2.Parent = workspace | |
432 | local clone3 = hit:Clone() clone3.Parent = workspace | |
433 | local clone4 = hit:Clone() clone4.Parent = workspace | |
434 | local clone5 = hit:Clone() clone5.Parent = workspace | |
435 | local clone6 = hit:Clone() clone6.Parent = workspace | |
436 | clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0) | |
437 | clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0) | |
438 | clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0) | |
439 | clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z) | |
440 | clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z) | |
441 | clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z) | |
442 | clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z) | |
443 | local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6} | |
444 | local partsd = 1 | |
445 | for i = 1,#parts do | |
446 | debrs:AddItem(parts[partsd],math.random(6,17)) | |
447 | partsd = partsd +1 | |
448 | end | |
449 | end | |
450 | end | |
451 | end | |
452 | hitbox.Touched:connect(function(hit) | |
453 | if hit.Size.x <150 and hit.Size.y <150 and hit.Size.z <150 and canattacc then | |
454 | if hit.Parent ~= char or hit.Parent.Parent ~= char then | |
455 | if hit:IsA("Seat") or hit:IsA("VehicleSeat") then | |
456 | hit.Parent = nil | |
457 | end | |
458 | crack:Play() | |
459 | canattacc = false | |
460 | hit:ClearAllChildren() | |
461 | hit.Anchored = false hit.CanCollide = true hit.Parent = workspace | |
462 | hit.Name = "Destructed" | |
463 | hit:BreakJoints() | |
464 | hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
465 | hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
466 | local clone = hit:Clone() clone.Parent = workspace | |
467 | local clone1 = hit:Clone() clone1.Parent = workspace | |
468 | local clone2 = hit:Clone() clone2.Parent = workspace | |
469 | local clone3 = hit:Clone() clone3.Parent = workspace | |
470 | local clone4 = hit:Clone() clone4.Parent = workspace | |
471 | local clone5 = hit:Clone() clone5.Parent = workspace | |
472 | local clone6 = hit:Clone() clone6.Parent = workspace | |
473 | clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0) | |
474 | clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0) | |
475 | clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0) | |
476 | clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z) | |
477 | clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z) | |
478 | clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z) | |
479 | clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z) | |
480 | local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6} | |
481 | local partsd = 1 | |
482 | for i = 1,#parts do | |
483 | debrs:AddItem(parts[partsd],math.random(6,17)) | |
484 | partsd = partsd +1 | |
485 | end | |
486 | end | |
487 | end | |
488 | end) | |
489 | ||
490 | function intro() | |
491 | local ani = char:WaitForChild("Animate") | |
492 | local anima = hum:WaitForChild("Animator") | |
493 | if ani ~= nil then | |
494 | ani:Destroy() | |
495 | end | |
496 | if anima ~= nil then | |
497 | anima:Destroy() | |
498 | end | |
499 | for i = 0,.4,.02 do | |
500 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)),i) | |
501 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(rad(-160),rad(0),rad(180)),i) | |
502 | rs.C0 = rs.C0:lerp(CFrame.new(1,.4,0) * CFrame.Angles(rad(70),rad(90),rad(0)),i) | |
503 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.4,0) * CFrame.Angles(rad(70),rad(-90),rad(0)),i) | |
504 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.2,-.7) * CFrame.Angles(rad(-20),rad(80),rad(0)),i) | |
505 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.3,-.6) * CFrame.Angles(rad(-20),rad(-80),rad(0)),i) | |
506 | swait() | |
507 | end | |
508 | for i = 1,50 do | |
509 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),1) | |
510 | wait() | |
511 | end | |
512 | char["Body Colors"]:Destroy() | |
513 | h.BrickColor = BrickColor.new("Really black") | |
514 | t.BrickColor = BrickColor.new("Really black") | |
515 | ra.BrickColor = BrickColor.new("Really black") | |
516 | la.BrickColor = BrickColor.new("Really black") | |
517 | rl.BrickColor = BrickColor.new("Really black") | |
518 | ll.BrickColor = BrickColor.new("Really black") | |
519 | local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = false eff.Anchored = true eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = rut.CFrame eff.Material = "Neon" | |
520 | expls:Play() | |
521 | local cf = rut.CFrame | |
522 | coroutine.resume(coroutine.create(function() | |
523 | for i = 0,.6,.016 do | |
524 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
525 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
526 | eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i) | |
527 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
528 | eff.Transparency = eff.Transparency +.027 | |
529 | if eff.Transparency > .99 then | |
530 | eff:Destroy() | |
531 | end | |
532 | swait() | |
533 | end | |
534 | end)) | |
535 | using = false | |
536 | end | |
537 | intro() | |
538 | function explos(pos) | |
539 | local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = true eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = pos.CFrame eff.Material = "Neon" | |
540 | local eff2 = Instance.new("Part",eff) eff2.Name = "ExplEff" eff2.Size = Vector3.new(25,70,25) eff2.CanCollide = false eff2.Anchored = true eff2.Material = "Neon" eff2.BrickColor = eff.BrickColor | |
541 | local eff2m = Instance.new("SpecialMesh",eff2) eff2m.MeshType = Enum.MeshType.Sphere eff2.CFrame = eff.CFrame | |
542 | local cf = pos.CFrame | |
543 | expls:Play() | |
544 | eff.Touched:connect(function(hit) | |
545 | dest(hit) | |
546 | end) | |
547 | coroutine.resume(coroutine.create(function() | |
548 | for i = 0,.6,.016 do | |
549 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
550 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
551 | eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i) | |
552 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
553 | eff2.Color = eff2.Color:lerp(Color3.new(160,0,0),i) | |
554 | eff.Transparency = eff.Transparency +.027 | |
555 | eff2.Transparency = eff2.Transparency +.027 | |
556 | eff2.Size = eff2.Size:lerp(Vector3.new(4,125,4),i) | |
557 | eff2.CFrame = CFrame.new(eff.CFrame.p,eff2.CFrame.p * Vector3.new(eff2.CFrame.p.x,eff2.CFrame.p.y,eff2.CFrame.p.z)) | |
558 | if eff.Transparency > .99 then | |
559 | eff:Destroy() | |
560 | eff2:Destroy() | |
561 | elseif eff.Transparency >.3 and eff.Transparency <.34 then | |
562 | local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false | |
563 | end | |
564 | swait() | |
565 | end | |
566 | end)) | |
567 | end | |
568 | function bigexplos(pos) | |
569 | local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = false eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = pos.CFrame eff.Material = "Neon" | |
570 | local cf = pos.CFrame | |
571 | expls:Play() | |
572 | eff.Touched:connect(function(hit) | |
573 | if hit.Anchored == true then | |
574 | dest(hit) | |
575 | else | |
576 | dest(hit,"big") | |
577 | end | |
578 | end) | |
579 | coroutine.resume(coroutine.create(function() | |
580 | for i = 0,.6,.016 do | |
581 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
582 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
583 | eff.Size = eff.Size:lerp(Vector3.new(600,600,600),i) | |
584 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
585 | eff.Transparency = eff.Transparency +.027 | |
586 | if eff.Transparency > .99 then | |
587 | eff:Destroy() | |
588 | elseif eff.Transparency >.3 and eff.Transparency <.34 then | |
589 | local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false | |
590 | end | |
591 | swait() | |
592 | end | |
593 | end)) | |
594 | end | |
595 | function gren(from,to) | |
596 | local rocc = Instance.new("Part",workspace) rocc.Name = "Rock" rocc.Size = Vector3.new(.3,1.4,.3) | |
597 | rocc.CFrame = from | |
598 | local rmesh = Instance.new("SpecialMesh",rocc) rmesh.MeshType = "FileMesh" rmesh.MeshId = "rbxassetid://431532852" rmesh.TextureId = "rbxassetid://431532899" rmesh.Scale = Vector3.new(.005,.005,.005) | |
599 | local cfm = CFrame.new(rocc.CFrame.p,to.p) | |
600 | local vel = Instance.new("BodyVelocity",rocc) vel.Velocity = cfm.lookVector * 100 | |
601 | coroutine.resume(coroutine.create(function() | |
602 | wait(2.91) | |
603 | explos(rocc) | |
604 | end)) | |
605 | debrs:AddItem(vel,.1) | |
606 | debrs:AddItem(rocc,2.9) | |
607 | end | |
608 | function throwgrenade() | |
609 | using = true | |
610 | for i = 0,.4,.02 do | |
611 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
612 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-70),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
613 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
614 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
615 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(-25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
616 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(-20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
617 | swait() | |
618 | end | |
619 | gren(ra.CFrame * CFrame.new(0,-1.4,0),mouse.Hit) | |
620 | for i = 0,.4,.04 do | |
621 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
622 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
623 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(70)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
624 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
625 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
626 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
627 | swait() | |
628 | end | |
629 | using = false | |
630 | end | |
631 | local speed1 = .03 | |
632 | local speed2 = .05 | |
633 | function swng() | |
634 | if supermode == true then | |
635 | speed1 = .05 | |
636 | speed2 = .08 | |
637 | else | |
638 | speed1 = .03 | |
639 | speed2 = .05 | |
640 | end | |
641 | using = true | |
642 | for i = 0,.4,speed1 do | |
643 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
644 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(150)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
645 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(110)) * CFrame.Angles(rad(-60),rad(0),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
646 | swait() | |
647 | end | |
648 | canattacc = true | |
649 | for i = 0,.4,speed2 do | |
650 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
651 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(230)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
652 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(110)) * CFrame.Angles(rad(20),rad(0),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
653 | swait() | |
654 | end | |
655 | for i = 0,.4,speed2 do | |
656 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
657 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
658 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
659 | swait() | |
660 | end | |
661 | canattacc = false | |
662 | using = false | |
663 | end | |
664 | function selfd() | |
665 | using = true | |
666 | for i = 1,50 do | |
667 | i = .9 | |
668 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*2) | |
669 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2) | |
670 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(179)) * CFrame.Angles(rad(50),rad(0),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*2) | |
671 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(-179)) * CFrame.Angles(rad(50),rad(0),rad(-20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*2) | |
672 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.3,-.7) * CFrame.Angles(rad(20),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2) | |
673 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.6) * CFrame.Angles(rad(-50),rad(-50),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2) | |
674 | swait() | |
675 | end | |
676 | t.Anchored = true | |
677 | bigexplos(rut) | |
678 | wait(1) | |
679 | t.Anchored = false | |
680 | using = false | |
681 | end | |
682 | ||
683 | mouse.KeyDown:connect(function(key) | |
684 | if key == "q" and not using then | |
685 | throwgrenade() | |
686 | end | |
687 | if key == "e" and not using then | |
688 | swng() | |
689 | end | |
690 | if key == "f" and supermode then | |
691 | selfd() | |
692 | end | |
693 | if key == "c" and not using then | |
694 | explos(t) | |
695 | t.Anchored = true | |
696 | using = true | |
697 | wait(.3) | |
698 | t.Anchored = false | |
699 | using = false | |
700 | end | |
701 | if key == "r" and not supermode then | |
702 | cursong = 2 | |
703 | mus.SoundId = songs[2] mus:Play() | |
704 | supermode = true | |
705 | elseif key == "r" and supermode then | |
706 | cursong = 1 | |
707 | mus.SoundId = songs[1] mus:Play() | |
708 | supermode = false | |
709 | end | |
710 | end) | |
711 | hum.Running:connect(function(a) | |
712 | if a >0 then | |
713 | anim = "walk" | |
714 | else | |
715 | anim = "idle" | |
716 | end | |
717 | end) | |
718 | hum.Jumping:connect(function() | |
719 | anim = "jump" | |
720 | end) | |
721 | hum.FreeFalling:connect(function() | |
722 | anim = "fall" | |
723 | end) | |
724 | ||
725 | while true do | |
726 | if char:FindFirstChild("MusicA") == nil then | |
727 | mus = Instance.new("Sound",char) mus.Name = "MusicA" mus.Volume = 3 mus.SoundId = songs[cursong] mus.Looped = true mus:Play() | |
728 | end | |
729 | if workspace:FindFirstChild("Explso") == nil then | |
730 | expls = Instance.new("Sound",workspace) expls.Name = "Explso" expls.Volume = 5 expls.SoundId = "rbxassetid://262562442" | |
731 | end | |
732 | if ra:FindFirstChild("Cracko") == nil then | |
733 | crack = Instance.new("Sound",ra) crack.Name = "Cracko" crack.Pitch = .6 crack.Volume = 5 crack.SoundId = "rbxassetid://147685617" | |
734 | end | |
735 | crack = ra:FindFirstChild("Cracko") | |
736 | expls = workspace:FindFirstChild("Explso") | |
737 | mus = char:FindFirstChild("MusicA") | |
738 | hum.MaxHealth = 7e9 hum.Health = 7e9 | |
739 | if not supermode then | |
740 | hum.WalkSpeed = 12 hum.JumpPower = 70 | |
741 | else | |
742 | hum.WalkSpeed = 36 hum.JumpPower = 90 | |
743 | end | |
744 | if anim == "idle" and not using then | |
745 | i = .5 | |
746 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
747 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
748 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
749 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
750 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
751 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
752 | end | |
753 | if anim == "idle" and not using and supermode then | |
754 | i = .5 | |
755 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*3) | |
756 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.7,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
757 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(179)) * CFrame.Angles(rad(50),rad(0),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
758 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(-179)) * CFrame.Angles(rad(50),rad(0),rad(-20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
759 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.3,-.7) * CFrame.Angles(rad(20),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
760 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.6) * CFrame.Angles(rad(-50),rad(-50),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
761 | end | |
762 | if anim == "jump" and not using then | |
763 | i = .4 | |
764 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
765 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
766 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(-30),rad(0),rad(20)),i) | |
767 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(-30),rad(0),rad(-20)),i) | |
768 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(5),rad(100),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i) | |
769 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,-.3) * CFrame.Angles(rad(0),rad(-80),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i) | |
770 | end | |
771 | if anim == "fall" and not using then | |
772 | i = .4 | |
773 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
774 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
775 | rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(30),rad(0),rad(140)),i) | |
776 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(30),rad(0),rad(-130)),i) | |
777 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.7,.2) * CFrame.Angles(rad(5),rad(100),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i) | |
778 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,.2) * CFrame.Angles(rad(-5),rad(-80),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i) | |
779 | end | |
780 | if anim == "walk" and not using and not supermode then | |
781 | for i = 0,.3,.025 do | |
782 | if anim == "walk" and not using and not supermode then | |
783 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
784 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
785 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(-35),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
786 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(35),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
787 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1.2,-.4) * CFrame.Angles(rad(60),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
788 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.6,-.2) * CFrame.Angles(rad(-35),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
789 | swait() | |
790 | end | |
791 | end | |
792 | for i = 0,.3,.025 do | |
793 | if anim == "walk" and not using and not supermode then | |
794 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
795 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
796 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(-10),rad(95),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
797 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(10),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
798 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,.2) * CFrame.Angles(rad(-15),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
799 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,.2) * CFrame.Angles(rad(15),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
800 | swait() | |
801 | end | |
802 | end | |
803 | for i = 0,.3,.025 do | |
804 | if anim == "walk" and not using and not supermode then | |
805 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),.4) | |
806 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
807 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(35),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
808 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(-35),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
809 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.6,-.2) * CFrame.Angles(rad(-35),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
810 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1.2,-.4) * CFrame.Angles(rad(60),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
811 | swait() | |
812 | end | |
813 | end | |
814 | for i = 0,.3,.025 do | |
815 | if anim == "walk" and not using and not supermode then | |
816 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i) | |
817 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
818 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(10),rad(95),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
819 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(-10),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i) | |
820 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.2) * CFrame.Angles(rad(-15),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
821 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,-.2) * CFrame.Angles(rad(15),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
822 | swait() | |
823 | end | |
824 | end | |
825 | end | |
826 | if anim == "walk" and not using and supermode then | |
827 | for i = 0,.3,.045 do | |
828 | if anim == "walk" and not using and supermode then | |
829 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5) | |
830 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*3) | |
831 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
832 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
833 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1.3,-.7) * CFrame.Angles(rad(60),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
834 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.7,.2) * CFrame.Angles(rad(-35),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
835 | swait() | |
836 | end | |
837 | end | |
838 | for i = 0,.3,.045 do | |
839 | if anim == "walk" and not using and supermode then | |
840 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5) | |
841 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
842 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
843 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
844 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,.2) * CFrame.Angles(rad(-20),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
845 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.2) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
846 | swait() | |
847 | end | |
848 | end | |
849 | for i = 0,.3,.045 do | |
850 | if anim == "walk" and not using and supermode then | |
851 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5) | |
852 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*3) | |
853 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
854 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
855 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.7,.2) * CFrame.Angles(rad(-35),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
856 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1.3,-.7) * CFrame.Angles(rad(60),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
857 | swait() | |
858 | end | |
859 | end | |
860 | for i = 0,.3,.045 do | |
861 | if anim == "walk" and not using and supermode then | |
862 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5) | |
863 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
864 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
865 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5) | |
866 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.2) * CFrame.Angles(rad(20),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
867 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,.2) * CFrame.Angles(rad(-20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i) | |
868 | swait() | |
869 | end | |
870 | end | |
871 | end | |
872 | swait() | |
873 | end |