i wanna put a script inside a Value This is my script
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = plr:WaitForChild("leaderstats")
local won = plr.leaderstats:WaitForChild("Won")
wait(1)
local rank = Instance.new("StringValue",leaderstats)
rank.Name = "Rank"
local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
local InsertScript = game.ReplicatedStorage:WaitForChild("Script")
Event:FireServer(Event,InsertedScript,rank)
end)
Output : FireServer can only be called from the client

4 comments
Why are you using :FireServer on a server-sided script?
What do you want the script to do? Like testimonent said, that's wrong, but I think it would help better if you'd tell us what you want to happen with it.
What are you even trying to do...
legend