how can i change a value from a local script to the server? Cuz i wanna change a value to the server from a local script! Any feedbacks would help so much!
1 Like
we already tried that, but it din’t work
Then you might have done something wrong could you send me your scripts and a screenshot of your ( Script LocalScript and RemoteEvent ) in Explorer
Server script:
game.ReplicatedStorage.SetValue.OnServerEvent:Connect(function(object,set)
object.Color = set
end)
Local script
colourDisplay.Changed:Connect(function()
game.ReplicatedStorage.SetValue:FireServer(script.Parent.Parent.Object,colourDisplay.ImageColor3)
end)
the first parametr of OnServerEvent is player change to this
game.ReplicatedStorage.SetValue.OnServerEvent:Connect(function(player,object,set)
object.Color = set
end)
1 Like
Tysmmm it works, btw tysm for your feedback and it also works yess
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.