Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game:GetService("Players").LocalPlayer
- local root,uptorso,humanoid
- local v30=Vector3.new()
- local RNG=Random.new()
- local HOLD_E = false
- local abort = false
- local stepconn
- local green,red=Color3.fromRGB(0,230,0),Color3.fromRGB(230,0,0)
- local safeMove = 80 --distance allowed by anti exploit
- local settings = {enabled=true,jewlAllowCrims=false,preferLongTP=false,bankRadius2=19,preferUnsafeEsc=false}
- if readfile then
- pcall(function()
- local new = game:GetService("HttpService"):JSONDecode(readfile("JBAR.txt"))
- --corruption?
- local doOverwrite=false
- for k,v in pairs(new) do
- if settings[k]==nil then
- doOverwrite=true
- new[k]=nil
- end
- end
- for k,v in pairs(settings) do
- if new[k]==nil then
- doOverwrite=true
- new[k]=v
- end
- end
- --use input
- if doOverwrite then
- warn("Settings overwritten")
- writefile("JBAR.txt",game:GetService("HttpService"):JSONEncode(new))
- end
- settings = new
- end)
- end
- --handle character
- local Stepped = game:GetService("RunService").Stepped
- local NCparts = {}
- local NCconn
- local NCfunc = function()
- for i=1,#NCparts do
- NCparts[i].CanCollide=false
- end
- end
- local function noclip()
- if not NCconn then
- NCconn = Stepped:Connect(NCfunc)
- end
- end
- local function yesclip()
- if NCconn then
- NCconn:Disconnect()
- NCconn = nil
- end
- end
- local lastRootCf
- local function onRootChanged()
- if (root.CFrame.p-Vector3.new(-38.7,19.5,1094.2)).magnitude < 1 then
- root.CFrame = lastRootCf
- end
- end
- local function newchar(char)
- if char then
- root = char:WaitForChild("HumanoidRootPart")
- root:GetPropertyChangedSignal("CFrame"):Connect(onRootChanged)
- uptorso = char:WaitForChild("UpperTorso")
- humanoid = char:WaitForChild("Humanoid")
- wait(0.2)
- NCparts = {}
- for _,v in ipairs(char:GetChildren()) do
- if v:IsA("BasePart") then
- NCparts[#NCparts+1]=v
- end
- end
- end
- end
- newchar(player.Character)
- player.CharacterAdded:Connect(newchar)
- Stepped:Connect(function()
- lastRootCf = root.CFrame
- end)
- --interface
- Create = function(class,parent,props)
- local new = Instance.new(class)
- for k,v in next,props do
- new[k]=v
- end
- new.Parent = parent
- return new
- end
- --vitals
- local function smoothTP(cf,seconds)
- noclip()
- uptorso = player.Character:WaitForChild("UpperTorso")
- humanoid = player.Character:WaitForChild("Humanoid")
- root = player.Character:WaitForChild("HumanoidRootPart")
- root.CFrame = root.CFrame + Vector3.new(0,100-root.CFrame.y,0) --start high up
- root.Velocity,root.RotVelocity=v30,v30
- local oldg = workspace.Gravity
- workspace.Gravity=0
- wait(0.07)
- local diff = cf.p-root.Position
- local customSpeed
- if seconds then
- customSpeed = diff.magnitude / seconds
- end
- while abort==false and diff.magnitude > safeMove do
- if customSpeed then
- root.Velocity = diff.Unit*customSpeed
- else
- root.Velocity = diff.Unit*math.min(diff.magnitude*5,5000)
- end
- root.RotVelocity = v30
- if root:FindFirstChild("BodyVelocity") then
- root.BodyVelocity:Destroy()
- end
- humanoid.Jump=true
- wait(0.1)
- diff = cf.p-root.Position
- end
- wait(0.1)
- for i=1,2 do
- if abort then break end
- root.Velocity,root.RotVelocity=v30,v30
- root.CFrame = cf
- wait(0.1)
- end
- yesclip()
- workspace.Gravity = 192.6
- end
- local function perfectTP(cf)
- if abort then return end
- root.CFrame = cf
- local door = workspace.Apartments.Skyscraper6.ExitDoor.Touch
- local oldcf = door.CFrame
- door.CFrame = root.CFrame
- wait()
- door.CFrame = oldcf
- end
- local function staticTP(cf)
- local oldg = workspace.Gravity
- workspace.Gravity=0
- repeat
- for i=1,10 do
- if abort then break end
- root.CFrame=cf
- root.Velocity,root.RotVelocity=v30,v30
- wait(0.2)
- end
- if abort then break end
- until wait(0.39) and (root.Position-cf.p).magnitude<10
- workspace.Gravity=oldg
- end
- smoothTP(CFrame.new(-204.785858,24.5781498,723.530945), 15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement