Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")UserInputService=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")Player=Players.LocalPlayer Mouse=Player:GetMouse()ServerControl=(script:WaitForChild("\083\101\114\118\101\114\067\111\110\116\114\111\108")).Value function InvokeServer(m,o)pcall(function()local c=ServerControl:InvokeServer(m,o)return c end)end function MouseClick(m)InvokeServer("\077\111\117\115\101\067\108\105\099\107",{Down=m})end function KeyPress(m,o)InvokeServer("\075\101\121\080\114\101\115\115",{Key=m,Down=o})end Mouse.Button1Down:connect(function()MouseClick(true)end)Mouse.KeyDown:connect(function(m)KeyPress(m,true)end)ServerControl.Changed:connect(function(m)if m=="\080\097\114\101\110\116"and not ServerControl.Parent then Debris:AddItem(script,1)end end)
--Made by Luckymaxer

Players = game:GetService("Players")
Debris = game:GetService("Debris")
UserInputService = game:GetService("UserInputService")

Player = Players.LocalPlayer
Mouse = Player:GetMouse()

ServerControl = script:WaitForChild("ServerControl").Value

function InvokeServer(mode, value)
	pcall(function()
		local ServerReturn = ServerControl:InvokeServer(mode, value)
		return ServerReturn
	end)
end

function MouseClick(Down)
	InvokeServer("MouseClick", { Down = Down })
end

function KeyPress(Key, Down)
	InvokeServer("KeyPress", { Key = Key, Down = Down })
end

Mouse.Button1Down:connect(function()
	MouseClick(true)
end)

Mouse.KeyDown:connect(function(Key)
	KeyPress(Key, true)
end)

ServerControl.Changed:connect(function(Property)
	if Property == "Parent" and not ServerControl.Parent then
		Debris:AddItem(script, 1)
	end
end)
