Advertisement
Animescapetower

Untitled

Feb 25th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 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.05)
  99.  
  100.  
  101. size = 45
  102. wait(0.05)
  103. size = 40
  104. wait(0.05)
  105. size = 24
  106. wait(0.05)
  107. size = 90
  108. wait(0.05)
  109. size = 2
  110. wait(0.05)
  111. size = 2
  112.  
  113.  
  114. until playing == false
  115. end)
  116. visualize()
  117. elseif chat == "/volume+" then
  118. hrp.music:Play()
  119. hrp.music.Volume = hrp.music.Volume + 4
  120.  
  121. elseif chat == "/volume-" then
  122. hrp.music:Play()
  123. hrp.music.Volume =hrp.music.Volume - 4
  124. elseif chat == "/noglobe" then
  125. hrp.music:Play()
  126. hrp.music.MaxDistance = 100
  127. hrp.music.EmitterSize = 100
  128. elseif chat == "/globe" then
  129. hrp.music:Play()
  130. hrp.music.MaxDistance = 500
  131. hrp.music.EmitterSize = 500
  132.  
  133. elseif chat == "/stop" then
  134. if hrp:FindFirstChild("music") ~= nil then
  135. size = 45
  136. wait(1)
  137. size = 45
  138. playing = false
  139. hrp["music"]:Remove()
  140.  
  141.  
  142.  
  143.  
  144.  
  145. end
  146. end
  147. end)
  148.  
  149. function onTouched(part)
  150. local h = part.Parent:findFirstChild("Humanoid")
  151. if h~=nil then
  152. h.Health = h.Health -60
  153. wait(2.00)
  154. end
  155. end
  156.  
  157. script.Parent.Vis.Dead.Touched:connect(onTouched)
  158.  
  159. game.Workspace.Animescapetower.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement