I want to add a sign in red which says “Session Locked” I have done it but removed it as it doesnt work, can someone please help me.
I have tried making it to send a basic admin hint notif but I cant, if you can help me with that it would be appreciated if not please help me with my main request for assistance.
SCRIPT:
--[[
____
/\ _`\ __
\ \ \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/unlocks the session room"
-- Plugin Function --
local function pluginFunction(Args)
local Player = Args[1]
local locked = false
-- Check if the SessionLockedSign part exists in the Workspace
if workspace:FindFirstChild("SessionLockedSign") then
-- If it exists, remove it and set locked to false
workspace.SessionLockedSign:Destroy()
locked = false
else
-- If it doesn't exist, create it and set locked to true
local part = Instance.new("Part")
part.Name = "SessionLockedSign"
part.Parent = workspace
part.Size = Vector3.new(14.989, 10.07, 1)
part.Color = Color3.fromRGB(255, 44, 48) -- sets the color to red
part.Anchored = true
part.Transparency = 0.8
part.CFrame = CFrame.new(Vector3.new(-306.871, 16.036, 191.484))
locked = true
end
return 'Session room is now '.. (locked and 'locked' or 'unlocked') .. '!'
end
local descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
return pluginName, pluginFunction, pluginLevel, pluginPrefix, {pluginName, pluginUsage, pluginDescription}
end
return Plugin
Asset property of RBM. Games.