Advertisement
Animescapetower

Global Visualizer

Feb 25th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character
  3. local ispeed = 30
  4. local sine = 50
  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 = 0.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. end
  70. end
  71. end)
  72. music()
  73. --------------------------------------
  74. local playing = false
  75. player.Chatted:connect(function(chat)
  76. if chat:sub(1,3) == "/vis " then
  77. local num = chat:sub(4)
  78. size = num
  79. elseif chat:sub(1,6) == "/play " then
  80. if hrp:FindFirstChild("music") ~= nil then
  81. size = 45
  82. playing = false
  83. hrp["music"]:Remove()
  84. end
  85. wait(1)
  86. local id = chat:sub(7)
  87. local music = Instance.new("Sound",hrp)
  88. music.Looped = true
  89. music.Name = "music"
  90. music.Volume = 6
  91. music.SoundId = "rbxassetid://"..id
  92. music.MaxDistance = 500
  93. music.EmitterSize = 500
  94. music:Play()
  95. playing = true
  96. local visualize = coroutine.wrap(function()
  97. repeat wait()
  98. wait(0.5)
  99.  
  100.  
  101. wait(0.05)
  102. size = 40
  103. wait(0.05)
  104. size = 20
  105. wait(0.05)
  106. size = 40
  107. wait(0.05)
  108. size = 69
  109. wait(0.05)
  110. size = 90
  111. wait(0.05)
  112. size = 99
  113. wait(0.05)
  114. size = 10
  115. wait(0.05)
  116. size = 3
  117. wait(0.05)
  118. size = 99
  119.  
  120.  
  121. until playing == false
  122. end)
  123. visualize()
  124. elseif chat == "/volume+" then
  125. music.Volume = music.Volume + 1
  126.  
  127. elseif chat == "/volume-" then
  128. music.Volume = music.Volume - 1
  129.  
  130. elseif chat == "/stop" then
  131. if hrp:FindFirstChild("music") ~= nil then
  132. size = 45
  133. playing = false
  134. hrp["music"]:Remove()
  135.  
  136.  
  137.  
  138.  
  139.  
  140. end
  141. end
  142. end)
  143.  
  144. function onTouched(part)
  145. local h = part.Parent:findFirstChild("Humanoid")
  146. if h~=nil then
  147. h.Health = h.Health -60
  148. wait(2.00)
  149. end
  150. end
  151.  
  152. script.Parent.Vis.Dead.Touched:connect(onTouched)
  153.  
  154. game.Workspace.Animescapetower.Humanoid.MaxHe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement