Advertisement
Modroi_Andrei

StarMan Script for ROBLOX

Jun 26th, 2018
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.40 KB | None | 0 0
  1. -- { ====================== } --
  2. -- | Made by Modroi_Andrei | --
  3. -- { ====================== } --
  4.  
  5. -- [============================================] --
  6. -- ( Do not copy this Script and say its yours! ) --
  7. -- [============================================] --
  8.  
  9. -- | = credits = | --
  10. -- | Rainbow Skin by ??? | --
  11. -- | Music by Nintendo | --
  12. -- | Shield by ??? | --
  13. -- | Rainbow text by me | --
  14. -- | inf health by Roblox | --
  15. -- | walkspeed code by Roblox | --
  16.  
  17.  
  18. -- (= Enjoy! =) --
  19.  
  20.  
  21. -- :Script was made for Void Script Builder: --
  22.  
  23. warn("Made by XDavodioX")
  24. wait(0.05)
  25. plr = game.Players.LocalPlayer
  26. char = plr.Character
  27. torso = char.Torso
  28. head = char.Head
  29. hed = char.Head
  30. neck = torso.Neck
  31. local syne = 0
  32. mouse = plr:GetMouse()
  33. larm = char["Left Arm"]
  34. rarm = char["Right Arm"]
  35. lleg = char["Left Leg"]
  36. rleg = char["Right Leg"]
  37. local Player = game:service("Players").LocalPlayer
  38. local Char = Player.Character
  39. local mouse = Player:GetMouse()
  40. local Humanoid = Char:findFirstChild("Humanoid")
  41. local Torso = Char:findFirstChild("Torso")
  42. wait(0.3)
  43. local plr = game.Players.LocalPlayer
  44. local char = plr.Character
  45. local torso = char.Torso
  46. local head = char.Head
  47.  
  48. function Random(num)
  49. local section=num % 1 * 3;
  50. local secondary=0.5 * math.pi * (section % 1);
  51. if section < 1 then
  52. return 1,1 - math.cos(secondary),1 - math.sin(secondary);
  53. elseif section < 2 then
  54. return 1 - math.sin(secondary),1,1 - math.cos(secondary);
  55. else
  56. return 1 - math.cos(secondary),1 - math.sin(secondary),1;
  57. end
  58. end
  59.  
  60. function custommessage(msg)
  61. local bg = Instance.new("BillboardGui", char)
  62. bg.Adornee = char.Head
  63. bg.Size = UDim2.new(1, 0, 1, 0)
  64. bg.StudsOffset = Vector3.new(0.5, 4, 0)
  65.  
  66. local txt = Instance.new("TextLabel")
  67. txt.Parent = bg
  68. txt.Transparency = 0
  69. txt.BackgroundColor3 = Color3.new(1,1,1)
  70. txt.BackgroundTransparency = 1
  71. txt.BorderSizePixel = 0
  72. txt.Size = UDim2.new(0, 0, 0.05, 0)
  73. txt.Position = UDim2.new(0, 0, 0, 0)
  74. txt:TweenSize(UDim2.new(5,0,0.05,0),"Out","Quart",0.5,true)
  75. txt:TweenPosition(UDim2.new(-2.5,0,0,0),"Out","Quart",0.5,true)
  76. txt.Font = "Code"
  77. txt.FontSize = "Size8"
  78. txt.TextStrokeColor3 = Color3.new(0,0,0)
  79. txt.TextStrokeTransparency = 1
  80. txt.TextScaled = true
  81. txt.BackgroundColor3 = Color3.new(0,0,0)
  82. txt.Text = " "
  83. txt.SizeConstraint = 0
  84. game:service'RunService'.RenderStepped:connect(function()
  85. txt.TextColor3 = Color3.new(Random(tick()))
  86. end)
  87. wait(0.5)
  88. txt:TweenSize(UDim2.new(5,0,2,0),"In","Quart",0.5,true)
  89. txt:TweenPosition(UDim2.new(-2.5,0,0,0),"In","Quart",0.5,true)
  90. wait(0.5)
  91. for i = 0, msg:len(), 1 do
  92. txt.Text = msg:sub(0, i)
  93. texteffect = Instance.new("Sound",char)
  94. texteffect.SoundId = "rbxassetid://156286438"
  95. texteffect.TimePosition = 0
  96. texteffect:Play()
  97. wait(0.02)
  98. end
  99. wait(3.8)
  100. for i = 0,1,0.1 do
  101. wait()
  102. txt.TextTransparency = i
  103. end
  104. txt:TweenSize(UDim2.new(0,0,2,0),"Out","Quart",0.25,true)
  105. txt:TweenPosition(UDim2.new(0,0,0,0),"Out","Quart",0.25,true)
  106. wait(0.25)
  107. bg:Destroy()
  108. end
  109.  
  110. coroutine.resume(coroutine.create(function()
  111. custommessage(" ")
  112. end))
  113.  
  114. plr.Chatted:connect(function(message)
  115. custommessage(message)
  116. end)
  117. wait(0.02)
  118. print("Loading Health...")
  119. Humanoid.MaxHealth = math.huge
  120. wait(0.02)
  121. Humanoid.Health = math.huge
  122. warn("Done loading Health!")
  123. wait(0.02)
  124. print("Loading Rainbow Skin...")
  125. Parts={}
  126. function GetDiscoColor(hue)
  127. local section = hue % 1 * 3
  128. local secondary = 0.5 * math.pi * (section % 1)
  129. if section < 1 then
  130. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  131. elseif section < 2 then
  132. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  133. else
  134. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  135. end
  136. end
  137. Part = function(x,y,z,color,tr,cc,an,parent)
  138. local p = Instance.new('Part',parent or Weapon)
  139. p.formFactor = 'Custom'
  140. p.Size = Vector3.new(x,y,z)
  141. p.BrickColor = BrickColor.new(color)
  142. p.CanCollide = cc
  143. p.Transparency = tr
  144. p.Anchored = an
  145. p.TopSurface,p.BottomSurface = 0,0
  146. p:BreakJoints''
  147. table.insert(Parts,p)
  148. return p
  149. end
  150. Weld = function(p0,p1)
  151. local w = Instance.new('Motor',p0)
  152. w.Part0 = p0
  153. w.Part1 = p1
  154. return w
  155. end
  156. Mesh = function(par,num,x,y,z)
  157. local msh = 0
  158. if num == 1 then
  159. msh = Instance.new("SpecialMesh",par)
  160. msh.MeshId='rbxasset://fonts/torso.mesh'
  161. msh.TextureId='rbxasset://25701026'
  162. end
  163. if num == 2 then
  164. msh = Instance.new("SpecialMesh",par)
  165. msh.MeshId='rbxasset://fonts/head.mesh'
  166. msh.TextureId='rbxassetid://25701026'
  167. end
  168. msh.Scale = Vector3.new(x,y,z)
  169. return msh
  170. end
  171. plr=Game.Players.LocalPlayer
  172. char=plr.Character
  173. for _,v in pairs(char:GetChildren()) do
  174. if v.ClassName=="Part" then
  175. v.Transparency=1
  176. elseif v.ClassName=="Hat" then
  177. v.Handle.Mesh.TextureId='rbxassetid://25701026'
  178. table.insert(Parts,v.Handle)
  179. end
  180. end
  181. t=Part(1,1,1,'',0,false,false,char)
  182. Mesh(t,1,1,1,1)
  183. Weld(char.Torso,t)
  184. a=Part(1,1,1,'',0,false,false,char)
  185. Mesh(a,1,.5,1,1)
  186. Weld(char['Right Arm'],a)
  187. a=Part(1,1,1,'',0,false,false,char)
  188. Mesh(a,1,.5,1,1)
  189. Weld(char['Left Arm'],a)
  190. l=Part(1,1,1,'',0,false,false,char)
  191. Mesh(l,1,.5,1,1)
  192. Weld(char['Right Leg'],l)
  193. l=Part(1,1,1,'',0,false,false,char)
  194. Mesh(l,1,.5,1,1)
  195. Weld(char['Left Leg'],l)
  196. h=Part(1,1,1,'',0,false,false,char)
  197. Mesh(h,2,1,1,1)
  198. Weld(char.Head,h)
  199. Spawn(function()
  200. while(coroutine.yield())do
  201. for i=1,#Parts do
  202. Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe
  203. end
  204. end;
  205. end);
  206. warn("Done loading Rainbow Skin!")
  207. wait(0.1)
  208. print("Loading Music...")
  209.  
  210. -- The Music --
  211.  
  212. local s = Instance.new("Sound")
  213.  
  214. s.Name = "Starman"
  215. s.SoundId = "http://www.roblox.com/asset/?version=1&id=190479723"
  216. s.Volume = 4.5 -- this is the Volume
  217. s.Pitch = 1 -- this is the pich
  218.  
  219.  
  220.  
  221. s.Looped = true
  222. s.PlayOnRemove = false
  223. s.archivable = false
  224.  
  225. s.Parent = game.Workspace
  226.  
  227. wait(0.06)
  228.  
  229. s:play()
  230.  
  231. wait(0.07)
  232. warn("Done loading the Music!")
  233.  
  234. -- The Kill Cube --
  235.  
  236. wait(0.07)
  237. print("Loading the Shield...")
  238. local p = game.Players.LocalPlayer
  239. local char = p.Character
  240. local size = 8.2
  241. part = function()
  242.  
  243. local a = Instance.new("Part", script)
  244. a.Anchored = true
  245. a.CanCollide = true
  246. a.CFrame = char.Torso.CFrame
  247. a.Size = Vector3.new(size, 0.2, 0.2)
  248. a.Transparency = 999
  249. return a
  250. end
  251.  
  252. part2 = function()
  253.  
  254. local a = Instance.new("Part", script)
  255. a.Anchored = true
  256. a.CanCollide = true
  257. a.CFrame = char.Torso.CFrame
  258. a.Size = Vector3.new(0.2, size, 0.2)
  259. a.Transparency = 1
  260. return a
  261. end
  262.  
  263. part3 = function()
  264.  
  265. local a = Instance.new("Part", script)
  266. a.Anchored = true
  267. a.CanCollide = false
  268. a.Size = Vector3.new(size, size, 1)
  269. a.Transparency = 0.7
  270. a.Material = "Neon"
  271. a.BrickColor = BrickColor.new("Really red")
  272. local b = Instance.new("BlockMesh", a)
  273. b.Scale = Vector3.new(1, 1, 0)
  274. return a
  275. end
  276.  
  277. local replicating = false
  278. 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
  279. replicate = function()
  280.  
  281. replicating = true
  282. script:ClearAllChildren()
  283. root = part()
  284. root.Transparency = 1
  285. root.Size = Vector3.new(0.2, 0.2, 0.2)
  286. root.CanCollide = false
  287. a = part()
  288. b = part()
  289. c = part()
  290. d = part()
  291. a2 = part()
  292. b2 = part()
  293. c2 = part()
  294. d2 = part()
  295. aa = part2()
  296. bb = part2()
  297. cc = part2()
  298. dd = part2()
  299. z = part3()
  300. x = part3()
  301. c = part3()
  302. v = part3()
  303. b = part3()
  304. n = part3()
  305. replicating = false
  306. end
  307.  
  308. script.ChildRemoved:connect(function(a)
  309.  
  310. if a.ClassName == "Part" and replicating == false then
  311. replicate()
  312. end
  313. end
  314. )
  315. replicate()
  316. local tick = 0
  317. CreateRegion3FromLocAndSize = function(Position, Size)
  318.  
  319. local SizeOffset = Size / 2
  320. local Point1 = Position - SizeOffset
  321. local Point2 = Position + SizeOffset
  322. return Region3.new(Point1, Point2)
  323. end
  324.  
  325. local set = false
  326. local whitelist = {"Hieroku", "PPATTA", "DevGamerzz", "I kill U", "kash5", "ZeroCrimson", "Zaidia", "tsup2", "PointCoded", "CLarramore", "Suzuuki", "", "", ""}
  327. p.Chatted:connect(function(ms)
  328.  
  329. if ms:sub(1, 5) == "size-" then
  330. size = tonumber(ms:sub(6))
  331. replicate()
  332. else
  333. if ms:sub(1, 4) == "set-" then
  334. set = true
  335. z.CanCollide = false
  336. x.CanCollide = false
  337. c.CanCollide = false
  338. v.CanCollide = false
  339. b.CanCollide = false
  340. n.CanCollide = false
  341. else
  342. if ms:sub(1, 6) == "unset-" then
  343. set = false
  344. z.CanCollide = false
  345. x.CanCollide = false
  346. c.CanCollide = false
  347. v.CanCollide = false
  348. b.CanCollide = false
  349. n.CanCollide = false
  350. else
  351. if ms:sub(1, 10) == "whitelist-" then
  352. table.insert(whitelist, ms:sub(11))
  353. else
  354. if ms:sub(1, 12) == "unwhitelist-" then
  355. for i,v in pairs(whitelist) do
  356. if ms:sub(13) == v then
  357. table.remove(whitelist, i)
  358. break
  359. end
  360. end
  361. end
  362. end
  363. end
  364. end
  365. end
  366. end
  367. )
  368. local magicpos = nil
  369. game:GetService("RunService").Heartbeat:connect(function()
  370.  
  371. pcall(function()
  372.  
  373. local void = char:GetChildren()
  374. for _,pl in pairs(whitelist) do
  375. if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  376. for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  377. table.insert(void, v)
  378. end
  379. end
  380. end
  381. for i,v in pairs(game.Players:GetPlayers()) do
  382. if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then
  383. v:LoadCharacter()
  384. end
  385. end
  386. char.Humanoid.Health = math.huge
  387. tick = tick + 0.01
  388. if not set then
  389. 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)
  390. magicpos = char.Torso.CFrame
  391. else
  392. root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05)
  393. end
  394. local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size))
  395. for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  396. if v.Name ~= "Base" then
  397. v:Destroy()
  398. end
  399. end
  400. a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  401. b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  402. c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2)
  403. d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2)
  404. a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  405. b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  406. c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2)
  407. d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2)
  408. aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2)
  409. bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2)
  410. cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2)
  411. dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2)
  412. z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  413. x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  414. c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90))
  415. v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90))
  416. b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  417. n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  418. end
  419. )
  420. end
  421. )
  422. wait(0.01)
  423. Humanoid.WalkSpeed = 150.0
  424. wait(0.02)
  425. local forcefield = Instance.new("ForceField",char)
  426. forcefield.Name = "Starman Forcefield"
  427. forcefield.Visible = false
  428. wait(0.01)
  429. warn("Done loading the Script!")
  430. warn("Enjoy!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement