Basic Admin Essentials "Session Lock"

--[[


 ____                                   
/\  _`\                    __           
\ \ \L\ \     __      ____/\_\    ___   
 \ \  _ <'  /'__`\   /',__\/\ \  /'___\ 
  \ \ \L\ \/\ \L\.\_/\__, `\ \ \/\ \__/ 
   \ \____/\ \__/.\_\/\____/\ \_\ \____\
    \/___/  \/__/\/_/\/___/  \/_/\/____/
                                        
            
Admin Essentials v2
Plugin Documentation
*coming soon^tm

If you have any questions regarding Plugins, contact TheFurryFish.
--]]


		local Plugin = function(...)
			local Data = {...}

			-- Included Functions and Info --
			local remoteEvent = Data[1][1]
			local remoteFunction = Data[1][2]
			local returnPermissions = Data[1][3]
			local Commands = Data[1][4]
			local Prefix = Data[1][5]
			local actionPrefix = Data[1][6]
			local returnPlayers = Data[1][7]
			local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data)

			-- Plugin Configuration --
			local pluginName = 'srlock'
			local pluginPrefix = Prefix
			local pluginLevel = 1
			local pluginUsage = "" -- leave blank if the command has no arguments
			local pluginDescription = "Locks the session room"

			-- Example Plugin Function --
			local function pluginFunction(Args)
				local Player = Args[1]

				-- Create the sign part
				local part = Instance.new("Part")
				part.Name = "SessionLockedSign"
				part.Parent = game.Workspace
		        part.Size = Vector3.new(16, 9, 2)
		        part.Color = Color3.fromRGB(255, 44, 48) -- sets the color to blue
				part.Anchored = true
				part.Transparency = 0.8
				part.CFrame = CFrame.new(Vector3.new(-308, 15, 191.5))

				-- Create the sign itself
				local sign = Instance.new("Part")
				sign.Name = "SessionLockedSign"
				sign.Parent = game.Workspace
		        sign.Size = Vector3.new(16, 9, 2)
				sign.Anchored = true
				sign.CFrame = CFrame.new(Vector3.new(-307.5, 15.3, 191.5)) 
end

	
		local descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription

		return pluginName, pluginFunction, pluginLevel, pluginPrefix, {pluginName, pluginUsage, pluginDescription}
	end

	return Plugin

I want this script to place a transparent part but with a roblox sign on, you can see through the part so its a bit transparent but its red. You can not go through the part though.

This is a basic admin essentials addon.

Property of RBM. Games, This is an asset made by RBM Games, we need scripting support but do not copy the script.

1 Like

If the issue is collision, just do part.CanCollide = false