My game is FilteringEnabled. I have a local object that only the player can see (via local script.) I want that object to be passed through a Remote Event, but it doesn't seem to be working. Is there a workaround?

This is in a local script: game.Workspace.RemoteStuff.PlaceTower:FireServer(towerToPlace)

and this is in a server script:

script.Parent.PlaceTower.OnServerEvent:connect(function(plr, tower)
	print("PlaceTowerListener Fired. Tower: " .. tower.Name)
	game.Workspace.PlayerStuff.MoneyValue.Value = game.Workspace.PlayerStuff.MoneyValue.Value - tower.TowerPrice.Value
	local newTower = tower:Clone()
	newTower.TargetScript.Disabled = false
	newTower.FireScript.Disabled = false
	newTower.Parent = game.Workspace.Towers
end

2 comments

0

i would keep the whole tower object on the server have the client tell the server when the tower is bought

0

Okay. That's just really... annoying though. ^.^