Advertisement
Guest User

Untitled

a guest
May 25th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  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. --This scr0pt is Made by BetterBe, you do not need to put your name anywhere in the scr0pt. Have fun
  8.  
  9. inew=Instance.new
  10. v3=Vector3.new
  11. c3=Color3.new
  12. On=true
  13. Distance=20
  14. Minimum=5
  15. Maximum=10000000000000
  16. LightColor=c3(0/255,230/255,150/255)
  17. Light=inew('PointLight')
  18. Light.Color=LightColor
  19. XVec=v3(0,0,0)
  20. Target=nil
  21. Adorn=nil
  22. BP=inew("BodyPosition")
  23. BP.maxForce=v3(1000000, 1000000, 1000000)
  24. BP.P=1000000.000
  25. BP.D=100000.000
  26. BP.position=v3(0,50,0)
  27. Q=false
  28. E=false
  29. hit=nil
  30. FireSize=10
  31. FireColor=c3(255/255,255/255,255/255)
  32. FireHeat=10
  33. RunService=game:GetService('RunService')
  34. Player=game.Players.LocalPlayer
  35. Mouse=Player:GetMouse()
  36. coroutine.wrap(function()
  37. script.Parent=nil
  38. RunService.RenderStepped:connect(function()
  39. if On==false then
  40. Adorn=nil
  41. end
  42. hit=Mouse.Hit
  43. Unit=(hit.p-Player.Character.Head.Position).unit
  44. NewPos=Player.Character.Head.Position+(Unit*Distance)-XVec
  45. if BP==nil then
  46. BP=inew("BodyPosition")
  47. else
  48. BP.position=NewPos
  49. end
  50. if Adorn~=nil then
  51. BP.Parent=Adorn
  52. Light.Parent=Adorn
  53. else
  54. BP.Parent=nil
  55. Light.Parent=nil
  56. end
  57. if Mouse.Target~=nil then Target=Mouse.Target else Target=nil end
  58. if Q==true and E==false then
  59. if Distance-1<Minimum then
  60. Distance=Minimum
  61. elseif Distance-1>=Minimum then
  62. Distance=Distance-1
  63. end
  64. end
  65. if Q==false and E==true then
  66. if Distance+1>Maximum then
  67. Distance=Maximum
  68. elseif Distance+1<=Maximum then
  69. Distance=Distance+1
  70. end
  71. end
  72. if Distance<Minimum then
  73. Distance=Minimum
  74. end
  75. end)
  76. end)()
  77. Player.Chatted:connect(function(msg)
  78. if string.lower(string.sub(msg,1,5))=='make/' then
  79. for e=1,tonumber(string.sub(msg,6)) do
  80. local Col=Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  81. local br=Instance.new('Part', workspace)
  82. br.Size=Vector3.new(math.random(2,8),math.random(2,8),math.random(2,8))
  83. 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))) )
  84. br.BrickColor=BrickColor.new(Col)
  85. end
  86. end
  87. end)
  88. Mouse.KeyDown:connect(function(key)
  89. if (key)=='q' then
  90. Q=true
  91. elseif (key)=='e' then
  92. E=true
  93. elseif (key)=='t' then
  94. if Adorn~=nil then
  95. BP.Parent=nil
  96. Adorn.Velocity=Adorn.Velocity+(((Adorn.Position+XVec)-Player.Character.Head.Position)).unit*200
  97. Adorn=nil
  98. end
  99. end
  100. end)
  101. Mouse.KeyUp:connect(function(key)
  102. if (key)=='q' then
  103. Q=false
  104. elseif (key)=='e' then
  105. E=false
  106. elseif key=='k' and Adorn~=nil then
  107. for i, v in pairs(Adorn.Parent:GetChildren()) do
  108. if v:IsA('Humanoid') then v.Health=0 end
  109. end
  110. elseif key=='b' and Adorn~=nil then
  111. Adorn:BreakJoints()
  112. elseif (key)=='r' and Adorn ~=nil then
  113. if Adorn.Parent:FindFirstChild('ThisIsAModel') and Adorn.Parent.Fire.Value==false then
  114. for i, var in pairs(Adorn.Parent:GetChildren()) do
  115. if var:IsA('BasePart') then
  116. fire=inew('Fire',var)
  117. fire.Color=FireColor
  118. fire.Name='Fire23445'
  119. fire.Size=FireSize
  120. fire.Heat=FireHeat
  121. end
  122. end
  123. Adorn.Parent.Fire.Value=true
  124. elseif Adorn.Parent:FindFirstChild('ThisIsAModel') and Adorn.Parent.Fire.Value==true then
  125. for i, var in pairs(Adorn.Parent:GetChildren()) do
  126. if var:IsA('BasePart') and var:FindFirstChild('Fire23445') then
  127. var.Fire23445:Destroy()
  128. end
  129. end
  130. Adorn.Parent.Fire.Value=false
  131. elseif not Adorn.Parent:FindFirstChild('ThisIsAModel') then
  132. if not Adorn:FindFirstChild('Fire23445') then
  133. fire=inew('Fire',Adorn)
  134. fire.Color=FireColor
  135. fire.Name='Fire23445'
  136. fire.Size=FireSize
  137. fire.Heat=FireHeat
  138. elseif Adorn:FindFirstChild('Fire23445') then
  139. Adorn.Fire23445:Destroy()
  140. end
  141. end
  142. elseif (key)=='z' and Adorn ~=nil then
  143. if Adorn.Parent:FindFirstChild('ThisIsAModel') then
  144. if Adorn.Parent.Ghost.Value==false then
  145. for i, v in pairs(Adorn.Parent:GetChildren()) do
  146. if v:IsA('BasePart') then
  147. if v.Transparency==0 then
  148. tick=inew('BoolValue',v)
  149. tick.Name='Trans'
  150. v.Transparency=0.5
  151. else
  152. v.Transparency=v.Transparency*2
  153. end
  154. end
  155. end
  156. Adorn.Parent.Ghost.Value=true
  157. elseif Adorn.Parent.Ghost.Value==true then
  158. for i, v in pairs(Adorn.Parent:GetChildren()) do
  159. if v:IsA('BasePart') then
  160. if v:FindFirstChild('Trans') then
  161. v.Transparency=0
  162. v.Trans:Destroy()
  163. else
  164. v.Transparency=v.Transparency/2
  165. end
  166. end
  167. end
  168. Adorn.Parent.Ghost.Value=false
  169. end
  170. elseif not Adorn.Parent:FindFirstChild('ThisIsAModel') then
  171. if Adorn:FindFirstChild('Trans') then
  172. Adorn.Transparency=Adorn.Transparency/2
  173. Adorn.Trans:Destroy()
  174. if Adorn:FindFirstChild('Trans2') then
  175. Adorn.Transparency=0
  176. Adorn.Trans2:Destroy()
  177. end
  178. elseif not Adorn:FindFirstChild('Trans') then
  179. inew('BoolValue',Adorn).Name='Trans'
  180. if Adorn.Transparency<=0 then
  181. inew('BoolValue',Adorn).Name='Trans2'
  182. Adorn.Transparency=0.5
  183. else Adorn.Transparency=Adorn.Transparency*2
  184. end
  185. end
  186. end
  187. end
  188. end)
  189. Mouse.Button1Down:connect(function()
  190. if Adorn==nil and BP.Parent==nil and Target~=nil and (hit.p-Player.Character.Head.Position).magnitude<=Maximum and Target:IsDescendantOf(workspace) then
  191. Distance=(Target.Position-Player.Character.Head.Position).magnitude
  192. XVec=(hit.p-Target.Position)
  193. if not Target.Parent:FindFirstChild('ThisIsAModel') then
  194. local rt=Target.Size
  195. Minimum=math.sqrt((rt.X^2+rt.Y^2+rt.Z^2))+.5
  196. else
  197. local rt=Target.Parent:GetModelSize()
  198. Minimum=math.sqrt((rt.X^2+rt.Y^2+rt.Z^2))+.5
  199. end
  200. Adorn=Target
  201. end
  202. end)
  203.  
  204. Mouse.Button1Up:connect(function()
  205. if Adorn~=nil then
  206. Adorn=nil
  207. BP.Parent=nil
  208. end
  209. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement