SHOW:
|
|
- or go back to the newest paste.
1 | ------------------//RUSTY_404\\-------------- | |
2 | - | local txt = Instance.new("BillboardGui", RUSTY_404) |
2 | + | local txt = Instance.new("BillboardGui", TameDoNotClick) |
3 | - | txt.Adornee = RUSTY_404.Head |
3 | + | txt.Adornee = TameDoNotClick.Head |
4 | txt.Name = "_status" | |
5 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
6 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
7 | local text = Instance.new("TextLabel", txt) | |
8 | text.Size = UDim2.new(10, 0, 7, 0) | |
9 | text.FontSize = "Size24" | |
10 | text.TextScaled = true | |
11 | text.TextTransparency = 0 | |
12 | text.BackgroundTransparency = 1 | |
13 | text.TextTransparency = 0 | |
14 | text.TextStrokeTransparency = 1 | |
15 | text.Text = "Deadly " | |
16 | -----------//Elio Blasio\\----------- | |
17 | --[[Movelist | |
18 | E = Equip/Unequip, click to shoot, hold to spray | |
19 | T = Taunt | |
20 | ---------]] | |
21 | --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter.-- | |
22 | --Ayy i'm not dead yet, take that haters, if i even had any to begin with.-- | |
23 | --Keeping this script small since big ones will cause major lag & exceed script limits-- | |
24 | --Using a FE converter because i'm way too lazy to create remotes for it-- | |
25 | ||
26 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
27 | do | |
28 | script.Parent = owner.Character | |
29 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
30 | local function NewFakeEvent() | |
31 | local Bind = Instance.new("BindableEvent") | |
32 | local Fake;Fake = {Connections = {}, | |
33 | fakeEvent=true; | |
34 | Connect=function(self,Func) | |
35 | Bind.Event:connect(Func) | |
36 | self.Connections[Bind] = true | |
37 | return setmetatable({Connected = true},{ | |
38 | __index = function (self,Index) | |
39 | if Index:lower() == "disconnect" then | |
40 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
41 | end | |
42 | return Fake[Index] | |
43 | end; | |
44 | __tostring = function() return "Connection" end; | |
45 | }) | |
46 | end} | |
47 | Fake.connect = Fake.Connect;return Fake; | |
48 | end | |
49 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
50 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
51 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
52 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
53 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
54 | local function TriggerEvent(self,Event,...) | |
55 | local Trigger = Mouse[Event] | |
56 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
57 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
58 | end | |
59 | end | |
60 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
61 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
62 | if FiredBy.Name ~= owner.Name then return end | |
63 | if Input.MouseEvent then | |
64 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
65 | else | |
66 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
67 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
68 | for _,Action in pairs(ContextActionService.Actions) do | |
69 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
70 | end | |
71 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
72 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
73 | end | |
74 | end) | |
75 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
76 | Event.Parent = NLS([[ | |
77 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
78 | local Input = function(Input,gameProcessedEvent) | |
79 | if gameProcessedEvent then return end | |
80 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
81 | end | |
82 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
83 | local Hit,Target | |
84 | while wait(1/30) do | |
85 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
86 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
87 | end | |
88 | end | |
89 | ]],owner.Character) | |
90 | end | |
91 | RealGame = game;game = setmetatable({},{ | |
92 | __index = function (self,Index) | |
93 | local Sandbox = function (Thing) | |
94 | if Thing:IsA("Player") then | |
95 | local RealPlayer = Thing | |
96 | return setmetatable({},{ | |
97 | __index = function (self,Index) | |
98 | local Type = type(RealPlayer[Index]) | |
99 | if Type == "function" then | |
100 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
101 | return function (self)return InternalData["Mouse"] end | |
102 | end | |
103 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
104 | end | |
105 | return RealPlayer[Index] | |
106 | end; | |
107 | __tostring = function(self) return RealPlayer.Name end | |
108 | }) | |
109 | end | |
110 | end | |
111 | if RealGame[Index] then | |
112 | local Type = type(RealGame[Index]) | |
113 | if Type == "function" then | |
114 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
115 | return function (self,Service) | |
116 | local FakeServices = { | |
117 | ["players"] = function() | |
118 | return setmetatable({},{ | |
119 | __index = function (self2,Index2) | |
120 | local RealService = RealGame:GetService(Service) | |
121 | local Type2 = type(Index2) | |
122 | if Type2 == "function" then | |
123 | return function (self,...) return RealService[Index2](RealService,...)end | |
124 | else | |
125 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
126 | return RealService[Index2] | |
127 | end | |
128 | end; | |
129 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
130 | }) | |
131 | end; | |
132 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
133 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
134 | ["runservice"] = function() | |
135 | return setmetatable({},{ | |
136 | __index = function(self2,Index2) | |
137 | local RealService = RealGame:GetService(Service) | |
138 | local Type2 = type(Index2) | |
139 | if Type2 == "function" then | |
140 | return function (self,...) return RealService[Index2](RealService,...) end | |
141 | else | |
142 | local RunServices = { | |
143 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
144 | ["renderstepped"] = function() return RealService["Stepped"] end | |
145 | } | |
146 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
147 | return RealService[Index2] | |
148 | end | |
149 | end | |
150 | }) | |
151 | end | |
152 | } | |
153 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
154 | return RealGame:GetService(Service) | |
155 | end | |
156 | end | |
157 | return function (self,...) return RealGame[Index](RealGame,...) end | |
158 | else | |
159 | if game:GetService(Index) then return game:GetService(Index) end | |
160 | return RealGame[Index] | |
161 | end | |
162 | end | |
163 | return nil | |
164 | end | |
165 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
166 | ||
167 | Player=game.Players.LocalPlayer | |
168 | Character=Player.Character | |
169 | Character.Humanoid.Name = "noneofurbusiness" | |
170 | hum = Character.noneofurbusiness | |
171 | LeftArm=Character["Left Arm"] | |
172 | LeftLeg=Character["Left Leg"] | |
173 | RightArm=Character["Right Arm"] | |
174 | RightLeg=Character["Right Leg"] | |
175 | Root=Character["HumanoidRootPart"] | |
176 | Head=Character["Head"] | |
177 | Torso=Character["Torso"] | |
178 | Neck=Torso["Neck"] | |
179 | mouse = Player:GetMouse() | |
180 | walking = false | |
181 | jumping = false | |
182 | attacking = false | |
183 | firsttime = false | |
184 | tauntdebounce = false | |
185 | position = nil | |
186 | MseGuide = true | |
187 | running = false | |
188 | settime = 0 | |
189 | sine = 0 | |
190 | t = 0 | |
191 | ws = 18 | |
192 | change = 1 | |
193 | combo1 = true | |
194 | equip = false | |
195 | dgs = 75 | |
196 | combo2 = false | |
197 | switch1 = true | |
198 | switch2 = false | |
199 | firsttime2 = false | |
200 | combo3 = false | |
201 | gunallowance = false | |
202 | shooting = false | |
203 | RunSrv = game:GetService("RunService") | |
204 | RenderStepped = game:GetService("RunService").RenderStepped | |
205 | removeuseless = game:GetService("Debris") | |
206 | ||
207 | screenGui = Instance.new("ScreenGui") | |
208 | screenGui.Parent = script.Parent | |
209 | ||
210 | local HEADLERP = Instance.new("ManualWeld") | |
211 | HEADLERP.Parent = Head | |
212 | HEADLERP.Part0 = Head | |
213 | HEADLERP.Part1 = Head | |
214 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
215 | ||
216 | local TORSOLERP = Instance.new("ManualWeld") | |
217 | TORSOLERP.Parent = Root | |
218 | TORSOLERP.Part0 = Torso | |
219 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
220 | ||
221 | local ROOTLERP = Instance.new("ManualWeld") | |
222 | ROOTLERP.Parent = Root | |
223 | ROOTLERP.Part0 = Root | |
224 | ROOTLERP.Part1 = Torso | |
225 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
226 | ||
227 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
228 | RIGHTARMLERP.Parent = RightArm | |
229 | RIGHTARMLERP.Part0 = RightArm | |
230 | RIGHTARMLERP.Part1 = Torso | |
231 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
232 | ||
233 | local LEFTARMLERP = Instance.new("ManualWeld") | |
234 | LEFTARMLERP.Parent = LeftArm | |
235 | LEFTARMLERP.Part0 = LeftArm | |
236 | LEFTARMLERP.Part1 = Torso | |
237 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
238 | ||
239 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
240 | RIGHTLEGLERP.Parent = RightLeg | |
241 | RIGHTLEGLERP.Part0 = RightLeg | |
242 | RIGHTLEGLERP.Part1 = Torso | |
243 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
244 | ||
245 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
246 | LEFTLEGLERP.Parent = LeftLeg | |
247 | LEFTLEGLERP.Part0 = LeftLeg | |
248 | LEFTLEGLERP.Part1 = Torso | |
249 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
250 | ||
251 | local function weldBetween(a, b) | |
252 | local weld = Instance.new("ManualWeld", a) | |
253 | weld.Part0 = a | |
254 | weld.Part1 = b | |
255 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
256 | return weld | |
257 | end | |
258 | ||
259 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
260 | A = Instance.new("Attachment", PARENT) | |
261 | A.Position = POSITION1 | |
262 | A.Name = "A" | |
263 | B = Instance.new("Attachment", PARENT) | |
264 | B.Position = POSITION2 | |
265 | B.Name = "B" | |
266 | tr1 = Instance.new("Trail", PARENT) | |
267 | tr1.Attachment0 = A | |
268 | tr1.Attachment1 = B | |
269 | tr1.Enabled = true | |
270 | tr1.Lifetime = LIFETIME | |
271 | tr1.TextureMode = "Static" | |
272 | tr1.LightInfluence = 0 | |
273 | tr1.Color = COLOR | |
274 | tr1.Transparency = NumberSequence.new(0, 1) | |
275 | end | |
276 | ||
277 | shirt = Instance.new("Shirt", Character) | |
278 | shirt.Name = "Shirt" | |
279 | pants = Instance.new("Pants", Character) | |
280 | pants.Name = "Pants" | |
281 | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=3312865161" | |
282 | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=3312865161" | |
283 | ||
284 | skull = Instance.new("Part",Character) | |
285 | skull.Size = Vector3.new(2,2,2) | |
286 | skull.CFrame = Head.CFrame | |
287 | skull.CanCollide = false | |
288 | skullweld = Instance.new("Weld",skull) | |
289 | skullweld.Part0 = skull | |
290 | skullweld.Part1 = Head | |
291 | skullweld.C0 = skull.CFrame:inverse() * Head.CFrame | |
292 | mskull = Instance.new("SpecialMesh", skull) | |
293 | mskull.MeshType = "FileMesh" | |
294 | mskull.Scale = Vector3.new(1.15, 1.15, 1.15) | |
295 | mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=162384581','http://www.roblox.com/asset/?id=3108763286' | |
296 | tommygun = Instance.new("Part",Character) | |
297 | tommygun.Size = Vector3.new(2,2,2) | |
298 | tommygun.CFrame = RightArm.CFrame | |
299 | tommygun.CanCollide = false | |
300 | tommygunweld = Instance.new("Weld",tommygun) | |
301 | tommygunweld.Part0 = tommygun | |
302 | tommygunweld.Part1 = RightArm | |
303 | tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0) | |
304 | mtommygun = Instance.new("SpecialMesh", tommygun) | |
305 | mtommygun.MeshType = "FileMesh" | |
306 | mtommygun.Scale = Vector3.new(1, 1, 1) | |
307 | mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995' | |
308 | shootbox = Instance.new("Part",Character) | |
309 | shootbox.Size = Vector3.new(.2,.2,.2) | |
310 | shootbox.CanCollide = false | |
311 | shootbox.Transparency = 1 | |
312 | shootbox.CFrame = tommygun.CFrame | |
313 | shootboxweld = weldBetween(shootbox,tommygun) | |
314 | shootboxweld.C0 = CFrame.new(0,-.05,2.62) | |
315 | light = Instance.new("PointLight", shootbox) | |
316 | light.Color = BrickColor.new("Bright yellow").Color | |
317 | light.Range = 5 | |
318 | light.Brightness = 11 | |
319 | light.Enabled = false | |
320 | particlemiter1 = Instance.new("ParticleEmitter", shootbox) | |
321 | particlemiter1.Enabled = false | |
322 | particlemiter1.Texture = "rbxassetid://461242617" | |
323 | particlemiter1.Lifetime = NumberRange.new(.1) | |
324 | particlemiter1.Size = NumberSequence.new(1,0) | |
325 | particlemiter1.Rate = 20 | |
326 | particlemiter1.RotSpeed = NumberRange.new(0) | |
327 | particlemiter1.Speed = NumberRange.new(0) | |
328 | tommygunammo = Instance.new("Part",Character) | |
329 | tommygunammo.Size = Vector3.new(2,2,2) | |
330 | tommygunammo.CFrame = tommygun.CFrame | |
331 | tommygunammo.CanCollide = false | |
332 | tommygunammoweld = Instance.new("Weld",tommygunammo) | |
333 | tommygunammoweld.Part0 = tommygunammo | |
334 | tommygunammoweld.Part1 = tommygun | |
335 | tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0) | |
336 | mtommygunammo = Instance.new("SpecialMesh", tommygunammo) | |
337 | mtommygunammo.MeshType = "FileMesh" | |
338 | mtommygunammo.Scale = Vector3.new(1, 1, 1) | |
339 | mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995' | |
340 | ||
341 | ||
342 | coroutine.wrap(function() | |
343 | while wait() do | |
344 | hum.WalkSpeed = ws | |
345 | LeftArm.BrickColor = BrickColor.new("Really black") | |
346 | RightArm.BrickColor = BrickColor.new("Really black") | |
347 | Head.BrickColor = BrickColor.new("Really black") | |
348 | end | |
349 | end)() | |
350 | godmode = coroutine.wrap(function() | |
351 | for i,v in pairs(Character:GetChildren()) do | |
352 | if v:IsA("BasePart") and v ~= Root then | |
353 | v.Anchored = false | |
354 | end | |
355 | end | |
356 | while true do | |
357 | hum.MaxHealth = math.huge | |
358 | wait(0.0000001) | |
359 | hum.Health = math.huge | |
360 | wait() | |
361 | end | |
362 | end) | |
363 | godmode() | |
364 | ff = Instance.new("ForceField", Character) | |
365 | ff.Visible = false | |
366 | ||
367 | coroutine.wrap(function() | |
368 | for i,v in pairs(Character:GetChildren()) do | |
369 | if v.Name == "Animate" then v:Remove() | |
370 | end | |
371 | end | |
372 | end)() | |
373 | ||
374 | function damagealll(Radius,Position) | |
375 | local Returning = {} | |
376 | for _,v in pairs(workspace:GetChildren()) do | |
377 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then | |
378 | if v:FindFirstChild("Torso") then | |
379 | local Mag = (v.Torso.Position - Position).magnitude | |
380 | if Mag < Radius then | |
381 | table.insert(Returning,v) | |
382 | end | |
383 | elseif v:FindFirstChild("UpperTorso") then | |
384 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
385 | if Mag < Radius then | |
386 | table.insert(Returning,v) | |
387 | end | |
388 | end | |
389 | end | |
390 | end | |
391 | return Returning | |
392 | end | |
393 | ||
394 | ArtificialHB = Instance.new("BindableEvent", script) | |
395 | ArtificialHB.Name = "Heartbeat" | |
396 | script:WaitForChild("Heartbeat") | |
397 | ||
398 | frame = 1 / 60 | |
399 | tf = 0 | |
400 | allowframeloss = false | |
401 | tossremainder = false | |
402 | ||
403 | ||
404 | lastframe = tick() | |
405 | script.Heartbeat:Fire() | |
406 | ||
407 | ||
408 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
409 | tf = tf + s | |
410 | if tf >= frame then | |
411 | if allowframeloss then | |
412 | script.Heartbeat:Fire() | |
413 | lastframe = tick() | |
414 | else | |
415 | for i = 1, math.floor(tf / frame) do | |
416 | script.Heartbeat:Fire() | |
417 | end | |
418 | lastframe = tick() | |
419 | end | |
420 | if tossremainder then | |
421 | tf = 0 | |
422 | else | |
423 | tf = tf - frame * math.floor(tf / frame) | |
424 | end | |
425 | end | |
426 | end) | |
427 | ||
428 | function swait(num) | |
429 | if num == 0 or num == nil then | |
430 | game:service("RunService").Stepped:wait(0) | |
431 | else | |
432 | for i = 0, num do | |
433 | game:service("RunService").Stepped:wait(0) | |
434 | end | |
435 | end | |
436 | end | |
437 | ||
438 | doomtheme = Instance.new("Sound", Torso) | |
439 | doomtheme.Volume = 1 | |
440 | doomtheme.Name = "doomtheme" | |
441 | doomtheme.Looped = true | |
442 | doomtheme.SoundId = "rbxassetid://318812395" | |
443 | doomtheme:Play() | |
444 | ||
445 | Torso.ChildRemoved:connect(function(removed) | |
446 | if removed.Name == "doomtheme" then | |
447 | ||
448 | doomtheme = Instance.new("Sound", Torso) | |
449 | doomtheme.Volume = 1 | |
450 | doomtheme.Name = "doomtheme" | |
451 | doomtheme.Looped = true | |
452 | doomtheme.SoundId = "rbxassetid://318812395" | |
453 | doomtheme:Play() | |
454 | end | |
455 | end) | |
456 | ||
457 | for _,n in pairs(Character:GetChildren()) do | |
458 | if n:IsA("Accessory") then n:Remove() end | |
459 | end | |
460 | for _,x in pairs(Character:GetChildren()) do | |
461 | if x:IsA("Decal") then x:Remove() end | |
462 | end | |
463 | ||
464 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
465 | so = Instance.new("Sound") | |
466 | so.Parent = PARENT | |
467 | so.SoundId = "rbxassetid://"..ID | |
468 | so.Volume = VOL | |
469 | so.Looped = LOOP | |
470 | so:Play() | |
471 | removeuseless:AddItem(so,REMOVE) | |
472 | end | |
473 | ||
474 | mouse.KeyDown:connect(function(Press) | |
475 | Press=Press:lower() | |
476 | if Press=='t' then | |
477 | if tauntdebounce then return end | |
478 | tauntdebounce = true | |
479 | local b1 = Instance.new("BillboardGui",Head) | |
480 | b1.Size = UDim2.new(0,4,0,1.6) | |
481 | b1.StudsOffset = Vector3.new(0,0,0) | |
482 | b1.Name = "laff" | |
483 | b1.AlwaysOnTop = true | |
484 | b1.StudsOffset = Vector3.new(0,2,0) | |
485 | b1.Adornee = Head | |
486 | removeuseless:AddItem(b1,3) | |
487 | local b2 = Instance.new("TextLabel",b1) | |
488 | b2.BackgroundTransparency = 1 | |
489 | b2.Text = "HeHeHeHeHeHeHe..." | |
490 | b2.Font = "Garamond" | |
491 | b2.TextSize = 30 | |
492 | b2.Name = "lafftext" | |
493 | b2.TextStrokeTransparency = 0 | |
494 | b2.TextColor3 = BrickColor.new("Grey").Color | |
495 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
496 | b2.Size = UDim2.new(1,0,.5,0) | |
497 | laff = Instance.new("Sound",Head) | |
498 | laff.SoundId = "rbxassetid://2126502539" | |
499 | laff.Volume = 5 | |
500 | laff:Play() | |
501 | wait(5) | |
502 | laff:Remove() | |
503 | tauntdebounce = false | |
504 | end | |
505 | end) | |
506 | ||
507 | mouse.KeyDown:connect(function(Press) | |
508 | Press=Press:lower() | |
509 | if Press=='e' then | |
510 | if debounce then return end | |
511 | if equip then | |
512 | g1:Remove() | |
513 | light.Enabled = false | |
514 | pcall(function() | |
515 | temmy:Remove() | |
516 | end) | |
517 | for i,v in pairs(tommygun:GetDescendants()) do | |
518 | if v.Name == "temmy" then v:Remove() | |
519 | end | |
520 | end | |
521 | light.Enabled = false | |
522 | particlemiter1.Enabled = false | |
523 | hum.CameraOffset = Vector3.new(0,0,0) | |
524 | attacking = false | |
525 | equip = false | |
526 | shooting = false | |
527 | gunallowance = false | |
528 | ws = 18 | |
529 | else | |
530 | g1 = Instance.new("BodyGyro", Root) | |
531 | g1.D = 175 | |
532 | g1.P = 20000 | |
533 | g1.MaxTorque = Vector3.new(0,9000,0) | |
534 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
535 | attacking = true | |
536 | debounce = true | |
537 | equip = true | |
538 | coroutine.wrap(function() | |
539 | while equip do | |
540 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
541 | ws = 10 | |
542 | swait() | |
543 | if Root.Velocity.y > 1 then | |
544 | position = "Jump3" | |
545 | elseif Root.Velocity.y < -1 then | |
546 | position = "Falling3" | |
547 | elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then | |
548 | position = "Walk3" | |
549 | elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then | |
550 | position = "Idle4" | |
551 | end | |
552 | end | |
553 | end)() | |
554 | coroutine.wrap(function() | |
555 | while equip do | |
556 | swait() | |
557 | settime = 0.05 | |
558 | sine = sine + change | |
559 | if position == "Jump3" and attacking and not running then | |
560 | change = .65 | |
561 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
562 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
563 | elseif position == "Falling3" and attacking and not running then | |
564 | change = .65 | |
565 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4) | |
566 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4) | |
567 | elseif position == "Walk3" and attacking == true and running == false then | |
568 | change = .65 | |
569 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2) | |
570 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1) | |
571 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1) | |
572 | elseif position == "Idle4" and attacking == true and running == false then | |
573 | change = .65 | |
574 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1) | |
575 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
576 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
577 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
578 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
579 | end | |
580 | end | |
581 | end)() | |
582 | SOUND(RightArm,898163129,6,false,2) | |
583 | for i = 1, 30 do | |
584 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25) | |
585 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
586 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25) | |
587 | swait() | |
588 | end | |
589 | gunallowance = true | |
590 | mouse.Button1Down:connect(function() | |
591 | if gunallowance then | |
592 | particlemiter1.Enabled = true | |
593 | temmy = Instance.new("Sound",tommygun) | |
594 | temmy.SoundId = "rbxassetid://2204318084" | |
595 | temmy.Volume = 6 | |
596 | temmy.Name = "temmy" | |
597 | temmy.Looped = true | |
598 | temmy:Play() | |
599 | shooting = true | |
600 | end | |
601 | end) | |
602 | mouse.Button1Up:connect(function() | |
603 | if gunallowance then | |
604 | hum.CameraOffset = Vector3.new(0,0,0) | |
605 | light.Enabled = false | |
606 | particlemiter1.Enabled = false | |
607 | pcall(function() | |
608 | temmy:Remove() | |
609 | end) | |
610 | for i,v in pairs(tommygun:GetDescendants()) do | |
611 | if v.Name == "temmy" then v:Remove() | |
612 | end | |
613 | end | |
614 | shooting = false | |
615 | end | |
616 | end) | |
617 | coroutine.wrap(function() | |
618 | if firsttime2 then return end | |
619 | firsttime2 = true | |
620 | while true do | |
621 | swait(3) | |
622 | if shooting then | |
623 | if switch1 then | |
624 | switch1 = false | |
625 | switch2 = true | |
626 | light.Enabled = true | |
627 | elseif switch2 then | |
628 | switch1 = true | |
629 | switch2 = false | |
630 | light.Enabled = false | |
631 | end | |
632 | pcall(function() | |
633 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
634 | mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(3,7)) | |
635 | end | |
636 | end) | |
637 | end | |
638 | end | |
639 | end)() | |
640 | coroutine.wrap(function() | |
641 | if firsttime then return end | |
642 | firsttime = true | |
643 | while true do | |
644 | if shooting then | |
645 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25) | |
646 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
647 | pcall(function() | |
648 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
649 | mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(1) | |
650 | end | |
651 | end) | |
652 | elseif not shooting then | |
653 | end | |
654 | swait() | |
655 | end | |
656 | end)() | |
657 | debounce = false | |
658 | end | |
659 | end | |
660 | end) | |
661 | ||
662 | mouse.KeyDown:connect(function(Press) | |
663 | Press=Press:lower() | |
664 | if Press=='z' then | |
665 | print("Music switched to 1") | |
666 | id = 2199374985 | |
667 | doomtheme.Volume = 100 | |
668 | doomtheme.SoundId = "rbxassetid://"..id | |
669 | doomtheme:Play() | |
670 | end | |
671 | end) | |
672 | ||
673 | mouse.KeyDown:connect(function(Press) | |
674 | Press=Press:lower() | |
675 | if Press=='v' then | |
676 | print("Trap switched to 4") | |
677 | id = 1295550144 | |
678 | doomtheme.Volume = 100 | |
679 | doomtheme.SoundId = "rbxassetid://"..id | |
680 | doomtheme:Play() | |
681 | end | |
682 | end) | |
683 | ||
684 | mouse.KeyDown:connect(function(Press) | |
685 | Press=Press:lower() | |
686 | if Press=='x' then | |
687 | print("Music switched to 2") | |
688 | id = 318812395 | |
689 | doomtheme.Volume = 100 | |
690 | doomtheme.SoundId = "rbxassetid://"..id | |
691 | doomtheme:Play() | |
692 | end | |
693 | end) | |
694 | ||
695 | mouse.KeyDown:connect(function(Press) | |
696 | Press=Press:lower() | |
697 | if Press=='c' then | |
698 | print("Music switched to 3") | |
699 | id = 2183967883 | |
700 | doomtheme.Volume = 100 | |
701 | doomtheme.SoundId = "rbxassetid://"..id | |
702 | doomtheme:Play() | |
703 | end | |
704 | end) | |
705 | ||
706 | mouse.KeyDown:connect(function(Press) | |
707 | Press=Press:lower() | |
708 | if Press=='b' then | |
709 | print("Music switched to 5") | |
710 | id = 649148458 | |
711 | doomtheme.Volume = 100 | |
712 | doomtheme.SoundId = "rbxassetid://"..id | |
713 | doomtheme:Play() | |
714 | end | |
715 | end) | |
716 | ||
717 | ||
718 | checks1 = coroutine.wrap(function() -------Checks | |
719 | while true do | |
720 | if Root.Velocity.y > 1 then | |
721 | position = "Jump" | |
722 | elseif Root.Velocity.y < -1 then | |
723 | position = "Falling" | |
724 | elseif Root.Velocity.Magnitude < 2 then | |
725 | position = "Idle" | |
726 | elseif Root.Velocity.Magnitude < 20 then | |
727 | position = "Walking" | |
728 | elseif Root.Velocity.Magnitude > 20 then | |
729 | position = "Running" | |
730 | else | |
731 | end | |
732 | wait() | |
733 | end | |
734 | end) | |
735 | checks1() | |
736 | ||
737 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
738 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
739 | end | |
740 | ||
741 | function ray2(StartPos, EndPos, Distance, Ignore) | |
742 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
743 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
744 | end | |
745 | ||
746 | OrgnC0 = Neck.C0 | |
747 | local movelimbs = coroutine.wrap(function() | |
748 | while RunSrv.RenderStepped:wait() do | |
749 | TrsoLV = Torso.CFrame.lookVector | |
750 | Dist = nil | |
751 | Diff = nil | |
752 | if not MseGuide then | |
753 | print("Failed to recognize") | |
754 | else | |
755 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
756 | Dist = (Head.CFrame.p-Point).magnitude | |
757 | Diff = Head.CFrame.Y-Point.Y | |
758 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
759 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
760 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
761 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
762 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
763 | end | |
764 | end | |
765 | end) | |
766 | movelimbs() | |
767 | immortal = {} | |
768 | for i,v in pairs(Character:GetDescendants()) do | |
769 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then | |
770 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
771 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
772 | end | |
773 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) | |
774 | elseif v:IsA("JointInstance") then | |
775 | table.insert(immortal,{v,v.Parent,nil,nil,nil}) | |
776 | end | |
777 | end | |
778 | for e = 1, #immortal do | |
779 | if immortal[e] ~= nil then | |
780 | local STUFF = immortal[e] | |
781 | local PART = STUFF[1] | |
782 | local PARENT = STUFF[2] | |
783 | local MATERIAL = STUFF[3] | |
784 | local COLOR = STUFF[4] | |
785 | local TRANSPARENCY = STUFF[5] | |
786 | if levitate then | |
787 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
788 | PART.Material = MATERIAL | |
789 | PART.Color = COLOR | |
790 | PART.Transparency = TRANSPARENCY | |
791 | end | |
792 | PART.AncestryChanged:connect(function() | |
793 | PART.Parent = PARENT | |
794 | end) | |
795 | else | |
796 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
797 | PART.Material = MATERIAL | |
798 | PART.Color = COLOR | |
799 | PART.Transparency = TRANSPARENCY | |
800 | end | |
801 | PART.AncestryChanged:connect(function() | |
802 | PART.Parent = PARENT | |
803 | end) | |
804 | end | |
805 | end | |
806 | end | |
807 | function immortality() | |
808 | for e = 1, #immortal do | |
809 | if immortal[e] ~= nil then | |
810 | local STUFF = immortal[e] | |
811 | local PART = STUFF[1] | |
812 | local PARENT = STUFF[2] | |
813 | local MATERIAL = STUFF[3] | |
814 | local COLOR = STUFF[4] | |
815 | local TRANSPARENCY = STUFF[5] | |
816 | if PART.ClassName == "Part" and PART == Root then | |
817 | PART.Material = MATERIAL | |
818 | PART.Color = COLOR | |
819 | PART.Transparency = TRANSPARENCY | |
820 | end | |
821 | if PART.Parent ~= PARENT then | |
822 | hum:Remove() | |
823 | PART.Parent = PARENT | |
824 | hum = Instance.new("Humanoid",Character) | |
825 | hum.Name = "noneofurbusiness" | |
826 | end | |
827 | end | |
828 | end | |
829 | end | |
830 | coroutine.wrap(function() | |
831 | while true do | |
832 | if hum.Health < .1 then | |
833 | deadsound = Instance.new("Sound", Torso) | |
834 | deadsound.Volume = 6 | |
835 | deadsound.SoundId = "rbxassetid://1411352723" | |
836 | deadsound:Play() | |
837 | immortality() | |
838 | end | |
839 | wait() | |
840 | end | |
841 | end)() | |
842 | ||
843 | local anims = coroutine.wrap(function() | |
844 | while true do | |
845 | settime = 0.05 | |
846 | sine = sine + change | |
847 | if position == "Jump" and attacking == false then | |
848 | change = 1 | |
849 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
850 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
851 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
852 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
853 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
854 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
855 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
856 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
857 | elseif position == "Jump2" and attacking == false then | |
858 | change = 1 | |
859 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
860 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
861 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
862 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
863 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
864 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
865 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
866 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
867 | elseif position == "Falling" and attacking == false then | |
868 | change = 1 | |
869 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
870 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
871 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
872 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
873 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
874 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
875 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
876 | elseif position == "Falling2" and attacking == false then | |
877 | change = 1 | |
878 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
879 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
880 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
881 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
882 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
883 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
884 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
885 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
886 | elseif position == "Walking" and attacking == false and running == false then | |
887 | change = 1.2 | |
888 | walking = true | |
889 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
890 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1) | |
891 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
892 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
893 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
894 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1) | |
895 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3) | |
896 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3) | |
897 | elseif position == "Idle" and attacking == false and running == false then | |
898 | change = .5 | |
899 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
900 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1) | |
901 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1) | |
902 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2) | |
903 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
904 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
905 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
906 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
907 | elseif position == "Idle2" and attacking == false and running == false then | |
908 | change = .75 | |
909 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
910 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
911 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
912 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
913 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
914 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4) | |
915 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
916 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
917 | elseif position == "Walking2" and attacking == false and running == false then | |
918 | ws = 50 | |
919 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
920 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
921 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
922 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
923 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
924 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
925 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
926 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
927 | elseif position == "Running" and attacking == false then | |
928 | change = 1 | |
929 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
930 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
931 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
932 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
933 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
934 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
935 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
936 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
937 | end | |
938 | swait() | |
939 | end | |
940 | end) | |
941 | anims() | |
942 | warn("Risen from death, Proven to rise") |