Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --maybe add chat and cmds and guis idk
- --COLOR SEQUENCE WOOP
- --clerp some parts to target with a trail. use a key to rotate between these moves
- --last part to circle. the size is remainder*partsize how2remainder? remainder = circ-math.floor(circ) woop
- plr = game:GetService('Players').SavageMunkey
- mouse = plr:GetMouse()
- chr = plr.Character or plr.CharacterAdded:wait()
- chr.Humanoid.JumpPower = 0
- local orb = Instance.new('Part',workspace)
- local x = 1
- local trailmodel = Instance.new('Model',chr)
- local renderstepped = game:GetService('RunService').Heartbeat
- --trailmodel.ChildAdded:connect(function(c)
- -- wait(.5)
- -- local cframeval = c.CFrame
- -- for i = .5,1,.01 do
- -- renderstepped:wait()
- -- c.Transparency = i
- -- c.Size = Vector3.new(.2/i,.2/i,.2/i)
- -- c.CFrame = cframeval
- -- end
- -- c:Destroy()
- --end)
- local colors = {BrickColor.new(Color3.fromRGB(41, 128, 185)),
- BrickColor.new(Color3.fromRGB(52, 152, 219)),
- BrickColor.new(Color3.fromRGB(155, 89, 182)),
- BrickColor.new(Color3.fromRGB(142, 68, 173)),
- BrickColor.new(Color3.fromRGB(192, 57, 43)),
- BrickColor.new(Color3.fromRGB(231, 76, 60))
- }
- function change_color()
- if x == 7 then
- x = 1
- end
- orb.BrickColor = colors[x]
- end
- orb.Anchored = true
- orb.CanCollide = false
- orb.BrickColor = colors[1]
- orb.Size = Vector3.new(.5,.5,.5)
- orb.Material = Enum.Material.Neon
- orb.Transparency = .5
- orb.Parent = chr
- local rad = 4
- local circ = 2*math.pi*rad
- local n = circ/.5
- local rot = 360/n
- function spawnorb()
- while true do
- x=x+1
- change_color()
- local random = math.random(0,180)
- local randomB = math.random(0,180)
- for i = 0,n do
- renderstepped:wait()
- change_color()
- orb.CFrame = chr.Torso.CFrame*CFrame.Angles(math.rad(random),math.rad(i*rot),0)*CFrame.new(0,0,4)
- local clone = orb:Clone()
- clone.Parent = trailmodel
- clone.CFrame = orb.CFrame
- local function destroy()
- wait(.5)
- local cframeval = clone.CFrame
- for i = .5,1,.01 do
- renderstepped:wait()
- clone.Transparency = i
- clone.Size = Vector3.new(.2/i,.2/i,.2/i)
- clone.CFrame = cframeval
- end
- clone:Destroy()
- end
- spawn(destroy)
- end
- end
- end
- spawn(spawnorb)
- wait(2)
- spawn(spawnorb)
- mouse.Button1Down:connect(function()
- local target = mouse.Target
- if target~=nil then
- local h = target.Parent:FindFirstChild('Humanoid')
- local t = target.Parent:FindFirstChild('Torso')
- if h and t then
- local model = Instance.new('Model',workspace)
- t.Anchored = true
- local template = orb:Clone()
- template.Size = Vector3.new(1,1,1)
- local rad = 5
- local circ = 2*math.pi*rad
- local n = circ
- local rot = 720/n
- for i = 0,n*5 do
- renderstepped:wait()
- local clone = template:Clone()
- clone.Transparency = 1
- local random = math.random(-180,180)
- local function tran()
- for i = 1,.5,-.01 do
- renderstepped:wait()
- clone.Transparency = i
- end
- end
- spawn(tran)
- clone.CFrame = t.CFrame*CFrame.Angles(0,math.rad(i*rot),math.rad(random))*CFrame.new(5,0,rad)
- clone.BrickColor = colors[math.random(1,6)]
- clone.Parent = model
- clone.CanCollide = true
- end
- local lerpval = {}
- local child = model:GetChildren()
- for i,v in pairs(child) do
- table.insert(lerpval,i,v.CFrame)
- end
- for i = 0,1,.01 do
- renderstepped:wait()
- h:TakeDamage(math.random(1,2))
- for n,v in pairs(child) do
- v.CFrame = lerpval[n]:lerp(t.CFrame,i)
- end
- end
- model:Destroy()
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == ' ' then
- local function bodypartclone()
- renderstepped:wait()
- local bodypart = orb:Clone()
- bodypart.Shape = 'Block'
- bodypart.Material = Enum.Material.Neon
- bodypart.BrickColor = BrickColor.new(1,1,1)
- bodypart.CanCollide = false
- bodypart.Anchored = true
- bodypart.Transparency = .9
- local model = Instance.new("Model",workspace)
- model.ChildAdded:connect(function(c)
- local function tran()
- local cframeval = chr.Torso.CFrame
- model.PrimaryPart = model.Torso
- for i = .1,1.01,.01 do
- renderstepped:wait()
- c.Transparency = i
- model:SetPrimaryPartCFrame(cframeval:lerp(chr.Torso.CFrame,i))
- end
- c:Destroy()
- end
- spawn(tran)
- end)
- model.Name = "fake supercoolguy53"
- local child = chr:GetChildren()
- for i,v in pairs(child) do
- if v.ClassName == "Part" and v.Name ~= "Head" and v.Name ~= "Handle" and v.Name ~= 'Part' and v~=handsphereA and v~=handsphereB then
- local size = v.Size
- local cframe = v.CFrame
- local clone = bodypart:Clone()
- clone.Size = size
- if v == chr.Torso then
- clone.Name = 'Torso'
- end
- clone.CFrame = cframe
- clone.Parent = model
- end
- end
- print('f')
- repeat wait() local mchild = model:GetChildren() until #mchild == 0
- model:Destroy()
- end
- if mouse.Target ~= nil then
- spawn(bodypartclone)
- wait()
- chr:MoveTo(mouse.Hit.p)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment