Zueru1

mc lan novamente

Aug 18th, 2017
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.91 KB | None | 0 0
  1. for i, v in pairs(game:service("Players").LocalPlayer.Backpack:children()) do
  2. if v.className == "HopperBin" and v.Name == "Bewk" then
  3. v:remove()
  4. end
  5. end
  6. for i, v in pairs(game:service("Players").LocalPlayer.Character.Head:children()) do
  7. if v.Name == "PTS" and v.className == "Sound" then
  8. v:remove()
  9. end
  10. end
  11. wait(0.3)
  12. bin = Instance.new("HopperBin")
  13. bin.Name = "Bewk"
  14. bin.Parent = game.Players.LocalPlayer.Backpack
  15.  
  16. local player = game:service("Players").LocalPlayer
  17. local char = player.Character
  18. local Torsoz = char:findFirstChild("Torso")
  19. local RA = char:findFirstChild("Right Arm")
  20. local LA = char:findFirstChild("Left Arm")
  21. local RL = char:findFirstChild("Right Leg")
  22. local LL = char:findFirstChild("Left Leg")
  23. local H = char:findFirstChild("Head")
  24. local RS = Torsoz:findFirstChild("Right Shoulder")
  25. local LS = Torsoz:findFirstChild("Left Shoulder")
  26. local RH = Torsoz:findFirstChild("Right Hip")
  27. local LH = Torsoz:findFirstChild("Left Hip")
  28. local N = Torsoz:findFirstChild("Neck")
  29. local Main
  30. local Page = 1
  31. local Glows = {}
  32. local RiseEffects = {}
  33. local GroundSymbols = {}
  34. local prevpage = 0
  35. local Joint
  36. local Animating = false
  37. local Casting = false
  38. local PTS = Instance.new("Sound", H)
  39. PTS.Name = "PTS"
  40. PTS.SoundId = "http://www.roblox.com/asset/?id=3931318"
  41. PTS.Pitch = 1.1
  42. PTS.Volume = 0.25
  43.  
  44. local s = 1
  45. local numofpages = 10
  46. local spellids = {"78036587", "18898629", "12579755"}
  47.  
  48. local P = Instance.new("Part")
  49. P.Anchored = false
  50. P.CanCollide = false
  51. P.Name = "Part"
  52. P.formFactor = "Custom"
  53. P.BrickColor = BrickColor.new("Brick yellow")
  54. P.Size = Vector3.new(0.5,0.5,0.5)
  55. P.Locked = true
  56. P.TopSurface = 0
  57. P.BottomSurface = 0
  58.  
  59. function Build()
  60. for i, v in pairs(char:children()) do
  61. if v.className == "Model" and v.Name == "Bewk" then
  62. v:remove()
  63. end
  64. end
  65. local mdl = Instance.new("Model", char)
  66. mdl.Name = "Bewk"
  67.  
  68. local h = P:Clone()
  69. h.Parent = mdl
  70. h.Transparency = 1
  71. local mesh = Instance.new("SpecialMesh", h)
  72. mesh.MeshType = "Brick"
  73. mesh.Scale = Vector3.new(3*s,4*s,1.4*s)
  74. local w = Instance.new("Motor", h)
  75. w.Part0 = Torsoz
  76. w.Part1 = h
  77. w.C0 = CFrame.new(0,0,0.75*s) * CFrame.Angles(0,0,-math.pi/5)
  78. Main = w
  79.  
  80. ---- bewk ----------
  81.  
  82. local c = P:Clone()
  83. c.Parent = mdl
  84. c.BrickColor = BrickColor.new("Reddish brown")
  85. local mesh = Instance.new("BlockMesh", c)
  86. mesh.Scale = Vector3.new(0.3*s,4*s,1.6*s)
  87. local w = Instance.new("Motor", c)
  88. w.Part0 = h
  89. w.Part1 = c
  90. w.C0 = CFrame.new(-0.75*s,0,0)
  91. local W = P:Clone()
  92. W.Parent = mdl
  93. local mesh = Instance.new("BlockMesh", W)
  94. mesh.Scale = Vector3.new(0.25*s,3.6*s,1.5*s)
  95. local w = Instance.new("Motor", W)
  96. w.Part0 = c
  97. w.Part1 = W
  98. w.C0 = CFrame.new(0.07*s,0,0)
  99.  
  100. pages = {}
  101. for i = 1, numofpages do
  102. local p = P:Clone()
  103. p.Parent = mdl
  104. p.Name = "Page"..i
  105. local mesh = Instance.new("BlockMesh", p)
  106. mesh.Scale = Vector3.new(2.8*s, 3.6*s, (1.3/numofpages)*s)
  107. local w = Instance.new("Motor", p)
  108. w.Name = "PageW"..i
  109. w.Part0 = c
  110. w.Part1 = p
  111. w.C0 = CFrame.new(0,0,(0.4*s)-(((0.7*s)/numofpages)*i)) * CFrame.Angles(math.pi/2,0,0)
  112. w.C1 = CFrame.new(-0.7*s,0,0) * CFrame.Angles(math.pi/2,0,0)
  113. w.MaxVelocity = 0.03
  114. table.insert(pages, w)
  115. local b = P:Clone()
  116. b.Parent = mdl
  117. b.Name = "PageSymbol"..i
  118. b.Transparency = 1
  119. local mesh = Instance.new("SpecialMesh", b)
  120. mesh.MeshType = "Brick"
  121. mesh.Scale = Vector3.new(2.2*s,2.2*s,((1.3/numofpages)+0.05)*s)
  122. local w = Instance.new("Motor", b)
  123. w.Part0 = p
  124. w.Part1 = b
  125. w.C0 = CFrame.new(0.05*s,0,0)
  126. local d = Instance.new("Decal", b)
  127. d.Face = "Front"
  128. if spellids[i] ~= nil then
  129. d.Texture = "http://www.roblox.com/asset/?id="..spellids[i]
  130. end
  131. if i > 1 and spellids[i-1] ~= nil then
  132. local d = Instance.new("Decal", b)
  133. d.Face = "Back"
  134. d.Texture = "http://www.roblox.com/asset/?id="..spellids[i-1]
  135. end
  136. end
  137.  
  138. local c1 = P:Clone()
  139. c1.Parent = mdl
  140. c1.Name = "Cover"
  141. c1.BrickColor = BrickColor.new("Reddish brown")
  142. local mesh = Instance.new("BlockMesh", c1)
  143. mesh.Scale = Vector3.new(3*s, 4*s, 0.24*s)
  144. local w = Instance.new("Motor", c1)
  145. w.Part0 = c
  146. w.Part1 = c1
  147. w.C0 = CFrame.new(0,0,0.4*s) * CFrame.Angles(math.pi/2,0,0)
  148. w.C1 = CFrame.new(-0.75*s,0,0) * CFrame.Angles(math.pi/2,0,0)
  149. w.MaxVelocity = 0.03
  150. Cover1 = w
  151. local c2 = P:Clone()
  152. c2.Parent = mdl
  153. c2.Name = "Cover"
  154. c2.BrickColor = BrickColor.new("Reddish brown")
  155. local mesh = Instance.new("BlockMesh", c2)
  156. mesh.Scale = Vector3.new(3*s, 4*s, 0.24*s)
  157. local w = Instance.new("Motor", c2)
  158. w.Part0 = c
  159. w.Part1 = c2
  160. w.C0 = CFrame.new(0,0,-0.4*s) * CFrame.Angles(math.pi/2,0,0)
  161. w.C1 = CFrame.new(-0.75*s,0,0) * CFrame.Angles(math.pi/2,0,0)
  162. w.MaxVelocity = 0.03
  163. Cover2 = w
  164.  
  165. local e = P:Clone()
  166. e.Parent = mdl
  167. e.BrickColor = BrickColor.new("Black")
  168. local mesh = Instance.new("CylinderMesh", e)
  169. mesh.Scale = Vector3.new(0.3*s,3.98*s,0.3*s)
  170. local e2 = e:Clone()
  171. e2.Parent = mdl
  172. e2.BrickColor = BrickColor.new("Bright yellow")
  173. e2.Reflectance = 0.32
  174. e2.Transparency = 0.22
  175. e2.Mesh.Scale = Vector3.new(0.31*s,2*s,0.31*s)
  176. local w = Instance.new("Motor", e)
  177. w.Part0 = c
  178. w.Part1 = e
  179. w.C0 = CFrame.new(0,0,0.4*s)
  180. local w = Instance.new("Motor", e)
  181. w.Part0 = c
  182. w.Part1 = e2
  183. w.C0 = CFrame.new(0,0,0.4*s)
  184. local e = P:Clone()
  185. e.Parent = mdl
  186. e.BrickColor = BrickColor.new("Black")
  187. local mesh = Instance.new("CylinderMesh", e)
  188. mesh.Scale = Vector3.new(0.3*s,3.98*s,0.3*s)
  189. local e2 = e:Clone()
  190. e2.Parent = mdl
  191. e2.BrickColor = BrickColor.new("Bright yellow")
  192. e2.Reflectance = 0.32
  193. e2.Transparency = 0.22
  194. e2.Mesh.Scale = Vector3.new(0.31*s,2*s,0.31*s)
  195. local w = Instance.new("Motor", e)
  196. w.Part0 = c
  197. w.Part1 = e
  198. w.C0 = CFrame.new(0,0,-0.4*s)
  199. local w = Instance.new("Motor", e2)
  200. w.Part0 = c
  201. w.Part1 = e2
  202. w.C0 = CFrame.new(0,0,-0.4*s)
  203.  
  204. Glows = {}
  205. for i = 1, 9 do
  206. local p = P:Clone()
  207. p.Parent = mdl
  208. p.Name = "DesignPart"
  209. p.BrickColor = BrickColor.new("Black")
  210. local w = Instance.new("Motor", p)
  211. w.Part0 = c1
  212. w.Part1 = p
  213. w.C0 = CFrame.new(0,0,0.06*s)
  214. local p2 = P:Clone()
  215. p2.Parent = mdl
  216. p2.Name = "DesignPart2"
  217. p2.BrickColor = BrickColor.new("Royal purple")
  218. local w2 = Instance.new("Motor", p2)
  219. w2.Part0 = c1
  220. w2.Part1 = p2
  221. w2.C0 = CFrame.new(0,0,0.06*s)
  222. table.insert(Glows, p2)
  223. if i == 1 then
  224. local mesh = Instance.new("CylinderMesh",p)
  225. mesh.Scale = Vector3.new(0.6*s,0.1*s,0.6*s)
  226. w.C0 = w.C0 * CFrame.Angles(math.pi/2,0,0)
  227. local mesh = Instance.new("CylinderMesh",p2)
  228. mesh.Scale = Vector3.new(0.2*s,0.11*s,0.2*s)
  229. w2.C0 = w2.C0 * CFrame.Angles(math.pi/2,0,0)
  230. else
  231. local mesh = Instance.new("BlockMesh", p)
  232. mesh.Scale = Vector3.new(0.3*s,1.2*s,0.1*s)
  233. w.C1 = CFrame.new(0.4*s,0,0) * CFrame.Angles(0,0,(math.pi*2/8)*i)
  234. local mesh = Instance.new("BlockMesh", p2)
  235. mesh.Scale = Vector3.new(0.09*s,0.7*s,0.11*s)
  236. w2.C1 = CFrame.new(0.4*s,0,0) * CFrame.Angles(0,0,(math.pi*2/8)*i)
  237. end
  238. end
  239.  
  240. end
  241. Build()
  242.  
  243. function TurnToPage(page)
  244. if Casting == false and Animating == false then
  245. if (page == 1 and prevpage == 2) or (page == numofpages-2 and prevpage == numofpages-1) or (page ~= 0 and page ~= 1 and prevpage ~= numofpages-1) then
  246. PTS:Play()
  247. end
  248. for i, v in pairs(pages) do
  249. if page == 0 then
  250. v.MaxVelocity = 0.08
  251. v.DesiredAngle = 0
  252. else
  253. if i > page then
  254. v.MaxVelocity = 0.1
  255. v.DesiredAngle = -math.pi/4.6
  256. else
  257. v.MaxVelocity = 0.1
  258. v.DesiredAngle = math.pi/4.6
  259. end
  260. end
  261. end
  262. if page == 0 then
  263. Cover1.MaxVelocity = 0.08
  264. Cover1.DesiredAngle = 0
  265. Cover2.MaxVelocity = 0.08
  266. Cover2.DesiredAngle = 0
  267. if prevpage == 1 then
  268. Unequip(true)
  269. end
  270. else
  271. Cover1.MaxVelocity = 0.1
  272. Cover1.DesiredAngle = math.pi/4.6
  273. Cover2.MaxVelocity = 0.1
  274. Cover2.DesiredAngle = -math.pi/4.6
  275. if prevpage == 0 then
  276. Equip(true)
  277. end
  278. end
  279. prevpage = page
  280. end
  281. end
  282.  
  283. function CastHeal()
  284. Casting = true
  285. local nmdl = Instance.new("Model", char)
  286. nmdl.Name = "HeallSpellEffects"
  287. local p = P:Clone()
  288. p.Parent = nmdl
  289. p.Anchored = true
  290. p.Transparency = 1
  291. p.CFrame = CFrame.new(Torsoz.Position+Vector3.new(0,-3,0))
  292. local mesh = Instance.new("SpecialMesh", p)
  293. mesh.MeshType = "Brick"
  294. mesh.Scale = Vector3.new(28,0.6,28)
  295. local de = Instance.new("Decal", p)
  296. de.Name = "Symbol"
  297. de.Face = "Top"
  298. de.Transparency = 1
  299. de.Texture = "http://www.roblox.com/asset/?id="..spellids[Page]
  300. table.insert(GroundSymbols, p)
  301. wait(0.2)
  302. local loopnum = 0
  303. local makeeffect = true
  304. local Cont = true
  305.  
  306. while Cont == true do
  307. loopnum = loopnum + 1
  308. if makeeffect == true and loopnum%3 == 0 then
  309. local g = P:Clone()
  310. g.Parent = nmdl
  311. g.Name = "RiseEffect"
  312. g.BrickColor = BrickColor.new("White")
  313. local W = Instance.new("Motor", g)
  314. W.Part0 = Torsoz
  315. W.Part1 = g
  316. W.C1 = CFrame.new(0,0,math.random(20, 80)/10)
  317. W.C0 = CFrame.new(0,-4,0) * CFrame.Angles(0,(math.pi*2/100)*math.random(0, 100),0)
  318. local meshz = Instance.new("SpecialMesh", g)
  319. local ran = math.random(1, 3)
  320. meshz.Scale = Vector3.new(math.random(15, 34)/10,math.random(15, 34)/10,math.random(15, 34)/10)
  321. if ran == 1 then
  322. meshz.MeshType = "Sphere"
  323. elseif ran == 2 then
  324. meshz.MeshId = "http://www.roblox.com/asset/?id=9756362"
  325. meshz.Scale = Vector3.new(math.random(12, 30)/15,math.random(12, 30)/15,math.random(12, 30)/15)
  326. elseif ran == 3 then
  327. meshz.MeshType = "Head"
  328. end
  329. table.insert(RiseEffects, {W, math.random(10,130)/1000})
  330. if #RiseEffects > 15 then
  331. print("Stopped making effects")
  332. makeeffect = false
  333. end
  334. end
  335.  
  336. for i, v in pairs(RiseEffects) do
  337. v[1].Parent.Transparency = v[1].Parent.Transparency + 0.016
  338. v[1].C0 = v[1].C0 * CFrame.new(0,0.12,0) * CFrame.Angles(0,v[2],0)
  339. v[1].C1 = v[1].C1 * CFrame.new(0,0,v[2]/3)
  340. if v[1].Parent.Transparency > 0.9 then
  341. v[1].Parent:remove()
  342. table.remove(RiseEffects,i)
  343. end
  344. end
  345.  
  346. if loopnum > 4 then
  347. if #RiseEffects == 0 then
  348. print("Stopped loop")
  349. Cont = false
  350. end
  351. end
  352.  
  353. wait(0.03)
  354. end
  355. nmdl:remove()
  356. Casting = false
  357. end
  358.  
  359. function onButton1Down(mouse)
  360. if Casting == false and Animating == false then
  361. if Page == 1 then
  362. CastHeal()
  363. end
  364. end
  365. end
  366.  
  367. function onKeyDown(key, mouse)
  368. if key ~= nil then
  369. key:lower()
  370. if Casting == false and Animating == false then
  371. if key == "e" then
  372. if Page ~= numofpages-1 then
  373. Page = Page + 1
  374. end
  375. TurnToPage(Page)
  376. elseif key == "q" then
  377. if Page ~= 0 then
  378. Page = Page - 1
  379. end
  380. TurnToPage(Page)
  381. end
  382. end --- animating = false end
  383. end
  384. end
  385.  
  386. function Equip(anim)
  387. if anim == true then
  388. Animating = true
  389. local joint = Instance.new("Motor", Torsoz)
  390. joint.Part0 = Torsoz
  391. joint.Part1 = RA
  392. joint.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(0,math.pi/2,0)
  393. joint.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,math.pi/2,0)
  394. joint.MaxVelocity = 0.06
  395. joint.DesiredAngle = math.pi/3
  396. Joint = joint
  397. Main.Part0 = RA
  398. Main.C0 = CFrame.new(0,-1.5*s,0) * CFrame.Angles(0,math.pi/2,-math.pi/2)
  399. for i = 1, 16 do
  400. Main.C0 = CFrame.new((-1*s/16)*i,(-1.5*s)+((0.25*s/16)*i),(-0.65*s/16)*i) * CFrame.Angles((math.pi/16)*i,(math.pi/2)-((math.pi/16)*i),-math.pi/2)
  401. wait(0.02)
  402. end
  403. Animating = false
  404. else
  405. Main.Part0 = RA
  406. Main.C0 = CFrame.new(0,-1.5*s,0) * CFrame.Angles(0,math.pi/2,-math.pi/2)
  407. end
  408. end
  409.  
  410. function Unequip(anim)
  411. if anim == true then
  412. Animating = true
  413. local joint = Joint
  414. joint.MaxVelocity = 0.06
  415. joint.DesiredAngle = 0
  416. for i = 1, 16 do
  417. Main.C0 = CFrame.new((-1*s)+((1*s/16)*i),(-1.25*s)-((0.25*s/16)*i),(-0.65*s)+((0.65*s/16)*i)) * CFrame.Angles(math.pi-((math.pi/16)*i),(-math.pi/2)+((math.pi/16)*i),-math.pi/2)
  418. wait(0.02)
  419. end
  420. Animating = false
  421. end
  422. for i, v in pairs(Torsoz:children()) do
  423. if v.className == "Motor" then
  424. v:remove()
  425. end
  426. end
  427. RS.Parent = Torsoz
  428. RS.Part0 = Torsoz
  429. RS.Part1 = RA
  430. end
  431.  
  432. bin.Selected:connect(function(mouse)
  433. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  434. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  435. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  436. Page = 0
  437. prevpage = 0
  438. Equip(false)
  439. end)
  440.  
  441. bin.Deselected:connect(function()
  442. Unequip(false)
  443. Build()
  444. end)
  445.  
  446. local num = 0
  447. local plus = true
  448. local trans = 0
  449. while bin.Parent == player.Backpack do
  450. num = num + 1
  451.  
  452. if #Glows == 0 then
  453. trans = 0
  454. else
  455. for i, v in pairs(Glows) do
  456. v.Transparency = trans
  457. end
  458. if plus == true then
  459. trans = trans + 0.032
  460. elseif plus == false then
  461. trans = trans - 0.032
  462. end
  463. if trans > 0.65 then
  464. plus = false
  465. elseif trans < 0.06 then
  466. plus = true
  467. end
  468. end
  469.  
  470. for i, v in pairs(GroundSymbols) do
  471. if v.Parent == nil then
  472. table.remove(GroundSymbols, i)
  473. break
  474. else
  475. v.CFrame = v.CFrame * CFrame.Angles(0,0.02,0)
  476. v.CFrame = v.CFrame - v.Position + (Torsoz.Position-Vector3.new(0,3,0))
  477. if plus == true then
  478. v.Mesh.Scale = v.Mesh.Scale + Vector3.new(0.2,0,0.2)
  479. else
  480. v.Mesh.Scale = v.Mesh.Scale - Vector3.new(0.2,0,0.2)
  481. end
  482. if v.Symbol.Transparency > 0.1 then
  483. v.Symbol.Transparency = v.Symbol.Transparency - 0.008
  484. end
  485. end
  486. end
  487.  
  488. wait(0.03)
  489. end
  490.  
  491. --mediafire gtfo password
Add Comment
Please, Sign In to add comment