So, basically I want it so that, when you type "Night" or "Day" etc I want the in-game time to change.

Now, I tried doing this locally, and the script worked, then I used remote events and it all went to mess.

Here is the local script located in StarterGUI

local GWCFolder = game.ReplicatedStorage.GWCEvents

local LightingEvent = GWCFolder.Lighting

local GUI = script.Parent.Time.Frame.Confirm
local NotSpecific = game.Players.LocalPlayer.PlayerGui.Menu.Menu.Time.Frame.ObjectiveTime

GUI.MouseButton1Click:Connect(function(yeet)
	
	print("Server, do you copy?")
	game.ReplicatedStorage.GWCEvents.Lighting:FireServer()
	
end)

https://gyazo.com/87f33a7d1aad76d95219f4c210e493e9

Here is the script located in SSS.

local GWCFolder = game.ReplicatedStorage.GWCEvents

local LightingEvent = GWCFolder.Lighting

local Lighting  = game:GetService("Lighting")
local Clocktime = Lighting.ClockTime

local NotSpecific = game.Players.LocalPlayer.PlayerGui.Menu.Menu.Time.Frame.ObjectiveTime

 		


LightingEvent.OnServerEvent:Connect(function(player, NotSpecific)
	
	print("This is server, we copy")
	
	if NotSpecific.Text == "Night" then

		game.Lighting.ClockTime = 21

	elseif NotSpecific.Text == "Evening" then

		game.Lighting.ClockTime = 18

	elseif NotSpecific.Text == "Afternoon" then

		game.Lighting.ClockTime = 17

	elseif NotSpecific.Text == "Day" then

		game.Lighting.ClockTime = 12

	elseif NotSpecific.Text == "Morning" then

		game.Lighting.ClockTime = 7


	end
	
	
end)

Any help would be appreciated