Idk what to do for the brickcolor thing. I'm trying to assign the brickcolor from a brickcolor value.
local XYZValue = script.Parent.Handle.XYZValue local plr = game.Players.LocalPlayer function Click() local Part = Instance.new("Part", game.Workspace.CloneFolder) Part.Size = XYZValue.Value Part.Position = plr.Character:WaitForChild("Humanoid").TargetPoint Part.CanCollide = script.Parent.Handle.CanCollideValue.Value Part.Anchored = script.Parent.Handle.AnchoredValue.Value Part.Color = script.Parent.Handle.ColorValue.Value end script.Parent.Activated:Connect(Click)
FIXED!!!
Instead of Color, you need to do BrickColor.
local XYZValue = script.Parent.Handle.XYZValue local plr = game.Players.LocalPlayer function Click() local Part = Instance.new("Part", game.Workspace.CloneFolder) Part.Size = XYZValue.Value Part.Position = plr.Character:WaitForChild("Humanoid").TargetPoint Part.CanCollide = script.Parent.Handle.CanCollideValue.Value Part.Anchored = script.Parent.Handle.AnchoredValue.Value Part.BrickColor = BrickColor.new(script.Parent.Handle.ColorValue.Value) end script.Parent.Activated:Connect(Click)
Try this:
local XYZValue = script.Parent.Handle.XYZValue local plr = game.Players.LocalPlayer function Click() local Part = Instance.new("Part", game.Workspace.CloneFolder) Part.Size = XYZValue.Value Part.Position = plr.Character:WaitForChild("Humanoid").TargetPoint Part.CanCollide = script.Parent.Handle.CanCollideValue.Value Part.Anchored = script.Parent.Handle.AnchoredValue.Value Part.Color = Color3.new(script.Parent.Handle.ColorValue.Value) end script.Parent.Activated:Connect(Click)