Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local char = plr.Character
- local main = char.HumanoidRootPart
- local remote = Instance.new("RemoteEvent", main)
- remote.Name = "SoundAlert"
- local float = 5
- local pbl = 0
- local face = Instance.new("Part", owner.Character)
- face.Name = "Face"
- face.CanCollide = false
- face.Size = Vector3.new(0.05+pbl/200,0.05+pbl/200,0.05+pbl/200)
- face.Material = "Neon"
- face.CFrame = main.CFrame *CFrame.new(1, 3, 3)
- local sound = Instance.new("Sound", face)
- sound.SoundId = "rbxassetid://3560497244"
- sound.Volume = 2
- sound.Looped = true
- sound:Play()
- sound.Name = "Song"
- local velo = Instance.new("BodyVelocity", face)
- velo.MaxForce = Vector3.new(900000000000, 900000000000, 900000000000)
- velo.P = Vector3.new(900000000000, 900000000000, 900000000000)
- local angle = Instance.new("BodyAngularVelocity", face)
- a = [[
- spawn(function()
- Music = owner.Character.Face.Song
- Event = owner.Character.HumanoidRootPart.SoundAlert
- RunService = game:GetService("RunService")
- RunService.RenderStepped:Connect(function()
- Event:FireServer(Music.PlaybackLoudness)
- end)
- end)
- ]]
- NLS(a,main)
- remote.OnServerEvent:connect(function(P,X)
- float = float +5
- pbl = X
- end)
- vis = coroutine.wrap(function()
- while wait() do
- for i = 0,1,0.1 do
- wait()
- local service = game:GetService("TweenService")
- local goal = {}
- goal.CFrame = main.CFrame *CFrame.new(0, 5, 0)
- goal.Size = Vector3.new(0.05+pbl/80,0.05+pbl/80,0.05+pbl/80)
- local tweeninfo = TweenInfo.new(0.6)
- local tweeninfo2 = TweenInfo.new(0)
- local goal2 = {}
- goal2.Size = Vector3.new(0.05+pbl/50,0.05+pbl/50,0.05+pbl/50)
- goal2.Color = Color3.new(0.05+pbl/50,0.05+pbl/50,0.05+pbl/50)
- local tween2 = service:Create(face, tweeninfo, goal2)
- tween2:Play()
- end
- end
- end)vis()
- plr.Chatted:connect(function(msg)
- if msg:sub(1,5) == ">play" then
- sound:Stop()
- sound.SoundId = "rbxassetid://"..msg:sub(7)
- sound:Play()
- end
- if msg:sub(1,7) == ">resume" then
- sound:Resume()
- end
- if msg:sub(1,5) == ">stop" then
- sound:Stop()
- end
- if msg:sub(1,4) == ">vol" then
- sound.Volume = msg:sub(6)
- end
- if msg:sub(1,6) == ">pitch" then
- sound.PlaybackSpeed = msg:sub(8)
- end
- end)
- floatanim = coroutine.wrap(function()
- while true do
- wait()
- for i = 0,1,0.1 do
- float = float +0.06
- wait()
- end
- for i = 0,1,0.1 do
- wait()
- float = float +0.06
- end
- end
- end)
- floatanim()
- while wait() do
- velo.Velocity = owner.Character.Head.Position - face.Position +Vector3.new(0, 3, 0)
- if pbl < 300 then
- angle.AngularVelocity = Vector3.new(math.sin(pbl) *3, math.sin(float) *3, math.sin(-pbl) *3)
- end
- if pbl > 299 then
- angle.AngularVelocity = Vector3.new(math.sin(-pbl) *3, math.sin(-pbl) *3, math.sin(-pbl) *3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement