local script:

if msg:lower():match("full gravity") then
	local gravity = 197
	print(gravity)
game:GetService("ReplicatedStorage"):WaitForChild("gravity"):FireServer(gravity)
end

server script:

game.ReplicatedStorage:WaitForChild("gravity").OnServerEvent:Connect(function(player,gravity)
	game.Workspace.Gravity = gravity
	print(gravity)
end)

prints:

197

197

vity

why does server script both print 197 and vity?

3 comments

0

Do you have another script or line of code running elsewhere? I don't see reason for 'vity' to appear than that unless it's your string manipulation

0

where in the heck is vity coming from :thonk:, that is surely from somewhere else

0

i clicked on the prints to know where they come from and both one of the 197's and vity comes from the server script print