I cant get this script to work can anyone help me?

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

local floor = game.ReplicatedStorage.Floor:Clone()
floor.Position.Value = Vector3.new(Mouse.Hit.p.x, 0, Mouse.Hit.p.z)
floor.CFrame = CFrame.new(floor.Position.Value + Vector3.new(0, 0.9, 0)) * CFrame.fromEulerAnglesXYZ(0, math.random(0, math.pi*10)/5, 0)
floor.Parent = game.Workspace

1 comment

0

Don't use 'floor.Position.Value' to change the floor's position. Just using 'floor.Position' will be fine, because 'Position' is a property of BasePart.