So i'm pretty new to F.E. stuff, and Remotes...so i have these two script but they will not work for some reason can someone tell me why?
Script 1.
--Local Script Inside StarterPlayer scripts
game.Workspace.Shop.Button.ClickDetector.MouseClick:connect(function(player)
local Event = game.ReplicatedStorage:WaitForChild("Shop_Event")
Event:FireServer()
end)
Script 2.
--Server Script Inside the Shop Button
--The ServerEvent is inside ReplicatedStorage.
local Event = game.ReplicatedStorage:WaitForChild("Shop_Event")
Event .OnServerEvent:connect(function()
local player = game.Players.LocalPlayer
player.PlayerGui.ShopUi.Frame.Visible = true
player.PlayerGui.ShopUi.camera.Disabled = false
end)

1 comment
It does work in Play Solo but it will not work in Roblox Player/Client. @Master_JJ