SHOW:
|
|
- or go back to the newest paste.
1 | - | local ran,err = ypcall(function() |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end local ran,err = ypcall(function() | |
6 | plr = game:service'Players'.LocalPlayer | |
7 | char = plr.Character | |
8 | mouse = plr:GetMouse() | |
9 | humanoid = char:findFirstChild("Humanoid") | |
10 | torso = char:findFirstChild("Torso") | |
11 | head = char.Head | |
12 | ra = char:findFirstChild("Right Arm") | |
13 | la = char:findFirstChild("Left Arm") | |
14 | rl = char:findFirstChild("Right Leg") | |
15 | ll = char:findFirstChild("Left Leg") | |
16 | rs = torso:findFirstChild("Right Shoulder") | |
17 | ls = torso:findFirstChild("Left Shoulder") | |
18 | rh = torso:findFirstChild("Right Hip") | |
19 | lh = torso:findFirstChild("Left Hip") | |
20 | neck = torso:findFirstChild("Neck") | |
21 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
22 | anim = char:findFirstChild("Animate") | |
23 | rootpart = char:findFirstChild("HumanoidRootPart") | |
24 | camera = workspace.CurrentCamera | |
25 | if anim then | |
26 | anim:Destroy() | |
27 | end | |
28 | ||
29 | ||
30 | rj.C0 = CFrame.new() | |
31 | rj.C1 = CFrame.new() | |
32 | ||
33 | ||
34 | super_annoying = Instance.new("Sound", head) | |
35 | super_annoying.SoundId = "http://www.roblox.com/asset/?id=1124971255" | |
36 | super_annoying.Volume = 0.6 | |
37 | super_annoying.Looped = true | |
38 | barrel_roll = Instance.new("Sound", head) | |
39 | barrel_roll.SoundId = "http://www.roblox.com/asset/?id=130791919" | |
40 | barrel_roll.Volume = 1 | |
41 | barrel_roll.Looped = true | |
42 | dubstep_gun = Instance.new("Sound", head) | |
43 | dubstep_gun.SoundId = "http://www.roblox.com/asset/?id=488472970" | |
44 | dubstep_gun.Volume = 0.6 | |
45 | dubstep_gun.Looped = true | |
46 | you_are_pirate = Instance.new("Sound", head) | |
47 | you_are_pirate.SoundId = "http://www.roblox.com/asset/?id=130888577" | |
48 | you_are_pirate.Volume = 0.6 | |
49 | you_are_pirate.Looped = true | |
50 | cant_touch = Instance.new("Sound", head) | |
51 | cant_touch.SoundId = "http://www.roblox.com/asset/?id=131280929" | |
52 | cant_touch.Volume = 1 | |
53 | cant_touch.Looped = true | |
54 | gangy_style = Instance.new("Sound", head) | |
55 | gangy_style.SoundId = "http://www.roblox.com/asset/?id=744391269" | |
56 | gangy_style.Volume = 0.6 | |
57 | gangy_style.Looped = true | |
58 | fox_say = Instance.new("Sound", head) | |
59 | fox_say.SoundId = "http://www.roblox.com/asset/?id=1784978732" | |
60 | fox_say.Volume = 1.9 | |
61 | fox_say.Looped = true | |
62 | durk = Instance.new("Sound", head) | |
63 | durk.SoundId = "http://www.roblox.com/asset/?id=592565036" | |
64 | durk.Volume = 1.9 | |
65 | durk.Pitch = 16 | |
66 | durk.Looped = true | |
67 | sax_guy = Instance.new("Sound", head) | |
68 | sax_guy.SoundId = "http://www.roblox.com/asset/?id=592565036" | |
69 | sax_guy.Volume = 0.6 | |
70 | sax_guy.Looped = true | |
71 | heman = Instance.new("Sound", head) | |
72 | heman.SoundId = "http://www.roblox.com/asset/?id=681266896" | |
73 | heman.Volume = 1 | |
74 | heman.Looped = true | |
75 | justin = Instance.new("Sound", head) | |
76 | justin.SoundId = "http://www.roblox.com/asset/?id=263970261" | |
77 | justin.Volume = 0.8 | |
78 | justin.Looped = true | |
79 | brony_music = Instance.new("Sound", head) | |
80 | brony_music.SoundId = "http://www.roblox.com/asset/?id=135360327" | |
81 | brony_music.Volume = 1 | |
82 | brony_music.Looped = true | |
83 | spitfire = Instance.new("Sound", head) | |
84 | spitfire.SoundId = "http://www.roblox.com/asset/?id=887315453" | |
85 | spitfire.Volume = 0.8 | |
86 | spitfire.Looped = true | |
87 | burn_dem = Instance.new("Sound", head) | |
88 | burn_dem.SoundId = "http://www.roblox.com/asset/?id=798698852" | |
89 | burn_dem.Volume = 1 | |
90 | burn_dem.Looped = true | |
91 | ||
92 | ||
93 | if char:findFirstChild("Shirt") then | |
94 | char:findFirstChild("Shirt"):Destroy() | |
95 | end | |
96 | if char:findFirstChild("Pants") then | |
97 | char:findFirstChild("Pants"):Destroy() | |
98 | end | |
99 | if char:findFirstChild("Shirt Graphic") then | |
100 | char:findFirstChild("Shirt Graphic"):Destroy() | |
101 | end | |
102 | ||
103 | Instance.new("HumanoidController", game:service'ControllerService') | |
104 | Instance.new("SkateboardController", game:service'ControllerService') | |
105 | Instance.new("VehicleController", game:service'ControllerService') | |
106 | ||
107 | ||
108 | ||
109 | ||
110 | --minimize | |
111 | rh.Parent = nil | |
112 | lh.Parent = nil | |
113 | rs.Parent = nil | |
114 | ls.Parent = nil | |
115 | neck.Parent = nil | |
116 | rj.Parent = nil | |
117 | ||
118 | ||
119 | rl.FormFactor = "Custom" | |
120 | ll.FormFactor = "Custom" | |
121 | ra.FormFactor = "Custom" | |
122 | la.FormFactor = "Custom" | |
123 | torso.FormFactor = "Custom" | |
124 | head.FormFactor = "Custom" | |
125 | rootpart.FormFactor = "Custom" | |
126 | ||
127 | ||
128 | ||
129 | ||
130 | rootpart.Size = Vector3.new(.4, .4, .2) | |
131 | rl.Size = Vector3.new(.2, .4, .2) | |
132 | ll.Size = Vector3.new(.2, .4, .2) | |
133 | ra.Size = Vector3.new(.2, .4, .2) | |
134 | la.Size = Vector3.new(.2, .4, .2) | |
135 | torso.Size = Vector3.new(.4, .4, .2) | |
136 | head.Size = Vector3.new(.4, .2, .2) | |
137 | ||
138 | rh.Parent = torso | |
139 | lh.Parent = torso | |
140 | rs.Parent = torso | |
141 | ls.Parent = torso | |
142 | neck.Parent = torso | |
143 | rj.Parent = rootpart | |
144 | ||
145 | ||
146 | if torso:findFirstChild("roblox") then | |
147 | local p = Instance.new("Part", char) | |
148 | p.FormFactor = "Custom" | |
149 | p.Size = torso.Size | |
150 | p.Transparency = 1 | |
151 | p:BreakJoints() | |
152 | local w = Instance.new("Weld", char) | |
153 | w.Part0 = p | |
154 | w.Part1 = torso | |
155 | torso:findFirstChild("roblox").Parent = p | |
156 | end | |
157 | ||
158 | ||
159 | mesh1 = Instance.new("SpecialMesh", torso) | |
160 | mesh1.Name = "Mesh" | |
161 | mesh1.Scale = torso.Size - Vector3.new(torso.Size.x/2, torso.Size.y/2, 0) | |
162 | mesh1.MeshId = "rbxasset://fonts/torso.mesh" | |
163 | mesh2 = Instance.new("SpecialMesh", la) | |
164 | mesh2.Name = "Mesh" | |
165 | mesh2.Scale = la.Size - Vector3.new(0, la.Size.y/2, 0) | |
166 | mesh2.MeshId = "rbxasset://fonts/leftarm.mesh" | |
167 | mesh3 = Instance.new("SpecialMesh", ra) | |
168 | mesh3.Name = "Mesh" | |
169 | mesh3.Scale = ra.Size - Vector3.new(0, ra.Size.y/2, 0) | |
170 | mesh3.MeshId = "rbxasset://fonts/rightarm.mesh" | |
171 | mesh4 = Instance.new("SpecialMesh", ll) | |
172 | mesh4.Name = "Mesh" | |
173 | mesh4.Scale = ll.Size - Vector3.new(0, ll.Size.y/2, 0) | |
174 | mesh4.MeshId = "rbxasset://fonts/leftleg.mesh" | |
175 | mesh5 = Instance.new("SpecialMesh", rl) | |
176 | mesh5.Name = "Mesh" | |
177 | mesh5.Scale = rl.Size - Vector3.new(0, rl.Size.y/2, 0) | |
178 | mesh5.MeshId = "rbxasset://fonts/rightleg.mesh" | |
179 | ||
180 | ||
181 | --0.3 = 1.5, 0.1 = 0.5, 0.2 = 1 | |
182 | ||
183 | ls.C0 = CFrame.new(-.3,.1,0) | |
184 | ls.C1 = CFrame.new(0,.1,0) | |
185 | rs.C0 = CFrame.new(.3,.1,0) | |
186 | rs.C1 = CFrame.new(0,.1,0) | |
187 | rh.C0 = CFrame.new(.1,-.2,0) | |
188 | rh.C1 = CFrame.new(0, .2, 0) | |
189 | lh.C0 = CFrame.new(-.1,-.2,0) | |
190 | lh.C1 = CFrame.new(0, .2, 0) | |
191 | neck.C0 = CFrame.new(0,.2,0) | |
192 | neck.C1 = CFrame.new(0,-.1,0) | |
193 | ||
194 | bodyc = char:findFirstChild("Body Colors") | |
195 | if bodyc then | |
196 | bodyc:Destroy() | |
197 | end | |
198 | wait(0.1) | |
199 | ||
200 | skincolor = {"Reddish brown", "Brick yellow", "Pastel brown", "Nougat", "Brown", "Cool yellow", "Dark orange", "Neon orange"} | |
201 | clothcolor = {"Bright green", "Bright red", "Bright blue", "Light stone grey", "New Yeller", "Really black", "Lavender", "Medium green", "White", "Bright Yellow"} | |
202 | ||
203 | ||
204 | skincolorrandom = BrickColor.new(skincolor[math.random(1, #skincolor)]) | |
205 | clothcolorrandom = BrickColor.new(clothcolor[math.random(1, #clothcolor)]) | |
206 | function restorecolors() | |
207 | for _,bp in pairs(char:children()) do | |
208 | if bp:IsA("BasePart") then | |
209 | bp.BrickColor = skincolorrandom | |
210 | end | |
211 | end | |
212 | ||
213 | torso.BrickColor = clothcolorrandom | |
214 | ll.BrickColor = clothcolorrandom | |
215 | rl.BrickColor = clothcolorrandom | |
216 | end | |
217 | restorecolors() | |
218 | ||
219 | local LightForTorso = Instance.new("PointLight", head) | |
220 | LightForTorso.Color = torso.BrickColor.Color | |
221 | LightForTorso.Range = 7 | |
222 | LightForTorso.Brightness = 1.5 | |
223 | ||
224 | ||
225 | ||
226 | ||
227 | local slidecount = 0 | |
228 | local slidecountmax = 0 | |
229 | local anim = "" | |
230 | local lastanim = anim | |
231 | local speed = 0 | |
232 | local looking = false | |
233 | local dancing = false | |
234 | local superannoying = false | |
235 | local barrelroll = false | |
236 | local dubstepgun = false | |
237 | local foxie = false | |
238 | local durka = false | |
239 | local saxguy = false | |
240 | local heya = false | |
241 | local jb = false | |
242 | local bronymusic = false | |
243 | local sheddy = false | |
244 | local burndem = false | |
245 | local global_wait = 0 | |
246 | ||
247 | count = 0 | |
248 | countspeed = 1 | |
249 | sine = 0 | |
250 | sinespeed = 1 | |
251 | ||
252 | ||
253 | ||
254 | humanoid.WalkSpeed = 11 | |
255 | ||
256 | ||
257 | local controllerService = game:GetService("ControllerService") | |
258 | local controller = controllerService:GetChildren()[1] | |
259 | ||
260 | ||
261 | local colors = {"White", "Really black"} | |
262 | ||
263 | humanoid.Died:connect(function() | |
264 | for cframe_parts = 0, 100 do | |
265 | local p = Instance.new("Part") | |
266 | p.FormFactor = "Custom" | |
267 | p.BrickColor = BrickColor.new(colors[math.random(1, #colors)]) | |
268 | p.Size = Vector3.new(1, 1, 1) | |
269 | Instance.new("BlockMesh", p).Scale = Vector3.new(0.05, 0.05, 0.05) | |
270 | p.Locked = true | |
271 | p.CanCollide = false | |
272 | p.Anchored = true | |
273 | p.CFrame = torso.CFrame * CFrame.Angles(math.random(-36, 36),math.random(-36, 36),math.random(-36, 36)) | |
274 | p.Parent = workspace | |
275 | game:service'Debris':AddItem(p, 5) | |
276 | coroutine.wrap(function() | |
277 | while wait() do | |
278 | if p ~= nil then | |
279 | p.CFrame = p.CFrame * CFrame.new(0, 0.085, 0) | |
280 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.005, 0, 0.005) + Vector3.new(0, 0.01, 0) | |
281 | p.Transparency = p.Transparency + 0.015 | |
282 | else | |
283 | break | |
284 | end | |
285 | end | |
286 | end)() | |
287 | end | |
288 | for _,v in pairs(char:children()) do | |
289 | if v:IsA("Part") then | |
290 | v:Destroy() | |
291 | end | |
292 | end | |
293 | ||
294 | end) | |
295 | ||
296 | ||
297 | mouse.KeyDown:connect(function(k) | |
298 | ||
299 | if string.byte(k) == 50 then | |
300 | ||
301 | if dancing then return end | |
302 | sitting = not sitting | |
303 | if sitting then | |
304 | local ray = Ray.new(torso.Position, Vector3.new(0, -1, 0)) | |
305 | local hitz,enz = workspace:FindPartOnRay(ray, char) | |
306 | ||
307 | ||
308 | if hitz then | |
309 | controller.Parent = nil | |
310 | humanoid.WalkSpeed = 0 | |
311 | coroutine.wrap(function() | |
312 | while wait() do | |
313 | humanoid.PlatformStand = true | |
314 | if sitting == false then humanoid.PlatformStand = false break end | |
315 | end | |
316 | end)() | |
317 | rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0) | |
318 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16) | |
319 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16) | |
320 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10) | |
321 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10) | |
322 | ||
323 | miniweld = Instance.new("Weld", char) | |
324 | miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame) | |
325 | miniweld.Part0 = hitz | |
326 | miniweld.Part1 = rootpart | |
327 | else | |
328 | sitting = false | |
329 | return | |
330 | end | |
331 | else | |
332 | if miniweld then | |
333 | miniweld:Destroy() | |
334 | end | |
335 | controller.Parent = controllerService | |
336 | humanoid.PlatformStand = false | |
337 | humanoid.WalkSpeed = 11 | |
338 | end | |
339 | end | |
340 | ||
341 | if k == "w" or k == "a" or k == "s" or k == "d" or string.byte(k) == 32 then | |
342 | superannoying = false | |
343 | barrelroll = false | |
344 | heya = false | |
345 | dubstepgun = false | |
346 | youpirate = false | |
347 | canttouch = false | |
348 | gangnam = false | |
349 | sheddy = false | |
350 | durka = false | |
351 | saxguy = false | |
352 | foxie = false | |
353 | burndem = false | |
354 | bronymusic = false | |
355 | brony_music:stop() | |
356 | fox_say:stop() | |
357 | spitfire:stop() | |
358 | heman:stop() | |
359 | justin:stop() | |
360 | jb = false | |
361 | durk:stop() | |
362 | restorecolors() | |
363 | burn_dem:stop() | |
364 | if hat then | |
365 | hat:Destroy() | |
366 | end | |
367 | sax_guy:stop() | |
368 | gangy_style:stop() | |
369 | cant_touch:stop() | |
370 | you_are_pirate:stop() | |
371 | dubstep_gun:stop() | |
372 | super_annoying:stop() | |
373 | barrel_roll:stop() | |
374 | dancing = false | |
375 | global_wait = 0 | |
376 | LightForTorso.Color = torso.BrickColor.Color | |
377 | end | |
378 | ||
379 | if k == "z" then | |
380 | if dancing then return end | |
381 | if not sitting then | |
382 | dancing = true | |
383 | superannoying = true | |
384 | super_annoying:play() | |
385 | end | |
386 | end | |
387 | if k == "k" then | |
388 | if dancing then return end | |
389 | if not sitting then | |
390 | dancing = true | |
391 | sheddy = true | |
392 | spitfire:play() | |
393 | end | |
394 | end | |
395 | ||
396 | if k == "n" then | |
397 | if dancing then return end | |
398 | if not sitting then | |
399 | dancing = true | |
400 | gangnam = true | |
401 | gangy_style:play() | |
402 | end | |
403 | end | |
404 | ||
405 | if k == "r" then | |
406 | if dancing then return end | |
407 | if not sitting then | |
408 | dancing = true | |
409 | burndem = true | |
410 | burn_dem:play() | |
411 | end | |
412 | end | |
413 | ||
414 | ||
415 | if k == "x" then | |
416 | if dancing then return end | |
417 | if not sitting then | |
418 | dancing = true | |
419 | barrelroll = true | |
420 | barrel_roll:play() | |
421 | hat = Instance.new("Part", char) | |
422 | hat.FormFactor = "Custom" | |
423 | hat.CanCollide = false | |
424 | hat.Size = torso.Size | |
425 | hat.Locked = true | |
426 | hat:breakJoints() | |
427 | local hatmesh = Instance.new("SpecialMesh", hat) | |
428 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=29873142" | |
429 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=31467063" | |
430 | hatmesh.Scale = Vector3.new(.22, .2, .22) | |
431 | local hatweld = Instance.new("Weld", hat) | |
432 | hatweld.Part0 = hat | |
433 | hatweld.Part1 = torso | |
434 | end | |
435 | end | |
436 | if k == "h" then | |
437 | if dancing then return end | |
438 | if not sitting then | |
439 | dancing = true | |
440 | heman:play() | |
441 | heya = true | |
442 | hat = Instance.new("Part", char) | |
443 | hat.FormFactor = "Custom" | |
444 | hat.CanCollide = false | |
445 | hat.Size = torso.Size + Vector3.new(0.01, 0.01, 0.01) | |
446 | hat.Locked = true | |
447 | hat.BrickColor = BrickColor.new("Hot pink") | |
448 | hat:breakJoints() | |
449 | local hatweld = Instance.new("Weld", hat) | |
450 | hatweld.Part0 = hat | |
451 | hatweld.Part1 = torso | |
452 | end | |
453 | end | |
454 | if k == "j" then | |
455 | if dancing then return end | |
456 | if not sitting then | |
457 | dancing = true | |
458 | justin:play() | |
459 | jb = true | |
460 | hat = Instance.new("Part", char) | |
461 | hat.FormFactor = "Custom" | |
462 | hat.CanCollide = false | |
463 | hat.Size = head.Size | |
464 | hat.Locked = true | |
465 | hat.BrickColor = BrickColor.new("Hot pink") | |
466 | hat:breakJoints() | |
467 | local hatmesh = Instance.new("SpecialMesh", hat) | |
468 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=19999424" | |
469 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=20571982" | |
470 | hatmesh.Scale = Vector3.new(.23, .23, .23) | |
471 | local hatweld = Instance.new("Weld", hat) | |
472 | hatweld.Part0 = hat | |
473 | hatweld.Part1 = head | |
474 | hatweld.C0 = CFrame.new(0.025, -0.05, 0) | |
475 | end | |
476 | end | |
477 | if k == "c" then | |
478 | if dancing then return end | |
479 | if not sitting then | |
480 | dancing = true | |
481 | dubstepgun = true | |
482 | dubstep_gun:play() | |
483 | end | |
484 | end | |
485 | if k == "v" then | |
486 | if dancing then return end | |
487 | if not sitting then | |
488 | dancing = true | |
489 | youpirate = true | |
490 | you_are_pirate:play() | |
491 | hat = Instance.new("Part", char) | |
492 | hat.FormFactor = "Custom" | |
493 | hat.CanCollide = false | |
494 | hat.Size = head.Size | |
495 | hat.Locked = true | |
496 | hat:breakJoints() | |
497 | local hatmesh = Instance.new("SpecialMesh", hat) | |
498 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=1028848" | |
499 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=1028847" | |
500 | hatmesh.Scale = Vector3.new(.2, .2, .2) | |
501 | local hatweld = Instance.new("Weld", hat) | |
502 | hatweld.Part0 = hat | |
503 | hatweld.Part1 = head | |
504 | hatweld.C0 = CFrame.new(0, -0.15, 0) | |
505 | end | |
506 | end | |
507 | if k == "m" then | |
508 | if dancing then return end | |
509 | if not sitting then | |
510 | dancing = true | |
511 | canttouch = true | |
512 | cant_touch:play() | |
513 | end | |
514 | end | |
515 | if k == "b" then | |
516 | if dancing then return end | |
517 | if not sitting then | |
518 | dancing = true | |
519 | bronymusic = true | |
520 | brony_music:play() | |
521 | for _,bp in pairs(char:children()) do | |
522 | if bp:IsA("BasePart") then | |
523 | bp.BrickColor = BrickColor.new("Lavender") | |
524 | end | |
525 | end | |
526 | hat = Instance.new("Part", char) | |
527 | hat.FormFactor = "Custom" | |
528 | hat.CanCollide = false | |
529 | hat.Size = head.Size | |
530 | hat.Locked = true | |
531 | hat.BrickColor = BrickColor.new("Lavender") | |
532 | hat:breakJoints() | |
533 | local hatmesh = Instance.new("SpecialMesh", hat) | |
534 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=118186643" | |
535 | hatmesh.Scale = Vector3.new(.1, .2, .1) | |
536 | local hatweld = Instance.new("Weld", hat) | |
537 | hatweld.Part0 = hat | |
538 | hatweld.Part1 = head | |
539 | hatweld.C0 = CFrame.new(0, -0.1, 0.05) | |
540 | end | |
541 | end | |
542 | ||
543 | if k == "l" then | |
544 | if dancing then return end | |
545 | if not sitting then | |
546 | dancing = true | |
547 | foxie = true | |
548 | fox_say:play() | |
549 | hat = Instance.new("Part", char) | |
550 | hat.FormFactor = "Custom" | |
551 | hat.CanCollide = false | |
552 | hat.Size = head.Size | |
553 | hat.Locked = true | |
554 | hat:breakJoints() | |
555 | local hatmesh = Instance.new("SpecialMesh", hat) | |
556 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=25266225" | |
557 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=25266210" | |
558 | hatmesh.Scale = Vector3.new(.2, .2, .2) | |
559 | local hatweld = Instance.new("Weld", hat) | |
560 | hatweld.Part0 = hat | |
561 | hatweld.Part1 = head | |
562 | hatweld.C0 = CFrame.new(0, -0.1, 0) | |
563 | end | |
564 | ||
565 | end | |
566 | if k == "f" then | |
567 | if dancing then return end | |
568 | if not sitting then | |
569 | dancing = true | |
570 | durka = true | |
571 | durk:play() | |
572 | end | |
573 | end | |
574 | if k == "g" then | |
575 | if dancing then return end | |
576 | if not sitting then | |
577 | dancing = true | |
578 | saxguy = true | |
579 | sax_guy:play() | |
580 | hat = Instance.new("Part", char) | |
581 | hat.FormFactor = "Custom" | |
582 | hat.CanCollide = false | |
583 | hat.Size = head.Size | |
584 | hat.Locked = true | |
585 | hat:breakJoints() | |
586 | local hatmesh = Instance.new("SpecialMesh", hat) | |
587 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=44410178" | |
588 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=44410320" | |
589 | hatmesh.Scale = Vector3.new(.25, .25, .25) | |
590 | local hatweld = Instance.new("Weld", hat) | |
591 | hatweld.Part0 = hat | |
592 | hatweld.Part1 = la | |
593 | hatweld.C0 = CFrame.new(-0.18, -0.05, .04) * CFrame.Angles(math.pi - math.rad(18), 0, math.pi/4) | |
594 | end | |
595 | end | |
596 | ||
597 | ||
598 | ||
599 | ||
600 | if k == "q" then | |
601 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end | |
602 | if sitting then return end | |
603 | looking = true | |
604 | rj.C0 = CFrame.new(-math.pi/6, 0,0) * CFrame.Angles(0, 0, math.pi/4) | |
605 | end | |
606 | if k == "e" then | |
607 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end | |
608 | if sitting then return end | |
609 | looking = true | |
610 | rj.C0 = CFrame.new(math.pi/6, 0,0) * CFrame.Angles(0, 0, -math.pi/4) | |
611 | end | |
612 | if string.byte(k) == 48 or string.byte(k) == 47 then | |
613 | if sitting then return end | |
614 | humanoid.WalkSpeed = 18 | |
615 | end | |
616 | if string.byte(k) == 52 then | |
617 | if sitting then return end | |
618 | humanoid.WalkSpeed = 6 | |
619 | end | |
620 | end) | |
621 | ||
622 | mouse.KeyUp:connect(function(k) | |
623 | if string.byte(k) == 48 or string.byte(k) == 47 then | |
624 | if sitting then return end | |
625 | humanoid.WalkSpeed = 11 | |
626 | end | |
627 | if k == "w" or k == "a" or k == "s" or k == "d" or string.byte(k) == 32 then | |
628 | superannoying = false | |
629 | barrelroll = false | |
630 | heya = false | |
631 | dubstepgun = false | |
632 | youpirate = false | |
633 | canttouch = false | |
634 | gangnam = false | |
635 | sheddy = false | |
636 | durka = false | |
637 | saxguy = false | |
638 | foxie = false | |
639 | burndem = false | |
640 | bronymusic = false | |
641 | brony_music:stop() | |
642 | fox_say:stop() | |
643 | spitfire:stop() | |
644 | heman:stop() | |
645 | justin:stop() | |
646 | jb = false | |
647 | durk:stop() | |
648 | restorecolors() | |
649 | burn_dem:stop() | |
650 | if hat then | |
651 | hat:Destroy() | |
652 | end | |
653 | sax_guy:stop() | |
654 | gangy_style:stop() | |
655 | cant_touch:stop() | |
656 | you_are_pirate:stop() | |
657 | dubstep_gun:stop() | |
658 | super_annoying:stop() | |
659 | barrel_roll:stop() | |
660 | dancing = false | |
661 | global_wait = 0 | |
662 | LightForTorso.Color = torso.BrickColor.Color | |
663 | end | |
664 | ||
665 | ||
666 | if k == "q" then | |
667 | if looking then | |
668 | if sitting then return end | |
669 | rj.C0 = CFrame.new() | |
670 | looking = false | |
671 | end | |
672 | end | |
673 | ||
674 | if k == "e" then | |
675 | if looking then | |
676 | if sitting then return end | |
677 | rj.C0 = CFrame.new() | |
678 | looking = false | |
679 | end | |
680 | end | |
681 | end) | |
682 | ||
683 | ||
684 | game:service'RunService'.Stepped:connect(function() | |
685 | count = (count % 100) + countspeed | |
686 | angle = math.pi * math.sin(math.pi*2/100*count) | |
687 | ||
688 | if slidecount < slidecountmax then | |
689 | slidecount = slidecount + speed | |
690 | end | |
691 | if slidecount > slidecountmax then | |
692 | slidecount = slidecount - speed | |
693 | end | |
694 | if global_wait == 380 then global_wait = 0 end | |
695 | ||
696 | sine = sine + sinespeed | |
697 | if not dancing then | |
698 | if not sitting then | |
699 | local ray = Ray.new(rootpart.Position, Vector3.new(0, -1, 0)) | |
700 | local hitz, enz = workspace:FindPartOnRay(ray, char) | |
701 | if not hitz then | |
702 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + angle*0.05, 0, 0) | |
703 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + -angle*0.05, 0, 0) | |
704 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, 0) | |
705 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, 0) | |
706 | if not looking then | |
707 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0) | |
708 | end | |
709 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0) | |
710 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
711 | ||
712 | -- idle anim | |
713 | ||
714 | anim = "Idle" | |
715 | if anim ~= lastanim then | |
716 | if lastanim == "Walking" then | |
717 | speed = 0.5 | |
718 | slidecount = 1 | |
719 | slidecountmax = 0 | |
720 | elseif lastanim == "Running" then | |
721 | speed = 2.5 | |
722 | slidecount = 5 | |
723 | slidecountmax = 0 | |
724 | else | |
725 | slidecount = 0 | |
726 | slidecountmax = 0 | |
727 | end | |
728 | end | |
729 | countspeed = 1 | |
730 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.02, 0, 0) | |
731 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.02, 0, 0) | |
732 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.01, 0, 0) | |
733 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.01, 0, 0) | |
734 | if not looking then | |
735 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0) | |
736 | end | |
737 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0) | |
738 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 14 then | |
739 | looking = false | |
740 | -- walk anim | |
741 | anim = "Walking" | |
742 | if anim ~= lastanim then | |
743 | speed = 0.2 | |
744 | slidecount = 0 | |
745 | slidecountmax = 1 | |
746 | if lastanim == "Running" then | |
747 | slidecount = 5 | |
748 | end | |
749 | end | |
750 | countspeed = 6 | |
751 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.3, 0, math.abs(angle*0.02)) | |
752 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.3, 0, -math.abs(angle*0.02)) | |
753 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, -math.abs(angle*0.01)) | |
754 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, math.abs(angle*0.01)) | |
755 | rj.C0 = CFrame.new(0, math.abs(-angle*0.035), 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0) | |
756 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0) | |
757 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then | |
758 | --run anim | |
759 | anim = "Running" | |
760 | if anim ~= lastanim then | |
761 | speed = 1 | |
762 | slidecount = 0 | |
763 | slidecountmax = 5 | |
764 | if lastanim == "Walking" then | |
765 | slidecount = 1 | |
766 | end | |
767 | end | |
768 | ||
769 | looking = false | |
770 | countspeed = 9 | |
771 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.4, 0, math.abs(angle*0.07)) | |
772 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.4, 0, -math.abs(angle*0.07)) | |
773 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.38, 0, -math.abs(angle*0.03)) | |
774 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.38, 0, math.abs(angle*0.03)) | |
775 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0) | |
776 | rj.C0 = CFrame.new(0, math.abs(-angle*.055), 0) * CFrame.Angles(-math.pi/8/5*slidecount, math.sin(angle*0.05), 0) | |
777 | end | |
778 | ||
779 | lastanim = anim | |
780 | else | |
781 | countspeed = 1 | |
782 | local ray = Ray.new(rootpart.Position, Vector3.new(0, -2, 0)) | |
783 | local hitz, enz = workspace:FindPartOnRay(ray, char) | |
784 | if not hitz then | |
785 | rj.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-math.pi/2, 0, 0) | |
786 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.rad(30), 0, -math.pi/16) | |
787 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.rad(30), 0, math.pi/16) | |
788 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, -math.pi/10) | |
789 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, math.pi/10) | |
790 | else | |
791 | rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0) | |
792 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16) | |
793 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16) | |
794 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10) | |
795 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10) | |
796 | end | |
797 | ||
798 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(angle*0.055, 0, 0) | |
799 | end | |
800 | else | |
801 | if superannoying then | |
802 | countspeed = 5 | |
803 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07)) | |
804 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07)) | |
805 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
806 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
807 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
808 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0) | |
809 | elseif barrelroll then | |
810 | countspeed = 5 | |
811 | sinespeed = 0.1 | |
812 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.07)) | |
813 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.07)) | |
814 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, 0, -math.abs(angle*0.03)) | |
815 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, 0, math.abs(angle*0.03)) | |
816 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
817 | rj.C0 = CFrame.new(math.sin(sine)*2.5, 0, 0) * CFrame.Angles(-math.pi/2, math.sin(sine)*4.5, 0) | |
818 | elseif dubstepgun then | |
819 | global_wait = (global_wait % 380) + 1 | |
820 | countspeed = 5 | |
821 | if global_wait < 249 - 40 then | |
822 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.27)) | |
823 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.27)) | |
824 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
825 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
826 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
827 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0) | |
828 | elseif global_wait > 249 - 40 then | |
829 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.4, 0, math.abs(angle*0.11)) | |
830 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11)) | |
831 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.09)) | |
832 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.09)) | |
833 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
834 | rj.C0 = CFrame.new(0, math.abs(-angle*.075), 0) * CFrame.Angles(0, math.pi/3 + math.sin(angle*0.15), 0) | |
835 | end | |
836 | elseif youpirate then | |
837 | global_wait = (global_wait % 380) + 1 | |
838 | countspeed = 5 | |
839 | if global_wait < 79 then | |
840 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07)) | |
841 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07)) | |
842 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
843 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
844 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
845 | rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0) | |
846 | elseif global_wait < 299 then | |
847 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.11)) | |
848 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11)) | |
849 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.2, 0, -math.abs(angle*0.1)) | |
850 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.2, 0, math.abs(angle*0.1)) | |
851 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), math.sin(angle*0.19), 0) | |
852 | rj.C0 = CFrame.new(0, math.abs(-angle*.055+0.2), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0) | |
853 | elseif global_wait > 299 then | |
854 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07)) | |
855 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07)) | |
856 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
857 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
858 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
859 | rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0) | |
860 | end | |
861 | elseif canttouch then | |
862 | countspeed = 5 | |
863 | global_wait = (global_wait % 160) + 1 | |
864 | if global_wait == 160 then global_wait = 0 end | |
865 | if global_wait < 39 then | |
866 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07)) | |
867 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07)) | |
868 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
869 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
870 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
871 | rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, -math.pi/6, 0) | |
872 | elseif global_wait < 79 then | |
873 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07)) | |
874 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07)) | |
875 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03)) | |
876 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03)) | |
877 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
878 | rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, math.pi/6, 0) | |
879 | elseif global_wait < 119 then | |
880 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17) | |
881 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17) | |
882 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06)) | |
883 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06)) | |
884 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
885 | rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0) | |
886 | torso.CFrame = torso.CFrame * CFrame.new(0.05, 0, 0) | |
887 | elseif global_wait > 119 then | |
888 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17) | |
889 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17) | |
890 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06)) | |
891 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06)) | |
892 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
893 | rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0) | |
894 | torso.CFrame = torso.CFrame * CFrame.new(-0.05, 0, 0) | |
895 | end | |
896 | elseif gangnam then | |
897 | countspeed = 5 | |
898 | if global_wait == 180 then global_wait = 0 end | |
899 | global_wait = (global_wait % 180) + 1 | |
900 | if global_wait < 89 then | |
901 | ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05)) | |
902 | rs.C0 = CFrame.new(.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, -math.pi/3 + -math.abs(angle*0.05)) | |
903 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03)) | |
904 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03)) | |
905 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
906 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0) | |
907 | elseif global_wait > 89 then | |
908 | ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05)) | |
909 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.sin(angle*0.1), 0, -math.sin(angle*0.1)) | |
910 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03)) | |
911 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03)) | |
912 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
913 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0) | |
914 | end | |
915 | elseif foxie then | |
916 | countspeed = 5 | |
917 | global_wait = (global_wait % 380) + 2 | |
918 | if global_wait < 89 then | |
919 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, -math.abs(angle*0.2)) | |
920 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, math.abs(angle*0.2)) | |
921 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03)) | |
922 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03)) | |
923 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
924 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.rad(global_wait*4), 0) | |
925 | elseif global_wait > 89 then | |
926 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.05)) | |
927 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, -math.abs(angle*0.05)) | |
928 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03)) | |
929 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03)) | |
930 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, math.sin(angle*0.1)) | |
931 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0) | |
932 | end | |
933 | elseif durka then | |
934 | countspeed = 2 | |
935 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.07)) | |
936 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.07)) | |
937 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, 0, -math.abs(angle*0.03)) | |
938 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, 0, math.abs(angle*0.03)) | |
939 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
940 | rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0) | |
941 | elseif saxguy then | |
942 | countspeed = 5 | |
943 | ls.C0 = CFrame.new(-.25,.1,-.1) * CFrame.Angles(math.pi/2.5, 0, math.pi/4) | |
944 | rs.C0 = CFrame.new(.25,.1,-.1) * CFrame.Angles(math.rad(60), 0, -math.pi/4) | |
945 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, -0.06) | |
946 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, 0.06) | |
947 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(0, 0, 0) | |
948 | rj.C0 = CFrame.new(0, -math.abs(angle*0.01), math.abs(angle*0.01)) * CFrame.Angles(math.abs(angle*0.1), 0, 0) | |
949 | elseif heya then | |
950 | countspeed = 5 | |
951 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + -angle*0.2, -angle*0.1, 0) | |
952 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, angle*0.1, 0) | |
953 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06) | |
954 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06) | |
955 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0) | |
956 | rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.sin(angle*0.07), 0) | |
957 | elseif jb then | |
958 | countspeed = 5 | |
959 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + -angle*0.2, -angle*0.1, 0) | |
960 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, angle*0.1, 0) | |
961 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06) | |
962 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06) | |
963 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0) | |
964 | rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0) | |
965 | elseif bronymusic then | |
966 | countspeed = 5 | |
967 | ls.C0 = CFrame.new(-.1,.1,-.15) * CFrame.Angles(math.pi/2 + -angle*0.1, -angle*0.1, 0) | |
968 | rs.C0 = CFrame.new(.1,.1,-.15) * CFrame.Angles(math.pi/2 + angle*0.1, angle*0.1, 0) | |
969 | lh.C0 = CFrame.new(-.1,-.25,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, 0) | |
970 | rh.C0 = CFrame.new(.1,-.25,0) * CFrame.Angles(math.pi/2 + -angle*0.1, 0, 0) | |
971 | neck.C0 = CFrame.new(0,.25,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.25), 0, 0) | |
972 | rj.C0 = CFrame.new(0, -0.2 + math.abs(angle*0.05), 0) * CFrame.Angles(-math.rad(85), 0, 0) | |
973 | elseif sheddy then | |
974 | countspeed = 7 | |
975 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0) | |
976 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0) | |
977 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06) | |
978 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06) | |
979 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0) | |
980 | rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0) | |
981 | elseif burndem then | |
982 | countspeed = 4 | |
983 | ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0) | |
984 | rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0) | |
985 | lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06) | |
986 | rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06) | |
987 | neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0) | |
988 | rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0) | |
989 | end | |
990 | end | |
991 | end) | |
992 | ||
993 | ||
994 | plr.Chatted:connect(function(msg) | |
995 | game:service'Chat':Chat(head, msg, 1) | |
996 | if msg == "die/" then | |
997 | char:breakJoints() | |
998 | end | |
999 | ||
1000 | end) | |
1001 | ||
1002 | end) | |
1003 | if not ran and err then | |
1004 | print(err) | |
1005 | end |