Hello! How do I make a script that when I press a button, it prints everyones gravity number? I've tried looking on forums for similar topics but I can't find anything anywhere. Please help!
✓ ANSWER ACCEPTED
How do I print everyones gravity value?
1 answer
✓ Accepted answer
Hey hey there, you should use a remoteEvent, a script and a LocalScript
about an remoteEvent, put it in ReplicatedStorage and name it "GravityPrint" or whatever
put script inside the clickdetector
put localscript in StarterPlayer > StarterPlayerScripts
now about the script:
local ClickDetector = script.Parent
ClickDetector.MouseClick:Connect(function()
game:GetService("ReplicatedStorage").GravityPrint:FireAllClients()
end)
that's basically it, it fires all the clients when clicked, now localscript:
local GravityPrint = game:GetService("ReplicatedStorage").GravityPrint
GravityPrint.OnClientEvent:Connect(function() -- if they detect an event fires
print(game.Workspace.Gravity)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
"hey hey there" aaaaaaaaaaaaaaaaaaaaaaaaaa
i located the gravityprint on the localscript since it's too long and i dont want people to click about the "open source" thing because it's lame lol
ignore my comments here, it's useless for your brain (delete it)
im cringe talking myself to myself what am i even saying goodbye
This only prints my gravity tho... I need it to print everyone in the games gravity. Like Username: 196, OtherUsername: 196