I cant get this script to work can anyone help me?
1 | local Player = game.Players.LocalPlayer |
2 | local Mouse = Player:GetMouse() |
3 |
4 | local floor = game.ReplicatedStorage.Floor:Clone() |
5 | floor.Position.Value = Vector 3. new(Mouse.Hit.p.x, 0 , Mouse.Hit.p.z) |
6 | floor.CFrame = CFrame.new(floor.Position.Value + Vector 3. new( 0 , 0.9 , 0 )) * CFrame.fromEulerAnglesXYZ( 0 , math.random( 0 , math.pi* 10 )/ 5 , 0 ) |
7 | floor.Parent = game.Workspace |