Dark_EccentricYT

Untitled

Jun 12th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. ---[[mediafire]]---
  2.  
  3.  
  4. ply = game.Players.LocalPlayer
  5. char = ply.Character
  6. name = "Hat"
  7. m = Instance.new("Model",char) m.Name = "clowe"
  8. local originalsubject = Workspace.CurrentCamera.CameraSubject
  9. function upd()
  10. torso = char.Torso
  11. holding = false
  12. shoulder = nil
  13. body = {["Head"] = char.Head,["Torso"] = char.Torso}
  14. body.A = {["R"] = char["Right Arm"], ["L"] = char["Left Arm"]}
  15. body.L = {["R"] = char["Right Leg"], ["L"] = char["Left Leg"]}
  16. end
  17. upd()
  18.  
  19.  
  20. ------TOOOOOLS------
  21. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent)
  22. c = Instance.new("Part",m)
  23. c.TopSurface,c.BottomSurface = 0,0
  24. c.formFactor = "Custom"
  25. c.Size = Vector3.new(x,y,z)
  26. c.BrickColor = BrickColor.new(color)
  27. c.Transparency = transparency
  28. c.CanCollide = cancollide
  29. if anchored ~= nil then c.Anchored = anchored end
  30. if parent ~= nil then c.Parent = parent end
  31. return c
  32.  
  33. end
  34. ,
  35. ["R"] = function(part,x,y,z)
  36. if part == "lleg" then
  37. legw[1].C1 = CFrame.new(.5,-1.5,0)*ang(x,y,z)
  38. elseif part == "rleg" then
  39. legw[2].C1 = CFrame.new(-.5,-1.5,0)*ang(x,y,z)
  40. elseif part == "larm" then
  41. armw[1].C1 = CFrame.new(1.5,.5,0)*ang(x,y,z)
  42. elseif part == "rarm" then
  43. armw[2].C1 = CFrame.new(-1.5,.5,0)*ang(x,y,z)
  44. end
  45. end
  46. ,
  47. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  48. ,
  49. ["W"] = function(part0,part1,x,y,z,rx,ry,rz)
  50. w = Instance.new("Weld",m)
  51. w.Part0,w.Part1 = part0,part1
  52. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  53. return w
  54. end
  55. ,
  56. ["BG"] = function(parent)
  57. local c = Instance.new("BodyGyro",parent)
  58. c.P = 20e+003
  59. c.cframe = parent.CFrame
  60. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  61. return c
  62. end
  63. ,
  64. ["BP"] = function(parent,position)
  65. local bp = Instance.new("BodyPosition",parent)
  66. bp.maxForce = Vector3.new()*math.huge
  67. bp.position = position
  68. return bp
  69. end
  70. ,
  71. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  72. f = Instance.new("Fire",parent)
  73. f.Size = size
  74. f.Heat = heat
  75. if enabled ~= nil then f.Enabled = enabled end
  76. if color ~= nil then f.Color = BrickColor.new(color).Color end
  77. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  78. return f
  79. end
  80. ,
  81. ["Track"] = function(bol,obj,s,t,lt,color,fade)
  82. bol = true
  83. coroutine.resume(coroutine.create(function()
  84. while bol do
  85. old = obj.Position
  86. wait()
  87. new = obj.Position
  88.  
  89. mag = (old-new).magnitude
  90. dist = (old+new)/2
  91.  
  92. local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
  93. Instance.new("CylinderMesh",ray)
  94. ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
  95. if fade ~= nil then
  96. delay(lt,function()
  97. for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
  98. else
  99. game:GetService("Debris"):AddItem(ray,lt)
  100. end
  101. if color ~= nil then ray.BrickColor = BrickColor.new(color) end
  102.  
  103. end
  104. end)) end,
  105.  
  106.  
  107. ["D"] = function(hit) if hit.Parent:findFirstChild("Humanoid") then h=hit.Parent.Humanoid h.Health = h.Health -dmg end end
  108. ,
  109. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  110. if meshid == "cylinder" then
  111. mesh = Instance.new("CylinderMesh",parent)
  112. mesh.Scale = Vector3.new(x,y,z)
  113. return mesh
  114. else
  115. mesh = Instance.new("SpecialMesh",parent)
  116.  
  117. if meshid ~= "sphere" then
  118. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  119. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  120. end
  121.  
  122. else mesh.MeshType = 3 end
  123.  
  124. mesh.Scale = Vector3.new(x,y,z)
  125.  
  126. if meshtexture ~= nil then
  127. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  128. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  129.  
  130. end
  131.  
  132. return mesh
  133. end
  134. end
  135. }
  136. --------------------------------------------------
  137. pcall(function() char:FindFirstChild("Suit"):remove() end)
  138. suit = Instance.new("Model",m) suit.Name = "Suit"
  139. function damage(hit,amount,show,del)
  140. for i,v in pairs(hit:GetChildren()) do
  141. if v:IsA("Humanoid") and v.Parent ~= char then
  142.  
  143. amo = 0
  144. function showa(p)
  145. if show == true then
  146. for i,o in pairs(p:GetChildren()) do
  147. if o:IsA("BillboardGui") and o.Name == "satuttava" then
  148. amo = amo+1
  149. end end
  150.  
  151.  
  152. local bbg = Instance.new("BillboardGui",p)
  153. bbg.Adornee = p.Torso
  154. bbg.Name = "satuttava"
  155. bbg.Size = UDim2.new(2,0,2,0)
  156. bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
  157.  
  158. local box = Instance.new("TextLabel",bbg)
  159. box.Size = UDim2.new(1,0,1,0)
  160. box.BackgroundColor = BrickColor.new("White")
  161. box.Text = amount
  162. box.Position = UDim2.new(0,0,0,0)
  163. box.TextScaled = true
  164. game:GetService("Debris"):AddItem(bbg,.5)
  165. end
  166. end
  167.  
  168. if del ~= nil then
  169. local find = v.Parent:FindFirstChild("hitted")
  170. if find == nil then
  171. v.Health=v.Health - amount
  172. showa(v.Parent)
  173. val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
  174. game:GetService("Debris"):AddItem(val,del)
  175. end
  176. elseif del == nil then
  177. v.Health = v.Health - amount
  178. showa(v.Parent)
  179.  
  180. end
  181.  
  182. end
  183. end
  184. end
  185.  
  186. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  187. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  188. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  189. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  190. ["ramen"] = 19380188}---some meshids
  191. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  192.  
  193. cfn,ang = CFrame.new,CFrame.Angles
  194. v3n = Vector3.new
  195.  
  196. ---MATH SHORTENINGS---
  197. M = {["R"] = function(a,b) return math.random(a,b) end,
  198. ["Cos"] = function(a) return math.cos(a) end,
  199. ["Sin"] = function(a) return math.sin(a) end,
  200. ["D"] = function(a) return math.rad(a) end
  201. }
  202. holding = false
  203.  
  204. function explode()
  205. e = Instance.new("Explosion",Workspace)
  206. e.Position = torso.Position
  207. e.BlastPressure = 0
  208. e.Hit:connect(function(hit) damage(hit.Parent,5,true) end)
  209. end
  210.  
  211.  
  212. function fire()
  213. p = T.P(1,1,1,"Deep blue",0,false,false,suit)
  214. p2 = T.P(1,1,1,"Deep blue",0,false,false,suit)
  215.  
  216. stick = T.P(.5,2,.5,"Nougat",0,false,false,suit)
  217. T.FM(stick,"cylinder",1,1,1)
  218. T.W(stick,body.Head,0,1,0,0,0,0)
  219.  
  220. spike = T.P(3,1,3,"White",0,false,false,suit)
  221. T.FM(spike,"spike",3,1,3)
  222. T.W(spike,stick,0,.8,0,0,0,0)
  223.  
  224. r = -2
  225. for i = 20,360+20,360/5 do
  226.  
  227. skull = T.P(1,1,1,"Black",0,false,false,suit)
  228. T.FM(skull,"skull",.5,.5,.5)
  229.  
  230. T.W(skull,spike,M.Cos(M.D(i))*r,.15,M.Sin(M.D(i))*r,M.D(-20),0,0)
  231.  
  232. end
  233. r = 5
  234. for i = 1,360,3 do
  235. c = T.P(.5,.5,.5,"Magenta",0,false,false,suit)
  236.  
  237. T.W(c,torso,M.Cos(M.D(i))*r,M.Sin(i*100/3),M.Sin(M.D(i))*r,0,0,0)
  238. if M.Sin(i*100/3) > .85 then T.F(c,1,1,"White","New Yeller") end
  239. end
  240.  
  241. T.FM(p,"diamond",1,1,1)
  242. T.FM(p2,"diamond",1,1,1)
  243. T.F(p,2,1,"Magenta","Olive")
  244. T.F(p2,2,1,"Magenta","Olive")
  245.  
  246. T.W(p,body.A.R,0,-1,0,0,0,0)
  247. T.W(p2,body.A.L,0,-1,0,0,0,0)
  248. end
  249.  
  250. function pillars(mouse)
  251. r = 5
  252. local pos = cfn(mouse.hit.p)
  253. local tar = mouse.Target
  254. for i = 1,360,15 do
  255. wait()
  256. local c = T.P(2,.5,2,"Magenta",.3,true,true)
  257. c.Size = v3n(2,20+M.Sin(i*300/15),2)
  258. T.FM(c,"cylinder",1,1,1)
  259. c.CFrame = pos*cfn(M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r) + v3n(0,c.Size.y/2,0)
  260. end
  261.  
  262. end
  263.  
  264. function plague(mouse)
  265. local touching = false
  266. c = T.P(50,.1,50,"White",1,false,true)
  267. c.CFrame = cfn(mouse.hit.p)
  268. c.Name = "plague"
  269.  
  270. local dec = Instance.new("Decal",c)
  271. dec.Face = "Top"
  272. dec.Texture = 'http://www.roblox.com/asset/?id=23862105'
  273. dec.Transparency = 1
  274. for i = 1,0,-.05 do
  275. wait()
  276. dec.Transparency = i
  277. end
  278. c.Touched:connect(function(hit)
  279. damage(hit.Parent,10,true,.05)
  280. end)
  281.  
  282. end
  283.  
  284. ---GUI---
  285. gui = Instance.new("ScreenGui")
  286.  
  287. mfr = Instance.new("Frame",gui)
  288. mfr.Size = UDim2.new(.2,0,.2,0)
  289. mfr.Position = UDim2.new(0,0,.5,0)
  290. fr = Instance.new("Frame",mfr)
  291. fr.Size = UDim2.new(.8,0,.8,0)
  292. fr.BackgroundColor = BrickColor.new("Earth green")
  293. fr.ClipsDescendants = true
  294. fr.Position = UDim2.new(0,0,.1,0)
  295.  
  296. center = UDim2.new(.5,0,.5,0)
  297. dist = 100
  298.  
  299. lista = Instance.new("Frame",mfr)
  300. lista.Size = UDim2.new(.2,0,.9,0)
  301. lista.Position = UDim2.new(.8,0,0,0)
  302.  
  303. inf = Instance.new("TextLabel",mfr)
  304. inf.Size = UDim2.new(1,0,.1,0)
  305.  
  306. torp = Instance.new("Frame",fr)
  307. torp.Size = UDim2.new(.1,0,.1,0)
  308. torp.Position = center
  309. torp.BackgroundColor = BrickColor.new("Deep blue")
  310.  
  311. T.C(function()
  312. while wait() do
  313. wait()
  314. poa = torso.Position
  315. for _,v in pairs(fr:GetChildren()) do if v ~= torp then v:Remove() end end
  316. for _,v in pairs(lista:GetChildren()) do v:Remove() end
  317. for i,v in pairs(clowns) do
  318.  
  319. local b = Instance.new("TextLabel",fr)
  320. b.Size = UDim2.new(.05,0,.05,0)
  321. b.Position = UDim2.new(center.X.Scale + (v.Torso.Position.x-poa.x)/dist/2+.025,0,center.Y.Scale+(v.Torso.Position.z-poa.z)/dist/2+.025,0)
  322. b.TextScaled = true
  323. b.Text = 'C'..i
  324.  
  325. o = 1/#clowns
  326. opfr = Instance.new("Frame",lista)
  327. opfr.Size = UDim2.new(1,0,o,0)
  328. opfr.BackgroundColor = BrickColor.new("White")
  329. opfr.Position = UDim2.new(0,0,-o,0) + UDim2.new(0,0,o*i,0)
  330. local b2 = Instance.new("TextButton",opfr)
  331. b2.Size = UDim2.new(.5,0,1,0)
  332. b2.Text = "C"..i
  333. b2.BackgroundTransparency = 1
  334. b2.BackgroundColor = BrickColor.new("White")
  335. b2.TextScaled = true
  336.  
  337. b3 = b2:Clone()
  338. b3.Parent = opfr
  339. b3.Position = UDim2.new(.5,0,0,0)
  340. b3.Text = "T"
  341. b2.MouseButton1Down:connect(function() Workspace.CurrentCamera.CameraSubject = v.Humanoid
  342. Workspace.CurrentCamera.CameraType = 4 end)
  343. b3.MouseButton1Down:connect(function() char:MoveTo(v.Torso.Position) end)
  344.  
  345. end
  346.  
  347.  
  348.  
  349. for i,v in pairs(clowns) do
  350. if ply.PlayerGui:FindFirstChild("C"..i) == nil then
  351. bbg = Instance.new("BillboardGui",ply.PlayerGui)
  352. bbg.Name = "C"..i
  353. bbg.Adornee = v.Torso
  354. bbg.StudsOffset = v3n(0,5,0)
  355. bbg.Size = UDim2.new(2,0,2,0)
  356.  
  357. lab = Instance.new("TextLabel",bbg)
  358. lab.Size = UDim2.new(1,0,1,0)
  359. lab.BackgroundTransparency = 1
  360. lab.FontSize = 6
  361.  
  362. lab.Text = 'C'..i
  363. end
  364. end
  365. end
  366. end)
  367.  
  368. resetbut = Instance.new("TextButton",mfr)
  369. resetbut.Size = UDim2.new(1,0,.1,0)
  370. resetbut.Position = UDim2.new(0,0,.9,0)
  371. resetbut.Text = "RESET"
  372. resetbut.TextScaled = true
  373. resetbut.MouseButton1Down:connect(function()Workspace.CurrentCamera.CameraSubject = originalsubject Workspace.CurrentCamera.CameraType = 5 plae = nil end)
  374.  
  375. -------
  376.  
  377. function point(mouse)
  378. if char ~= ply.Character then char = ply.Character upd()
  379. elseif char == ply.Character then
  380. if mouse.Target ~= nil then
  381. laz = T.P(1,1,1,"Deep blue",0,false,true)
  382. T.C(function()
  383. while true do
  384. for i = 0,.5,.05 do
  385. wait()
  386. laz.Transparency = i
  387. end
  388. for i = .5,0,-.05 do
  389. wait()
  390. laz.Transparency = i
  391. end
  392. end
  393. end)
  394. T.FM(laz,"cylinder",1,1,1)
  395. holding = true
  396. while holding do
  397. wait()
  398. if mouse.Target ~= nil then
  399. mag = (mouse.hit.p-torso.Position).magnitude
  400. laz.Size = v3n(1,mag,1)
  401. laz.CFrame = (cfn(torso.Position,mouse.hit.p)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  402. end
  403. end
  404. laz:Remove()
  405.  
  406. local tar = mouse.Target
  407. if tar.Parent:FindFirstChild("Humanoid") ~= nil then
  408. char = tar.Parent
  409. upd()
  410. end
  411.  
  412. end
  413. end
  414. end
  415.  
  416. flbp = nil
  417.  
  418. function levitate()
  419. if flbp == nil then
  420. flbp = T.BP(torso,torso.Position)
  421. elseif flbp ~= nil then
  422. flbp:Remove() flbp = nil
  423. end
  424. end
  425.  
  426. clowns = {}
  427. function decoy(a)
  428. if a == 1 then
  429. char.Archivable = true
  430. local clown = char:Clone()
  431. clown.Parent = Workspace
  432.  
  433. clown.Humanoid.Died:connect(function() clown:Remove() end)
  434. Workspace.ChildRemoved:connect(function(child) if child == clown then for i,v in pairs(clowns) do if v == clown then table.remove(clowns,i) end end end end)
  435. for i,v in pairs(clown["clowe"]:GetChildren()) do
  436. if v.Name ~= "Suit" and v.className ~= "Weld" then
  437. v:Remove()
  438. end
  439. end
  440. table.insert(clowns,clown)
  441. char.Archivable = false
  442. elseif a == 0 then
  443. for i,v in pairs(clowns) do v:Remove() end
  444. end
  445. end
  446.  
  447. function dragon(mouse)
  448. local wp = mouse.hit.p
  449. local tp = torso.Position
  450. unit = (tp-wp).unit*-1
  451. hed = T.P(10,10,10,"Magenta",.5,false,true)
  452. hed.Name = "dragon"
  453. hed.Touched:connect(function(hit) damage(hit.Parent,50,true,.5) end)
  454. T.FM(hed,"dragon",10,10,10)
  455. pos = cfn(tp) + unit*5 + v3n(0,-2,0)
  456. pos2 = cfn(pos.p,wp)
  457. for i = 5,10 do
  458. wait()
  459. hed.CFrame = (pos2 + unit * i) + v3n(0,i,0)
  460. end
  461. end
  462.  
  463. function fly(mouse)
  464. if flbp ~= nil and holding == false then
  465. holding = true
  466. while holding do
  467. wait()
  468. flbp.position = torso.Position + (torso.Position-mouse.hit.p).unit*-10
  469. end
  470.  
  471. end
  472. end
  473.  
  474. function hide()
  475. local namn = hop.Name
  476. if char.Parent ~= Workspace.CurrentCamera then
  477. char.Parent = Workspace.CurrentCamera
  478. hop.Name = name..'(Invisible)'
  479. elseif char.Parent == Workspace.CurrentCamera then
  480. char.Parent = Workspace
  481. hop.Name = name
  482. end
  483. end
  484.  
  485. function clear()
  486. for i,v in pairs(m:GetChildren()) do
  487. if v.className ~= "Weld" and v.Name ~= "Suit" then
  488. v:Remove()
  489. end
  490. end
  491. end
  492.  
  493. chage = false
  494. klist = {
  495. {"r",function(a) plague(a) end},
  496. {"e",function(a) point(a) end,true},
  497. {"q",function() levitate() end},
  498. {"f",function(a) fly(a) end,true},
  499. {"v",function() hide() end},
  500. {"c",function(a) dragon(a) end},
  501. {"x",function() decoy(1) end},{"z",function() decoy(0) end},
  502. {"h",function() clear() end},
  503. {string.char(48), function() explode() end},
  504. {"g",function() if gui.Parent ~= nil then gui.Parent = nil elseif gui.Parent == nil then gui.Parent = ply.PlayerGui end end},
  505. {"n",function() if chage == true then chage = false char = Workspace.CurrentCamera.CameraSubject.Parent elseif chage == false then chage = true char = ply.Character end end}
  506. }
  507.  
  508. fire()
  509. hop = Instance.new("HopperBin",ply.Backpack)
  510. hop.Name = name
  511. hop.Selected:connect(function(mouse)
  512. mouse.Button1Down:connect(function() pillars(mouse) end)
  513. mouse.KeyDown:connect(function(key)
  514. for i,v in pairs(klist) do
  515. if key == v[1] then v[2](mouse) end
  516. end
  517. end)
  518. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end upd() end)
  519. end)
  520.  
  521. ply.Character.Humanoid.Died:connect(function() Workspace.CurrentCamera:ClearAllChildren() end)
Add Comment
Please, Sign In to add comment