nomerdude
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 8202 |
|
|
| 04 Sep 2014 04:12 PM |
We play a game based on physics and part movement, but some people ruin the game by cheating.
I'm trying to develop/find a script that will display the FPS Rate of someone else s client to everyone.
The base script i came up with was
while true do local fp = workspace:GetRealPhysicsFPS() script.Parent.Encoding.Text="FPS: " .. fp wait() end
how would i do it for other players or even just any type such as players on a team etc. |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 04:16 PM |
| Roblox's FPS is always around 30 |
|
|
| Report Abuse |
|
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
| |
|
nomerdude
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 8202 |
|
|
| 04 Sep 2014 04:29 PM |
| can you guys help me i have no idea of the workings of the properties of local and normal scripts |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 04:55 PM |
Make a RemoteEvent in ReplicatedStorage and continuously make calls to it from the client with the client's fps (calculated by 1/wait()) passed as an argument. On the server, some script would listen for the firing of that event, and when it fires, the script would update some NumberValue in ReplicatedStorage with the player's fps. Code would look something like this on the client-side:
while true do game.ReplicatedStorage.FpsEvent:FireServer(1/wait()) end
Just imo. There are a million ways to do it. |
|
|
| Report Abuse |
|
|
nomerdude
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 8202 |
|
|
| 04 Sep 2014 05:01 PM |
| alright would i make that its own seperate local script? |
|
|
| Report Abuse |
|
|
nomerdude
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 8202 |
|
|
| 04 Sep 2014 08:03 PM |
while true do wait(.1) if script.Parent.IsActive.Value == true then mouse = game.Players.LocalPlayer:GetMouse() if mouse.Target ~= nil then local fps = workspace:GetRealPhysicsFPS() script.Parent.Text = "Speed: "..fps.."FPS" else script.Parent.Text = "Speed: " end else script.Parent.Text = "Speed: " end script.Parent.Text = "Speed: " end
where did i go wrong |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 04 Sep 2014 08:18 PM |
| It's actually around 60 .-. |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 08:50 PM |
Rendering is 60 fps Physics is 30 fps Lua is 30 fps
Also yeah, RemoteFunctions bby Any time a client or the server needs to know someone else's FPS, InvokeServer() that RemoteFunction and have a server Script that sends a message to another RemoteFunction in the desired client.
Maybe. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Sep 2014 10:54 PM |
I thought they increased Physics to 60 fps? And Lua doesn't have any sort of "fps" |
|
|
| Report Abuse |
|
|
nomerdude
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 8202 |
|
|
| 04 Sep 2014 10:55 PM |
yes it does... i just need help with the script, i made a tool displaying speed when the mouse goes over a player but i'm having trouble with displaying it correctly
|
|
|
| Report Abuse |
|
|