hello devs
I got some help setting up my first RemoteEvent yet it still doesn't work and gives the error
FireServer is not a valid member of script
my tiny brain is not following why its happening due to looking at the script and its flawless (to me)
my local script(inside a shop GUI) is
local Event = game.ReplicatedStorage.PetRemote
Event:FireServer(petName)
and my remote event (RepStorage) is
local Event = Instance.new(game.ReplicatedStorage.PetRemote)
Event.Name = "PetRemote"
Event.OnServerEvent:Connect(function(Player,Value)
print("Value received from client, Player:",Player.Name,"Value:",Value)
end)
Won't Print

7 comments
Can you please format your script into a code block?
would it be easier to not create a new event?
yeah use the code block
ok sorry guys new to this site
I made them both code blocks, It has to be a new event due to im trying to contact server from local script
remove lua
yea