Server
game.ReplicatedStorage.StatusChange.OnServerEvent:Connect(function(StatusText)
game.Lighting.Status.Time.Text = StatusText
local sound = Instance.new("Sound",game.Workspace)
sound.Name = "StatusChangedSound"
sound.SoundId = "rbxassetid://".."138093550"
sound.Looped = true
local pitcher = Instance.new("PitchShiftSoundEffect",sound)
pitcher.Octave = 0.815
sound:Play()
wait(2)
sound:Destroy()
end)
Local
script.Parent.MouseButton1Click:Connect(function()
local StatusText = "Lunch"
game.ReplicatedStorage.StatusChange:FireServer(StatusText)
end)
Keeps saying "String Expected, Got Object"

1 comment
The OnServerEvent automatically has a Player object parameter as it's first argument without you having to pass it in. On Line 1 of the server script do ...:Connect(function(player, StatusText)