HuyEvilDumb

testing derp noob

Feb 22nd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.52 KB | None | 0 0
  1. function clerp(c1,c2,al)
  2. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  4. for i,v in pairs(com1) do
  5. com1[i] = v+(com2[i]-v)*al
  6. end
  7. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8. end
  9.  
  10. local BeeSpeed= 100
  11.  
  12. plr = game:service'Players'.LocalPlayer
  13. plrgui = plr.PlayerGui
  14. char = plr.Character
  15. mouse = plr:GetMouse()
  16. humanoid = char:findFirstChild("Humanoid")
  17. torso = char:findFirstChild("Torso")
  18. head = char.Head
  19. ra = char:findFirstChild("Right Arm")
  20. la = char:findFirstChild("Left Arm")
  21. rl = char:findFirstChild("Right Leg")
  22. ll = char:findFirstChild("Left Leg")
  23. rs = torso:findFirstChild("Right Shoulder")
  24. ls = torso:findFirstChild("Left Shoulder")
  25. rh = torso:findFirstChild("Right Hip")
  26. lh = torso:findFirstChild("Left Hip")
  27. neck = torso:findFirstChild("Neck")
  28. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  29. rootpart = char:findFirstChild("HumanoidRootPart")
  30. camera = workspace.CurrentCamera
  31. anim = char:findFirstChild("Animate")
  32. frozen = false
  33. timestopcool = false
  34. humping = false
  35. mudaing = false
  36. knifeSpeed = 150
  37. stuffFrozen = {}
  38. frozenSounds = {}
  39. if anim then
  40. anim:Destroy()
  41. end
  42. local Create = LoadLibrary("RbxUtility").Create
  43. for i,v in pairs(char:children()) do
  44. if v:IsA("Hat") then
  45. v:Destroy()
  46. end
  47. end
  48. for i,v in pairs(char:children()) do
  49. if v:IsA("Accessory") then
  50. v:Destroy()
  51. end
  52. end
  53. for i,v in pairs(char:children()) do
  54. if v:IsA("Hair") then
  55. v:Destroy()
  56. end
  57. end
  58. Head.BrickColor = BrickColor.new("Bright yellow")
  59. RightArm.BrickColor = BrickColor.new("Bright yellow")
  60. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  61. Torso.BrickColor = BrickColor.new("Bright blue")
  62. RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  63. LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  64. end
  65. end)
  66.  
  67. function chatfunc(text)
  68. local chat = coroutine.wrap(function()
  69. if char:FindFirstChild("TalkingBillBoard")~= nil then
  70. char:FindFirstChild("TalkingBillBoard"):destroy()
  71. end
  72. local naeeym2 = Instance.new("BillboardGui",char)
  73. naeeym2.Size = UDim2.new(0,100,0,40)
  74. naeeym2.StudsOffset = Vector3.new(0,3,0)
  75. naeeym2.Adornee = char.Head
  76. naeeym2.Name = "TalkingBillBoard"
  77. tecks2 = Instance.new("TextLabel",naeeym2)
  78. tecks2.BackgroundTransparency = 1
  79. tecks2.BorderSizePixel = 0
  80. tecks2.Text = ""
  81. tecks2.Font = "Fantasy"
  82. tecks2.TextSize = 30
  83. tecks2.TextStrokeTransparency = 0
  84. tecks2.TextColor3 = Color3.new(0,0,0)
  85. tecks2.TextStrokeColor3 = Color3.new(0,0,255)
  86. tecks2.Size = UDim2.new(1,0,0.5,0)
  87. local tecks3 = Instance.new("TextLabel",naeeym2)
  88. tecks3.BackgroundTransparency = 1
  89. tecks3.BorderSizePixel = 0
  90. tecks3.Text = ""
  91. tecks3.Font = "Fantasy"
  92. tecks3.TextSize = 30
  93. tecks3.TextStrokeTransparency = 0
  94. tecks3.TextColor3 = Color3.new(255,255,0)
  95. tecks3.TextStrokeColor3 = Color3.new(0,255,0)
  96. tecks3.Size = UDim2.new(1,0,0.5,0)
  97. for i = 1,string.len(text),1 do
  98.  
  99. tecks2.Text = string.sub(text,1,i)
  100. tecks3.Text = string.sub(text,1,i)
  101. wait(0.01)
  102. end
  103. wait(2)
  104. for i = 1, 50 do
  105.  
  106. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  107. tecks2.Rotation = tecks2.Rotation - .8
  108. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  109. tecks2.TextTransparency = tecks2.TextTransparency + .04
  110. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  111. tecks3.Rotation = tecks2.Rotation + .8
  112. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  113. tecks3.TextTransparency = tecks2.TextTransparency + .04
  114. end
  115. naeeym2:Destroy()
  116. end)
  117. chat()
  118.  
  119. end
  120. function onChatted(msg)
  121. chatfunc(msg)
  122.  
  123. end
  124. plr.Chatted:connect(onChatted)
  125.  
  126. function timeFreezeFunction()
  127. function spread(model)
  128. for i,p in pairs(model:GetChildren()) do
  129. spread(p)
  130. if p.Name == "Humanoid" and p:IsDescendantOf(char) == false then
  131. for i,d in pairs(p.Parent:GetChildren()) do
  132. if d:IsA("BasePart") and d:IsDescendantOf(char) == false and d.Name ~= "HumanoidRootPart" and d.Anchored == false and stuffFrozen[d] == nil then
  133. table.insert(stuffFrozen, d)
  134. d.Anchored = true
  135. elseif d:IsA("Sound") and d.IsPlaying then
  136. table.insert(frozenSounds, d)
  137. d:Pause()
  138. end
  139. end
  140. end
  141. end
  142. end
  143. spread(workspace)
  144. end
  145.  
  146. abss = Instance.new("BillboardGui",char)
  147. abss.Size = UDim2.new(10,0,10,0)
  148. abss.Enabled = false
  149. abss.Name = "KONODIODA"
  150. imgl = Instance.new("ImageLabel",abss)
  151. imgl.Position = UDim2.new(0,0,0,0)
  152. imgl.Size = UDim2.new(1,0,1,0)
  153. imgl.Image = "rbxassetid://711463989"
  154. imgl.BackgroundTransparency = 1
  155. imgl.ImageColor3 = Color3.new(0,255,255)
  156. img2 = Instance.new("ImageLabel",abss)
  157. img2.Position = UDim2.new(0,0,0,0)
  158. img2.Size = UDim2.new(1,0,1,0)
  159. img2.Image = "rbxassetid://711463989"
  160. img2.BackgroundTransparency = 1
  161. img2.ImageColor3 = Color3.new(0,255,255)
  162.  
  163.  
  164. animation = Instance.new("Animation",script.Parent) -- Pose Wink Wonk
  165. animation.AnimationId = 'rbxassetid://965558263'
  166.  
  167. local animTrack = humanoid:LoadAnimation(animation)
  168.  
  169.  
  170. --Sounds
  171. --Folder
  172. soundfolder = Instance.new("Model",char)
  173. soundfolder.Name = "Sound Folder"
  174. --Sounds
  175. yes = Instance.new("Sound",soundfolder)
  176. yes.Volume = 30
  177. yes.Name = "Jojo"
  178. yes.Looped = true
  179. yes.SoundId = "rbxassetid://626066737"
  180. NANI = Instance.new("Sound",soundfolder)
  181. NANI.Volume = 30
  182. NANI.Name = "Japanese Screeching"
  183. NANI.Looped = false
  184. NANI.SoundId = "rbxassetid://853224808"
  185. Stop = Instance.new("Sound",soundfolder)
  186. Stop.Volume = 5
  187. Stop.Name = "Oof"
  188. Stop.Looped = false
  189. Stop.SoundId = "rbxassetid://1055792303"
  190. Stop2 = Instance.new("Sound",soundfolder)
  191. Stop2.Volume = 1
  192. Stop2.Name = "Of"
  193. Stop2.Looped = false
  194. Stop2.SoundId = "rbxassetid://840567549"
  195. Stop3 = Instance.new("Sound",soundfolder)
  196. Stop3.Volume = 10
  197. Stop3.Name = "O0f"
  198. Stop3.Looped = false
  199. Stop3.SoundId = "rbxassetid://274699177"
  200. Start = Instance.new("Sound",soundfolder)
  201. Start.Volume = 10
  202. Start.Name = "00f"
  203. Start.Looped = false
  204. Start.SoundId = "rbxassetid://1054568598"
  205. Start2 = Instance.new("Sound",soundfolder)
  206. Start2.Volume = 4
  207. Start2.Name = "HaiDer"
  208. Start2.Looped = false
  209. Start2.SoundId = "rbxassetid://864569342"
  210. Start2d = Instance.new("Sound",soundfolder)
  211. Start2d.Volume = 5
  212. Start2d.Name = "HaiDer2"
  213. Start2d.Looped = false
  214. Start2d.SoundId = "rbxassetid://491887941"
  215. Muda = Instance.new("Sound", soundfolder)
  216. Muda.Volume = 4
  217. Muda.Name = "Muda"
  218. Muda.Looped = false
  219. Muda.SoundId = "rbxassetid://1246016402"
  220. -------------------------------------------
  221.  
  222. wait(1)
  223.  
  224. local rm = Instance.new("Motor", torso)
  225. rm.C0 = CFrame.new(1.5, 0.5, 0)
  226. rm.C1 = CFrame.new(0, 0.5, 0)
  227. rm.Part0 = torso
  228. rm.Part1 = ra
  229. rm.Name = 'Right Shoulder'
  230.  
  231. local lm = Instance.new("Motor", torso)
  232. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  233. lm.C1 = CFrame.new(0, 0.5, 0)
  234. lm.Part0 = torso
  235. lm.Part1 = la
  236. lm.Name = 'Left Shoulder'
  237.  
  238. local rlegm = Instance.new("Motor", torso)
  239. rlegm.C0 = CFrame.new(0.5, -1, 0)
  240. rlegm.C1 = CFrame.new(0, 1, 0)
  241. rlegm.Part0 = torso
  242. rlegm.Part1 = rl
  243. local llegm = Instance.new("Motor", torso)
  244. llegm.C0 = CFrame.new(-0.5, -1, 0)
  245. llegm.C1 = CFrame.new(0, 1, 0)
  246. llegm.Part0 = torso
  247. llegm.Part1 = ll
  248.  
  249. rj.C0 = CFrame.new()
  250. rj.C1 = CFrame.new()
  251.  
  252. neck.C0 = CFrame.new(0, 1, 0)
  253. neck.C1 = CFrame.new(0, -0.5, 0)
  254.  
  255. local speed = 0.3
  256. local angle = 0
  257. local anglespeed = 1
  258. rsc0 = rm.C0
  259. lsc0 = lm.C0
  260. llc0 = llegm.C0
  261. rlc0 = rlegm.C0
  262. rootc0 = rj.C0
  263. neckc0 = neck.C0
  264. ----------------------------------------------
  265. wait()
  266. function descend(obj,class,func)
  267. for i,v in pairs(obj:GetChildren()) do
  268. if v:IsA(class) then
  269. func(v)
  270. end
  271. descend(v,class,func)
  272. end
  273. end
  274. local pls = game:GetService("Players").LocalPlayer
  275. function initiateCharacter(char)
  276. if not char then return end
  277. wait()
  278. descend(char,"BasePart",function(obj)
  279. obj.Anchored = false
  280. obj.Changed:connect(function()
  281. if obj.Anchored then
  282. obj.Anchored = false
  283. end
  284. end)
  285. end)
  286. descend(char,"Humanoid",function(obj)
  287. obj.WalkSpeed = 16
  288. obj.Changed:connect(function()
  289. if obj.WalkSpeed == 0 then
  290. obj.WalkSpeed = 16
  291. end
  292. end)
  293. end)
  294. end
  295. initiateCharacter(pls.Character)
  296. pls.CharacterAdded:connect(function(c)
  297. initiateCharacter(c)
  298. end)
  299. ----------------------------------------------
  300. mouse.KeyDown:connect(function(key)
  301. if key == "m" then
  302. yes:Play()
  303. wait(2)
  304. end
  305.  
  306. end)
  307.  
  308. mouse.KeyDown:connect(function(key)
  309. if key == "x" then
  310. yes:Stop()
  311. WhatKindOfDioIsThis:Stop()
  312. wait(2)
  313. end
  314.  
  315. end)
  316.  
  317.  
  318. end
  319.  
  320. end)
  321.  
  322.  
  323. mouse.KeyDown:connect(function(key)
  324. if key == "v" then
  325. yes:Play()
  326. wait(2)
  327. end
  328.  
  329. end)
  330.  
  331.  
  332. mouse.KeyDown:connect(function(key)
  333. if key == "g" then
  334. NANI:Play()
  335. chatfunc("CHO I TOMO IMO MANUHINGA . . . . . HINJAKU HINJAKU!")
  336. head.face.Texture = "rbxassetid://605435926"
  337. wait(0.1)
  338. head.face.Texture = "rbxassetid://849833250"
  339. wait(0.1)
  340. head.face.Texture = "rbxassetid://605435926"
  341. wait(0.1)
  342. head.face.Texture = "rbxassetid://849833250"
  343. wait(0.1)
  344. head.face.Texture = "rbxassetid://605435926"
  345. wait(0.2)
  346. head.face.Texture = "rbxassetid://849833250"
  347. wait(0.1)
  348. head.face.Texture = "rbxassetid://849833250"
  349. wait(0.1)
  350. head.face.Texture = "rbxassetid://605435926"
  351. wait(0.2)
  352. head.face.Texture = "rbxassetid://849833250"
  353. wait(0.1)
  354. head.face.Texture = "rbxassetid://605435926"
  355. wait(0.1)
  356. head.face.Texture = "rbxassetid://849833250"
  357. wait(0.1)
  358. head.face.Texture = "rbxassetid://605435926"
  359. wait(0.1)
  360. head.face.Texture = "rbxassetid://849833250"
  361. wait(0.1)
  362. head.face.Texture = "rbxassetid://605435926"
  363. wait(0.2)
  364. head.face.Texture = "rbxassetid://849833250"
  365. wait(0.1)
  366. head.face.Texture = "rbxassetid://849833250"
  367. wait(0.1)
  368. head.face.Texture = "rbxassetid://605435926"
  369. wait(0.2)
  370. head.face.Texture = "rbxassetid://849833250"
  371. wait(0.2)
  372. head.face.Texture = "rbxassetid://396389196"
  373. wait(1)
  374. head.face.Texture = "rbxassetid://605435926"
  375. wait(0.1)
  376. head.face.Texture = "rbxassetid://849833250"
  377. wait(0.1)
  378. head.face.Texture = "rbxassetid://605435926"
  379. wait(0.1)
  380. head.face.Texture = "rbxassetid://849833250"
  381. wait(0.1)
  382. head.face.Texture = "rbxassetid://605435926"
  383. wait(0.2)
  384. head.face.Texture = "rbxassetid://849833250"
  385. wait(0.1)
  386. head.face.Texture = "rbxassetid://849833250"
  387. wait(0.1)
  388. head.face.Texture = "rbxassetid://605435926"
  389. wait(0.2)
  390. head.face.Texture = "rbxassetid://849833250"
  391. wait(0.1)
  392. head.face.Texture = "rbxassetid://605435926"
  393. wait(0.1)
  394. head.face.Texture = "rbxassetid://849833250"
  395. wait(0.1)
  396. head.face.Texture = "rbxassetid://605435926"
  397. wait(0.1)
  398. head.face.Texture = "rbxassetid://849833250"
  399. wait(0.1)
  400. head.face.Texture = "rbxassetid://605435926"
  401. wait(0.5)
  402. head.face.Texture = "rbxassetid://396389196"
  403. wait(0.1)
  404. end
  405.  
  406. end)
  407.  
  408. canworld = true
  409. mouse.KeyDown:connect(function(key)
  410. if key == "t" and not frozen then
  411. if canworld == false then return end
  412. if canworld then
  413. canworld = false
  414. Stop:Play()
  415. chatfunc("ZA WARUDO!!!")
  416. head.face.Texture = "rbxassetid://605435926"
  417. wait(0.1)
  418. head.face.Texture = "rbxassetid://849833250"
  419. wait(0.3)
  420. head.face.Texture = "rbxassetid://605435926"
  421. wait(0.1)
  422. head.face.Texture = "rbxassetid://849833250"
  423. wait(0.3)
  424. head.face.Texture = "rbxassetid://605435926"
  425. wait(0.1)
  426. head.face.Texture = "rbxassetid://849833250"
  427. wait(0.1)
  428. head.face.Texture = "rbxassetid://605435926"
  429. wait(0.1)
  430. head.face.Texture = "rbxassetid://396389196"
  431. wait(0.8)
  432. wait(1.5)
  433. Stop3:Play()
  434. head.face.Texture = "rbxassetid://605435926"
  435. wait(0.1)
  436. head.face.Texture = "rbxassetid://849833250"
  437. wait(0.1)
  438. head.face.Texture = "rbxassetid://605435926"
  439. wait(0.1)
  440. head.face.Texture = "rbxassetid://849833250"
  441. wait(0.1)
  442. head.face.Texture = "rbxassetid://849833250"
  443. wait(0.1)
  444. head.face.Texture = "rbxassetid://605435926"
  445. wait(0.1)
  446. head.face.Texture = "rbxassetid://849833250"
  447. wait(0.4)
  448. head.face.Texture = "rbxassetid://605435926"
  449. wait(0.1)
  450. head.face.Texture = "rbxassetid://396389196"
  451.  
  452. local function spawnpart()
  453. sphere = Instance.new("Part")
  454. game.Debris:AddItem(sphere,3)
  455. local sm = Instance.new("SpecialMesh", sphere)
  456. sm.MeshType = "Sphere"
  457. sphere.Transparency = 0.5
  458. sphere.Anchored = true
  459. sphere.CanCollide = false
  460. sphere.Material = "Neon"
  461. sphere.BrickColor = BrickColor.new("Black")
  462. end
  463.  
  464. local function weld(lol)
  465. local weld = Instance.new("Weld", plr.Character.Torso)
  466. weld.Part0 = plr.Character.Torso
  467. weld.Part1 = lol
  468. weld.C0 = plr.Character.Torso.CFrame:inverse()
  469. weld.C1 = lol.CFrame:inverse()
  470. end
  471. wait()
  472. spawnpart()
  473.  
  474. weld(sphere)
  475. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  476. cce.Saturation = -5
  477. knifeSpeed = 0
  478. --game.Debris:AddItem(cce, 5)
  479. sphere.Parent = char.Torso
  480. for i = 1,3 do
  481. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  482. wait()
  483. end
  484. wait()
  485. sphere:Destroy()
  486. BeeSpeed = 0
  487. frozen = true
  488. cce.Saturation = -0.1
  489. wait(0.3)
  490. cce.Saturation = -0.2
  491. wait(0.3)
  492. cce.Saturation = -0.3
  493. wait(0.2)
  494. cce.Saturation = -1.5
  495. wait()
  496.  
  497. canworld = true
  498.  
  499. end
  500. end
  501. end
  502. )
  503.  
  504. mouse.KeyDown:connect(function(key)
  505. key = key:lower()
  506. if key == "y" and frozen and canworld then
  507. canworld = false
  508. chatfunc("Time continues moving again.")
  509. Start:Play()
  510. head.face.Texture = "rbxassetid://605435926"
  511. wait(0.1)
  512. head.face.Texture = "rbxassetid://849833250"
  513. wait(0.1)
  514. head.face.Texture = "rbxassetid://605435926"
  515. wait(0.2)
  516. head.face.Texture = "rbxassetid://849833250"
  517. wait(0.1)
  518. head.face.Texture = "rbxassetid://605435926"
  519. wait(0.1)
  520. head.face.Texture = "rbxassetid://849833250"
  521. wait(0.1)
  522. head.face.Texture = "rbxassetid://849833250"
  523. wait(0.1)
  524. head.face.Texture = "rbxassetid://605435926"
  525. wait(0.1)
  526. head.face.Texture = "rbxassetid://849833250"
  527. wait(0.1)
  528. head.face.Texture = "rbxassetid://605435926"
  529. wait(0.1)
  530. head.face.Texture = "rbxassetid://849833250"
  531. wait(0.1)
  532. head.face.Texture = "rbxassetid://605435926"
  533. wait(0.1)
  534. head.face.Texture = "rbxassetid://396389196"
  535. wait(0.5)
  536. Start2:Play()
  537. Start2d:Play()
  538. wait()
  539. BeeSpeed = 1
  540. cce.Saturation = -1.3
  541. wait(0.5)
  542. BeeSpeed = 1.2
  543. cce.Saturation = -0.5
  544. wait(0.5)
  545. BeeSpeed = 1.4
  546. cce.Saturation = -0.4
  547. wait(0.3)
  548. BeeSpeed = 1.5
  549. cce.Saturation = -0.2
  550. wait(0.2)
  551. cce.Saturation = 0
  552.  
  553. for i, v in pairs(game.Players:GetChildren()) do
  554. t = v.Character:FindFirstChild("Torso")
  555. if t then
  556. t.Anchored = false
  557. end
  558. RA = v.Character:FindFirstChild("Right Arm")
  559. if RA then
  560. RA.Anchored = false
  561. end
  562. LA = v.Character:FindFirstChild("Left Arm")
  563. if LA then
  564. LA.Anchored = false
  565. end
  566. RL = v.Character:FindFirstChild("Right Leg")
  567. if RL then
  568. RL.Anchored = false
  569. end
  570. LL = v.Character:FindFirstChild("Left Leg")
  571. if LL then
  572. LL.Anchored = false
  573. end
  574. end
  575. BeeSpeed = 100
  576. knifeSpeed = 150
  577. canworld = true
  578. frozen = false
  579. tecks2.Text = plr.Name
  580.  
  581. end
  582. end)
  583.  
  584. humanoid.Died:connect(function()
  585. frozen = false
  586. if cce then
  587. cce:Remove()
  588. end
  589. end)
  590. mouse.KeyDown:connect(function(k)
  591. if string.byte(k) == 48 then
  592. humanoid.WalkSpeed = 24
  593. end
  594. end)
  595.  
  596. mouse.KeyUp:connect(function(k)
  597. if string.byte(k) == 48 then
  598. humanoid.WalkSpeed = 16
  599. end
  600. end)
  601.  
  602. local action = 'None'
  603. plr.Chatted:connect(function(msg)
  604. if msg == '/e dance' or msg == '/emote dance' then
  605. action = 'Dance'
  606. end
  607. if msg == '/e wrry' or msg == '/emote wrry' then
  608. action = 'Wrrrry'
  609. end
  610. end)
  611.  
  612.  
  613. local dance_move_wait = 0
  614.  
  615. game:service'RunService'.RenderStepped:connect(function()
  616. rm.MaxVelocity = 0
  617. lm.MaxVelocity = 0
  618. rm.DesiredAngle = 0
  619. rm.CurrentAngle = 0
  620. lm.DesiredAngle = 0
  621. lm.CurrentAngle = 0
  622. angle = (angle % 100) + anglespeed/10
  623. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  624. local rscf = rsc0
  625. local lscf = lsc0
  626. local rlcf = rlc0
  627. local llcf = llc0
  628. local rjcf = rootc0
  629. local ncf = neckc0
  630. local ray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  631. local hitz, enz = workspace:FindPartOnRay(ray, char)
  632. for i,object in pairs(char:children()) do
  633. if object:IsA("Tool") then
  634. tool = true
  635. if not debounce then
  636. for x,value in pairs(object:children()) do
  637. if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
  638. debounce = true
  639. coroutine.wrap(function()
  640. slashing = true
  641. wait(.15)
  642. slashing = false
  643. debounce = false
  644. end)()
  645. value:Destroy()
  646. end
  647. end
  648. end
  649. elseif not object:IsA'Tool' then
  650. tool = false
  651. end
  652. end
  653. if action == 'Dance' then
  654. anglespeed = 2
  655. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  656. rjcf = rootc0 * CFrame.Angles(math.rad(2), math.sin(angle)*.15, 0)
  657. lscf = lsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2-math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  658. rscf = rsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2+math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  659. rlcf = rlc0 * CFrame.new(0, .3 + math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0)
  660. llcf = llc0 * CFrame.new(0, .3 - math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0)
  661. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  662. else
  663. action = 'None'
  664. end
  665. elseif action == 'prepareHump' then
  666. --animations by ethan
  667. ncf = neckc0 * CFrame.Angles(math.rad(40), 0, 0)
  668. rjcf = rootc0 * CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(-45), 0, 0)
  669. rscf = rsc0 * CFrame.Angles(math.rad(45) + math.rad(90), 0, 0)
  670. lscf = lsc0 * CFrame.Angles(math.rad(45) + math.rad(90), 0, 0)
  671. rlcf = rlc0 * CFrame.Angles(math.rad(90), 0, 0)
  672. llcf = llc0 * CFrame.Angles(math.rad(90), 0, 0)
  673. elseif action == 'Hump' then
  674. --animations by ethan
  675. ncf = neckc0 * CFrame.Angles(math.rad(-10), 0, 0)
  676. rjcf = rootc0 * CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(45), 0, 0)
  677. rscf = rsc0 * CFrame.Angles(math.rad(-90), 0, math.rad(10))
  678. lscf = lsc0 * CFrame.Angles(math.rad(-90), 0, math.rad(-10))
  679. rlcf = rlc0 * CFrame.Angles(math.rad(-90), 0, math.rad(10))
  680. llcf = llc0 * CFrame.Angles(math.rad(-90), 0, math.rad(-10))
  681. elseif action == "Muda1" then
  682.  
  683. ncf = neckc0 * CFrame.Angles(0, math.rad(-30), 0)
  684. rjcf = rootc0 * CFrame.Angles(0, math.rad(45), 0)
  685. rscf = rsc0 * CFrame.Angles(math.rad(90), 0, math.rad(10))
  686. lscf = lsc0 * CFrame.Angles(math.rad(-90), 0, math.rad(-10))
  687. rlcf = rlc0 * CFrame.Angles(math.rad(45), 0, math.rad(10))
  688. llcf = llc0 * CFrame.Angles(math.rad(-45), 0, math.rad(-10))
  689. elseif action == "Muda2" then
  690.  
  691. ncf = neckc0 * CFrame.Angles(0, math.rad(30), 0)
  692. rjcf = rootc0 * CFrame.Angles(0, math.rad(-45), 0)
  693. rscf = rsc0 * CFrame.Angles(math.rad(-90), 0, math.rad(10))
  694. lscf = lsc0 * CFrame.Angles(math.rad(90), 0, math.rad(-10))
  695. rlcf = rlc0 * CFrame.Angles(math.rad(-45), 0, math.rad(10))
  696. llcf = llc0 * CFrame.Angles(math.rad(45), 0, math.rad(-10))
  697. elseif action == 'Wrrrry' then
  698. anglespeed = 1+math.random()
  699. dance_move_wait = (dance_move_wait%40) + 1/60
  700. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  701. if dance_move_wait <= 20 then
  702. rjcf = rootc0 * CFrame.new(0, -.2, .6) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0)
  703. lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + -math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  704. rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  705. rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, .1)
  706. llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, -.1)
  707. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  708. elseif dance_move_wait > 20 then
  709. rjcf = rootc0 * CFrame.new(0, -.2, -.6) * CFrame.Angles(-math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0)
  710. lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  711. rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + -math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  712. rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, .1)
  713. llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, -.1)
  714. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  715. end
  716.  
  717. else
  718. action = 'None'
  719. end
  720. elseif not hitz and (torso.Velocity.y > 1 or torso.Velocity.y < -1) then
  721. anglespeed = 3
  722. rjcf = rootc0 * CFrame.Angles(math.rad(5), 0, 0)
  723. rscf = rsc0 * CFrame.Angles(math.rad(130) + math.sin(angle)*.8, 0, .15)
  724. lscf = lsc0 * CFrame.Angles(math.rad(130) + -math.sin(angle)*.8, 0, -.15)
  725. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(angle)*.3, -.3 + -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + -math.sin(angle)*1, 0, 0)
  726. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.3 - -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + math.sin(angle)*1, 0, 0)
  727. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.8, 0)
  728. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  729. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  730. anglespeed = 2
  731. rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0)
  732. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.7, 0, .05)
  733. lscf = lsc0 * CFrame.Angles(-math.sin(angle)*1.7, 0, -.05)
  734. rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*1.4, 0, 0)
  735. llcf = llc0 * CFrame.Angles(math.sin(angle)*1.4, 0, 0)
  736. ncf = neckc0 * CFrame.Angles(-math.rad(30) + math.abs(math.sin(angle))*.95, math.sin(angle)*.8, 0)
  737. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 20 then
  738. anglespeed = 2.5
  739. rjcf = rootc0 * CFrame.new(0, -.3 + math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(-math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0)
  740. rscf = rsc0 * CFrame.new(0, math.cos(angle)*.5, math.sin(angle)*.5) * CFrame.Angles(math.cos(angle)*2.8, 0, math.abs(math.sin(angle))*.5)
  741. lscf = lsc0 * CFrame.new(0, -math.cos(angle)*.5, -math.sin(angle)*.5) * CFrame.Angles(-math.cos(angle)*2.8, 0, -math.abs(math.sin(angle))*.5)
  742. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.4, 0, math.rad(.5))
  743. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.4, 0, -math.rad(.5))
  744. ncf = neckc0 * CFrame.Angles(math.cos(angle), math.sin(angle), 0)
  745. end
  746. if tool then
  747. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  748. if slashing then
  749. rscf = rsc0 * CFrame.Angles(-math.pi/12, 0, -.1)
  750. end
  751. end
  752. rm.C0 = clerp(rm.C0,rscf,speed)
  753. lm.C0 = clerp(lm.C0,lscf,speed)
  754. rj.C0 = clerp(rj.C0,rjcf,speed)
  755. neck.C0 = clerp(neck.C0,ncf,speed)
  756. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  757. llegm.C0 = clerp(llegm.C0,llcf,speed)
  758. if frozen then
  759. timeFreezeFunction()
  760. else
  761.  
  762. for i,p in pairs(stuffFrozen) do
  763. p.Anchored = false
  764. end
  765. for i,s in pairs(frozenSounds) do
  766. s:Resume()
  767. end
  768. stuffFrozen = {}
  769. frozenSounds = {}
  770. end
  771. end)
  772.  
  773. function punchDamage()
  774. coroutine.resume(coroutine.create(function()
  775. function Damage(model)
  776. for i,s in pairs(model:GetChildren()) do
  777. Damage(s)
  778. if s.Name == "HumanoidRootPart" or s.Name == "Torso" and s:IsA("BasePart") then
  779. if (rootpart.Position - s.Position).magnitude < 4 then
  780. local vichum = s.Parent:FindFirstChild("Humanoid")
  781. if vichum and vichum ~= humanoid then
  782. local punch = Instance.new("Sound", soundfolder)
  783. punch.Volume = 3
  784. punch.Name = "POOCH"
  785. punch.SoundId = "rbxassetid://511340819"
  786. punch:Play()
  787. game:GetService("Debris"):AddItem(punch, 2)
  788. repeat wait() until not frozen
  789. if vel then
  790. vel:Remove()
  791. end
  792.  
  793. vel = Instance.new("BodyVelocity", s)
  794. vel.Velocity = CFrame.new(s.CFrame.p, rootpart.CFrame.lookVector * 120).lookVector
  795. game:GetService("Debris"):AddItem(vel, 0.25)
  796.  
  797. vichum:TakeDamage(15 +(math.random(-10, 10)/10))
  798. end
  799. end
  800. end
  801. end
  802. end
  803.  
  804. Damage(workspace)
  805. end))
  806. end
  807.  
  808. mouse.KeyDown:connect(function(k)
  809. if k == "q" and not humping then
  810.  
  811. humping = true
  812. action = 'prepareHump'
  813. wait(0.25)
  814. action = 'Hump'
  815. wait(0.03)
  816. local knife = Instance.new("Part", char)
  817. knife.Size = Vector3.new(0.2, 0.4, 2)
  818. knife.CanCollide = false
  819. knife.Anchored = false
  820. knife:BreakJoints()
  821. knife.CFrame = rootpart.CFrame * CFrame.new(0, -1, -2)
  822. knife.CFrame = CFrame.new(knife.Position, mouse.Hit.p) * CFrame.new(math.random(-10, 10)/100, math.random(-10, 10)/100, math.random(-10, 10)/100)
  823. knife.BrickColor = BrickColor.new("Buttermilk")
  824. local knifeMesh = Instance.new("SpecialMesh", knife)
  825. knifeMesh.MeshId = "rbxassetid://202083123"
  826. local vel = Instance.new("BodyVelocity", knife)
  827. knife.Touched:connect(function(part)
  828. if part.Parent ~= nil then
  829. local vichum = part.Parent:FindFirstChild("Humanoid")
  830. if vichum and vichum ~= humanoid then
  831. local stabbedKnife = knife:Clone()
  832. stabbedKnife.Parent = workspace
  833. stabbedKnife:WaitForChild("BodyVelocity"):Remove()
  834. local stabweld = Instance.new("Weld", stabbedKnife)
  835. stabweld.Part0 = part
  836. stabweld.Part1 = stabbedKnife
  837. stabweld.C0 = part.CFrame:toObjectSpace(knife.CFrame)
  838. knife:Destroy()
  839. repeat wait() until not frozen
  840. game:GetService("Debris"):AddItem(stabbedKnife, 10)
  841. vichum:TakeDamage(16, 24)
  842. end
  843. end
  844. end)
  845. coroutine.wrap(function()
  846. game:GetService("RunService").RenderStepped:connect(function()
  847. vel.Velocity = knife.CFrame.lookVector * knifeSpeed
  848. if (knife.Position - rootpart.Position).magnitude > 500 then
  849.  
  850. knife:Destroy()
  851. end
  852. end)
  853. end)()
  854.  
  855. wait(0.47)
  856. humping = false
  857. action = 'None'
  858. elseif k == "e" and not mudaing then
  859. speed = 0.8
  860. Muda:Play()
  861. mudaing = true
  862. for i = 1,39 do
  863. action = "Muda1"
  864. punchDamage()
  865. wait(0.03)
  866. action = "Muda2"
  867. punchDamage()
  868. wait(0.03)
  869. end
  870.  
  871.  
  872. wait()
  873. action = 'None'
  874. speed = 0.3
  875. mudaing = false
  876. end
  877. end)
Advertisement
Add Comment
Please, Sign In to add comment