currently the block cast works by orientating the casted block from the look vector of caster position
i want it work like this instead, not rotated
currently the block cast works by orientating the casted block from the look vector of caster position
i want it work like this instead, not rotated
nvm i got it to work Preformatted text
i zero out the cframe
game:GetService("RunService").Heartbeat:Connect(function()
local lookVector = Part.CFrame.LookVector
local cframe = CFrame.new(Part.Position) --instead of plugging it in directly
local Result = workspace:Blockcast(cframe,Part.Size,lookVector * distance, NewParams)
if Result then
PartClone.Position = Part.Position + Part.CFrame.LookVector * Result.Distance
end
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.