craftb0t10
(boulderhoodiecode)
October 5, 2022, 3:57am
#1
Using a model for FastCast module and I’m getting the error attempt to index nil with ToWorldSpace. Any answers would be appreciated!
local bulletLength = bullet.PrimaryPart.Size.Z/2
local offset = CFrame.new(0, 0, -(length-bulletLength))
bullet:SetPrimaryPartCFrame(CFrame.lookAt(lastPoint, lastPoint+direction)):ToWorldSpace(offset)
Pure_Bacn
(Pure_Bacn)
October 5, 2022, 4:07am
#2
I think you had a parenthesis misplacement, try this on the last line
bullet:SetPrimaryPartCFrame(CFrame.lookAt(lastPoint, lastPoint+direction):ToWorldSpace(offset))
craftb0t10
(boulderhoodiecode)
October 5, 2022, 4:08am
#3
Thanks! That worked!
–Minimum character limit