generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Does GetRealPhysicsFPS() works on other clients?

Previous Thread :: Next Thread 
nomerdude is not online. 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
MyNameIsPuck is not online. MyNameIsPuck
Joined: 23 Apr 2014
Total Posts: 129
04 Sep 2014 04:16 PM
Roblox's FPS is always around 30
Report Abuse
Bobobob12 is not online. Bobobob12
Joined: 23 Jan 2008
Total Posts: 5350
04 Sep 2014 04:19 PM
localscripts
Report Abuse
nomerdude is not online. 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
SuperAlpacaMan is not online. SuperAlpacaMan
Joined: 18 Nov 2008
Total Posts: 774
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 is not online. 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 is not online. 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 is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
04 Sep 2014 08:18 PM
It's actually around 60 .-.
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image