SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("I NEVER KNEW YOU WERE A COMMUNIST USE h/ dumbass") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("Project keep K00L activated - made by Coldas + datlol these scripts are radioactive")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
5 | warn("bleach time!! yes die ..") | |
6 | local p = game.Players.LocalPlayer | |
7 | local char = p.Character | |
8 | local mouse = p:GetMouse() | |
9 | local larm = char["Left Arm"] | |
10 | local rarm = char["Right Arm"] | |
11 | local lleg = char["Left Leg"] | |
12 | local rleg = char["Right Leg"] | |
13 | local hed = char.Head | |
14 | local torso = char.Torso | |
15 | local hum = char.Humanoid | |
16 | local cam = game.Workspace.CurrentCamera | |
17 | local root = char.HumanoidRootPart | |
18 | local deb = false | |
19 | local shot = 0 | |
20 | NoAnims = false | |
21 | local debris=game:service"Debris" | |
22 | local l = game:GetService("Lighting") | |
23 | local rs = game:GetService("RunService").RenderStepped | |
24 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
25 | math.randomseed(os.time()) | |
26 | for i,v in pairs (hed:GetChildren()) do | |
27 | if v:IsA("Sound") then | |
28 | v:Destroy() | |
29 | end | |
30 | end | |
31 | ---------------------------------------------------- | |
32 | local Touche = {char.Name, } | |
33 | ---------------------------------------------------- | |
34 | ||
35 | hum.MaxHealth = 150 | |
36 | ||
37 | ---------------------------------------------------- | |
38 | function lerp(a, b, t) -- Linear interpolation | |
39 | return a + (b - a)*t | |
40 | end | |
41 | ||
42 | function slerp(a, b, t) --Spherical interpolation | |
43 | dot = a:Dot(b) | |
44 | if dot > 0.99999 or dot < -0.99999 then | |
45 | return t <= 0.5 and a or b | |
46 | else | |
47 | r = math.acos(dot) | |
48 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
49 | end | |
50 | end | |
51 | ||
52 | function matrixInterpolate(a, b, t) | |
53 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
54 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
55 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
56 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
57 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
58 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
59 | local t = v1:Dot(v2) | |
60 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
61 | return CFrame.new() | |
62 | end | |
63 | return CFrame.new( | |
64 | v0.x, v0.y, v0.z, | |
65 | v1.x, v1.y, v1.z, | |
66 | v2.x, v2.y, v2.z, | |
67 | v3.x, v3.y, v3.z) | |
68 | end | |
69 | ---------------------------------------------------- | |
70 | function genWeld(a,b) | |
71 | local w = Instance.new("Weld",a) | |
72 | w.Part0 = a | |
73 | w.Part1 = b | |
74 | return w | |
75 | end | |
76 | function weld(a, b) | |
77 | local weld = Instance.new("Weld") | |
78 | weld.Name = "W" | |
79 | weld.Part0 = a | |
80 | weld.Part1 = b | |
81 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
82 | weld.Parent = a | |
83 | return weld; | |
84 | end | |
85 | ---------------------------------------------------- | |
86 | function Lerp(c1,c2,al) | |
87 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
88 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
89 | for i,v in pairs(com1) do | |
90 | com1[i] = v+(com2[i]-v)*al | |
91 | end | |
92 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
93 | end | |
94 | ---------------------------------------------------- | |
95 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
96 | local wld = Instance.new("Weld", wp1) | |
97 | wld.Part0 = wp0 | |
98 | wld.Part1 = wp1 | |
99 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
100 | end | |
101 | ---------------------------------------------------- | |
102 | function weld5(part0, part1, c0, c1) | |
103 | weeld=Instance.new("Weld", part0) | |
104 | weeld.Part0=part0 | |
105 | weeld.Part1=part1 | |
106 | weeld.C0=c0 | |
107 | weeld.C1=c1 | |
108 | return weeld | |
109 | end | |
110 | ---------------------------------------------------- | |
111 | function HasntTouched(plrname) | |
112 | local ret = true | |
113 | for _, v in pairs(Touche) do | |
114 | if v == plrname then | |
115 | ret = false | |
116 | end | |
117 | end | |
118 | return ret | |
119 | end | |
120 | ---------------------------------------------------- | |
121 | gavehp = false | |
122 | ||
123 | local ends = {"alive","rip"} | |
124 | result = "" | |
125 | ||
126 | local g = Instance.new("Part",larm) | |
127 | g.Material = "Neon" | |
128 | g.CanCollide = false | |
129 | g.Size = Vector3.new(1,1,1) | |
130 | local gm = Instance.new("SpecialMesh",g) | |
131 | gm.MeshId = "rbxassetid://483388971" | |
132 | gm.TextureId = "rbxassetid://520016684" | |
133 | gm.Scale = Vector3.new(0.005,0.005,0.005) | |
134 | ||
135 | local cor = Instance.new("Weld") | |
136 | cor.Part1 = g | |
137 | cor.Part0 = larm | |
138 | cor.Parent = char | |
139 | cor.C1 = CFrame.new(0.2,1.8,0) | |
140 | ||
141 | ---------------------------------------------------- | |
142 | newWeld(torso, larm, -1.5, 0.5, 0) | |
143 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
144 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
145 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
146 | newWeld(torso, hed, 0, 1.5, 0) | |
147 | newWeld(torso, lleg, -0.5, -1, 0) | |
148 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
149 | newWeld(torso, rleg, 0.5, -1, 0) | |
150 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
151 | newWeld(root, torso, 0, -1, 0) | |
152 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
153 | ---------------------------------------------------- | |
154 | - | if key == "e" then |
154 | + | |
155 | local m = 0 | |
156 | ---------------------------------------------------- | |
157 | char.Health:Destroy() | |
158 | mouse.KeyDown:connect(function(key) | |
159 | if key == "c" then | |
160 | if attack == false then | |
161 | attack = true | |
162 | NoAnims = true | |
163 | hum.Health = 150 | |
164 | - | s.Volume = 1 |
164 | + | game.Chat:Chat(char.Head,"i need to die","red") |
165 | - | s.Pitch = 1 |
165 | + | |
166 | ||
167 | result = ends[math.random(1,#ends)] | |
168 | ||
169 | local s = Instance.new("Sound",torso) | |
170 | s.SoundId = "rbxassetid://140923474" | |
171 | s.Volume = 99 | |
172 | s.Pitch = 0.8 | |
173 | s.Looped = true | |
174 | - | s.Volume = 1 |
174 | + | |
175 | - | s.Pitch = 1 |
175 | + | |
176 | coroutine.wrap(function() | |
177 | s:Remove() | |
178 | end)() | |
179 | local s = Instance.new("Sound",torso) | |
180 | s.SoundId = "rbxassetid://212887982" | |
181 | s.Volume = 1000 | |
182 | s.Pitch = 0.7 | |
183 | s:Play() | |
184 | ||
185 | cor.Part0 = hed | |
186 | pcall(function() | |
187 | for i = 1, 20 do | |
188 | ||
189 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
190 | ||
191 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(30)), 0.2) | |
192 | ||
193 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
194 | ||
195 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1) | |
196 | ||
197 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
198 | ||
199 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
200 | ||
201 | cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0,0)*CFrame.Angles(math.rad(50),0,0),0.2) | |
202 | rs:wait() | |
203 | ||
204 | end | |
205 | end) | |
206 | ||
207 | local pgui = p.PlayerGui | |
208 | ||
209 | local sc = Instance.new("ScreenGui",pgui) | |
210 | local w1 = Instance.new("TextLabel",sc) | |
211 | w1.Size = UDim2.new(1,0,1,0) | |
212 | w1.Text = "wo kalm dwn m8 u r gon gt rkt" | |
213 | w1.TextScaled = true | |
214 | w1.BackgroundColor3 = Color3.new(1,1,1) | |
215 | w1.BorderSizePixel = 0 | |
216 | ||
217 | coroutine.wrap(function() | |
218 | for i = 1, 20 do | |
219 | w1.BackgroundTransparency = i/10 | |
220 | w1.TextTransparency = i/10 | |
221 | end | |
222 | end)() | |
223 | ||
224 | pcall(function() | |
225 | for i = 1, 100 do | |
226 | rs:wait() | |
227 | m = m + 0.004 | |
228 | hum.Health = hum.Health-1 | |
229 | cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0+m/2,0-m/2)*CFrame.Angles(math.rad(50) + m,0,0),0.2) | |
230 | ||
231 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5+m,0-m/3.5)*CFrame.Angles(math.rad(120) + m,math.rad(0),math.rad(30)), 0.2) | |
232 | ||
233 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+m,0+m/3.5)*CFrame.Angles(math.rad(0) - m,math.rad(0),math.rad(0) + m), 0.2) | |
234 | ||
235 | end | |
236 | end) | |
237 | ||
238 | if result == "rip" then | |
239 | ||
240 | coroutine.wrap(function() | |
241 | wait(0.15) | |
242 | for i = 1, 60 do | |
243 | cor.Part0 = torso | |
244 | cor.C0 = Lerp(cor.C0,CFrame.new(9,-0.15,0)*CFrame.Angles(0,0,200),0.1) | |
245 | rs:wait() | |
246 | end | |
247 | end)() | |
248 | ||
249 | s:Remove() | |
250 | hum.WalkSpeed = 0 | |
251 | pcall(function() | |
252 | hum.JumpPower = 0 | |
253 | end) | |
254 | ||
255 | pcall(function() | |
256 | for i = 1, 20 do | |
257 | ||
258 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(30)), 0.2) | |
259 | ||
260 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-10)), 0.2) | |
261 | ||
262 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)), 0.2) | |
263 | ||
264 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)), 0.2) | |
265 | ||
266 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-5)), 0.4) | |
267 | ||
268 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(20)), 0.4) | |
269 | ||
270 | rs:wait() | |
271 | end | |
272 | end) | |
273 | ||
274 | wait(3) | |
275 | ||
276 | coroutine.wrap(function() | |
277 | while true do | |
278 | wait(0.07) | |
279 | pcall(function() | |
280 | ||
281 | rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.random(0,3),math.random(0,7),math.random(30,45)) | |
282 | ||
283 | larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.random(0,5),math.random(10,20),math.random(10,20)) | |
284 | ||
285 | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.random(20,30),math.random(0,4),math.random(0,3)) | |
286 | ||
287 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.random(0,5),math.random(10,15),math.random(5,10)) | |
288 | ||
289 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0)*CFrame.Angles(math.random(0,4),math.random(20,30),math.random(20,30)) | |
290 | ||
291 | end) | |
292 | end | |
293 | end)() | |
294 | ||
295 | ||
296 | cor:Destroy() | |
297 | ||
298 | g.Anchored = true | |
299 | ||
300 | for i,v in pairs(char:GetChildren()) do | |
301 | if v:IsA("Part") then | |
302 | v.Anchored = true | |
303 | elseif v:IsA("Accoutrement") then | |
304 | v.Handle.Anchored = true | |
305 | end | |
306 | end | |
307 | ||
308 | cor.Part0 = larm | |
309 | m = 0 | |
310 | hum.MaxHealth = 0 | |
311 | ||
312 | local k = Instance.new("Sound",torso) | |
313 | k.SoundId = "rbxassetid://154872806" | |
314 | k.Volume = 10 | |
315 | k.Pitch = 1 | |
316 | k:Play() | |
317 | ||
318 | local cf = torso.CFrame -Vector3.new(0,0.55,0) | |
319 | cf = cf*CFrame.Angles(math.rad(88.5),0,0) | |
320 | ||
321 | local b = Instance.new("Part",torso) | |
322 | b.BrickColor = BrickColor.new("Really red") | |
323 | b.Material = "Neon" | |
324 | b.Anchored = true | |
325 | b.CanCollide = false | |
326 | b.Size = Vector3.new(2,0.01,2) | |
327 | b.CFrame = cf | |
328 | ||
329 | local bm = Instance.new("CylinderMesh",b) | |
330 | ||
331 | local cf2 = b.CFrame -Vector3.new(3,0,0) | |
332 | ||
333 | local b2 = Instance.new("Part",torso) | |
334 | b2.BrickColor = BrickColor.new("Really red") | |
335 | b2.Material = "Neon" | |
336 | b2.Anchored = true | |
337 | b2.CanCollide = false | |
338 | b2.Size = Vector3.new(2,0.01,2) | |
339 | b2.CFrame = cf2 | |
340 | ||
341 | local bm2 = Instance.new("CylinderMesh",b2) | |
342 | ||
343 | ||
344 | for i = 1, 40 do | |
345 | wait() | |
346 | b.Size = Vector3.new(i/5,0,i/5) | |
347 | b.CFrame = cf | |
348 | ||
349 | b2.Size = Vector3.new(i/10,0,i/10) | |
350 | b2.CFrame = cf2 | |
351 | end | |
352 | ||
353 | local bg = Instance.new("BillboardGui", torso) | |
354 | bg.Name = "rip" | |
355 | bg.Adornee = torso | |
356 | bg.Size = UDim2.new(1, 0, 1, 0) | |
357 | bg.StudsOffset = Vector3.new(0, 2, 0) | |
358 | ||
359 | local fr1 = Instance.new("TextLabel", bg) | |
360 | fr1.Size = UDim2.new(1, 0, 1, 0) | |
361 | fr1.BorderSizePixel = 0 | |
362 | fr1.TextTransparency = 1 | |
363 | fr1.BackgroundTransparency = 1 | |
364 | fr1.Text = "RIP MY NIGGA" | |
365 | fr1.TextScaled = true | |
366 | ||
367 | coroutine.wrap(function() | |
368 | for i = 1, 20 do | |
369 | rs:wait() | |
370 | fr1.TextTransparency = fr1.TextTransparency - 1/20 | |
371 | fr1.BackgroundTransparency = fr1.BackgroundTransparency - 1/20 | |
372 | end | |
373 | end)() | |
374 | ||
375 | coroutine.wrap(function() | |
376 | while true do | |
377 | ||
378 | for i = 0.01, 0.2 do | |
379 | fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(255,0,0),i) | |
380 | rs:wait() | |
381 | end | |
382 | ||
383 | for i = 0.01, 0.2 do | |
384 | fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,255,0),i) | |
385 | rs:wait() | |
386 | end | |
387 | ||
388 | for i = 0.01, 0.2 do | |
389 | fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,0,255),i) | |
390 | rs:wait() | |
391 | end | |
392 | ||
393 | wait() | |
394 | end | |
395 | end)() | |
396 | ||
397 | local x = Instance.new("Sound",torso) | |
398 | x.SoundId = "rbxassetid://397069204" | |
399 | x.Looped = true | |
400 | x:Play() | |
401 | wait(9) | |
402 | ||
403 | local txts = {"R.I.P "..p.Name.." RIP Toilet Paper","RIP Toilet Paper "..p.Name.." RIP Toilet Paper","RIP Toilet Paper "..p.Name.." RIP TOILET PAPER","RIP TOILET PAPER"} | |
404 | ||
405 | local t1 = Instance.new("Part",workspace.Base) | |
406 | t1.Name = "tombstone_dirt" | |
407 | t1.BrickColor = BrickColor.new("Reddish brown") | |
408 | t1.CanCollide = false | |
409 | t1.CFrame = root.CFrame - Vector3.new(0,3.25,0) | |
410 | t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
411 | t1.Material = "Grass" | |
412 | t1.Size = Vector3.new(4,1,8) | |
413 | ||
414 | local tw = Instance.new("Weld") | |
415 | ||
416 | local t2 = Instance.new("Part",t1) | |
417 | t2.Name = "tombstone_stone" | |
418 | t2.CanCollide = false | |
419 | t2.BrickColor = BrickColor.new("") | |
420 | t2.Anchored = false | |
421 | t2.CFrame = t1.CFrame + Vector3.new(0,0,-4) | |
422 | t2.Size = Vector3.new(4.2,5,1.2) | |
423 | ||
424 | local sg = Instance.new("SurfaceGui",t2) | |
425 | sg.Enabled = true | |
426 | sg.Face = "Back" | |
427 | sg.Adornee = t2 | |
428 | local txts = txts[math.random(1,#txts)] | |
429 | ||
430 | local txt = Instance.new("TextLabel",sg) | |
431 | txt.TextScaled = true | |
432 | txt.Text = txts | |
433 | txt.BackgroundTransparency = 1 | |
434 | txt.BorderSizePixel = 0 | |
435 | txt.Size = UDim2.new(1,0,1,0) | |
436 | ||
437 | txt.TextColor3 = Color3.new(1,1,1) | |
438 | if txts == "666" then | |
439 | txt.TextColor3 = Color3.new(1,0,0) | |
440 | end | |
441 | ||
442 | ||
443 | tw.Part1 = t2 | |
444 | tw.Part0 = t1 | |
445 | tw.Parent = char | |
446 | tw.C0 = CFrame.new(0,2.5,-4) | |
447 | ||
448 | coroutine.wrap(function() | |
449 | t1.CFrame = root.CFrame - Vector3.new(0,3.2,0) | |
450 | t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
451 | wait(0.1) | |
452 | t1.CFrame = root.CFrame - Vector3.new(0,3.2,0) | |
453 | t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
454 | t1.Anchored = true | |
455 | t2.Anchored = true | |
456 | t1.CanCollide = true | |
457 | t2.CanCollide = true | |
458 | end)() | |
459 | ||
460 | char:BreakJoints() | |
461 | ||
462 | elseif result == "alive" then | |
463 | attack = false | |
464 | NoAnims = false | |
465 | cor.Part0 = larm | |
466 | m = 0 | |
467 | end | |
468 | end | |
469 | end | |
470 | end) | |
471 | ||
472 | pcall(function() | |
473 | ---------------------------------------------------- | |
474 | mouse.KeyDown:connect(function(key) | |
475 | if string.byte(key) == 50 then | |
476 | char.Humanoid.WalkSpeed = 60 | |
477 | end | |
478 | end) | |
479 | mouse.KeyUp:connect(function(key) | |
480 | if string.byte(key) == 50 then | |
481 | char.Humanoid.WalkSpeed = 16 | |
482 | end | |
483 | end) | |
484 | ------------------------------- | |
485 | local animpose = "Idle" | |
486 | local lastanimpose = "Idle" | |
487 | local sine = 0 | |
488 | local change = 1 | |
489 | local val = 0 | |
490 | local ffing = false | |
491 | ------------------------------- | |
492 | game:GetService("RunService").RenderStepped:connect(function() | |
493 | --[[if char.Humanoid.Jump == true then | |
494 | jump = true | |
495 | else | |
496 | jump = false | |
497 | end]] | |
498 | char.Humanoid.FreeFalling:connect(function(f) | |
499 | if f then | |
500 | ffing = true | |
501 | else | |
502 | ffing = false | |
503 | end | |
504 | end) | |
505 | sine = sine + change | |
506 | if jumpn == true then | |
507 | animpose = "Jumping" | |
508 | elseif ffing == true then | |
509 | animpose = "Freefalling" | |
510 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
511 | animpose = "Idle" | |
512 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
513 | animpose = "Walking" | |
514 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
515 | animpose = "Running" | |
516 | end | |
517 | if animpose ~= lastanimpose then | |
518 | sine = 0 | |
519 | if animpose == "Idle" then | |
520 | for i = 1, 2 do | |
521 | if NoAnims == false then | |
522 | ||
523 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2) | |
524 | ||
525 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5 + math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2) | |
526 | ||
527 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
528 | ||
529 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1) | |
530 | ||
531 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
532 | ||
533 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
534 | ||
535 | end | |
536 | end | |
537 | ||
538 | elseif animpose == "Walking" then | |
539 | for i = 1, 2 do | |
540 | if NoAnims == false then | |
541 | ||
542 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7,0.5,-0.35)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-90)), 0.1) | |
543 | ||
544 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.35)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(80)), 0.1) | |
545 | ||
546 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
547 | ||
548 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1) | |
549 | ||
550 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
551 | ||
552 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
553 | ||
554 | end | |
555 | end | |
556 | elseif animpose == "Running" then | |
557 | for i = 1, 2 do | |
558 | if NoAnims == false then | |
559 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
560 | ||
561 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
562 | ||
563 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
564 | ||
565 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.05) | |
566 | ||
567 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
568 | ||
569 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
570 | ||
571 | wait() | |
572 | end | |
573 | end | |
574 | else | |
575 | end | |
576 | end | |
577 | lastanimpose = animpose | |
578 | if animpose == "Idle" then | |
579 | if NoAnims == false then | |
580 | change = 0.5 | |
581 | ||
582 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.4+math.sin(sine/14)/9,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-30)), 0.2) | |
583 | ||
584 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.4 + math.sin(sine/14)/9,-0.2)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(30)), 0.2) | |
585 | ||
586 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
587 | ||
588 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1) | |
589 | ||
590 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
591 | ||
592 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
593 | ||
594 | cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),math.pi,0),0.2) | |
595 | ||
596 | end | |
597 | ||
598 | elseif animpose == "Walking" then | |
599 | if NoAnims == false then | |
600 | change = 1 | |
601 | cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),-math.pi/2,0),0.2) | |
602 | ||
603 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1) | |
604 | ||
605 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1) | |
606 | ||
607 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.07)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.2) | |
608 | ||
609 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1) | |
610 | ||
611 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1) | |
612 | ||
613 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1) | |
614 | ||
615 | end | |
616 | ||
617 | elseif animpose == "Running" then | |
618 | if NoAnims == false then | |
619 | change = 0.5 | |
620 | ||
621 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7 ,0.5,-0.5)*CFrame.Angles(math.rad(90)+ math.sin(sine/2.5)/2,0,.05), 0.2) | |
622 | ||
623 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.5)*CFrame.Angles(math.rad(90)+ -math.sin(sine/2.5)/2,0,-.05), 0.2) | |
624 | ||
625 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0.5)*CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)),0.2) | |
626 | ||
627 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.2) | |
628 | ||
629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + math.sin(sine/2.5)/2, 0, 0.05), .4) | |
630 | ||
631 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + -math.sin(sine/2.5)/2, 0.05, 0), .4) | |
632 | ||
633 | end | |
634 | end | |
635 | end) | |
636 | end) |