so basically I once I click the button, I want the indicate (banner) to say "mapselected// map" in this case bricktops
this is the script in the serverscriptstorage to run the remotefunction;
indicated = game.StarterGui.Trainer:WaitForChild("Indicate")
local ind = game.ReplicatedStorage.indicateRFD:WaitForChild("indicateRF")
function ind:OnServerInvoke()
game.Workspace:WaitForChild("Bricktops")
indicated.Text = "MapSelected//Bricktops"
end
this is the script in the indicate gui;
local indicateremote = game.ReplicatedStorage:WaitForChild("IndicateRF")
script.Parent.Parent.TrainerFrame.MapSelections.Bricktops.MouseButton1Click:connect(function()
local invoke = indicateremote:InvokeServer()
script.Parent.Text = "MapSelected// Bricktops"
end)
I really cant find whats gone wrong and ive been stumped for a while. Anyone got a clue? |