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 make this Server Script work as a LocalScript?

How do I make this work in a LocalScript?

local part1 = workspace.Part1
local part2 = game.Players.LocalPlayer.Character.HumanoidRootPart	

local magnitude = (part1.Position - part2.Position).magnitude
print(magnitude)

1 answer

✓ Accepted answer

What are you saying? Are you seeing if your script works before using it? Are you having difficulties with Server/LocalScripts?

It already works in a LocalScript.

4 comments

0

Doesn't work for me :/

0

Please elaborate.

0

The LocalScript is in Workspace, there's nothing in the Output. It's not disabled, I dunno whats wrong.

0

localscripts dont execute in the workspace they only execute in playergui the players backpack playerscripts or decendants of the players character

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