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 = "Antique" | |
193 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
194 | - | text.Text = "cRaZY" |
194 | + | text.Text = "Crazy" |
195 | script.Name = "I'm just a text" | |
196 | ||
197 | wait(0.2) | |
198 | ||
199 | text.Font = "Antique" | |
200 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
201 | text.Text = "cRazy" | |
202 | ||
203 | wait(0.2) | |
204 | ||
205 | text.Font = "Antique" | |
206 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
207 | text.Text = "crAzy" | |
208 | ||
209 | wait(0.2) | |
210 | ||
211 | text.Font = "Antique" | |
212 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
213 | text.Text = "craZy" | |
214 | ||
215 | wait(0.2) | |
216 | ||
217 | text.Font = "Antique" | |
218 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
219 | text.Text = "crazY" | |
220 | ||
221 | wait(0.2) | |
222 | ||
223 | text.Font = "Antique" | |
224 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
225 | text.Text = "CRAZY" | |
226 | ||
227 | Player = game:GetService("Players").LocalPlayer | |
228 | PlayerGui = Player.PlayerGui | |
229 | Cam = workspace.CurrentCamera | |
230 | Backpack = Player.Backpack | |
231 | Character = Player.Character | |
232 | Humanoid = Character.Humanoid | |
233 | Mouse = Player:GetMouse() | |
234 | RootPart = Character["HumanoidRootPart"] | |
235 | Torso = Character["Torso"] | |
236 | Head = Character["Head"] | |
237 | RightArm = Character["Right Arm"] | |
238 | LeftArm = Character["Left Arm"] | |
239 | RightLeg = Character["Right Leg"] | |
240 | LeftLeg = Character["Left Leg"] | |
241 | RootJoint = RootPart["RootJoint"] | |
242 | Neck = Torso["Neck"] | |
243 | RightShoulder = Torso["Right Shoulder"] | |
244 | LeftShoulder = Torso["Left Shoulder"] | |
245 | RightHip = Torso["Right Hip"] | |
246 | LeftHip = Torso["Left Hip"] | |
247 | local sick = Instance.new("Sound",Torso) | |
248 | sick.SoundId = "rbxassetid://145082678" | |
249 | sick.Looped = true | |
250 | sick.Pitch = 1 | |
251 | sick.Volume = 10 | |
252 | sick:Play() | |
253 | ||
254 | ||
255 | ArtificialHB = Instance.new("BindableEvent", script) | |
256 | ArtificialHB.Name = "Heartbeat" | |
257 | script:WaitForChild("Heartbeat") | |
258 | frame = 1 / 60 | |
259 | tf = 0 | |
260 | allowframeloss = false | |
261 | tossremainder = false | |
262 | lastframe = tick() | |
263 | script.Heartbeat:Fire() | |
264 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
265 | tf = tf + s | |
266 | if tf >= frame then | |
267 | if allowframeloss then | |
268 | script.Heartbeat:Fire() | |
269 | lastframe = tick() | |
270 | else | |
271 | for i = 1, math.floor(tf / frame) do | |
272 | script.Heartbeat:Fire() | |
273 | end | |
274 | lastframe = tick() | |
275 | end | |
276 | if tossremainder then | |
277 | tf = 0 | |
278 | else | |
279 | tf = tf - frame * math.floor(tf / frame) | |
280 | end | |
281 | end | |
282 | end) | |
283 | function swait(num) | |
284 | if num == 0 or num == nil then | |
285 | ArtificialHB.Event:wait() | |
286 | else | |
287 | for i = 0, num do | |
288 | ArtificialHB.Event:wait() | |
289 | end | |
290 | end | |
291 | end | |
292 | function sound(parent,id,vol,pit) | |
293 | local sound = Instance.new("Sound",parent) | |
294 | sound.Volume = vol | |
295 | sound.SoundId = "rbxassetid://"..id | |
296 | sound.Pitch = pit | |
297 | sound:Play() | |
298 | coroutine.resume(coroutine.create(function() | |
299 | ||
300 | repeat | |
301 | swait() | |
302 | until sound.Playing == false | |
303 | sound:Destroy() | |
304 | end)) | |
305 | end | |
306 | function dest(hit,type) | |
307 | local size = 50 | |
308 | if type == "big" then | |
309 | size = 300 | |
310 | end | |
311 | if hit.Name ~= "Destructed" and hit.Name ~= "ExplEff" and hit.Parent ~= char and hit.Parent.Parent ~= char then | |
312 | if hit.Size.x <size and hit.Size.y <size and hit.Size.z <size then | |
313 | if hit:IsA("Seat") or hit:IsA("VehicleSeat") then | |
314 | hit.Parent = nil | |
315 | end | |
316 | hit:ClearAllChildren() | |
317 | hit.Anchored = false hit.CanCollide = true hit.Parent = workspace | |
318 | hit.Name = "Destructed" | |
319 | if hit:IsA("Part") then | |
320 | hit.FormFactor = "Custom" | |
321 | end | |
322 | hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
323 | hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
324 | local clone = hit:Clone() clone.Parent = workspace | |
325 | local clone1 = hit:Clone() clone1.Parent = workspace | |
326 | local clone2 = hit:Clone() clone2.Parent = workspace | |
327 | local clone3 = hit:Clone() clone3.Parent = workspace | |
328 | local clone4 = hit:Clone() clone4.Parent = workspace | |
329 | local clone5 = hit:Clone() clone5.Parent = workspace | |
330 | local clone6 = hit:Clone() clone6.Parent = workspace | |
331 | clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0) | |
332 | clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0) | |
333 | clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0) | |
334 | clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z) | |
335 | clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z) | |
336 | clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z) | |
337 | clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z) | |
338 | local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6} | |
339 | local partsd = 1 | |
340 | for i = 1,#parts do | |
341 | debrs:AddItem(parts[partsd],math.random(6,17)) | |
342 | partsd = partsd +1 | |
343 | end | |
344 | end | |
345 | end | |
346 | end | |
347 | hitbox.Touched:connect(function(hit) | |
348 | if hit.Size.x <150 and hit.Size.y <150 and hit.Size.z <150 and canattacc then | |
349 | if hit.Parent ~= char or hit.Parent.Parent ~= char then | |
350 | if hit:IsA("Seat") or hit:IsA("VehicleSeat") then | |
351 | hit.Parent = nil | |
352 | end | |
353 | crack:Play() | |
354 | canattacc = false | |
355 | hit:ClearAllChildren() | |
356 | hit.Anchored = false hit.CanCollide = true hit.Parent = workspace | |
357 | hit.Name = "Destructed" | |
358 | hit:BreakJoints() | |
359 | hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
360 | hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2) | |
361 | local clone = hit:Clone() clone.Parent = workspace | |
362 | local clone1 = hit:Clone() clone1.Parent = workspace | |
363 | local clone2 = hit:Clone() clone2.Parent = workspace | |
364 | local clone3 = hit:Clone() clone3.Parent = workspace | |
365 | local clone4 = hit:Clone() clone4.Parent = workspace | |
366 | local clone5 = hit:Clone() clone5.Parent = workspace | |
367 | local clone6 = hit:Clone() clone6.Parent = workspace | |
368 | clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0) | |
369 | clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0) | |
370 | clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0) | |
371 | clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z) | |
372 | clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z) | |
373 | clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z) | |
374 | clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z) | |
375 | local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6} | |
376 | local partsd = 1 | |
377 | for i = 1,#parts do | |
378 | debrs:AddItem(parts[partsd],math.random(6,17)) | |
379 | partsd = partsd +1 | |
380 | end | |
381 | end | |
382 | end | |
383 | end) | |
384 | ||
385 | function intro() | |
386 | local ani = char:WaitForChild("Animate") | |
387 | local anima = hum:WaitForChild("Animator") | |
388 | if ani ~= nil then | |
389 | ani:Destroy() | |
390 | end | |
391 | if anima ~= nil then | |
392 | anima:Destroy() | |
393 | end | |
394 | for i = 0,.4,.02 do | |
395 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)),i) | |
396 | rutj.C0 = rutj.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(rad(-160),rad(0),rad(180)),i) | |
397 | rs.C0 = rs.C0:lerp(CFrame.new(1,.4,0) * CFrame.Angles(rad(70),rad(90),rad(0)),i) | |
398 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.4,0) * CFrame.Angles(rad(70),rad(-90),rad(0)),i) | |
399 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.2,-.7) * CFrame.Angles(rad(-20),rad(80),rad(0)),i) | |
400 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.3,-.6) * CFrame.Angles(rad(-20),rad(-80),rad(0)),i) | |
401 | swait() | |
402 | end | |
403 | for i = 1,50 do | |
404 | 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) | |
405 | wait() | |
406 | end | |
407 | char["Body Colors"]:Destroy() | |
408 | h.BrickColor = BrickColor.new("Really black") | |
409 | t.BrickColor = BrickColor.new("Really black") | |
410 | ra.BrickColor = BrickColor.new("Really black") | |
411 | la.BrickColor = BrickColor.new("Really black") | |
412 | rl.BrickColor = BrickColor.new("Really black") | |
413 | ll.BrickColor = BrickColor.new("Really black") | |
414 | 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" | |
415 | expls:Play() | |
416 | local cf = rut.CFrame | |
417 | coroutine.resume(coroutine.create(function() | |
418 | for i = 0,.6,.016 do | |
419 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
420 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
421 | eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i) | |
422 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
423 | eff.Transparency = eff.Transparency +.027 | |
424 | if eff.Transparency > .99 then | |
425 | eff:Destroy() | |
426 | end | |
427 | swait() | |
428 | end | |
429 | end)) | |
430 | using = false | |
431 | end | |
432 | intro() | |
433 | function explos(pos) | |
434 | 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" | |
435 | 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 | |
436 | local eff2m = Instance.new("SpecialMesh",eff2) eff2m.MeshType = Enum.MeshType.Sphere eff2.CFrame = eff.CFrame | |
437 | local cf = pos.CFrame | |
438 | expls:Play() | |
439 | eff.Touched:connect(function(hit) | |
440 | dest(hit) | |
441 | end) | |
442 | coroutine.resume(coroutine.create(function() | |
443 | for i = 0,.6,.016 do | |
444 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
445 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
446 | eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i) | |
447 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
448 | eff2.Color = eff2.Color:lerp(Color3.new(160,0,0),i) | |
449 | eff.Transparency = eff.Transparency +.027 | |
450 | eff2.Transparency = eff2.Transparency +.027 | |
451 | eff2.Size = eff2.Size:lerp(Vector3.new(4,125,4),i) | |
452 | eff2.CFrame = CFrame.new(eff.CFrame.p,eff2.CFrame.p * Vector3.new(eff2.CFrame.p.x,eff2.CFrame.p.y,eff2.CFrame.p.z)) | |
453 | if eff.Transparency > .99 then | |
454 | eff:Destroy() | |
455 | eff2:Destroy() | |
456 | elseif eff.Transparency >.3 and eff.Transparency <.34 then | |
457 | local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false | |
458 | end | |
459 | swait() | |
460 | end | |
461 | end)) | |
462 | end | |
463 | function bigexplos(pos) | |
464 | 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" | |
465 | local cf = pos.CFrame | |
466 | expls:Play() | |
467 | eff.Touched:connect(function(hit) | |
468 | if hit.Anchored == true then | |
469 | dest(hit) | |
470 | else | |
471 | dest(hit,"big") | |
472 | end | |
473 | end) | |
474 | coroutine.resume(coroutine.create(function() | |
475 | for i = 0,.6,.016 do | |
476 | eff.CFrame = eff.CFrame:lerp(cf,i) | |
477 | eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
478 | eff.Size = eff.Size:lerp(Vector3.new(600,600,600),i) | |
479 | eff.Color = eff.Color:lerp(Color3.new(160,0,0),i) | |
480 | eff.Transparency = eff.Transparency +.027 | |
481 | if eff.Transparency > .99 then | |
482 | eff:Destroy() | |
483 | elseif eff.Transparency >.3 and eff.Transparency <.34 then | |
484 | local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false | |
485 | end | |
486 | swait() | |
487 | end | |
488 | end)) | |
489 | end | |
490 | function gren(from,to) | |
491 | local rocc = Instance.new("Part",workspace) rocc.Name = "Rock" rocc.Size = Vector3.new(.3,1.4,.3) | |
492 | rocc.CFrame = from | |
493 | local rmesh = Instance.new("SpecialMesh",rocc) rmesh.MeshType = "FileMesh" rmesh.MeshId = "rbxassetid://431532852" rmesh.TextureId = "rbxassetid://431532899" rmesh.Scale = Vector3.new(.005,.005,.005) | |
494 | local cfm = CFrame.new(rocc.CFrame.p,to.p) | |
495 | local vel = Instance.new("BodyVelocity",rocc) vel.Velocity = cfm.lookVector * 100 | |
496 | coroutine.resume(coroutine.create(function() | |
497 | wait(2.91) | |
498 | explos(rocc) | |
499 | end)) | |
500 | debrs:AddItem(vel,.1) | |
501 | debrs:AddItem(rocc,2.9) | |
502 | end | |
503 | function throwgrenade() | |
504 | using = true | |
505 | for i = 0,.4,.02 do | |
506 | 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) | |
507 | 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) | |
508 | 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) | |
509 | 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) | |
510 | 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) | |
511 | 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) | |
512 | swait() | |
513 | end | |
514 | gren(ra.CFrame * CFrame.new(0,-1.4,0),mouse.Hit) | |
515 | for i = 0,.4,.04 do | |
516 | 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) | |
517 | 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) | |
518 | 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) | |
519 | 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) | |
520 | 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) | |
521 | 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) | |
522 | swait() | |
523 | end | |
524 | using = false | |
525 | end | |
526 | local speed1 = .03 | |
527 | local speed2 = .05 | |
528 | function swng() | |
529 | if supermode == true then | |
530 | speed1 = .05 | |
531 | speed2 = .08 | |
532 | else | |
533 | speed1 = .03 | |
534 | speed2 = .05 | |
535 | end | |
536 | using = true | |
537 | for i = 0,.4,speed1 do | |
538 | 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) | |
539 | 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) | |
540 | 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) | |
541 | swait() | |
542 | end | |
543 | canattacc = true | |
544 | for i = 0,.4,speed2 do | |
545 | 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) | |
546 | 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) | |
547 | 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) | |
548 | swait() | |
549 | end | |
550 | for i = 0,.4,speed2 do | |
551 | 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) | |
552 | 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) | |
553 | 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) | |
554 | swait() | |
555 | end | |
556 | canattacc = false | |
557 | using = false | |
558 | end | |
559 | function selfd() | |
560 | using = true | |
561 | for i = 1,50 do | |
562 | i = .9 | |
563 | 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) | |
564 | 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) | |
565 | 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) | |
566 | 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) | |
567 | 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) | |
568 | 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) | |
569 | swait() | |
570 | end | |
571 | t.Anchored = true | |
572 | bigexplos(rut) | |
573 | wait(1) | |
574 | t.Anchored = false | |
575 | using = false | |
576 | end | |
577 | ||
578 | mouse.KeyDown:connect(function(key) | |
579 | if key == "q" and not using then | |
580 | throwgrenade() | |
581 | end | |
582 | if key == "e" and not using then | |
583 | swng() | |
584 | end | |
585 | if key == "f" and supermode then | |
586 | selfd() | |
587 | end | |
588 | if key == "c" and not using then | |
589 | explos(t) | |
590 | t.Anchored = true | |
591 | using = true | |
592 | wait(.3) | |
593 | t.Anchored = false | |
594 | using = false | |
595 | end | |
596 | if key == "r" and not supermode then | |
597 | cursong = 2 | |
598 | mus.SoundId = songs[2] mus:Play() | |
599 | supermode = true | |
600 | elseif key == "r" and supermode then | |
601 | cursong = 1 | |
602 | mus.SoundId = songs[1] mus:Play() | |
603 | supermode = false | |
604 | end | |
605 | end) | |
606 | hum.Running:connect(function(a) | |
607 | if a >0 then | |
608 | anim = "walk" | |
609 | else | |
610 | anim = "idle" | |
611 | end | |
612 | end) | |
613 | hum.Jumping:connect(function() | |
614 | anim = "jump" | |
615 | end) | |
616 | hum.FreeFalling:connect(function() | |
617 | anim = "fall" | |
618 | end) | |
619 | ||
620 | while true do | |
621 | if char:FindFirstChild("MusicA") == nil then | |
622 | mus = Instance.new("Sound",char) mus.Name = "MusicA" mus.Volume = 3 mus.SoundId = songs[cursong] mus.Looped = true mus:Play() | |
623 | end | |
624 | if workspace:FindFirstChild("Explso") == nil then | |
625 | expls = Instance.new("Sound",workspace) expls.Name = "Explso" expls.Volume = 5 expls.SoundId = "rbxassetid://262562442" | |
626 | end | |
627 | if ra:FindFirstChild("Cracko") == nil then | |
628 | crack = Instance.new("Sound",ra) crack.Name = "Cracko" crack.Pitch = .6 crack.Volume = 5 crack.SoundId = "rbxassetid://147685617" | |
629 | end | |
630 | crack = ra:FindFirstChild("Cracko") | |
631 | expls = workspace:FindFirstChild("Explso") | |
632 | mus = char:FindFirstChild("MusicA") | |
633 | hum.MaxHealth = 7e9 hum.Health = 7e9 | |
634 | if not supermode then | |
635 | hum.WalkSpeed = 12 hum.JumpPower = 70 | |
636 | else | |
637 | hum.WalkSpeed = 36 hum.JumpPower = 90 | |
638 | end | |
639 | if anim == "idle" and not using then | |
640 | i = .5 | |
641 | 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) | |
642 | 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) | |
643 | 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) | |
644 | 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) | |
645 | 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) | |
646 | 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) | |
647 | end | |
648 | if anim == "idle" and not using and supermode then | |
649 | i = .5 | |
650 | 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) | |
651 | 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) | |
652 | 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) | |
653 | 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) | |
654 | 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) | |
655 | 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) | |
656 | end | |
657 | if anim == "jump" and not using then | |
658 | i = .4 | |
659 | 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) | |
660 | 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) | |
661 | 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) | |
662 | 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) | |
663 | 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) | |
664 | 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) | |
665 | end | |
666 | if anim == "fall" and not using then | |
667 | i = .4 | |
668 | 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) | |
669 | 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) | |
670 | 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) | |
671 | 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) | |
672 | 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) | |
673 | 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) | |
674 | end | |
675 | if anim == "walk" and not using and not supermode then | |
676 | for i = 0,.3,.025 do | |
677 | if anim == "walk" and not using and not supermode then | |
678 | 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) | |
679 | 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) | |
680 | 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) | |
681 | 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) | |
682 | 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) | |
683 | 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) | |
684 | swait() | |
685 | end | |
686 | end | |
687 | for i = 0,.3,.025 do | |
688 | if anim == "walk" and not using and not supermode then | |
689 | 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) | |
690 | 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) | |
691 | 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) | |
692 | 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) | |
693 | 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) | |
694 | 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) | |
695 | swait() | |
696 | end | |
697 | end | |
698 | for i = 0,.3,.025 do | |
699 | if anim == "walk" and not using and not supermode then | |
700 | 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) | |
701 | 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) | |
702 | 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) | |
703 | 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) | |
704 | 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) | |
705 | 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) | |
706 | swait() | |
707 | end | |
708 | end | |
709 | for i = 0,.3,.025 do | |
710 | if anim == "walk" and not using and not supermode then | |
711 | 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) | |
712 | 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) | |
713 | 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) | |
714 | 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) | |
715 | 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) | |
716 | 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) | |
717 | swait() | |
718 | end | |
719 | end | |
720 | end | |
721 | if anim == "walk" and not using and supermode then | |
722 | for i = 0,.3,.045 do | |
723 | if anim == "walk" and not using and supermode then | |
724 | 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) | |
725 | 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) | |
726 | 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) | |
727 | 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) | |
728 | 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) | |
729 | 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) | |
730 | swait() | |
731 | end | |
732 | end | |
733 | for i = 0,.3,.045 do | |
734 | if anim == "walk" and not using and supermode then | |
735 | 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) | |
736 | 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) | |
737 | 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) | |
738 | 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) | |
739 | 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) | |
740 | 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) | |
741 | swait() | |
742 | end | |
743 | end | |
744 | for i = 0,.3,.045 do | |
745 | if anim == "walk" and not using and supermode then | |
746 | 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) | |
747 | 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) | |
748 | 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) | |
749 | 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) | |
750 | 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) | |
751 | 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) | |
752 | swait() | |
753 | end | |
754 | end | |
755 | for i = 0,.3,.045 do | |
756 | if anim == "walk" and not using and supermode then | |
757 | 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) | |
758 | 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) | |
759 | 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) | |
760 | 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) | |
761 | 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) | |
762 | 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) | |
763 | swait() | |
764 | end | |
765 | end | |
766 | end | |
767 | swait() | |
768 | end |