Advertisement
RibCripql

Untitled

Dec 17th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. -------------------------------------------------------Danteslabs's Orb----------------------------------------------------------------------------------
  2. local Owner = "ribCripql"
  3. local Player = game.Players:findFirstChild(Owner)
  4.  
  5.  
  6. local RISE = 5
  7. local FOLLOW = true
  8. local M = Instance.new("Model")
  9. local H = Instance.new("Humanoid")
  10. M.Parent = Player.Character
  11. H.Parent = M
  12. H.MaxHealth = 0
  13. H.Health = 0
  14. M.Name = "Orb"
  15. local p = Instance.new("Part")
  16. local BP = Instance.new("BodyPosition")
  17. local BG = Instance.new("BodyGyro")
  18. local SPL = Instance.new("SelectionPartLasso")
  19. BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  20. SPL.Parent = p
  21. p.BrickColor = BrickColor.new("White")
  22. p.Name = "Head"
  23. p.Parent = M
  24. p.Shape = "Ball"
  25. p.formFactor = "Symmetric"
  26. p.Size = Vector3.new(3, 3, 3)
  27. p.TopSurface = 0
  28. p.BottomSurface = 0
  29. BP.Parent = p
  30.  
  31. function matchPlayer(str)
  32. local result = nil
  33. local players = game.Players:GetPlayers()
  34. for i,v in pairs(game.Players:GetPlayers()) do
  35. if (string.find(string.lower(v.Name), str) == 1) then
  36. if (result ~= nil) then return nil end
  37. result = v
  38. end
  39. end
  40. return result
  41. end
  42.  
  43.  
  44.  
  45. function onChatted(msg)
  46.  
  47. if (string.sub(msg, 1, 4) == "Orb,") then
  48. if (string.find(msg, string.lower("reset"))) then
  49. for word in msg:gmatch("%w+") do
  50. local player = matchPlayer(word)
  51. if (player ~= nil) then
  52. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  53. SPL.Color = BrickColor.new("Bright red")
  54. SPL.Part = p
  55. player.Character:BreakJoints()
  56. wait(1)
  57. SPL.Part = nil
  58. end
  59. end
  60. end
  61. if not (string.find(msg, string.lower("loopkill"))) then
  62. if (string.find(msg, string.lower("kill"))) then
  63. for word in msg:gmatch("%w+") do
  64. local player = matchPlayer(word)
  65. if (player ~= nil) then
  66. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  67. SPL.Color = BrickColor.new("Bright red")
  68. SPL.Part = p
  69. player.Character:BreakJoints()
  70. wait(1)
  71. SPL.Part = nil
  72. end
  73. end
  74. end
  75. end
  76. if (string.find(msg, string.lower("find"))) then
  77. for word in msg:gmatch("%w+") do
  78. local player = matchPlayer(word)
  79. if (player ~= nil) then
  80. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  81. SPL.Color = BrickColor.new("White")
  82. SPL.Part = p
  83. wait(2)
  84. SPL.Part = nil
  85. end
  86. end
  87. end
  88. if (string.find(msg, string.lower("tele"))) then
  89. for word in msg:gmatch("%w+") do
  90. local player = matchPlayer(word)
  91. if (player ~= nil) then
  92. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  93. SPL.Color = BrickColor.new("Bright blue")
  94. SPL.Part = p
  95. Player.Character.Torso.CFrame = player.Character.Torso.CFrame
  96. wait(1)
  97. SPL.Part = nil
  98. end
  99. end
  100. end
  101. if (string.find(msg, string.lower("trans"))) then
  102. local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
  103. if (number ~= nil) then
  104. p.Transparency = tonumber(number)
  105. end
  106. end
  107. if (string.find(msg, string.lower("size"))) then
  108. local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
  109. if (number ~= nil) then
  110. p.Size = Vector3.new(tonumber(number),tonumber(number),tonumber(number))
  111. end
  112. end
  113. if (string.find(msg, string.lower("loopkill"))) then
  114. local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
  115. if (number ~= nil) then
  116. for word in msg:gmatch("%w+") do
  117. local player = matchPlayer(word)
  118. if (player ~= nil) then
  119. K = 0
  120. repeat
  121. if (player.Character:findFirstChild("Humanoid").Health > 0) then
  122. wait()
  123. if (player.Character:findFirstChild("Torso") ~= nil) then
  124. wait()
  125. if (player.Character ~= nil) then
  126. wait()
  127. K = K + 1
  128. player.Character:BreakJoints()
  129. end
  130. end
  131. end
  132. wait()
  133. until tonumber(K) == tonumber(number)
  134. K = 0
  135. end
  136. end
  137. end
  138. end
  139. if (string.find(msg, string.lower("rise"))) then
  140. local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
  141. if (number ~= nil) then
  142. RISE = tostring(number + 5)
  143. end
  144. end
  145. if not (string.find(msg, string.lower("unff"))) then
  146. if (string.find(msg, string.lower("ff"))) then
  147. for word in msg:gmatch("%w+") do
  148. local player = matchPlayer(word)
  149. if (player ~= nil) then
  150. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  151. SPL.Color = BrickColor.new("Bright green")
  152. SPL.Part = p
  153. ff = Instance.new("ForceField")
  154. ff.Parent = player.Character
  155. wait(1)
  156. SPL.Part = nil
  157. end
  158. end
  159. end
  160. end
  161. if (string.find(msg, string.lower("unff"))) then
  162. for word in msg:gmatch("%w+") do
  163. local player = matchPlayer(word)
  164. if (player ~= nil) then
  165. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  166. SPL.Color = BrickColor.new("Bright green")
  167. SPL.Part = p
  168. for i,v in pairs(player.Character:GetChildren()) do
  169. if (v:IsA("ForceField")) then
  170. v:Remove()
  171. end
  172. end
  173. wait(0.5)
  174. SPL.Part = p
  175. SPL.Color = BrickColor.new("Black")
  176. wait(1)
  177. SPL.Part = nil
  178. end
  179. end
  180. end
  181. if (string.find(msg, string.lower("kick"))) then
  182. for word in msg:gmatch("%w+") do
  183. local player = matchPlayer(word)
  184. if (player ~= nil) then
  185. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  186. SPL.Color = BrickColor.new("Bright blue")
  187. SPL.Part = p
  188. wait(1)
  189. player:Remove()
  190. SPL.Part = nil
  191. end
  192. end
  193. end
  194. if (string.find(msg, string.lower("stop"))) then
  195. if (string.find(msg, string.lower("spin"))) then
  196. BG.Parent = p
  197. end
  198. end
  199. if (string.find(msg, string.lower("start"))) then
  200. if (string.find(msg, string.lower("spin"))) then
  201. BG.Parent = nil
  202. end
  203. end
  204. if (string.find(msg, string.lower("invisible"))) then
  205. for word in msg:gmatch("%w+") do
  206. local player = matchPlayer(word)
  207. if (player ~= nil) then
  208. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  209. SPL.Color = BrickColor.new("Bright blue")
  210. SPL.Part = p
  211. for i,v in pairs(player.Character:GetChildren()) do
  212. if (v:IsA("Part")) then
  213. v.Transparency = 1
  214. end
  215. end
  216. wait(1)
  217. SPL.Part = nil
  218. end
  219. end
  220. end
  221. if not (string.find(msg, string.lower("invisible"))) then
  222. if (string.find(msg, string.lower("visible"))) then
  223. for word in msg:gmatch("%w+") do
  224. local player = matchPlayer(word)
  225. if (player ~= nil) then
  226. SPL.Humanoid = player.Character:findFirstChild("Humanoid")
  227. SPL.Color = BrickColor.new("Bright blue")
  228. SPL.Part = p
  229. for i,v in pairs(player.Character:GetChildren()) do
  230. if (v:IsA("Part")) then
  231. v.Transparency = 0
  232. end
  233. end
  234. wait(1)
  235. SPL.Part = nil
  236. end
  237. end
  238. end
  239. end
  240. if (string.find(msg, string.lower("stay"))) then
  241. local FOLLOW = false
  242. end
  243. if (string.find(msg, string.lower("follow"))) then
  244. local FOLLOW = true
  245. end
  246. end
  247. end
  248.  
  249. Player.Chatted:connect(onChatted)
  250.  
  251. local Levitated = 0
  252. local LevitateDir = -1
  253.  
  254. while true do wait()
  255. pcall(function()
  256.  
  257. -- PARENT THE ORB --
  258. M.Parent = Player.Character
  259.  
  260. -- Levitation --
  261. Levitated = Levitated + LevitateDir / 20
  262. if Levitated >= 1 or Levitated <= -1 then
  263. LevitateDir = -LevitateDir
  264. end
  265. if (FOLLOW == true) then
  266. BP.position = (Player.Character.Torso.CFrame * CFrame.new(5, RISE, -2.5)).p + Vector3.new(0, Levitated, 0)
  267. end
  268. end)
  269. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement