this is in a local script in a tool. the Name X Y and Z values do not change in replicated storage.
RepStore = game:GetService("ReplicatedStorage")
X = RepStore.X.Value
Y = RepStore.Y.Value
Z = RepStore.Z.Value
Name = RepStore.Name.Value
local function onActivate()
local Part = Mouse.Target
if Part.Parent == workspace.Plot then
X = Mouse.Target.Position.X
Y = Mouse.Target.Position.Y
Z = Mouse.Target.Position.Z
Name = Mouse.TargetSurface.Name
end
end
tool.Activated:Connect(onActivate)

1 comment
Pls mark my answer as correct if it works plssss