Advertisement
Hebablazin

Pixel Wolfs

Jun 5th, 2016
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1. ----------------------Pixel Wolf Shield------------------------------------------------
  2. script=game.Workspace
  3. name = "tindmikael"
  4. Admin = Game.Players[TheMoonlightGlows]
  5. Char = Admin.Character
  6. mode = "normal"
  7. ------------------------------ Shield Construction~
  8. Shield = Instance.new("Part")
  9. Shield.Parent = Game.Workspace
  10. Shield.Shape = ("Ball")
  11. Shield.Size = Vector3.new(40, 40, 40)
  12. Shield.CanCollide = false
  13. Shield.BrickColor = BrickColor.Black()
  14. Shield.Transparency = .7
  15. Shield.Position = Char.Torso.Position
  16. Shield.TopSurface = ("Smooth")
  17. local bp = Instance.new("BodyPosition")
  18. bp.Parent = Shield
  19. bp.maxForce = Vector3.new(4e+9999, 4e+9999, 4e+9999)
  20. Spawn( function()
  21. while true do
  22. bp.position = Char.Torso.Position
  23. wait()
  24. end
  25. end )
  26. local H = Instance.new("Hint")
  27. H.Parent = Char
  28. H.Text = "Join Pixel Wolf Today "
  29. -----------------------------Gui
  30. m = Instance.new("BillboardGui")
  31. m.Parent = Game.Workspace
  32. m.Adornee = Admin.Character.Head
  33. m.Size = UDim2.new(0,150,0,150)
  34.  
  35. b = Instance.new("TextLabel")
  36. b.Size = UDim2.new(0,150,0,15)
  37. b.Position = UDim2.new(0,0,0,-15)
  38. b.Text = name.."'s shield"
  39. b.TextTransparency = 0
  40. b.Parent = m
  41. b.FontSize = "Size10"
  42. b.Font = "ArialBold"
  43. b.TextColor = BrickColor.new("Really red")
  44. b.BackgroundTransparency = 1
  45. ------------------------------ Modes~
  46. function onTouched(hit)
  47. if Shield.Transparency == 1 then return true end
  48. if mode == "kill" then
  49. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  50. if plyr ~= nil then
  51. Shield.BrickColor = BrickColor.Red()
  52. plyr.Character.Humanoid.Health = 0
  53. end
  54. end
  55. if mode == "sit" then
  56. Shield.BrickColor = BrickColor.Black()
  57. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  58. if plyr ~= nil then
  59. plyr.Character.Humanoid.Sit = true
  60. end
  61. end
  62. if mode == "walkspeed" then
  63. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  64. if plyr ~= nil then
  65. Shield.BrickColor = BrickColor.White()
  66. plyr.Character.Humanoid.WalkSpeed = 700
  67. end
  68. end
  69. if mode == "slip" then
  70. Shield.BrickColor = BrickColor.Black()
  71. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  72. if plyr ~= nil then
  73. plyr.Character.Humanoid.PlatformStand = true
  74. end
  75. end
  76. if mode == "head" then
  77. Shield.BrickColor = BrickColor.Black()
  78. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  79. if plyr ~= nil then
  80. plyr.Character.Head.Mesh.Scale = Vector3.new(9, 9, 9)
  81. end
  82. end
  83. if mode == "stand" then
  84. Shield.BrickColor = BrickColor.White()
  85. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  86. if plyr ~= nil then
  87. plyr.Character.Humanoid.PlatformStand = false
  88. end
  89. end
  90. if mode == "ban" then
  91. Shield.BrickColor = BrickColor.Green()
  92. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  93. if plyr ~= nil then
  94. plyr:Remove()
  95. end
  96. end
  97. if mode == "message" then
  98. Shield.BrickColor = BrickColor.Yellow()
  99. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  100. if plyr ~= nil then
  101. local M = Instance.new("Message")
  102. M.Parent = plyr
  103. M.Text = "You touched"..name.."'s shield! You must die!"
  104. wait(2)
  105. plyr.Character.Humanoid.Health = 0
  106. M:Remove()
  107. end
  108. end
  109. if mode == "fling" then
  110. Shield.BrickColor = BrickColor.Black()
  111. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  112. if plyr ~= nil then
  113. plyr.Character.Torso.RotVelocity = Vector3.new(72, 72, 72)
  114. end
  115. end
  116. if mode == "freeze" then
  117. Shield.BrickColor = BrickColor.Blue()
  118. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  119. if plyr ~= nil then
  120. for i,v in pairs(plyr.Character:GetChildren()) do
  121. if v:IsA("Part") then
  122. v.Anchored = true
  123. end
  124. end
  125. end
  126. end
  127. if mode == "thaw" then
  128. Shield.BrickColor = BrickColor.Red()
  129. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  130. if plyr ~= nil then
  131. for i,v in pairs(plyr.Character:GetChildren()) do
  132. if v:IsA("Part") then
  133. v.Anchored = false
  134. end
  135. end
  136. end
  137. end
  138. if mode == "normal" then
  139. Shield.BrickColor = BrickColor.Black()
  140. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  141. if plyr ~= nil then
  142. print("Nothing happened...")
  143. end
  144. end
  145. end
  146.  
  147. Shield.Touched:connect(onTouched)
  148. ------------------------------ Chat~
  149. function onChatted(msg)
  150. if msg == "on" then
  151. Shield.Transparency = .7
  152. b.TextTransparency = 0
  153. end
  154. if msg == "fix" then
  155. mode = "normal"
  156. Char:MoveTo(Vector3.new(0, 10, 0))
  157. end
  158. if msg == "off" then
  159. Shield.Transparency = 1
  160. b.TextTransparency = 1
  161. end
  162. if msg == "reset" then
  163. Char:BreakJoints()
  164. end
  165. if msg == "music" then
  166. local HI = Instance.new("Message")
  167. HI.Parent = Char
  168. HI.Text = "Would you like to play rickroll, lol, dotr or mule music?"
  169. wait(5)
  170. HI:Remove()
  171. end
  172. if msg == "rickroll" then
  173. local S = Instance.new("Sound")
  174. S.Parent = Char
  175. S.Name = "Sound"
  176. S.SoundId = "http://www.roblox.com/asset/?id=2027611"
  177. S.Volume = 1
  178. S.Pitch = 1
  179. S.Looped = false
  180. S.archivable = true
  181. S:Play()
  182. local HII = Instance.new("Message")
  183. HII.Parent = game.Workspace
  184. HII.Text = "Now rickrolling"
  185. wait(3)
  186. HII:Remove()
  187. end
  188. if msg == "lol" then
  189. local SI = Instance.new("Sound")
  190. SI.Parent = Char
  191. SI.Name = "Sound"
  192. SI.SoundId = "http://www.roblox.com/asset/?id=2303479"
  193. SI.Volume = 1
  194. SI.Pitch = 1
  195. SI.Looped = false
  196. SI.archivable = true
  197. SI:Play()
  198. local HIII = Instance.new("Message")
  199. HIII.Parent = game.Workspace
  200. HIII.Text = "Now playing lol"
  201. wait(3)
  202. HIII:Remove()
  203. end
  204. if msg == "dotr" then
  205. local SII = Instance.new("Sound")
  206. SII.Parent = Char
  207. SII.Name = "Sound"
  208. SII.SoundId = "http://www.roblox.com/asset/?id=11420922"
  209. SII.Volume = 1
  210. SII.Pitch = 1
  211. SII.Looped = false
  212. SII.archivable = true
  213. SII:Play()
  214. local Ho = Instance.new("Message")
  215. Ho.Parent = game.Workspace
  216. Ho.Text = "Now playing DOTR"
  217. wait(3)
  218. Ho:Remove()
  219. end
  220. if msg == "mule" then
  221. local So = Instance.new("Sound")
  222. So.Parent = Char
  223. So.Name = "Sound"
  224. So.SoundId = "http://www.roblox.com/asset/?id=1077604"
  225. So.Volume = 1
  226. So.Pitch = 1
  227. So.Looped = false
  228. So.archivable = true
  229. So:Play()
  230. local Hoo = Instance.new("Message")
  231. Hoo.Parent = game.Workspace
  232. Hoo.Text = "Now playing M.U.L.E"
  233. wait(3)
  234. Hoo:Remove()
  235. end
  236. if(string.sub(msg:lower(),1,5) == "mode/") then
  237. mode = string.sub(msg:lower(), 6)
  238. local Mo = Instance.new("Message")
  239. Mo.Parent = game.Workspace
  240. Mo.Text = name.." set mode to " ..mode.. " mode..."
  241. wait(2)
  242. Mo:Remove()
  243. end
  244. if msg == "help" then
  245. local Hm = Instance.new("Message")
  246. Hm.Parent = Char
  247. Hm.Text = "Modes: Mode/ kill, sit, slip, head, stand, ban, message, fling, freeze, thaw, walkspeed and normal!"
  248. wait(7)
  249. Hm.Text = "Music Commands: rickroll, lol, dotr, and mule"
  250. wait(5)
  251. Hm.Text = "Shield Commdands: on, off, reset, fix and help. Speed: Speed/(number)"
  252. wait(6)
  253. Hm.Text = "Credits: This Shield was made by Pixel Wolf"
  254. wait(4)
  255. Hm:Remove()
  256. end
  257.  
  258. --[[if(string.sub(msg:lower(),1,6) == "size/") then
  259. speed = string.sub(msg:lower(), 7)
  260. size = Shield.Size
  261. mode = "normal"
  262. Shield.Size = Vector3.new(size, size, size)
  263. local M = Instance.new("Message")
  264. M.Parent = game.Workspace
  265. M.Text = "Size set to "..size.."."
  266. wait(2)
  267. M:Remove()
  268. end
  269. end]]
  270.  
  271. if(string.sub(msg:lower(),1,6) == "speed/") then
  272. speed = string.sub(msg:lower(), 7)
  273. Admin.Character.Humanoid.WalkSpeed = speed
  274. mode = "normal"
  275. Shield.Size = Vector3.new(40, 40, 40) + Vector3.new(0, 0, 0)
  276. local Mm = Instance.new("Message")
  277. Mm.Parent = game.Workspace
  278. Mm.Text = name.." set his speed to " ..speed.. "."
  279. wait(2)
  280. Mm:Remove()
  281. end
  282. end
  283.  
  284. Admin.Chatted:connect(onChatted)
  285. -------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement