Advertisement
Guest User

SlushyPantomForces

a guest
Jun 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.45 KB | None | 0 0
  1. local s = 1.3 -- experiment with this if ur mouse goes all over the place
  2.  
  3. print'made by ic3w0lf'print'Distributed by ToddMPaone'local h=game:GetService'Players'local q=h.LocalPlayer local c=q:GetMouse()local r=workspace.CurrentCamera local e=150 local a=0 local k=2 local j=false local l=true local m=true local n=true local i=false local p=Vector2.new()local a=q local a=0 local a=tick()local o local b=Instance.new('ScreenGui',game.CoreGui)local a=0 local a=Instance.new('TextLabel',b)a.BackgroundTransparency=1 a.Size=UDim2.new(1,0,0,36)a.Position=UDim2.new(0,0,0,-36)a.TextXAlignment='Center'a.Text=''a.TextSize=16 a.TextColor3=Color3.new(1,1,1)a.TextStrokeColor3=Color3.new(0,0,0)a.TextStrokeTransparency=0.5 a.ZIndex=10 function g()a.Text=string.format("Enabled: %s | Visibility Check: %s | Team Check: %s",(l and'ON'or'OFF'),(m and'ON'or'OFF'),(n and'ON'or'OFF'))end g()function f(b,a)local e=Vector2.new(r.ViewportSize.X/2,r.ViewportSize.Y/2-38)local c=0 local d=0 if(b~=0)then if(b>e.X)then c=-(e.X-b)c=c/k if(c+e.X>e.X*2)then c=0 end elseif(b<e.X)then c=b-e.X c=c/k if(c+e.X<0)then c=0 end end end if(a~=0)then if(a>e.Y)then d=-(e.Y-a)d=d/k if(d+e.Y>e.Y*2)then d=0 end elseif(a<e.Y)then d=a-e.Y d=d/k if(d+e.Y<0)then d=0 end end end mousemoverel(c/s,d/s)end game:GetService'UserInputService'.WindowFocused:connect(function()j=true end)game:GetService'UserInputService'.WindowFocusReleased:connect(function()j=false end)function d()local b={}local g={}local f={}for a,a in pairs(h:GetPlayers())do if a~=q and a.Character~=nil then table.insert(b,a)end end for d,h in pairs(b)do if h and(h.Character)~=nil then local a=true if n and h.TeamColor==q.TeamColor then a=false end local e=h.Character:FindFirstChild('Head')if e~=nil and a then local b=(e.Position-r.CoordinateFrame.p).magnitude local a=Ray.new(r.CoordinateFrame.p,(c.Hit.p-r.CoordinateFrame.p).unit*b)local a,a=game.Workspace:FindPartOnRay(a,workspace)local c=math.floor((a-e.Position).magnitude)g[h.Name..d]={}g[h.Name..d].dist=b g[h.Name..d].plr=h g[h.Name..d].diff=c if(m)then local a=q.Character and q.Character:FindFirstChild'Head'if(a)then local b=r.CoordinateFrame.p local a=(e.Position-b)local a=Ray.new(b,a.unit*1000)local b,a=workspace:FindPartOnRayWithIgnoreList(a,{q.Character,r})if(b and b:isDescendantOf(h.Character))then table.insert(f,c)end end else table.insert(f,c)end end end end if unpack(f)==nil then return false end local b=math.floor(math.min(unpack(f)))if b>20 then return false end for a,a in pairs(g)do if a.diff==b then return a.plr end end return false end print(string.reverse('f'..'l'..'0'..'w'..'3'..'c'..'i'))game:GetService'UserInputService'.InputBegan:connect(function(a)if a.UserInputType==Enum.UserInputType.Keyboard then if a.KeyCode==Enum.KeyCode.F2 then l=not l elseif a.KeyCode==Enum.KeyCode.LeftBracket then m=not m elseif a.KeyCode==Enum.KeyCode.Semicolon then i=not i elseif a.KeyCode==Enum.KeyCode.RightBracket then n=not n end g()end end)game:GetService'RunService'.RenderStepped:connect(function()if(script.Disabled or not j or not l)then return end local a=Vector2.new(r.ViewportSize.X/2,r.ViewportSize.Y/2,0)o=d()if(o~=false and o.Character~=nil)then local a=o.Character:FindFirstChild('Head')if a then local c,b=r:WorldToScreenPoint(a.Position+Vector3.new(0,a.Size.Y/2,0))local a=(Vector2.new(c.X,c.Y)-Vector2.new(r.ViewportSize.X/2,r.ViewportSize.Y/2)).magnitude if(b and a<e)then p=Vector2.new(c.X,c.Y)else p=Vector2.new()end end else p=Vector2.new()end if(o~=nil and p~=Vector2.new())then f(p.X,p.Y)end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement