Hello I want to make a start and a stop button that will trigger the intValue in ReplicatedStorage. And in the serverscript service it checks is the intvalue is 1 or 0 if it is 1 it start, 0 it stops. But I am having an issue with the start and stop button not working please help me on my script. And yes I tried bool value.
local StartButton = script.Parent.StartButton
local StopButton = script.Parent.StopButton
local UniValue = game.ReplicatedStorage.UniValue
StartButton.MouseButton1Down:Connect(function()
UniValue = true
StartButton.Visible = false
StopButton.Visible = true
end)
StopButton.MouseButton1Down:Connect(function()
UniValue = false
StopButton.Visible = false
StartButton.Visible = true
end)
My Gui script. So my question is Can the local script acess the serverscriptservice and the bool value? Thanks

4 comments
Its cuz you are not sending a value to the remote event labelled "UniValue", you are just setting its value to false or to true. Instead, do UniValue:FireServer(false) or UniValue:FireServer(true)
https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
try this
ok thanks