Advertisement
Animescapetower

Fire Sphere - Sphere vis edit

Mar 1st, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.06 KB | None | 0 0
  1. --This was made by someone, edited by animescapetower
  2. --Original Script -> Wave Visualizer
  3. --My Discord Id -> Animescapetower#3026
  4. --Finally i edited this again, so do you guys want a fire sphere version
  5. local player = game.Players.LocalPlayer
  6. local char = player.Character
  7. local ispeed = 30
  8. local sine = 50
  9. local sine2 = 34
  10. local size = 45
  11. local maxTabs = 5
  12. local ai = 360/maxTabs
  13. hrp=char["HumanoidRootPart"]
  14. rd=math.rad
  15. local fold = Instance.new("Folder")
  16. fold.Name = "Vis"
  17. fold.Parent = char
  18. --------------------------------------
  19. local siner = coroutine.wrap(function()
  20. while true do wait()
  21. sine = sine+1
  22. end
  23. end)
  24. siner()
  25. --------------------------------------
  26. function TweenMe(joint,prop,cfrmz,alp,es,ed)
  27. local ts = game:GetService("TweenService")
  28. local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
  29. local pp = {[prop] = cfrmz}
  30. local tween = ts:Create(joint,ti,pp)
  31. tween:Play()
  32. end
  33. function createPart()
  34. local p = Instance.new("Part")
  35. p.Name = "Dead"
  36. p.Anchored = true
  37. p.Shape = 0
  38. p.Transparency = 0
  39. p.CanCollide = false
  40. p.TopSurface = "Smooth"
  41. p.BottomSurface = "Smooth"
  42. p.Material = "Neon"
  43. p.Size = Vector3.new(2,2,2)
  44. p.CFrame = CFrame.new(hrp.CFrame.p)
  45.  
  46. return p
  47.  
  48.  
  49.  
  50. end
  51.  
  52. function createFire()
  53. local p2 = Instance.new("Fire")
  54. p2.Size = 10
  55. p2.Color = char.Torso.Color
  56. p2.SecondaryColor = char.Head.Color
  57.  
  58. return p2
  59.  
  60.  
  61.  
  62. end
  63.  
  64. local idk = 4
  65. local eh = 360/idk
  66. for i = 1,360/ai do
  67.  
  68.  
  69.  
  70. local p = createPart()
  71. p.Parent = fold
  72. 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)
  73.  
  74. local p2 = createFire()
  75. p2.Parent = p
  76. p2.Heat = 123
  77. end
  78.  
  79.  
  80.  
  81. -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
  82. local music = coroutine.wrap(function()
  83. while true do wait()
  84. local gc = fold:GetChildren()
  85. for i = 1,#gc do
  86. sine2=sine2+0.5
  87. local l = tick()+sine2
  88. local p = gc[i]
  89. TweenMe(p,'Color',Color3.new(size*math.sin(l)/1,0/45,-size*math.sin(l)/12),1,"Sine","Out")
  90. local size2 = size*45
  91. 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')
  92. end
  93. end
  94. end)
  95. music()
  96. --------------------------------------
  97. local playing = false
  98. player.Chatted:connect(function(chat)
  99.     if chat:sub(1,3) == "/vis " then
  100.         local num = chat:sub(4)
  101.         size = num
  102.     elseif chat:sub(1,6) == "/play " then
  103.         if hrp:FindFirstChild("music") ~= nil then
  104.             size = 45
  105.             playing = false
  106.             hrp["music"]:Remove()
  107.         end
  108.         wait(1)
  109.         local id = chat:sub(7)
  110.         local music = Instance.new("Sound",hrp)
  111.         music.Looped = true
  112.         music.Name = "music"
  113.  
  114.         music.Volume = 6
  115.         music.SoundId = "rbxassetid://"..id
  116.         music.MaxDistance = 500
  117.         music.EmitterSize = 500
  118.         music:Play()
  119.         playing = true
  120.         local visualize = coroutine.wrap(function()
  121.             repeat wait()
  122.  
  123. wait()
  124.            
  125.  
  126.  
  127. wait()
  128. size = 300
  129. wait()
  130. size = 100
  131. wait()
  132. size = 300
  133. wait()
  134. size = 50
  135. wait()
  136. size = 100
  137. wait()
  138. size = 50
  139.  
  140.  
  141.  
  142.    
  143.  
  144.        
  145.         until playing == false
  146.         end)
  147.         visualize()
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. elseif chat == "/pitch<1 " then
  156. hrp.music:Play()
  157. hrp.music.PlaybackSpeed  =  hrp.music.PlaybackSpeed + 1.54
  158. elseif chat == "/pitch>1" then
  159.  
  160. hrp.music:Play()
  161. hrp.music.PlaybackSpeed  =  hrp.music.PlaybackSpeed - 1.54
  162.  
  163. elseif chat == "/volume> " then
  164. hrp.music:Play()
  165. hrp.music.Volume=  hrp.music.Volume+ 1.54
  166.  
  167. elseif chat == "/volume<" then
  168. hrp.music:Play()
  169. hrp.music.Volume=  hrp.music.Volume- 1.54
  170. hrp.music.Volume = 8
  171. hrp.music.MaxDistance = 150
  172. hrp.music.EmitterSize = 150
  173. elseif chat == "/noglobe" then
  174. hrp.music:Play()
  175. hrp.music.MaxDistance = 100
  176. hrp.music.EmitterSize = 100
  177. elseif chat == "/globe" then
  178. hrp.music:Play()
  179. hrp.music.MaxDistance = 500
  180. hrp.music.EmitterSize = 500
  181.  
  182.     elseif chat == "/stop" then
  183.         if hrp:FindFirstChild("music") ~= nil then
  184.             size = 45
  185. wait(1)
  186. size = 45
  187. player.Character.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)           
  188. playing = false
  189.             hrp["music"]:Remove()
  190.  
  191.  
  192.  
  193.  
  194.        
  195. end
  196.     end
  197. end)
  198.  
  199.  
  200.  
  201.  
  202. player.Character.Humanoid.MaxHealth = "Inf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement