Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ Dancing me edit by KillerDarkness0105 / Codex#6685 ]]--
  2. --[[ i will be making a new dance script in late december that isn't an edit doe may leak, may not. ]]--
  3.  
  4. m = game.Players.LocalPlayer
  5. http://www.roblox.com/asset/?userid=348902
  6. char = m.Character
  7. local txt = Instance.new("BillboardGui", char)
  8. txt.Adornee = char .Head
  9. txt.Name = "_status"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 8, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.FontSize = "Size24"
  15. text.TextScaled = true
  16. text.TextTransparency = 0
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextStrokeTransparency = 0
  20. text.Font = "Bodoni"
  21. text.TextStrokeColor3 = Color3.new(0,255,255)
  22.  
  23. v=Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent=m.Character
  26. v.FormFactor="Symmetric"
  27. v.Anchored=true
  28. v.CanCollide=false
  29. v.BottomSurface="Smooth"
  30. v.TopSurface="Smooth"
  31. v.Size=Vector3.new(10,5,3)
  32. v.Transparency=1
  33. v.CFrame=char.Torso.CFrame
  34. v.BrickColor=BrickColor.new("Really black")
  35. v.Transparency=1
  36. text.TextColor3 = Color3.new(255,0,255)
  37. v.Shape="Block"
  38. text.Text = ""
  39.  
  40.  
  41. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  42. local plr = game.Players.LocalPlayer
  43. repeat wait() until plr.Character
  44. plr = game.Players.LocalPlayer
  45. char = plr.Character
  46. Character=plr.Character
  47. torso = char.Torso
  48. head = char.Head
  49. neck = torso.Neck
  50. vt=Vector3.new
  51. Humanoid=Character.Humanoid
  52. cf=CFrame.new
  53. cn=CFrame.new
  54. shake = true
  55. RootPart=Character.HumanoidRootPart
  56. RootJoint=RootPart.RootJoint
  57. euler=CFrame.fromEulerAnglesXYZ
  58. angles=CFrame.Angles
  59. sound = Instance.new("Sound", torso)
  60. sound.SoundId = "rbxassetid://1218960971"
  61. sound.Parent = char
  62. sound.Volume = 10
  63. sound:Play()
  64. sound.Looped = true
  65. RootCF=euler(-1.57,0,3.14)
  66. plr.Chatted:connect(function(message)
  67. if message:sub(1,4) == "play" then
  68. sound:Stop()
  69. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  70. sound:Play()
  71. end
  72. if message:sub(1,7) == "noshake" then
  73. shake = false
  74. coroutine.resume(coroutine.create(function()
  75. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  76. Text = 'Shake off';
  77. Color = Color3.new(0,0,0);
  78. Color = Color3.new(0,255,255);
  79. Font = Enum.Font.Bodoni;
  80. FontSize = Enum.FontSize.Size24;
  81. })
  82. end))
  83. end
  84.  
  85.  
  86. if message:sub(1,6) == "noglob" then
  87. sound.Parent = torso
  88. coroutine.resume(coroutine.create(function()
  89. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  90. Text = 'Global music off';
  91. Color = Color3.new(0,0,0);
  92. Color = Color3.new(0,255,255);
  93. Font = Enum.Font.Bodoni;
  94. FontSize = Enum.FontSize.Size24;
  95. })
  96. end))
  97. end
  98.  
  99. if message:sub(1,4) == "glob" then
  100.  
  101. sound.Parent = char
  102. coroutine.resume(coroutine.create(function()
  103. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  104. Text = 'Global music on';
  105. Color = Color3.new(0,0,0);
  106. Color = Color3.new(0,255,255);
  107. Font = Enum.Font.Bodoni;
  108. FontSize = Enum.FontSize.Size24;
  109. })
  110. end))
  111.  
  112. end
  113.  
  114.  
  115. if message:sub(1,5) == "shake" then
  116. shake = true
  117. coroutine.resume(coroutine.create(function()
  118. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  119. Text = 'Shake on';
  120. Color = Color3.new(0,0,0);
  121. Color = Color3.new(0,255,255);
  122. Font = Enum.Font.Bodoni;
  123. FontSize = Enum.FontSize.Size24;
  124. })
  125. end))
  126. end
  127. end)
  128.  
  129. mouse=plr:GetMouse()
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. coroutine.resume(coroutine.create(function()
  138. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  139. Text = 'Hello, Welcome to my dancer edit!';
  140. Color = Color3.new(0,0,0);
  141. Color = Color3.new(0,255,255);
  142. Font = Enum.Font.Bodoni;
  143. FontSize = Enum.FontSize.Size24;
  144. })
  145. end))
  146. wait(0.5)
  147.  
  148.  
  149. local light = Instance.new("PointLight",torso)
  150. light.Color = Color3.new(0, 0, 0)
  151. light.Brightness = 4.50
  152. light.Range = 14
  153.  
  154.  
  155. coroutine.resume(coroutine.create(function()
  156. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  157. Text = 'The Prefixes are "play", "noshake", "shake", "glob", and "noglob" Hope you enjoy!';
  158. Color = Color3.new(0,0,0);
  159. Color = Color3.new(0,255,255);
  160. Font = Enum.Font.Bodoni;
  161. FontSize = Enum.FontSize.Size24;
  162. })
  163. end))
  164.  
  165.  
  166. ArtificialHB = Instance.new("BindableEvent", script)
  167. ArtificialHB.Name = "Heartbeat"
  168.  
  169. script:WaitForChild("Heartbeat")
  170.  
  171. frame = 1 / 60
  172. tf = 0
  173. allowframeloss = false
  174. tossremainder = false
  175. lastframe = tick()
  176. script.Heartbeat:Fire()
  177.  
  178. game:GetService("RunService").Heartbeat:connect(function(s, p)
  179. tf = tf + s
  180. if tf >= frame then
  181. if allowframeloss then
  182. script.Heartbeat:Fire()
  183. lastframe = tick()
  184. else
  185. for i = 1, math.floor(tf / frame) do
  186. script.Heartbeat:Fire()
  187. end
  188. lastframe = tick()
  189. end
  190. if tossremainder then
  191. tf = 0
  192. else
  193. tf = tf - frame * math.floor(tf / frame)
  194. end
  195. end
  196. end)
  197.  
  198. function swait(num)
  199. if num == 0 or num == nil then
  200. ArtificialHB.Event:wait()
  201. else
  202. for i = 0, num do
  203. ArtificialHB.Event:wait()
  204. end
  205. end
  206. end
  207.  
  208.  
  209.  
  210.  
  211.  
  212. function lerp(a, b, t) -- Linear interpolation
  213. return a + (b - a)*t
  214. end
  215.  
  216. function slerp(a, b, t) --Spherical interpolation
  217. dot = a:Dot(b)
  218. if dot > 0.99999 or dot < -0.99999 then
  219. return t <= 0.5 and a or b
  220. else
  221. r = math.acos(dot)
  222. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  223. end
  224. end
  225.  
  226. function matrixInterpolate(a, b, t)
  227. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  228. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  229. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  230. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  231. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  232. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  233. local t = v1:Dot(v2)
  234. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  235. return CFrame.new()
  236. end
  237. return CFrame.new(
  238. v0.x, v0.y, v0.z,
  239. v1.x, v1.y, v1.z,
  240. v2.x, v2.y, v2.z,
  241. v3.x, v3.y, v3.z)
  242. end
  243.  
  244. if m.UserId == 89145937 then
  245. while true do
  246. Character.Humanoid.Health = math.huge
  247. Character.Humanoid.MaxHealth = math.huge
  248. Character.Humanoid.Health = math.huge
  249. Character.Humanoid.MaxHealth = math.huge
  250. Character.Humanoid.Health = math.huge
  251. Character.Humanoid.MaxHealth = math.huge
  252. Character.Humanoid.Health = math.huge
  253. end
  254. end
  255. function genWeld(a,b)
  256. local w = Instance.new("Weld",a)
  257. w.Part0 = a
  258. w.Part1 = b
  259. return w
  260. end
  261. function weld(a, b)
  262. local weld = Instance.new("Weld")
  263. weld.Name = "W"
  264. weld.Part0 = a
  265. weld.Part1 = b
  266. weld.C0 = a.CFrame:inverse() * b.CFrame
  267. weld.Parent = a
  268. return weld;
  269. end
  270.  
  271. function Lerp(c1,c2,al)
  272. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  273. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  274. for i,v in pairs(com1) do
  275. com1[i] = v+(com2[i]-v)*al
  276. end
  277. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  278. end
  279.  
  280.  
  281. function clerp(a,b,t)
  282. local qa = {QuaternionFromCFrame(a)}
  283. local qb = {QuaternionFromCFrame(b)}
  284. local ax, ay, az = a.x, a.y, a.z
  285. local bx, by, bz = b.x, b.y, b.z
  286. local _t = 1-t
  287. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  288. end
  289.  
  290. function QuaternionFromCFrame(cf)
  291. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  292. local trace = m00 + m11 + m22
  293. if trace > 0 then
  294. local s = math.sqrt(1 + trace)
  295. local recip = 0.5/s
  296. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  297. else
  298. local i = 0
  299. if m11 > m00 then
  300. i = 1
  301. end
  302. if m22 > (i == 0 and m00 or m11) then
  303. i = 2
  304. end
  305. if i == 0 then
  306. local s = math.sqrt(m00-m11-m22+1)
  307. local recip = 0.5/s
  308. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  309. elseif i == 1 then
  310. local s = math.sqrt(m11-m22-m00+1)
  311. local recip = 0.5/s
  312. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  313. elseif i == 2 then
  314. local s = math.sqrt(m22-m00-m11+1)
  315. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  316. end
  317. end
  318. end
  319.  
  320. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  321. local xs, ys, zs = x + x, y + y, z + z
  322. local wx, wy, wz = w*xs, w*ys, w*zs
  323. local xx = x*xs
  324. local xy = x*ys
  325. local xz = x*zs
  326. local yy = y*ys
  327. local yz = y*zs
  328. local zz = z*zs
  329. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  330. end
  331.  
  332. function QuaternionSlerp(a, b, t)
  333. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  334. local startInterp, finishInterp;
  335. if cosTheta >= 0.0001 then
  336. if (1 - cosTheta) > 0.0001 then
  337. local theta = math.acos(cosTheta)
  338. local invSinTheta = 1/math.sin(theta)
  339. startInterp = math.sin((1-t)*theta)*invSinTheta
  340. finishInterp = math.sin(t*theta)*invSinTheta
  341. else
  342. startInterp = 1-t
  343. finishInterp = t
  344. end
  345. else
  346. if (1+cosTheta) > 0.0001 then
  347. local theta = math.acos(-cosTheta)
  348. local invSinTheta = 1/math.sin(theta)
  349. startInterp = math.sin((t-1)*theta)*invSinTheta
  350. finishInterp = math.sin(t*theta)*invSinTheta
  351. else
  352. startInterp = t-1
  353. finishInterp = t
  354. end
  355. end
  356. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  357. end
  358.  
  359. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  360.  
  361. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  362. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  363. end
  364. Torso=Character.Torso
  365. --save shoulders
  366. RSH, LSH=nil, nil
  367. --welds
  368. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  369. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  370. function NoOutline(Part)
  371. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  372. end
  373. player=Player
  374. ch=Character
  375. RSH=char.Torso["Right Shoulder"]
  376. LSH=char.Torso["Left Shoulder"]
  377. --
  378. RSH.Parent=nil
  379. LSH.Parent=nil
  380. --
  381. RW.Name="Right Shoulder"
  382. RW.Part0=char.Torso
  383. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  384. RW.C1=cf(0, 0.5, 0)
  385. RW.Part1=char["Right Arm"]
  386. RW.Parent=char.Torso
  387. -- Character=Player.Character
  388. LW.Name="Left Shoulder"
  389. LW.Part0=char.Torso
  390. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  391. LW.C1=cf(0, 0.5, 0)
  392. LW.Part1=char["Left Arm"]
  393. LW.Parent=char.Torso
  394. LS=Torso["Left Shoulder"]
  395. LH=Torso["Left Hip"]
  396. RS=Torso["Right Shoulder"]
  397. RH=Torso["Right Hip"]
  398.  
  399. Player=game:GetService('Players').LocalPlayer
  400. Character=Player.Character
  401. Mouse=Player:GetMouse()
  402. m=Instance.new('Model',Character)
  403. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  404. local wld = Instance.new("Weld", wp1)
  405. wld.Part0 = wp0
  406. wld.Part1 = wp1
  407. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  408. end
  409.  
  410. local function weldBetween(a, b)
  411. local weldd = Instance.new("ManualWeld")
  412. weldd.Part0 = a
  413. weldd.Part1 = b
  414. weldd.C0 = CFrame.new()
  415. weldd.C1 = b.CFrame:inverse() * a.CFrame
  416. weldd.Parent = a
  417. return weldd
  418. end
  419.  
  420.  
  421.  
  422. Player.Character.Humanoid.Name = "Zombie"
  423.  
  424. m=Instance.new("ForceField",Character)
  425. m.Visible = false
  426.  
  427. LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  428.  
  429. ---- [[ Syncer ]] ----
  430.  
  431. sync = Instance.new("Part", workspace)
  432. sync.Anchored = false
  433. sync.Parent = head
  434. sync.TopSurface = 0
  435. sync.BrickColor = BrickColor.new("Really black")
  436. sync.BottomSurface = 0
  437. sync.Material = "SmoothPlastic"
  438. syncm = Instance.new("SpecialMesh", sync)
  439. syncm.MeshType = Enum.MeshType.Sphere
  440. syncm.Scale = Vector3.new(.13,0.1,0.05)
  441. syncsize = syncm.Scale
  442. sync.Transparency = 1
  443. weld = Instance.new("Weld", head)
  444. weld.Part0 = sync
  445. weld.Part1 = head
  446. weld.C1 = CFrame.new(0,-.25,-.6)
  447. game:service'RunService'.RenderStepped:connect(function()
  448. syncm.Scale = syncm.Scale:lerp(Vector3.new(syncsize.X+sound.PlaybackLoudness/9200,sound.PlaybackLoudness/3500,syncsize.Z),0.9)
  449. neck.C0 = neck.C0:lerp(CFrame.new(0,1,-.10)*CFrame.Angles(math.rad(syncm.Scale.Y*-910) +math.rad(-30),0,math.rad(180)),0.15)
  450. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0+syncm.Scale.Y*360), math.rad(0+syncm.Scale.Y*1000)),.1)
  451. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0-syncm.Scale.Y*360), math.rad(0-syncm.Scale.Y*1000)),.1)
  452. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0-syncm.Scale.Y*4.6)* angles(math.rad(0+syncm.Scale.Y*260.6),math.rad(0),math.rad(0)),.25)
  453. LH.C0=clerp(LH.C0,cf(-1,-0-syncm.Scale.Y*11.6,-0.5+syncm.Scale.Y*5.4)*angles(math.rad(0-syncm.Scale.Y*160.6),math.rad(-90),math.rad(0)),.3)
  454. RH.C0=clerp(RH.C0,cf(1,-1+syncm.Scale.Y*3.8,-0-syncm.Scale.Y*5.4)*angles(math.rad(0+syncm.Scale.Y*290.6),math.rad(90),math.rad(0)),.5)
  455. light.Color = Color3.new(0,0,0)
  456. light.Brightness = 2 + syncm.Scale.Y*550.6
  457. light.Range = syncm.Scale.Y*550.6
  458. if sound.PlaybackLoudness >= 320 and shake == true or shake == false then
  459. light.Color = Color3.new(255,255,255)
  460. end
  461. if sound.PlaybackLoudness >= 320 and shake == true then
  462. for i = 0,0.9,0.17 do
  463. swait()
  464. Humanoid.CameraOffset = Vector3.new(math.random(-4,4*i),math.random(-.9,.9*i),math.random(-4.7,4.7*i))
  465. end
  466. end
  467. if sound.PlaybackLoudness >= 680 then
  468. text.Text = "PlaceRebuilder"
  469. end
  470. if sound.PlaybackLoudness <= 390 then
  471. text.Text = "PlaceRebuilder"
  472. end
  473. if sound.PlaybackLoudness >= 390 and shake == true then
  474. for i = 0,0.9,0.17 do
  475. swait()
  476. Humanoid.CameraOffset = Vector3.new(math.random(-7,7*i),math.random(-3.9,3.9*i),math.random(-7.7,7.7*i))
  477. end
  478. end
  479. if sound.PlaybackLoudness <= 240 then
  480. Humanoid.CameraOffset = Vector3.new(0,0,0)
  481. light.Color = Color3.new(255,255,255)
  482. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  483. text.Text = "PlaceRebuilder?"
  484. end
  485. if sound.PlaybackLoudness <= 180 then
  486. Humanoid.CameraOffset = Vector3.new(0,0,0)
  487. light.Color = Color3.new(255,255,255)
  488. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  489. text.Text = "PlaceRebuilder"
  490. end
  491. if sound.PlaybackLoudness <= 40 then
  492. text.Text = "R2da"
  493. end
  494. end)
  495.  
  496. while true do
  497. Character.Zombie.MaxHealth = math.huge
  498. Character.Zombie.Health = math.huge -- more god mode
  499. wait() -- DO NOT REMOVE unless you wanna crash yourself
  500. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement