I have a build tool, that places blocks in the position of player’s mouse, however due to the tool using local script, the block was visible only for me. I tried to use remote event to place block on server side, but it does not simply work.
Local script part:
Regular script part:
And it gives this error.
How could I get the data from local script to the server script?
The server script u need to put “plr” in as the first argument. and rest the same
game.ReplicatedStorage.PlacePart.OnServerEvent:Connect(function(plr, size, cframe, position, target)
When using the OnServerEvent
, your parameters are (player, ..., ...)
. Make sure to add player to the parameter.
That sadly still gives same error
U dont fire the Event with “Player” the server gets it automatically
Just remove this and you should be fine:
1 Like
That fixed the error occuring, thanks
However no block placed but ill try fixing this one myself
1 Like
From one topic to another… Eh…
system
(system)
Closed
November 18, 2024, 4:07pm
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.