ProfileService issues

Hello, I have been having some issues with ProfileService as I recently switched to using it. I’m not entirely sure on how to go about fixing this kind of stuff, as I’ve looked up YouTube videos and whatnot about ProfileService and still cant find a solution. The issue is with the :Set command, but I’ve no clue what the issue with it actually is. Here’s a picture of the errors I’ve been receiving.

3 Likes

It should be proifle.Data with a capital D in line 110

3 Likes

Thanks, I really overlooked a simple problem haha.


if possible, would you also know the solution to this, or if I’m possibly doing something wrong again? It errors the same line as before, 110, but it gives a different error.

It’s a type error caused by the assert function, basically type of the value of profile.Data[key] isn’t the same as value, try printing both before it to assur of same they are of same type.

It worked when I spawned in (clan gets set as soon as you spawn in as long as you have no data), and it errored when I tried setting my name

I’ve watched this same tutorial before, it didn’t work so instead I used another tutorial and it worked perfectly, and not as complicated when setting values:

print(type(profile.Data[key]), type(value))


prints out as “string userdata”

In RemoteEvent.OnServerEvent the first argument is the player, and then the data goes. You need to do this:

name_remote.OnServerEvent:Connect(function(plr, CName)
....
1 Like

Yup, worked. Thanks :slight_smile: I’ll mark the first reply I was given as the solution to my problem since that was originally what the issue I had was. I appreciate your help though.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.