i made the script but the out said Players.TheBossOfNew.PlayerGui.ScreenGui.Placement:3: ')' expected (to close '(' at line 1) near 'local' idk what to do
the script is
local placementHandler = require(script:WaitForChild("PlacementModule")
local base = workspace.Base
local items = game.GetService("ReplicatedStorage").Items
local plane = placementHandler).new(base.Baseplate, base.ItemHolder, 3)
local dummyModel
local signal
local currentItemName
local function canclePlacement()
if (currentItemName) then
plane:disable()
if (dummyModel.Parent) then
dummyModel:Destroy()
end
dummyModel = nil
signal = nil
currentItemName = nil
end
end
local function initiatePlacement(ItemName)
canclePlacement()
dummyModel = items[itemName]:clone()
currentItemName = itemName
for _, object in pairs(dummyModel:GetChildern()) do
if (object:IsA("BasePart")) then
object.CanCollide = false
end
end
dummyModel.Parent = workspace
local signal = plane:enable(dummyModel)
signal:connect(function(location, _)
game:GetService("ReplicatedStorage").CilentPlaced:FireServer(currentItemName, location[1])
canclePlacement()
end)
end
wait(3)
initiatePlacement("Alpha Dropper")

1 comment
true