I have a local script that says when a text button is clicked then it fires a remote event.
script.Parent.MouseButton1Down:Connect(function()
if script.Parent.Parent.Parent.RequirementFrame.Visible == false then
script.Parent.Parent.Parent.RequirementFrame.Visible = true
script.Parent.Parent.Parent.RequirementFrame.Active = true
game.Workspace.Events.Text:FireServer()
else
script.Parent.Parent.Parent.RequirementFrame.Visible = false
script.Parent.Parent.Parent.RequirementFrame.Active = false
end
end)
And then I have a script of when the remote event is fired.
script.Text.OnServerEvent:Connect(function(plr)
local NeededJump = plr.Settings.NJump
local NeededSpeed = plr.Settings.NSpeed
local NeededStrength = plr.Settings.NStrength
game.StarterGui.RequirementsGui.RequirementFrame.Strength.Text = "Strength: "..NeededStrength.Value
game.StarterGui.RequirementsGui.RequirementFrame.Jump.Text = "Jump: "..NeededJump.Value
game.StarterGui.RequirementsGui.RequirementFrame.Speed.Text = "Speed: "..NeededSpeed.Value
end)
The OnServerEvent script is not a LocalScript.
I have checked every word in both scripts and neither of them have typos. I used Print to check if it stopped at a certain line but it didn't. It doesn't give any errors in the output. The problem is not a typo or anything, it just won't change the text. Please help?

1 comment
LocalScripts can't even use OnServerEvent. It's not even listed in the available events as you type. Are you trying to start a riot or something?