This script ain't working and there where no errors:
Code:
local clickDetector = workspace.Button.ClickDetector
function onMouseClick()
while true do
local part = Instance.new("Part", game.Workspace)
part.Transparency = 0.5
part.Anchored = false
part.Position = Vector3.new(26.17, 52.86, -15.685)
end
end
clickDetector.MouseClick:connect(onMouseClick)
#####Note from Ziffixture:
####To enclose your code in blocks, click the Lua icon in the presented tools above in StackEdit.

2 comments
add a wait(). without wait() this script will repeat so fast roblox cant handle it
use game.RunService.Stepped instead of while true do for this.