Hello there! These lines don’t change where my part is looking for some reason. Script:
game.ReplicatedStorage.Remotes.WallEvent.OnServerEvent:Connect(function(plr, char)
local wall = game.ServerStorage.Wall:Clone()
wall.Parent = workspace
print(char.HumanoidRootPart.CFrame.LookVector)
wall.CFrame = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.CFrame.LookVector) --This is the part where it doesn't work
print(wall.CFrame)
local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false)
local tween = game:GetService("TweenService"):Create(wall.Wall, tweeninfo, {Size = wall.Size + Vector3.new(0,18.04,0)})
wait(3)
tween:Play()
end)
Explorer:
Any help is appreciated, thanks!