Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Towers being created by cloning, how can I fix this?

--Variables
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Part = game.Workspace.Farm:Clone()
Part.Parent = game.Workspace
Part.Anchored =true
--Move Part to Mouse Position Alwa
while true do
		Part.Position = mouse.Hit.p
		wait()

--Places Part at Mouse Position.
	mouse.Button1Down:connect(function()
		local Partt = Part:Clone()
		Partt.Parent = game.Workspace
		Partt.Anchored = true
		Partt.Position = mouse.Hit.p
		wait(5)
		Partt:Destroy()
	end)
end


1 comment

0

I don't get what you're asking.

1 answer

On line 19 you seem to have put Partt:Destroy() with two T.

This discussion is preserved as it was. New answers, comments, and votes are closed.