I have a gun script and when I call the RemoteEvent it shoots a bullet to a point. The script is erroring out when I call TweenService.
local bullet = ReplicatedStorage.Bullet:Clone()
bullet.CFrame = gun.Handle.CFrame
bullet.Parent = workspace
local bulletDeration = derection.Magnitude / 15
TweenService:Create(bullet, TweenInfo.new(bulletDeration), {CFrame * CFrame.new(mousePosition)}):Play()
-- I am getting the error "invalid argument #1 (CFrame expected, got table)" on the line above
I have tried to change “bullet” to “bullet.CFrame”, also I added a “CFrame =” in the beginning of the curly braces(thx @S3CR3TH4CK).