My friend made a small script that is made to ( I’m surprised i doesn’t work) make a part in the Workspace with Instance.new when the tool is activated, he says it doesn’t work. It could also be a problem with calling the function or the tool variable he made. Why is it broken and not working? Thank you very much in advance, the solution is probably something simple. I’ll also be putting to script below. Thanks again.
local tool = script.Parent
function newPart() local part = Instance.new("Part") part.BrickColor = BrickColor.new("Lapis") part.Transparency = 0.6 part.Parent = game.Workspace part.Position = Vector3.new(0, 100, 0) end
If tool.Activated then newPart() end