Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I print everyones gravity value?

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!

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)

5 comments

0

"hey hey there" aaaaaaaaaaaaaaaaaaaaaaaaaa

0

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

0

ignore my comments here, it's useless for your brain (delete it)

0

im cringe talking myself to myself what am i even saying goodbye

0

This only prints my gravity tho... I need it to print everyone in the games gravity. Like Username: 196, OtherUsername: 196

This discussion is preserved as it was. New answers, comments, and votes are closed.