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

Possible ReplicatedStorage not working?

Asked by
tre821 25
8 years ago

Okay so I'm trying to make it so that when the player joins a game, their character thumbnail can be seen in the bottom left corner GUI image. The script is in Replicated Storage and is local. For some reason, this works just fine in studio, but when I go to play it, it just doesn't show up. Along side this, I have other scripts in Replicated First as well as some GUIs in Replicated Storage that won't work when I go to play it outside of studio, but will work when I play it in studio. Here's the Script for the image:

game.Players.LocalPlayer.PlayerGui.other.ImageLabel.Image = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=' .. game.Players.LocalPlayer.Name

I've tried moving the script into Workspace and trying to get the Replicated Storage service, but I don't know how I'm supposed to use it after I use the get service method.

1 answer

Log in to vote
0
Answered by 8 years ago

LocalScripts don't work in ReplicatedStorage
And they don't work in Workspace either.

If you need to get a script running any time after the load screen, it's recommended that the script is moved either to the PlayerGui or to the PlayerScripts. It isn't recommended to keep any scripts in ReplicatedFirst unless they're used for a loading script, in which case they are required to be there.

Ad

Answer this question