Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I was trying to make a placement system it didn't work can anyone help?

Asked by 8 years ago

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

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. nilVector 812 — 8y

Answer this question