Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

[ANSWERED] Passing objects from server to client through RemoteEvent (FilteringEnabled)? [closed]

Asked by 8 years ago

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
0
i would keep the whole tower object on the server have the client tell the server when the tower is bought ProfessorSev 220 — 8y
0
Okay. That's just really... annoying though. ^.^ SonyController 15 — 8y

Locked by General_Scripter, TheHospitalDev, AZDev, and Prioxis

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?