i used script:
```lua local Player = script.Parent.Parent
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HumaoidRP = Character:WaitForChild("HumanoidRootPart")
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.G then
print("bag droped")
game.ReplicatedStorage.remote:FireServer(game.Workspace.Baseplate:Destroy())
end
end) ``` and i used fire SERVER, but baseplate only removed for client, (player pressing g) why? please fix it :)
You can't pass the code you want to execute as a parameter, you'll have to listen for the event being fired on the server (Script) and execute that code there. So just do game.ReplicatedStorage.remote:FireServer()
and on the server
game.ReplicatedStorage.remote.OnServerEvent:Connect(function(plr) print(plr.Name, "destroyed the basepalte") game.Workspace.Baseplate:Destroy() end
Further reading: https://developer.roblox.com/api-reference/class/RemoteEvent