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