Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character
- local ispeed = 30
- local sine = 50
- local sine2 = 34
- local size = 45
- local maxTabs = 5
- local ai = 360/maxTabs
- hrp=char["HumanoidRootPart"]
- rd=math.rad
- local fold = Instance.new("Folder")
- fold.Name = "Vis"
- fold.Parent = char
- --------------------------------------
- local siner = coroutine.wrap(function()
- while true do wait()
- sine = sine+1
- end
- end)
- siner()
- --------------------------------------
- function TweenMe(joint,prop,cfrmz,alp,es,ed)
- local ts = game:GetService("TweenService")
- local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
- local pp = {[prop] = cfrmz}
- local tween = ts:Create(joint,ti,pp)
- tween:Play()
- end
- function createPart()
- local p = Instance.new("Part")
- p.Name = "Dead"
- p.Anchored = true
- p.Shape = 0
- p.Transparency = 0.5
- p.CanCollide = false
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Material = "Neon"
- p.Size = Vector3.new(2,2,2)
- p.CFrame = CFrame.new(hrp.CFrame.p)
- return p
- end
- local idk = 4
- local eh = 360/idk
- for i = 1,360/ai do
- local p = createPart()
- p.Parent = fold
- 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)
- end
- -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
- local music = coroutine.wrap(function()
- while true do wait()
- local gc = fold:GetChildren()
- for i = 1,#gc do
- sine2=sine2+0.5
- local l = tick()+sine2
- local p = gc[i]
- TweenMe(p,'Color',Color3.new(size*math.sin(l)/1,0/45,-size*math.sin(l)/12),1,"Sine","Out")
- local size2 = size*45
- 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')
- end
- end
- end)
- music()
- --------------------------------------
- local playing = false
- player.Chatted:connect(function(chat)
- if chat:sub(1,3) == "/vis " then
- local num = chat:sub(4)
- size = num
- elseif chat:sub(1,6) == "/play " then
- if hrp:FindFirstChild("music") ~= nil then
- size = 45
- playing = false
- hrp["music"]:Remove()
- end
- wait(1)
- local id = chat:sub(7)
- local music = Instance.new("Sound",hrp)
- music.Looped = true
- music.Name = "music"
- music.Volume = 6
- music.SoundId = "rbxassetid://"..id
- music.MaxDistance = 500
- music.EmitterSize = 500
- music:Play()
- playing = true
- local visualize = coroutine.wrap(function()
- repeat wait()
- wait(0.5)
- wait(0.05)
- size = 40
- wait(0.05)
- size = 20
- wait(0.05)
- size = 40
- wait(0.05)
- size = 69
- wait(0.05)
- size = 90
- wait(0.05)
- size = 99
- wait(0.05)
- size = 10
- wait(0.05)
- size = 3
- wait(0.05)
- size = 99
- until playing == false
- end)
- visualize()
- elseif chat == "/volume+" then
- music.Volume = music.Volume + 1
- elseif chat == "/volume-" then
- music.Volume = music.Volume - 1
- elseif chat == "/stop" then
- if hrp:FindFirstChild("music") ~= nil then
- size = 45
- playing = false
- hrp["music"]:Remove()
- end
- end
- end)
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -60
- wait(2.00)
- end
- end
- script.Parent.Vis.Dead.Touched:connect(onTouched)
- game.Workspace.Animescapetower.Humanoid.MaxHe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement