Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = owner.Character
- local Remote = Instance.new("RemoteEvent", owner.Character)
- Remote.Name = "LEVENT"
- local Part = Instance.new("Part", owner.Character)
- Part.Name = "Pumpkin"
- Part.Anchored = true
- Part.CFrame = owner.Character.Torso.CFrame *CFrame.new(0, 2, 4) *CFrame.new(0, 4, 0)
- Part.CanCollide = false
- local Mesh = Instance.new("SpecialMesh", Part)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=16973748"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=16973739"
- local Song = Instance.new("Sound", Part)
- Song.SoundId = "rbxassetid://1473560932"
- Song.Volume = 2
- Song.Looped = true
- Song:Play()
- local Spin = 0.1
- local pbl = 0
- NLS([[
- game:GetService("RunService").RenderStepped:connect(function()
- owner.Character.LEVENT:FireServer(owner.Character.Pumpkin.Sound.PlaybackLoudness)
- end)
- ]], owner.Character)
- move = coroutine.wrap(function()
- while game:GetService("RunService").Stepped:wait() do
- Spin = Spin +0.1
- Part.CFrame = Part.CFrame:lerp(owner.Character.Torso.CFrame *CFrame.new(1.5, 2, 1.5) *CFrame.Angles(math.sin(Spin) *1, math.cos(Spin) *1, math.sin(Spin) *1), 0.1)
- Mesh.Scale = Vector3.new(0.05+pbl/300,0.05+pbl/300,0.05+pbl/300)
- end
- end)move()
- Remote.OnServerEvent:connect(function(x, l)
- pbl = l
- end)
- owner.Chatted:connect(function(msg)
- if msg:sub(1,5) == ";play" then
- Song:Stop()
- Song.SoundId = msg:sub(7)
- Song:Play()
- end
- if msg:sub(1,4) == ";vol" then
- Song.Volume = msg:sub(6)
- end
- if msg:sub(1,6) == ";pitch" then
- Song.PlaybackSpeed = msg:sub(8)
- end
- end)
Add Comment
Please, Sign In to add comment