Hello, please review the answer to my question of 'Code works in a server script but doesn't work on a local script?'
I am currently confused of how to do such thing as he didn't actually explain much. If there is a solution that doesn't involve a RemoteEvent please tell me.
My code:
local eggs = game.ReplicatedStorage.Eggs
local spawns = game.Workspace.EggSpawns
local spawn = spawns.EoTS
local eots = eggs["Egg of True Skill"]
local eggClone = eots:Clone()
local eggClone2 = eots:Clone()
eggClone.Parent = game.Workspace.SpawnedEggs
eggClone.Position = spawn.Position + Vector3.new(0,0.5,0)
eggClone.Anchored = false
eggClone.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
game.ReplicatedStorage.FoundEgg:FireClient(plr,eggClone.Name)
eggClone:destroy()
end
end)

5 comments
if you are trying to send information to the server the only way is to use remote events and funtions, its not that hard just watch a video on it
Could you send one
this is a very good video explaining remote events and stuff about the server and client. https://youtu.be/wCr5VXJ34T4
You have to use the remote event, or there are no other solutions.
or remote function, with extra return values.