Alphashadowgaming

Nazi

Aug 26th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. -----------[MADE BY DoogleFox]-----------------------------------------------------------------------------------------------
  2. player = game:service("Players").DEADDEVIL1919
  3. char = player.Character
  4.  
  5. local P = Instance.new("Part")
  6. P.Name = "Part"
  7. P.formFactor = "Custom"
  8. P.Size = Vector3.new(0.5,0.5,0.5)
  9. P.Locked = true
  10. P.TopSurface = 0
  11. P.BottomSurface = 0
  12.  
  13. function GenFlag(cf, scale)
  14. P.Anchored = true
  15. P.CanCollide = true
  16. for i, v in pairs(workspace:children()) do
  17. if v.Name == "NFlag" then
  18. if v.Owner.Value == player then
  19. v:remove()
  20. end
  21. end
  22. end
  23. scale = scale or 1
  24. local m = Instance.new("Model", workspace)
  25. m.Name = "NFlag"
  26.  
  27. local ob = Instance.new("ObjectValue", m)
  28. ob.Name = "Owner"
  29. ob.Value = player
  30.  
  31. local b = P:Clone()
  32. b.Parent = m
  33. b.BrickColor = BrickColor.new("Bright red")
  34. b.Size = Vector3.new(14*scale,25*scale,0.5)
  35. b.CFrame = cf
  36.  
  37. local p = P:Clone()
  38. p.Parent = m
  39. p.BrickColor = BrickColor.new("Really black")
  40. p.CFrame = cf * CFrame.new(0,25/2*scale,0) * CFrame.Angles(0,0,math.pi/2)
  41. local mesh = Instance.new("CylinderMesh", p)
  42. mesh.Scale = Vector3.new(3.5,15*2*scale,3.5)
  43. local p = P:Clone()
  44. p.Parent = m
  45. p.BrickColor = BrickColor.new("Really black")
  46. p.CFrame = cf * CFrame.new(0,25/2*scale,0) * CFrame.Angles(0,0,math.pi/2)
  47. local mesh = Instance.new("CylinderMesh", p)
  48. mesh.Scale = Vector3.new(2,21*2*scale,2)
  49.  
  50. ------ left pole ------------------------------------------------
  51. local p = P:Clone()
  52. p.Parent = m
  53. p.BrickColor = BrickColor.new("Really black")
  54. p.CFrame = cf * CFrame.new(9*scale,11.25*scale,0) * CFrame.Angles(math.pi/4.5,0,0)
  55. local mesh = Instance.new("CylinderMesh", p)
  56. mesh.Scale = Vector3.new(2.4,6*scale,2.4)
  57. mesh.Offset = Vector3.new(0,1.4*scale,0)
  58. local p = P:Clone()
  59. p.Parent = m
  60. p.BrickColor = BrickColor.new("Really black")
  61. p.CFrame = cf * CFrame.new(9*scale,11.25*scale,0) * CFrame.Angles(-math.pi/4.5,0,0)
  62. local mesh = Instance.new("CylinderMesh", p)
  63. mesh.Scale = Vector3.new(2.4,6*scale,2.4)
  64. mesh.Offset = Vector3.new(0,1.4*scale,0)
  65. local p = P:Clone()
  66. p.Parent = m
  67. p.BrickColor = BrickColor.new("Really black")
  68. p.Size = Vector3.new(1.2,25.5,1.2)
  69. p.CFrame = cf * CFrame.new(9*scale,-1.5*scale,0)
  70. local mesh = Instance.new("CylinderMesh", p)
  71.  
  72. ------ right pole ------------------------------------------------
  73. local p = P:Clone()
  74. p.Parent = m
  75. p.BrickColor = BrickColor.new("Really black")
  76. p.CFrame = cf * CFrame.new(-9*scale,11.25*scale,0) * CFrame.Angles(math.pi/4.5,0,0)
  77. local mesh = Instance.new("CylinderMesh", p)
  78. mesh.Scale = Vector3.new(2.4,6*scale,2.4)
  79. mesh.Offset = Vector3.new(0,1.4*scale,0)
  80. local p = P:Clone()
  81. p.Parent = m
  82. p.BrickColor = BrickColor.new("Really black")
  83. p.CFrame = cf * CFrame.new(-9*scale,11.25*scale,0) * CFrame.Angles(-math.pi/4.5,0,0)
  84. local mesh = Instance.new("CylinderMesh", p)
  85. mesh.Scale = Vector3.new(2.4,6*scale,2.4)
  86. mesh.Offset = Vector3.new(0,1.4*scale,0)
  87. local p = P:Clone()
  88. p.Parent = m
  89. p.BrickColor = BrickColor.new("Really black")
  90. p.Size = Vector3.new(1.2,25.5,1.2)
  91. p.CFrame = cf * CFrame.new(-9*scale,-1.5*scale,0)
  92. local mesh = Instance.new("CylinderMesh", p)
  93.  
  94. ----------------- icon -----------------------------------------
  95. local c = P:Clone()
  96. c.Parent = m
  97. c.BrickColor = BrickColor.new("White")
  98. c.CFrame = cf * CFrame.new(0,0,0) * CFrame.Angles(math.pi/2,0,0)
  99. local mesh = Instance.new("CylinderMesh", c)
  100. mesh.Scale = Vector3.new(12*2*scale, 1.1, 12*2*scale)
  101.  
  102. for i = 1, 4 do
  103. local c = P:Clone()
  104. c.Parent = m
  105. c.BrickColor = BrickColor.new("Really black")
  106. c.CFrame = cf * CFrame.Angles(0,0,math.pi/2*i) * CFrame.new(2*scale,0,-0.1)
  107. local mesh = Instance.new("BlockMesh", c)
  108. mesh.Scale = Vector3.new(8*scale,3*scale,1)
  109. local c = P:Clone()
  110. c.Parent = m
  111. c.BrickColor = BrickColor.new("Really black")
  112. c.CFrame = cf * CFrame.Angles(0,0,math.pi/2*i) * CFrame.new(3.25*scale,2*scale,-0.1)
  113. local mesh = Instance.new("BlockMesh", c)
  114. mesh.Scale = Vector3.new(3*scale,8*scale,1)
  115. end
  116.  
  117. cf = cf * CFrame.Angles(0,math.pi,0)
  118.  
  119. for i = 1, 4 do
  120. local c = P:Clone()
  121. c.Parent = m
  122. c.BrickColor = BrickColor.new("Really black")
  123. c.CFrame = cf * CFrame.Angles(0,0,math.pi/2*i) * CFrame.new(2*scale,0,-0.1)
  124. local mesh = Instance.new("BlockMesh", c)
  125. mesh.Scale = Vector3.new(8*scale,3*scale,1)
  126. local c = P:Clone()
  127. c.Parent = m
  128. c.BrickColor = BrickColor.new("Really black")
  129. c.CFrame = cf * CFrame.Angles(0,0,math.pi/2*i) * CFrame.new(3.25*scale,2*scale,-0.1)
  130. local mesh = Instance.new("BlockMesh", c)
  131. mesh.Scale = Vector3.new(3*scale,8*scale,1)
  132. end
  133.  
  134. end
  135.  
  136. -------------------------- Arm Band Func -------------------------------------
  137.  
  138. function ArmBand(charz, side)
  139. P.Anchored = false
  140. P.CanCollide = false
  141. for i, v in pairs(charz:children()) do
  142. if side == "Left" then
  143. if v.Name == "LArmBand" then
  144. v:remove()
  145. end
  146. elseif side == "Right" then
  147. if v.Name == "RArmBand" then
  148. v:remove()
  149. end
  150. end
  151. end
  152.  
  153. side = side or "Left"
  154. local arm = charz:findFirstChild("Left Arm")
  155. if side == "Right" then
  156. arm = charz:findFirstChild("Right Arm")
  157. end
  158. if arm ~= nil then
  159. local s = arm.Size.x
  160.  
  161. local m = Instance.new("Model", charz)
  162. m.Name = "LArmBand"
  163. if side == "Right" then
  164. m.Name = "RArmBand"
  165. end
  166.  
  167. local b = P:Clone()
  168. b.Parent = m
  169. b.BrickColor = BrickColor.new("Bright red")
  170. local mesh = Instance.new("BlockMesh", b)
  171. mesh.Scale = Vector3.new(1.05*s*2,0.85*s*2,1.05*s*2)
  172. local w = Instance.new("Motor", b)
  173. w.Part0 = arm
  174. w.Part1 = b
  175. w.C0 = CFrame.new(0,0.2*s,0)
  176. if side == "Left" then
  177. w.C0 = w.C0 * CFrame.Angles(0,0,0)
  178. elseif side == "Right" then
  179. w.C0 = w.C0 * CFrame.Angles(0,math.pi,0)
  180. end
  181.  
  182. local c = P:Clone()
  183. c.Parent = m
  184. c.BrickColor = BrickColor.new("White")
  185. local mesh = Instance.new("CylinderMesh", c)
  186. mesh.Scale = Vector3.new(0.65*s*2,0.1*s*2,0.65*s*2)
  187. local w = Instance.new("Motor", c)
  188. w.Part0 = b
  189. w.Part1 = c
  190. w.C0 = CFrame.new(-0.5*s,0,0) * CFrame.Angles(0,0,math.pi/2)
  191.  
  192. for i = 1, 4 do
  193. local l = P:Clone()
  194. l.Parent = m
  195. l.BrickColor = BrickColor.new("Really black")
  196. local mesh = Instance.new("BlockMesh", l)
  197. mesh.Scale = Vector3.new(0.22*s*2,0.1*s*2,0.1*s*2)
  198. local w = Instance.new("Motor", l)
  199. w.Part0 = c
  200. w.Part1 = l
  201. w.C0 = CFrame.new(0,0.02*s,0) * CFrame.Angles(0,math.pi/2*i,0) * CFrame.new(0.11*s,0,0)
  202. local l = P:Clone()
  203. l.Parent = m
  204. l.BrickColor = BrickColor.new("Really black")
  205. local mesh = Instance.new("BlockMesh", l)
  206. mesh.Scale = Vector3.new(0.1*s*2,0.1*s*2,0.22*s*2)
  207. local w = Instance.new("Motor", l)
  208. w.Part0 = c
  209. w.Part1 = l
  210. w.C0 = CFrame.new(0,0.02*s,0) * CFrame.Angles(0,math.pi/2*i,0) * CFrame.new(0.17*s,0,0.1)
  211.  
  212. end
  213.  
  214. end
  215. end
  216.  
  217. player.Chatted:connect(function(msg)
  218. if string.sub(msg, 1, 7) == "laband/" then
  219. local str = string.sub(msg, 8):lower()
  220. local num = str:len()
  221. for i, v in pairs(player.Parent:children()) do
  222. local str2 = string.sub(v.Name, 1, num):lower()
  223. if str2 == str then
  224. ArmBand(v.Character, "Left")
  225. end
  226. end
  227. elseif string.sub(msg, 1, 7) == "raband/" then
  228. local str = string.sub(msg, 8):lower()
  229. local num = str:len()
  230. for i, v in pairs(player.Parent:children()) do
  231. local str2 = string.sub(v.Name, 1, num):lower()
  232. if str2 == str then
  233. ArmBand(v.Character, "Right")
  234. end
  235. end
  236. elseif msg == "flag" then
  237. GenFlag(player.Character.Torso.CFrame * CFrame.new(0,11,4))
  238. elseif msg == "noflag" then
  239. pcall(function()
  240. for i, v in pairs(workspace:children()) do
  241. if v.Name == "NFlag" then
  242. if v.Owner.Value == player then
  243. v:remove()
  244. end
  245. end
  246. end
  247. end)
  248. elseif msg == "remove n" then
  249. script:remove()
  250. end
  251. end)
Add Comment
Please, Sign In to add comment