Basically, i’m trying to make an owner gui that unanchors everything in the game. I got the owner only part working, but the unanchor is still local.
I’ve been researching RemoteEvents, but I still can’t figure this out.
local remoteEvent = ReplicatedStorage:WaitForChild("Unanchor")
function onClicked()
a = function(instance)
for i,v in pairs(instance:GetChildren()) do
if v.className == "Part" then
v.Anchored = false
end
a(v)
end
end
a(workspace)
end
script.Parent.MouseButton1Down:connect(onClicked)
remoteEvent:FireAllClients(onClicked)```
(Yes there is a remote event in replicated storage)
local remoteEvent = ReplicatedStorage:WaitForChild("Unanchor")
function onClicked()
remoteEvent:FireAllClients(onClicked)
a = function(instance)
for i,v in pairs(instance:GetChildren()) do
if v.className == "Part" then
v.Anchored = false
end
a(v)
end
end
a(workspace)
end
script.Parent.MouseButton1Down:connect(onClicked)
local remoteEvent = ReplicatedStorage:WaitForChild("Unanchor")
function onClicked()
remoteEvent:FireServer(onClicked)
a = function(instance)
for i,v in pairs(instance:GetChildren()) do
if v.className == "Part" then
v.Anchored = false
end
a(v)
end
end
a(workspace)
end
script.Parent.MouseButton1Down:connect(onClicked)
``` this work?