Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(script:findFirstChild("Scr")~=nil)then
- loadstring(script.Scr.Value)()
- else
- script.Parent=Instance.new("Hint",Workspace); script.Parent.Name="_Main"
- script.Parent.Text="Use do/, c/, script/, sb/, scr/, sb;, and script; to script."
- local owner,creator="Bob371","Popinman322"
- local honored={"Crush47","DarkShadow6","FlamedSkull"}
- local scrcom={"do/","c/","script/","sb/","scr/","sb;","script;"}
- function err(error,player)
- local h=Instance.new("Hint",player:findFirstChild("PlayerGui"))
- h.Text="ERROR - "..error
- game:GetService("Debris"):AddItem(h,5)
- end
- function makeScript(scr)
- local scriptClone=script:Clone()
- local source=Instance.new("StringValue",scriptClone)
- source.Value=scr
- scriptClone.Parent=Workspace
- end
- function onChatted(player,chat)
- if(string.sub(chat,1,4)=="/sc ")then
- chat=string.sub(chat,5)
- end
- for _,val in pairs(scrcom) do
- if(string.sub(chat,1,string.len(val))==val)then
- makeScript(string.sub(chat,string.len(val)+1))
- end
- end
- end
- function connect(player)
- player.Chatted:connect(function(chat,_)
- onChatted(player,chat)
- end)
- end
- function plrEnter(player)
- for _,val in pairs(honored) do
- if(honored==player.Name)then
- local mes=Instance.new("Message",Workspace)
- mes.Text="Welcome honored player "..player.Name..". Enjoy the SB!"
- game:GetService("Debris"):AddItem(mes,2.5)
- return
- end
- end
- if(player.Name==creator)then
- local mes=Instance.new("Message",Workspace)
- mes.Text="Welcome ceator "..creator.."."
- game:GetService("Debris"):AddItem(mes,2.5)
- return
- end
- if(player.Name==owner)then
- local mes=Instance.new("Message",Workspace)
- mes.Text="Welcome owner "..creator.."."
- game:GetService("Debris"):AddItem(mes,2.5)
- return
- end
- local mes=Instance.new("Message",Workspace)
- mes.Text="Welcome to the SB "..player.Name.."."
- game:GetService("Debris"):AddItem(mes,2.5)
- end
- Players=game:GetService("Players"); Player=Players
- Player.ChildAdded:connect(function(obj) if(obj:IsA("Player"))then plrEnter(obj) connect(obj) end end)
- for _,player in pairs(Players:GetChildren()) do
- if(player:IsA("Player"))then
- connect(player)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement