Hello!
I’m working on a game, where when you place the part, it becomes visible to every other server. The problem is when I place it (so it fires the remote event down below), it’s not sending it to the other servers. Here’s the part of my code.
game:GetService("ReplicatedStorage").PartPlaced.OnServerEvent:Connect(function(plr, cf, color, canPlace)
if canPlace then
plr:WaitForChild("Timer").Value = os.time() + 3600
game:GetService("MessagingService"):SubscribeAsync("placed", function(data)
local part = Instance.new("Part", workspace)
part.Name = plr.Name.."'s Part"
part.Transparency = 0
part.Color = color
part.CanCollide = true
part.Anchored = true
part.CFrame = cf
end)
game:GetService("MessagingService"):PublishAsync("placed")
end
end)
Any help is appreciated!