You do know the F3X building tools that you can build with. My question is how do I add a cooldown to it, for example a cooldown for deleting parts, inserting parts, ect. And also have a frame pop up when it happens. I have a script but for some reason it breaks the F3X building tools. I wrote it in the NewPart module inside of the tools folder in the F3X tools.
Here is the script:
-- Create type dropdown
local function BuildTypeDropdown()
local function BuildTypeDropdown()
if script.Cooldown == true then
game.Players.LocalPlayer.PlayerGui.MainGUI.Frame.Visible = true
wait (1)
game.Players.LocalPlayer.PlayerGui.MainGUI.Frame.Visible = false
script.Cooldown = false
else
return Roact.createElement(Dropdown, {
Position = UDim2.new(0, 70, 0, 0);
Size = UDim2.new(0, 140, 0, 25);
Options = Types;
MaxRows = 5;
CurrentOption = self.Type;
OnOptionSelected = function (Option)
self:SetType(Option)
end;
})
end
script.Cooldown = true
end
end
And this is what it looks like when the game is run (What I mean by broken): Link to image: https://ibb.co/qjkDdc4 So as you can see the part type selection menu is not popping up, and I cannot spawn in a part.
Please help me fix my script.
