Again, working on my little menu system. This time I'm scrapping the whole idea of admin commands and moving to old school 'checking if a message has a certain word or phrase in it'. Currently I'm trying to swap from server side scripting to client side scripting through remoteEvents. Somehow this isn't wanting to work. Any help?
local DataSwitchFired = script.Parent.menuCommand.dataSwitch
local function onDataSwitchFired()
local menuGui = script.Parent.menuCommand.MenuGui:Clone()
menuGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
print("just to check") --somehow not printing out in the output
end
DataSwitchFired.OnClientEvent:Connect(onDataSwitchFired)

1 comment
Is the localscript in the Workspace? If yes, then that's why it's not printing. It must be in either playerscripts, a player's backpack, a player's character, or a player's UI