server-sided script in serverscriptservice.... this should fire the remote event when the numbervalue (points) is changed but it gives an "argument 1 is missing or nil" error in line 5
points = game:GetService("ServerStorage"):WaitForChild("points")
event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")
points.Changed:Connect(function()
event:FireClient()
end)
when it fires the event this local script should change the text of the text label to be = the value of the points
event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")
points = game:GetService("ServerStorage"):WaitForChild("points")
event.OnClientEvent:Connect(function()
script.Parent.TextLabel.Text = points.Value
end)

1 comment
ok thanks ^^