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