So here is the problem simplified. I make a tween base on the server.
local tween = TweenService:Create(part, tweenInfo, goal)
And then as soon as I make it, I pass it to the client as such:
game.ReplicatedStorage.PassTween:FireAllClients(tween)
And on the client, here is the code
game.ReplicatedStorage:WaitForChild("PassTween").OnClientEvent:Connect(function(tween)
tween:Play()
end)
And then it gives me the error attempt to index nil with 'Play'
. I tried printing out what the “tween” variable is and it’s exactly nil.