Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local db = false
- local on = true
- local function gettool()
- return player.Character:FindFirstChildOfClass('Tool') or player.Backpack:FindFirstChildOfClass('Tool')
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- if on then
- spawn(function()
- if not db then
- db = true
- player.Character.HumanoidRootPart.CFrame = workspace.TouchPads.Sell.Circle.Part.CFrame
- pcall(function()
- firesignal(game.Players.LocalPlayer.PlayerGui.Stats.StatContainer.Sell.MouseButton1Down)
- end)
- wait(4)
- player.Character.HumanoidRootPart.CFrame = workspace.TouchPads.Sell.Circle.Part.CFrame * CFrame.new(10,10,10)
- wait(1)
- db = false
- end
- end)
- gettool().Parent = player.Character
- gettool():Activate()
- end
- end)
- local function getargs(str)
- local t = {}
- for i in string.gmatch(str,"%S+") do
- table.insert(t,i)
- end
- return t
- end
- local cmd = {}
- local prefix = "!"
- function cmd.new(msg,command,func)
- local args = getargs(msg)
- for i,v in pairs(args) do
- if v == prefix..command then
- func()
- end
- end
- end
- player.Chatted:Connect(function(msg)
- cmd.new(msg,"on",function()
- on = true
- end)
- cmd.new(msg,"off",function()
- on = false
- end)
- end)local player = game:GetService("Players").LocalPlayer
- local db = false
- local on = true
- local function gettool()
- return player.Character:FindFirstChildOfClass('Tool') or player.Backpack:FindFirstChildOfClass('Tool')
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- if on then
- spawn(function()
- if not db then
- db = true
- player.Character.HumanoidRootPart.CFrame = workspace.TouchPads.Sell.Circle.Part.CFrame
- pcall(function()
- firesignal(game.Players.LocalPlayer.PlayerGui.Stats.StatContainer.Sell.MouseButton1Down)
- end)
- wait(4)
- player.Character.HumanoidRootPart.CFrame = workspace.TouchPads.Sell.Circle.Part.CFrame * CFrame.new(10,10,10)
- wait(1)
- db = false
- end
- end)
- gettool().Parent = player.Character
- gettool():Activate()
- end
- end)
- local function getargs(str)
- local t = {}
- for i in string.gmatch(str,"%S+") do
- table.insert(t,i)
- end
- return t
- end
- local cmd = {}
- local prefix = "!"
- function cmd.new(msg,command,func)
- local args = getargs(msg)
- for i,v in pairs(args) do
- if v == prefix..command then
- func()
- end
- end
- end
- player.Chatted:Connect(function(msg)
- cmd.new(msg,"on",function()
- on = true
- end)
- cmd.new(msg,"off",function()
- on = false
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement