Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to transfer Server variables to client side with remore functions?

Asked by 4 years ago

As of now I have this code for server --Server Script

game.Players.PlayerAdded:Connect(function(Player)

print(Player.Name)

   game.ReplicatedStorage.AddPlayer:FireClient(Player.Name)



end)






--Local Script

game.ReplicatedStorage.AddPlayer.OnClientEvent:Connect(function(player)



    local clony = game.ReplicatedStorage.PlayerKit:Clone()
    clony.Name = game.Players[player].PlayerGui
    clony.Parent = game.Players[player].PlayerGui.Main.Stuff.Texture.ScrollingFrame
    clony.playerpho.Image =
"http://www.roblox.com/Thumbs/Avatar.ashxx=100&y=100&Format=Png&username="..player




end)





1
Could you please be more specific on the issue? LucarioZombie 291 — 4y

Answer this question