Advertisement
Animescapetower

Untitled

Feb 24th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character
  3. local ispeed = 30
  4. local sine = 12
  5. local sine2 = 34
  6. local size = 45
  7. local maxTabs = 5
  8. local ai = 360/maxTabs
  9. hrp=char["HumanoidRootPart"]
  10. rd=math.rad
  11. local fold = Instance.new("Folder")
  12. fold.Name = "Vis"
  13. fold.Parent = char
  14. --------------------------------------
  15. local siner = coroutine.wrap(function()
  16. while true do wait()
  17. sine = sine+1
  18. end
  19. end)
  20. siner()
  21. --------------------------------------
  22. function TweenMe(joint,prop,cfrmz,alp,es,ed)
  23. local ts = game:GetService("TweenService")
  24. local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
  25. local pp = {[prop] = cfrmz}
  26. local tween = ts:Create(joint,ti,pp)
  27. tween:Play()
  28. end
  29. function createPart()
  30. local p = Instance.new("Part")
  31. p.Name = "Dead"
  32. p.Anchored = true
  33. p.Shape = 0
  34. p.Transparency = 1.5
  35. p.CanCollide = false
  36. p.TopSurface = "Smooth"
  37. p.BottomSurface = "Smooth"
  38. p.Material = "Neon"
  39. p.Size = Vector3.new(2,2,2)
  40. p.CFrame = CFrame.new(hrp.CFrame.p)
  41.  
  42. return p
  43.  
  44.  
  45.  
  46. end
  47.  
  48.  
  49. local idk = 4
  50. local eh = 360/idk
  51. for i = 1,360/ai do
  52.  
  53. local p = createPart()
  54. p.Parent = fold
  55. p.CFrame = CFrame.new(hrp.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed),10)
  56. end
  57.  
  58. -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
  59. local music = coroutine.wrap(function()
  60. while true do wait()
  61. local gc = fold:GetChildren()
  62. for i = 1,#gc do
  63. sine2=sine2+0.5
  64. local l = tick()+sine2
  65. local p = gc[i]
  66. TweenMe(p,'Color',Color3.new(size*math.sin(l)/1,0/45,-size*math.sin(l)/12),1,"Sine","Out")
  67. local size2 = size*45
  68. TweenMe(p,'CFrame',hrp.CFrame*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,size*math.sin(l)*0.5,5+size/2),0.5,'Sine','Out')
  69.  
  70. end
  71. end
  72. end)
  73. music()
  74.  
  75. --------------------------------------
  76. local playing = false
  77. player.Chatted:connect(function(chat)
  78. if chat:sub(1,3) == "/vis " then
  79. local num = chat:sub(4)
  80. size = num
  81. elseif chat:sub(1,6) == "/play " then
  82. if hrp:FindFirstChild("music") ~= nil then
  83. size = 45
  84. playing = false
  85. hrp["music"]:Remove()
  86. end
  87. wait(1)
  88. local id = chat:sub(7)
  89. local music = Instance.new("Sound",hrp)
  90. music.Looped = true
  91. music.Name = "music"
  92. music.Volume = 10
  93. music.SoundId = "rbxassetid://"..id
  94. music.MaxDistance = 500
  95. music.EmitterSize = 500
  96. music:Play()
  97. playing = true
  98. local visualize = coroutine.wrap(function()
  99. repeat wait()
  100. size = music.Volume/1
  101. size = 45
  102. wait(0.05)
  103. size = 10
  104. wait(0.05)
  105. size = 1
  106. wait(0.05)
  107. size = 90
  108. wait(0.05)
  109. size = 10
  110. wait(0.05)
  111. size = 1
  112. wait(0.05)
  113. size = 90
  114. wait(0.05)
  115. size = 10
  116. wait(0.05)
  117. size = 1
  118. wait(0.05)
  119. size = 90
  120. wait(0.05)
  121. size = 10
  122. wait(0.05)
  123. size = 1
  124. wait(0.05)
  125. size = 90
  126. wait(0.05)
  127. size = 10
  128. wait(0.05)
  129. size = 1
  130. wait(0.05)
  131. size = 90
  132. wait(0.05)
  133. size = 10
  134. wait(0.05)
  135. size = 1
  136. wait(0.05)
  137. size = 90
  138. wait(0.05)
  139. size = 10
  140. wait(0.05)
  141. size = 1
  142. wait(0.05)
  143. size = 90
  144. wait(0.05)
  145. size = 10
  146. wait(0.05)
  147. size = 1
  148. wait(0.05)
  149. size = 90
  150. wait(0.05)
  151. size = 10
  152. wait(0.05)
  153. size = 1
  154. wait(0.05)
  155. size = 90
  156. wait(0.05)
  157. size = 10
  158. wait(0.05)
  159. size = 1
  160. wait(0.05)
  161. size = 90
  162. wait(0.2)
  163.  
  164. size = 70
  165. wait(0.2)
  166. size = 1
  167. wait(0.2)
  168. size = 30
  169. wait(0.2)
  170. wait(0.05)
  171. size = 10
  172. wait(0.05)
  173. size = 1
  174. wait(0.05)
  175. size = 90
  176. wait(0.05)
  177. size = 10
  178. wait(0.05)
  179. size = 1
  180. wait(0.05)
  181. size = 90
  182. wait(0.005)
  183. size = 90
  184. wait(0.005)
  185. size = 80
  186. wait(0.005)
  187. size = 70
  188. wait(0.005)
  189. size = 60
  190. wait(0.005)
  191. size = 40
  192. wait(0.005)
  193. size = 30
  194. wait(0.005)
  195. size = 20
  196. wait(0.005)
  197. size = 10
  198. wait(0.005)
  199. size = 20
  200. wait(0.005)
  201. size = 30
  202. wait(0.005)
  203. size = 40
  204. wait(0.005)
  205. size = 50
  206. wait(0.005)
  207. size = 60
  208. wait(0.005)
  209. size = 70
  210. wait(0.005)
  211. size = 80
  212. wait(0.005)
  213. size = 90
  214. wait(0.05)
  215. size = 10
  216. wait(0.05)
  217. size = 1
  218. wait(0.05)
  219. size = 90
  220. wait(0.05)
  221. size = 10
  222. wait(0.05)
  223. size = 1
  224. wait(0.05)
  225. size = 90
  226. wait(0.05)
  227. size = 10
  228. wait(0.05)
  229. size = 1
  230. wait(0.05)
  231. size = 90
  232. wait(0.05)
  233. size = 10
  234. wait(0.05)
  235. size = 1
  236. wait(0.05)
  237. size = 90
  238. wait(0.05)
  239. size = 10
  240. wait(0.05)
  241. size = 1
  242. wait(0.05)
  243. size = 90
  244. wait(0.05)
  245. size = 10
  246. wait(0.05)
  247. size = 1
  248. wait(0.05)
  249. size = 90
  250. wait(0.05)
  251. size = 10
  252. wait(0.05)
  253. size = 1
  254. wait(0.05)
  255. size = 90
  256. wait(0.05)
  257. size = 10
  258. wait(0.05)
  259. size = 1
  260. wait(0.05)
  261. size = 90
  262. wait(0.05)
  263. size = 10
  264. wait(0.05)
  265. size = 1
  266. wait(0.05)
  267. size = 90
  268. wait(0.05)
  269. size = 10
  270. wait(0.05)
  271. size = 1
  272. wait(0.05)
  273. size = 90
  274. wait(0.05)
  275. size = 10
  276. wait(0.05)
  277. size = 1
  278. wait(0.05)
  279. size = 90
  280. wait(0.05)
  281. size = 40
  282. wait(0.05)
  283. size = 1.06
  284. wait(0.05)
  285. size = 1.06
  286. wait(0.05)
  287. size = 42
  288. wait(0.05)
  289. size = 1.06
  290. wait(0.05)
  291. size = 0
  292. wait(0.05)
  293. size = 1.5
  294. wait(0.05)
  295. size = 1.7
  296. wait(0.05)
  297. size = 1.3
  298. wait(0.05)
  299. size = 1.05
  300. wait(0.05)
  301. size = 1.8
  302. wait(0.05)
  303. size = 1.3
  304. wait(0.05)
  305. size = 1.06
  306. wait(0.05)
  307. size = 1.06
  308. wait(0.05)
  309. size = 7
  310. wait(0.05)
  311. size = 6
  312. wait(0.05)
  313. size = 0
  314. wait(0.05)
  315. size = 1.5
  316. wait(0.05)
  317. size = 1.7
  318. wait(0.05)
  319. size = 1.3
  320. wait(0.05)
  321. size = 1.05
  322. wait(0.05)
  323. size = 1.8
  324. wait(0.05)
  325. size = 1.3
  326. wait(0.05)
  327. size = 1.06
  328. wait(0.05)
  329. size = 1
  330. wait(0.05)
  331. size = 1
  332. wait(0.05)
  333. size = 12
  334. wait(0.05)
  335. size = 0
  336. wait(0.05)
  337. size = 1.5
  338. wait(0.05)
  339. size = 1.7
  340. wait(0.05)
  341. size = 1.3
  342. wait(0.05)
  343. size = 1.05
  344. wait(0.05)
  345. size = 1.8
  346. wait(0.05)
  347. size = 1.3
  348. wait(0.05)
  349. size = 1.06
  350. wait(0.05)
  351. size = 1.06
  352. wait(0.05)
  353. size = 65
  354. wait(0.05)
  355. size = 34
  356. wait(0.05)
  357. size = 0
  358. wait(0.05)
  359. size = 1.5
  360. wait(0.05)
  361. size = 1.7
  362. wait(0.05)
  363. size = 1.3
  364. wait(0.05)
  365. size = 1.05
  366. wait(0.05)
  367. size = 1.8
  368. wait(0.05)
  369. size = 1.3
  370. wait(0.05)
  371. size = 1.06
  372. wait(0.05)
  373. size = 7.06
  374. wait(0.05)
  375. size = 1.06
  376. wait(0.05)
  377. size = 60
  378. wait(0.05)
  379. size = 7
  380. wait(0.05)
  381. size = 4.5
  382. wait(0.05)
  383. size = 3.7
  384. wait(0.05)
  385. size = 3.3
  386. wait(0.05)
  387. size = 1.05
  388. wait(0.05)
  389. size = 3.8
  390. wait(0.05)
  391. size = 9
  392. wait(0.05)
  393. size = 1.06
  394. wait(0.05)
  395. size = 1.06
  396. wait(0.05)
  397. size = 30
  398. wait(0.05)
  399. size = 20
  400. wait(0.05)
  401. size = 0
  402. wait(0.05)
  403. size = 1.5
  404. wait(0.05)
  405. size = 1.7
  406. wait(0.05)
  407. size = 1.3
  408. wait(0.05)
  409. size = 1.05
  410. wait(0.05)
  411. size = 1.8
  412. wait(0.05)
  413. size = 1.3
  414. wait(0.05)
  415. size = 1.06
  416. wait(0.05)
  417. size = 1.06
  418. wait(0.02)
  419. size = 21
  420. wait(0.05)
  421. size = 0
  422. wait(0.05)
  423. size = 0
  424. wait(0.05)
  425. size = 1.5
  426. wait(0.05)
  427. size = 1.7
  428. wait(0.05)
  429. size = 1.3
  430. wait(0.05)
  431. size = 1.05
  432. wait(0.05)
  433. size = 1.8
  434. wait(0.05)
  435. size = 1.3
  436. until playing == false
  437. end)
  438. visualize()
  439. elseif chat == "/stop" then
  440. if hrp:FindFirstChild("music") ~= nil then
  441. size = 45
  442. playing = false
  443. hrp["music"]:Remove()
  444.  
  445.  
  446.  
  447.  
  448.  
  449. end
  450. end
  451. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement