123iamstupid123

Untitled

Jul 18th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --repeat wait() until _G and _G['Check'] print('Globals Loaded')
  2. --g=getfenv()
  3. --coroutine.resume(_G.Include,g,_G)
  4. --coroutine.resume(IncludeLibrary,g,Finite.Custom)
  5. --repeat wait() until inew~=nil and v3~=nil and c3~=nil
  6.  
  7. --Controls are q,e,t,r,k (might forget to put more hea
  8.  
  9. --You do not need to put your name anywhere in the script (Posted by handsomejhzzzzzz)
  10.  
  11.  
  12. inew=Instance.new
  13. v3=Vector3.new
  14. c3=Color3.new
  15. On=true
  16. Distance=20
  17. Minimum=5
  18. Maximum=10000000000000
  19. LightColor=c3(0/255,230/255,150/255)
  20. Light=inew('PointLight')
  21. Light.Color=LightColor
  22. XVec=v3(0,0,0)
  23. Target=nil
  24. Adorn=nil
  25. BP=inew("BodyPosition")
  26. BP.maxForce=v3(9990000, 9990000, 9990000)
  27. BP.P=9990000000000000000.000
  28. BP.D=10000000000000.000
  29. BP.position=v3(0,50,0)
  30. Q=false
  31. E=false
  32. hit=nil
  33. FireSize=10
  34. FireColor=c3(255/255,255/255,255/255)
  35. FireHeat=10
  36. RunService=game:GetService('RunService')
  37. Player=game.Players.LocalPlayer
  38. Mouse=Player:GetMouse()
  39. coroutine.wrap(function()
  40. script.Parent=nil
  41. RunService.RenderStepped:connect(function()
  42. if On==false then
  43. Adorn=nil
  44. end
  45. hit=Mouse.Hit
  46. Unit=(hit.p-Player.Character.Head.Position).unit
  47. NewPos=Player.Character.Head.Position+(Unit*Distance)-XVec
  48. if BP==nil then
  49. BP=inew("BodyPosition")
  50. else
  51. BP.position=NewPos
  52. end
  53. if Adorn~=nil then
  54. BP.Parent=Adorn
  55. Light.Parent=Adorn
  56. else
  57. BP.Parent=nil
  58. Light.Parent=nil
  59. end
  60. if Mouse.Target~=nil then Target=Mouse.Target else Target=nil end          
  61. if Q==true and E==false then
  62. if Distance-2<Minimum then
  63. Distance=Minimum
  64. elseif Distance-2>=Minimum then
  65. Distance=Distance-2
  66. end
  67. end
  68. if Q==false and E==true then
  69. if Distance+2>Maximum then
  70. Distance=Maximum
  71. elseif Distance+2<=Maximum then
  72. Distance=Distance+2
  73. end        
  74. end
  75. if Distance<Minimum then
  76. Distance=Minimum
  77. end
  78. end)
  79. end)()
  80. Player.Chatted:connect(function(msg)
  81. if string.lower(string.sub(msg,1,5))=='make/' then
  82. for e=1,tonumber(string.sub(msg,6)) do
  83. local Col=Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  84. local br=Instance.new('Part', workspace)
  85. br.Size=Vector3.new(math.random(2,8),math.random(2,8),math.random(2,8))
  86. br.Position=Player.Character.Head.Position+ Vector3.new(math.random(-tonumber(string.sub(msg,6)),tonumber(string.sub(msg,6))), math.random(-tonumber(string.sub(msg,6)),tonumber(string.sub(msg,6))),math.random(-tonumber(string.sub(msg,6)),tonumber(string.sub(msg,6)))    )
  87. br.BrickColor=BrickColor.new(Col)
  88. end
  89. end
  90. end)
  91.  
  92.  
  93.  
  94. Mouse.Button1Down:connect(function()
  95. if Adorn==nil and BP.Parent==nil and Target~=nil and (hit.p-Player.Character.Head.Position).magnitude<=Maximum and Target:IsDescendantOf(workspace) then
  96. Distance=(Target.Position-Player.Character.Head.Position).magnitude
  97. XVec=(hit.p-Target.Position)
  98. if not Target.Parent:FindFirstChild('ThisIsAModel') then
  99. local rt=Target.Size
  100. Minimum=math.sqrt((rt.X^2+rt.Y^2+rt.Z^2))+10
  101. else
  102. local rt=Target.Parent:GetModelSize()
  103. Minimum=math.sqrt((rt.X^2+rt.Y^2+rt.Z^2))+50
  104. end
  105. Adorn=Target
  106. end
  107. end)
  108.  
  109. Mouse.Button1Up:connect(function()
  110. if Adorn~=nil  then
  111. Adorn=nil
  112. BP.Parent=nil
  113. end
  114. end)
Advertisement
Add Comment
Please, Sign In to add comment