Copy salient and essential scripts and models from Plane Building Roblox

This commit is contained in:
2026-06-10 02:53:40 +01:00
commit 891781366d
76 changed files with 10904 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
-- module which serves the purpose of providing a universal function so that I can change how checks for whether a player is allowed to activate something works (such as collaborative building)
local module = {}
module.tagService = _G.Tags
function module.activator(realScript,callback)
local clickDetector = realScript.Parent:FindFirstChildWhichIsA("ClickDetector")
clickDetector.MouseClick:Connect(function(player)
if module.tagService:HasTag(realScript.Parent,"P_"..player.UserId) or module.tagService:HasTag(realScript.Parent.Parent,"P_"..player.UserId) then
callback(player)
end
end)
end
return module