Advertisement
Davodio

Starman

Mar 9th, 2018
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.40 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local size = 8
  4. part = function()
  5.  
  6. local a = Instance.new("Part", script)
  7. a.Anchored = true
  8. a.CanCollide = true
  9. a.CFrame = char.Torso.CFrame
  10. a.Size = Vector3.new(size, 0.2, 0.2)
  11. a.Transparency = 100
  12. return a
  13. end
  14.  
  15. part2 = function()
  16.  
  17. local a = Instance.new("Part", script)
  18. a.Anchored = true
  19. a.CanCollide = true
  20. a.CFrame = char.Torso.CFrame
  21. a.Size = Vector3.new(0.2, size, 0.2)
  22. a.Transparency = 1
  23. return a
  24. end
  25.  
  26. part3 = function()
  27.  
  28. local a = Instance.new("Part", script)
  29. a.Anchored = true
  30. a.CanCollide = false
  31. a.Size = Vector3.new(size, size, 1)
  32. a.Transparency = 0.7
  33. a.Material = "Neon"
  34. a.BrickColor = BrickColor.new("Really red")
  35. local b = Instance.new("BlockMesh", a)
  36. b.Scale = Vector3.new(1, 1, 0)
  37. return a
  38. end
  39.  
  40. local replicating = false
  41. local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil
  42. replicate = function()
  43.  
  44. replicating = true
  45. script:ClearAllChildren()
  46. root = part()
  47. root.Transparency = 1
  48. root.Size = Vector3.new(0.2, 0.2, 0.2)
  49. root.CanCollide = false
  50. a = part()
  51. b = part()
  52. c = part()
  53. d = part()
  54. a2 = part()
  55. b2 = part()
  56. c2 = part()
  57. d2 = part()
  58. aa = part2()
  59. bb = part2()
  60. cc = part2()
  61. dd = part2()
  62. z = part3()
  63. x = part3()
  64. c = part3()
  65. v = part3()
  66. b = part3()
  67. n = part3()
  68. replicating = false
  69. end
  70.  
  71. script.ChildRemoved:connect(function(a)
  72.  
  73. if a.ClassName == "Part" and replicating == false then
  74. replicate()
  75. end
  76. end
  77. )
  78. replicate()
  79. local tick = 0
  80. CreateRegion3FromLocAndSize = function(Position, Size)
  81.  
  82. local SizeOffset = Size / 2
  83. local Point1 = Position - SizeOffset
  84. local Point2 = Position + SizeOffset
  85. return Region3.new(Point1, Point2)
  86. end
  87.  
  88. local set = false
  89. local whitelist = {"Hieroku", "PPATTA", "DevGamerzz", "I kill U", "kash5", "ZeroCrimson", "Zaidia", "tsup2", "PointCoded", "CLarramore", "Suzuuki", "", "", ""}
  90. p.Chatted:connect(function(ms)
  91.  
  92. if ms:sub(1, 5) == "size-" then
  93. size = tonumber(ms:sub(6))
  94. replicate()
  95. else
  96. if ms:sub(1, 4) == "set-" then
  97. set = true
  98. z.CanCollide = false
  99. x.CanCollide = false
  100. c.CanCollide = false
  101. v.CanCollide = false
  102. b.CanCollide = false
  103. n.CanCollide = false
  104. else
  105. if ms:sub(1, 6) == "unset-" then
  106. set = false
  107. z.CanCollide = false
  108. x.CanCollide = false
  109. c.CanCollide = false
  110. v.CanCollide = false
  111. b.CanCollide = false
  112. n.CanCollide = false
  113. else
  114. if ms:sub(1, 10) == "whitelist-" then
  115. table.insert(whitelist, ms:sub(11))
  116. else
  117. if ms:sub(1, 12) == "unwhitelist-" then
  118. for i,v in pairs(whitelist) do
  119. if ms:sub(13) == v then
  120. table.remove(whitelist, i)
  121. break
  122. end
  123. end
  124. end
  125. end
  126. end
  127. end
  128. end
  129. end
  130. )
  131. local magicpos = nil
  132. game:GetService("RunService").Heartbeat:connect(function()
  133.  
  134. pcall(function()
  135.  
  136. local void = char:GetChildren()
  137. for _,pl in pairs(whitelist) do
  138. if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  139. for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  140. table.insert(void, v)
  141. end
  142. end
  143. end
  144. for i,v in pairs(game.Players:GetPlayers()) do
  145. if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then
  146. v:LoadCharacter()
  147. end
  148. end
  149. char.Humanoid.Health = math.huge
  150. tick = tick + 0.01
  151. if not set then
  152. root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1)
  153. magicpos = char.Torso.CFrame
  154. else
  155. root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05)
  156. end
  157. local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size))
  158. for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  159. if v.Name ~= "Base" then
  160. v:Destroy()
  161. end
  162. end
  163. a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  164. b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  165. c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2)
  166. d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2)
  167. a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  168. b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  169. c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2)
  170. d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2)
  171. aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2)
  172. bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2)
  173. cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2)
  174. dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2)
  175. z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  176. x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  177. c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90))
  178. v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90))
  179. b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  180. n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  181. end
  182. )
  183. end
  184. )
  185. wait(1)
  186. local s = Instance.new("Sound")
  187.  
  188. s.Name = "WindsOfFjords"
  189. s.SoundId = "http://www.roblox.com/asset/?version=1&id=142559694"
  190. s.Volume = 4.5
  191. s.Pitch = 1
  192.  
  193.  
  194.  
  195. s.Looped = true
  196. s.PlayOnRemove = false
  197. s.archivable = false
  198.  
  199. s.Parent = game.Workspace
  200.  
  201. wait(2)
  202.  
  203. s:play()
  204. wait(2)
  205. Parts={}
  206. function GetDiscoColor(hue)
  207. local section = hue % 1 * 3
  208. local secondary = 0.5 * math.pi * (section % 1)
  209. if section < 1 then
  210. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  211. elseif section < 2 then
  212. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  213. else
  214. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  215. end
  216. end
  217. Part = function(x,y,z,color,tr,cc,an,parent)
  218. local p = Instance.new('Part',parent or Weapon)
  219. p.formFactor = 'Custom'
  220. p.Size = Vector3.new(x,y,z)
  221. p.BrickColor = BrickColor.new(color)
  222. p.CanCollide = cc
  223. p.Transparency = tr
  224. p.Anchored = an
  225. p.TopSurface,p.BottomSurface = 0,0
  226. p:BreakJoints''
  227. table.insert(Parts,p)
  228. return p
  229. end
  230. Weld = function(p0,p1)
  231. local w = Instance.new('Motor',p0)
  232. w.Part0 = p0
  233. w.Part1 = p1
  234. return w
  235. end
  236. Mesh = function(par,num,x,y,z)
  237. local msh = 0
  238. if num == 1 then
  239. msh = Instance.new("SpecialMesh",par)
  240. msh.MeshId='rbxasset://fonts/torso.mesh'
  241. msh.TextureId='rbxasset://25701026'
  242. end
  243. if num == 2 then
  244. msh = Instance.new("SpecialMesh",par)
  245. msh.MeshId='rbxasset://fonts/head.mesh'
  246. msh.TextureId='rbxassetid://25701026'
  247. end
  248. msh.Scale = Vector3.new(x,y,z)
  249. return msh
  250. end
  251. plr=Game.Players.LocalPlayer
  252. char=plr.Character
  253. for _,v in pairs(char:GetChildren()) do
  254. if v.ClassName=="Part" then
  255. v.Transparency=1
  256. elseif v.ClassName=="Hat" then
  257. v.Handle.Mesh.TextureId='rbxassetid://25701026'
  258. table.insert(Parts,v.Handle)
  259. end
  260. end
  261. t=Part(1,1,1,'',0,false,false,char)
  262. Mesh(t,1,1,1,1)
  263. Weld(char.Torso,t)
  264. a=Part(1,1,1,'',0,false,false,char)
  265. Mesh(a,1,.5,1,1)
  266. Weld(char['Right Arm'],a)
  267. a=Part(1,1,1,'',0,false,false,char)
  268. Mesh(a,1,.5,1,1)
  269. Weld(char['Left Arm'],a)
  270. l=Part(1,1,1,'',0,false,false,char)
  271. Mesh(l,1,.5,1,1)
  272. Weld(char['Right Leg'],l)
  273. l=Part(1,1,1,'',0,false,false,char)
  274. Mesh(l,1,.5,1,1)
  275. Weld(char['Left Leg'],l)
  276. h=Part(1,1,1,'',0,false,false,char)
  277. Mesh(h,2,1,1,1)
  278. Weld(char.Head,h)
  279. Spawn(function()
  280. while(coroutine.yield())do
  281. for i=1,#Parts do
  282. Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe
  283. end
  284. end;
  285. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement