urabigfatnoob

dfg

Sep 1st, 2016
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.97 KB | None | 0 0
  1. --maybe add chat and cmds and guis idk
  2. --COLOR SEQUENCE WOOP
  3. --clerp some parts to target with a trail. use a key to rotate between these moves
  4. --last part to circle. the size is remainder*partsize  how2remainder? remainder = circ-math.floor(circ) woop
  5. plr = game:GetService('Players').SavageMunkey
  6. mouse = plr:GetMouse()
  7. chr = plr.Character or plr.CharacterAdded:wait()
  8. chr.Humanoid.JumpPower = 0
  9. local orb = Instance.new('Part',workspace)
  10. local x = 1
  11. local trailmodel = Instance.new('Model',chr)
  12. local renderstepped = game:GetService('RunService').Heartbeat
  13. --trailmodel.ChildAdded:connect(function(c)
  14. --  wait(.5)
  15. --  local cframeval = c.CFrame
  16. --  for i = .5,1,.01 do
  17. --      renderstepped:wait()
  18. --      c.Transparency = i
  19. --      c.Size = Vector3.new(.2/i,.2/i,.2/i)
  20. --      c.CFrame = cframeval
  21. --  end
  22. --  c:Destroy()
  23. --end)
  24.  
  25. local colors = {BrickColor.new(Color3.fromRGB(41, 128, 185)),
  26.                 BrickColor.new(Color3.fromRGB(52, 152, 219)),
  27.                 BrickColor.new(Color3.fromRGB(155, 89, 182)),
  28.                 BrickColor.new(Color3.fromRGB(142, 68, 173)),
  29.                 BrickColor.new(Color3.fromRGB(192, 57, 43)),
  30.                 BrickColor.new(Color3.fromRGB(231, 76, 60))
  31. }
  32. function change_color()
  33.     if x == 7 then
  34.         x = 1
  35.     end
  36.     orb.BrickColor = colors[x]
  37. end
  38.  
  39. orb.Anchored = true
  40. orb.CanCollide = false
  41. orb.BrickColor = colors[1]
  42. orb.Size = Vector3.new(.5,.5,.5)
  43. orb.Material = Enum.Material.Neon
  44. orb.Transparency = .5
  45. orb.Parent = chr
  46. local rad = 4
  47. local circ = 2*math.pi*rad
  48. local n = circ/.5
  49. local rot = 360/n
  50. function spawnorb()
  51.     while true do
  52.         x=x+1
  53.         change_color()
  54.         local random = math.random(0,180)
  55.         local randomB = math.random(0,180)
  56.         for i = 0,n do
  57.             renderstepped:wait()
  58.             change_color()
  59.             orb.CFrame = chr.Torso.CFrame*CFrame.Angles(math.rad(random),math.rad(i*rot),0)*CFrame.new(0,0,4)
  60.             local clone = orb:Clone()
  61.             clone.Parent = trailmodel
  62.             clone.CFrame = orb.CFrame
  63.             local function destroy()
  64.                 wait(.5)
  65.                 local cframeval = clone.CFrame
  66.                 for i = .5,1,.01 do
  67.                     renderstepped:wait()
  68.                     clone.Transparency = i
  69.                     clone.Size = Vector3.new(.2/i,.2/i,.2/i)
  70.                     clone.CFrame = cframeval
  71.                 end
  72.                 clone:Destroy()
  73.             end
  74.             spawn(destroy)
  75.         end
  76.     end
  77. end
  78.  
  79. spawn(spawnorb)
  80. wait(2)
  81. spawn(spawnorb)
  82.  
  83. mouse.Button1Down:connect(function()
  84.     local target = mouse.Target
  85.     if target~=nil then
  86.         local h = target.Parent:FindFirstChild('Humanoid')
  87.         local t = target.Parent:FindFirstChild('Torso')
  88.         if h and t then
  89.             local model = Instance.new('Model',workspace)
  90.             t.Anchored = true
  91.             local template = orb:Clone()
  92.             template.Size = Vector3.new(1,1,1)
  93.             local rad = 5
  94.             local circ = 2*math.pi*rad
  95.             local n = circ
  96.             local rot = 720/n
  97.             for i = 0,n*5 do
  98.                 renderstepped:wait()
  99.                 local clone = template:Clone()
  100.                 clone.Transparency = 1
  101.                 local random = math.random(-180,180)
  102.                 local function tran()
  103.                     for i = 1,.5,-.01 do
  104.                         renderstepped:wait()
  105.                         clone.Transparency = i
  106.                     end
  107.                 end
  108.                 spawn(tran)
  109.                 clone.CFrame = t.CFrame*CFrame.Angles(0,math.rad(i*rot),math.rad(random))*CFrame.new(5,0,rad)
  110.                 clone.BrickColor = colors[math.random(1,6)]
  111.                 clone.Parent = model
  112.                 clone.CanCollide = true
  113.             end
  114.             local lerpval = {}
  115.             local child = model:GetChildren()
  116.             for i,v in pairs(child) do
  117.                 table.insert(lerpval,i,v.CFrame)
  118.             end
  119.             for i = 0,1,.01 do
  120.                 renderstepped:wait()
  121.                 h:TakeDamage(math.random(1,2))
  122.                 for n,v in pairs(child) do
  123.                     v.CFrame = lerpval[n]:lerp(t.CFrame,i)
  124.                 end
  125.             end
  126.             model:Destroy()
  127.         end
  128.     end
  129. end)
  130.  
  131. mouse.KeyDown:connect(function(key)
  132.     if key == ' ' then
  133.         local function bodypartclone()
  134.             renderstepped:wait()
  135.             local bodypart = orb:Clone()
  136.             bodypart.Shape = 'Block'
  137.             bodypart.Material = Enum.Material.Neon
  138.             bodypart.BrickColor = BrickColor.new(1,1,1)
  139.             bodypart.CanCollide = false
  140.             bodypart.Anchored = true
  141.             bodypart.Transparency = .9
  142.             local model = Instance.new("Model",workspace)
  143.             model.ChildAdded:connect(function(c)
  144.                 local function tran()
  145.                     local cframeval = chr.Torso.CFrame
  146.                     model.PrimaryPart = model.Torso
  147.                     for i = .1,1.01,.01 do
  148.                         renderstepped:wait()
  149.                         c.Transparency = i
  150.                         model:SetPrimaryPartCFrame(cframeval:lerp(chr.Torso.CFrame,i))
  151.                     end
  152.                     c:Destroy()
  153.                 end
  154.                 spawn(tran)
  155.             end)
  156.             model.Name = "fake supercoolguy53"
  157.             local child = chr:GetChildren()
  158.             for i,v in pairs(child) do
  159.                 if v.ClassName == "Part" and v.Name ~= "Head" and v.Name ~= "Handle" and v.Name ~= 'Part' and v~=handsphereA and v~=handsphereB then
  160.                     local size = v.Size
  161.  
  162.                     local cframe = v.CFrame
  163.                     local clone = bodypart:Clone()
  164.                     clone.Size = size
  165.                     if v == chr.Torso then
  166.                         clone.Name = 'Torso'
  167.                     end
  168.                     clone.CFrame = cframe
  169.                     clone.Parent = model
  170.                 end
  171.             end
  172.             print('f')
  173.             repeat wait() local mchild = model:GetChildren() until #mchild == 0
  174.             model:Destroy()
  175.         end
  176.         if mouse.Target ~= nil then
  177.             spawn(bodypartclone)
  178.             wait()
  179.             chr:MoveTo(mouse.Hit.p)
  180.         end
  181.     end
  182. end)
Advertisement
Add Comment
Please, Sign In to add comment