Currently, it looks like this: https://streamable.com/hsqcdl
It should be flat on the floor.
1 | local dz = game.ReplicatedStorage.Deadzone:Clone() |
2 | local newDzCFrame = CFrame.Angles(math.rad( 90 ), 0 , 0 ) |
3 | dz.Parent = workspace |
4 | dz.CFrame = dz.CFrame * newDzCFrame |
5 | dz.CFrame = root.CFrame * CFrame.new( 0 ,- 2 ,- 15 ) --test |
6 | game.Debris:AddItem(dz, dzTime) |
1 | local dz = game.ReplicatedStorage.Deadzone:Clone() |
2 | dz.CFrame = CFrame.Angles(math.rad( 90 ), 0 , 0 ) + (root.CFrame.Position + Vector 3. new( 0 ,- 2 ,- 15 )) |
3 | dz.Parent = workspace |
4 | game.Debris:AddItem(dz, dzTime) |
Try something like this.
1 | local dz = game.ReplicatedStorage.Deadzone:Clone() |
2 | local newDzCFrame = CFrame.fromEulerAnglesXYZ(math.rad( 90 ), 0 , 0 ) |
3 | dz.Parent = workspace |
4 | dz.CFrame = dz.CFrame * newDzCFrame |
5 | dz.CFrame = root.CFrame * CFrame.new( 0 ,- 2 ,- 15 ) --test |
6 | game.Debris:AddItem(dz, dzTime) |
would this work?