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

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

Asked by 6 years ago
--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


0
I don't get what you're asking. DaWarTekWizard 169 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question