I'm still trying to figure out FireClient so imma need some help here. I have this script where when a player joins it copy's something in replicated Storage. Once it copies it It sends a Remote Event to the server which tells it to loop its BodyPosition to The Players Torso. But The arguments for some reason won't work. Here are my errors are
20:10:39.390 - Player is not a valid member of DataModel
Local Script
game.ReplicatedStorage.DoDun.OnClientEvent:Connect(function(Player,Part)
local bp = Instance.new("BodyPosition")
bp.Parent = Part
bp.P = 20000 local Part = game.ReplicatedStorage["Creation Replicator"]:Clone()
Part.Parent = workspace
bp.Position = game.Player.Character.Torso.CFrame * CFrame.new(-2,0,0).Position
wait()
bp:Destroy()
end)
Server Script
game.Players.PlayerAdded:Connect(function(Player)
local Part = game.ReplicatedStorage["Creation Replicator"]:Clone()
Part.Parent = workspace
while true do
wait()
game.ReplicatedStorage.DoDun:FireClient(Part)
end
end)

5 comments
You didn't specify which player's client to fire, you did "FireClient(Part)." FireClient needs the player who's client is to be fired as the first argument. Try FireClient(Player, Part).
Also, it looks as if you are trying to create a bodyposition and a part in a local script. This will not work, as those changes will not replicate. Those changes should be made in the server script.
So do i put the same aruguments in OnClientEvent() So OnClientEvent(Player,Part)?
No, why pass the player in OnClientEvent?
For the OnClientEvent() the only argument you should need is Part. OnClientEvent(Part).