RyanDaCoder

Dasers

Sep 12th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. --\\Main//--
  2.  
  3.  
  4. --[[commands
  5. trail;off Turns trail off
  6. trail;on Turns trail on
  7. +; Makes a loadstring
  8. hide;on Hides the orb
  9. hide;off Shows the orb
  10. time;value Value = Time
  11. regen;player Regenerates the player
  12. regen;orb Regenerates the orb
  13. chat; Red ChatService
  14. tk; A kill on touch script *LETHAL*
  15.  
  16. ]]
  17.  
  18. blacklist = {
  19. "1x1x1x1",
  20. "noobfgt",
  21.  
  22. };
  23.  
  24. local deb = false
  25. --Don't even parent yet... script.Parent = game.Workspace --Put it to nil after you have completed your SCRIPT.
  26. plr = game.Players.LocalPlayer
  27.  
  28.  
  29. OrbCreate = function()
  30. tOrb = nil;
  31. spmesh = nil;
  32. bodyPosition = nil;
  33.  
  34. tOrb = Instance.new("Part", workspace);
  35. tOrb.Size = Vector3.new(1,1,1);
  36. tOrb.CanCollide = false;
  37. tOrb.BrickColor = BrickColor.new("Really black");
  38. tOrb.Name = "Leroy6";
  39. tOrb.Position = Vector3.new(5,5,5);
  40. tOrb.BottomSurface = "Smooth"
  41. tOrb.TopSurface = "Smooth"
  42. spmesh = Instance.new("SpecialMesh", tOrb);
  43. spmesh.MeshType = "Sphere";
  44. bodyPosition = Instance.new("BodyPosition", tOrb);
  45.  
  46. end
  47. OrbCreate();
  48.  
  49. function getPlayer(name)
  50. for i,v in pairs(game.Players:children()) do
  51. if #v.Name >= name then
  52. if string.lower(v.Name):sub(1,#name) == string.lower(name) then
  53. return v
  54. end
  55. end
  56. end
  57. return nil
  58. end
  59.  
  60. --\\Commands//--
  61. coroutine.resume(coroutine.create(function()
  62.  
  63. while wait(0.02) do
  64. if trail == true then
  65.  
  66. parts = {}
  67. coroutine.resume(coroutine.create(function()
  68. clone = tOrb:clone()
  69. clone.CFrame = tOrb.CFrame
  70. clone.Parent = Workspace
  71. clone.Anchored = true
  72. table.insert(parts, {clone = clone})
  73. while wait() do
  74. for i,v in pairs(parts) do
  75. for i = 0, 1, 0.1 do
  76. v.clone.Transparency = i
  77. wait(0.05)
  78. end
  79. v.clone:Destroy()
  80. table.remove(parts, clone)
  81. end
  82. end
  83. end))
  84. else
  85. pcall(function()v:Destroy() end)
  86. end
  87. end
  88. end))
  89.  
  90.  
  91. plr.Chatted:connect(function(msg)
  92. if msg == "trail;off" then
  93. trail = false
  94. end
  95. if msg == "trail;on" then
  96. trail = true
  97. end
  98.  
  99. if msg == "hide;on" then
  100. tOrb.Transparency = 1
  101. end
  102.  
  103. if msg == "hide;off" then
  104. tOrb.Transparency = 0
  105. end
  106.  
  107. if msg == "regen;orb" then
  108. OrbCreate()
  109. end
  110.  
  111. if msg == "regen;player" then
  112. plr.Character.Parent = game.Lighting
  113. wait(0.01)
  114. plr.Character.Parent = game.Workspace
  115. end
  116.  
  117.  
  118. if msg == "box;" then
  119. deb = not deb
  120. if deb then
  121. local p0 = Instance.new("SelectionBox")
  122. p0.Adornee = tOrb
  123. p0.Color = BrickColor.new("Really black")
  124. p0.Parent = tOrb
  125. else
  126. p0:Destroy()
  127. end
  128. end
  129.  
  130. if msg:sub(1,5) == "time;" then
  131. game:service'Lighting'.TimeOfDay = msg:sub(6) -- Never use letters as a Number.
  132. end
  133.  
  134. if msg:sub(1,5) == "kick;" then
  135. if game.Players(msg:sub(6)) ~= nil then
  136. follow = game.Players(msg:sub(6)).Name
  137. game.Players[follow]:Destroy()
  138. end
  139. end
  140.  
  141. if msg == "chat;" then
  142. chat = game:GetService("Chat")
  143. function plchat(msg)
  144. pcall(function()
  145. chat:Chat(plr.Character.Head,msg,2)
  146. end)
  147. end
  148. plr.Chatted:connect(function(msg)
  149. plchat(msg)
  150. end)
  151. end
  152.  
  153. if msg == "tk;" then
  154. function onTouched(hit)
  155. if (hit.Parent:findFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid.Health = 0 end
  156. end
  157. c = plr.Character:GetChildren()
  158. for i = 1, #c do
  159. if (c[i].className == "Part") then c[i].Touched:connect(onTouched) end end
  160. end
  161.  
  162. end)
  163.  
  164.  
  165.  
  166. coroutine.resume(coroutine.create(function()
  167. while wait() do
  168. if char.Humanoid.Health <= 0 then
  169. trail = false
  170. end
  171. end
  172. end))
  173.  
  174.  
  175. game:service'Players'.LocalPlayer.Chatted:connect(function(msg)
  176. wait(0.001);
  177. loadstring(msg:match'+;(.+)')();
  178. end);
  179.  
  180.  
  181. --\\Functions//--
  182. function move()
  183. if plr.Character.Humanoid.Health<1 then
  184. repeat wait() until plr.Character.Humanoid.Health>0
  185. OrbCreate()
  186. end
  187. end
  188.  
  189. coroutine.resume(coroutine.create(function()
  190. while true do
  191. wait()
  192. bodyPosition.position = (plr.Character.Torso.CFrame).p + Vector3.new(4, 4, 0);
  193. end
  194. end))
  195.  
  196.  
  197. while true do
  198. tOrb.CFrame = tOrb.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0,0.02)
  199. wait(0.1)
  200. end
Add Comment
Please, Sign In to add comment