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

Can I replicate a Torque?

It's only general. If I can replicate a Torque, can I replicate any other constraints?

1 answer

✓ Accepted answer

I'm not very familiar about what a Torque is, but to my knowledge you can replicate almost anything.

If I'm not stupid, a Torque is a Vector3 value? You could do this by replicating the Vector3 then applying the Vector3 to the server-side Torque, or vice versa depending on which way you're replicating.

-- // Client \\ --

local remote = game:GetService("ReplicatedStorage").MyRemoteEvent -- Example remote reference

local MyTorque = Vector3.new(12, 5, 72)

remote:FireServer(myTorque)

-- // Server \\ --

local remote = game:GetService("ReplicatedStorage").MyRemoteEvent -- same event

remote.OnServerEvent:Connect(function(Torque)
	print(Torque) --> Should print 12, 5, 72 but i'm too lazy to test it.
end


Wrote this all in ScriptingHelpers website, respond with any issues as needed :)

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