How can i fix this? ( FPS Tracker )

Im trying to do a game that show player fps.

The problem is When i play with someone else it just show ‘Label’ and if i remove the local script and put it as a normal script i get this
image

How can i fix this?

Well since RenderStepped can only be done though the client and you’re changing the TextLabel through a local script, it will not replicate to other clients and will therefore only show up as “Label”. Are you trying to make a client’s FPS visible to other clients?

Yes im trying to do that! but i dont know how

Can’t you do it in a server script and just use .Heartbeat instead? Although putting it in a server script may require changes to the code

Im doing it inside a SurfaceGui

image

I think converting it to a script and using .Heartbeat would still make it work, before anything, may I see your code as to see what may need changing

Yes! sure :smiley: the code is

image

and

image

Here seems to be no issue with it if you convert it to a regular script. There are few nuances such as using deprecated methods and what not, but they shouldn’t affect your code. Try it out

Again, change RenderStepped to Heartbeat

Like this?
image

That is correct, try it out and remember to change it to a regular script instead of a localscript

image

image

image

The first one I’m not sure what’s that about, for the FPSscript, could you show me the code you have currently inside it?

image

rs.Heartbeat.connect(updateFPS)

You wrote a . instead of a :

rs.Heartbeat:Connect(updateFPS)

Is how you do it

It works! but i still get

  InsertService cannot be used to load assets from the client

It’s probably because you’re trying to use InsertService in a localscript. What’s the code for it and what type of script it is?

I checked inside each script and i dont see any “InsertService” is “GetService” related?

Hmm, could you show me the script the error is coming from and tell me what type of script is it. It could be that you have to convert it into a regular script instead of a localscript judging by the error

OK THE ERROR IS GONE!
i had a script in serverscriptservice

So everything is good now? The error is gone, your FPS tracker works server sided now, is there anything else?