Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- alt = false
- val = 0
- cooldown = false
- selected = false
- summon = 5
- tool = Instance.new("HopperBin", plr.Backpack)
- tool.Name = "Doragonkomando"
- tool.Selected:connect(function()
- selected = true
- end)
- tool.Deselected:connect(function()
- selected = false
- end)
- mouse.KeyDown:connect(function(key)
- if selected == true then
- if key == "+" and mouse.Target then
- local target = mouse.Target
- local count = 0
- local glow = function(a)
- local b = Instance.new("PointLight", a)
- b.Color = Color3.new(1, 0, 0)
- b.Range = 30
- b.Brightness = 2000000000
- end
- while true do
- local on = true
- local trailp = true
- local trail = true
- local function beam(a, b, c)
- if trail == true then
- local beamcf = a.CFrame.p
- local ray = Ray.new(beamcf, (b.CFrame.p - beamcf).unit * c)
- local part, position = workspace:FindPartOnRay(ray, plr, false, true)
- local beam = Instance.new("Part", script)
- beam.BrickColor = BrickColor.new(1003)
- beam.FormFactor = "Custom"
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- glow(beam)
- beam.Material = "SmoothPlastic"
- local distance = (beamcf - position).magnitude
- beam.Size = Vector3.new(5, 5, distance)
- beam.CFrame = CFrame.new(beamcf, position) * CFrame.new(0, 0, -distance / 2)
- local done = false
- game:GetService("RunService").Stepped:connect(function()
- if done == false then
- done = true
- repeat
- wait()
- beam.Transparency = beam.Transparency + 0.1
- until beam.Transparency > 1
- beam:Destroy()
- end
- end)
- end
- end
- end
- local val2 = 0
- if alt == false then
- val = 180
- alt = true
- else
- val = -180
- alt = false
- end
- local a = Instance.new("Part")
- a.FormFactor = "Custom"
- a.CanCollide = false
- a.Anchored = true
- a.Material = "SmoothPlastic"
- a.CFrame = char.Torso.CFrame * CFrame.Angles(math.random(), val * math.random(), math.random())
- a.Size = Vector3.new(10, 10, 10)
- a.Parent = script
- a.BrickColor = BrickColor.new(1003)
- glow(a)
- local particle = Instance.new("ParticleEmitter", a)
- particle.Rate = 100
- particle.Texture = "rbxassetid://49399918"
- particle.VelocitySpread = 180
- local mesh = Instance.new("SpecialMesh", a)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://24478215"
- mesh.TextureId = "rbxassetid://24591681"
- mesh.Scale = Vector3.new(5, 5, 5)
- local b = a:Clone()
- game:GetService("RunService").Stepped:connect(function()
- if on == true then
- local mag2 = (a.Position - target.Position).magnitude
- local m = math.floor(mag2 * 1000)
- if m > 9000 then
- a.CFrame = a.CFrame * CFrame.new(0, 0, -5)
- a.CFrame = a.CFrame:lerp(CFrame.new(a.Position, target.Position), val2)
- val2 = val2 + 0.001
- b.CFrame = a.CFrame * CFrame.new(0, 0, 5)
- beam(a, b, 200)
- else
- target:BreakJoints()
- target.BrickColor = a.BrickColor
- local mag2 = (target.Position - char.Torso.Position).magnitude
- local m = math.floor(mag2 * 1000)
- if m > 9000 then
- local cf = target.CFrame
- target.Size = target.Size - Vector3.new(5, 5, 5)
- target.CFrame = cf
- trail = false
- a:Destroy()
- target.Anchored = true
- target.CFrame = target.CFrame * CFrame.new(0, 0, -5)
- target.CFrame = target.CFrame:lerp(CFrame.new(target.Position, char.Torso.Position), val2)
- val2 = val2 + 0.001
- else
- target:Destroy()
- end
- end
- else
- a:Destroy()
- trailp = false
- end
- if target.Parent == nil then
- on = false
- end
- end)
- count = count + 1
- end
- if key == "e" and cooldown == false then
- local pos = mouse.hit
- local count = 0
- local trail = true
- cooldown = true
- local p = char:GetChildren()
- for i = 1, #p do
- if p[i].ClassName == "Part" and p[i].Name ~= "HumanoidRootPart" then
- p[i].Transparency = 1
- p[i].Anchored = true
- end
- if p[i].ClassName == "Hat" then
- p[i].Handle.Transparency = 1
- end
- end
- local glow = function(a)
- Instance.new("PointLight", a)
- end
- local function beam(a, b, c)
- if trail == true then
- local beamcf = a.CFrame.p
- local ray = Ray.new(beamcf, (b.CFrame.p - beamcf).unit * c)
- local part, position = workspace:FindPartOnRay(ray, plr, false, true)
- local beam = Instance.new("Part", script)
- beam.BrickColor = BrickColor.new(1)
- beam.FormFactor = "Custom"
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- beam.Material = "Neon"
- glow(beam)
- local distance = (beamcf - position).magnitude
- beam.Size = Vector3.new(2, 2, distance)
- beam.CFrame = CFrame.new(beamcf, position) * CFrame.new(0, 0, -distance / 2)
- local done = false
- game:GetService("RunService").Stepped:connect(function()
- if done == false then
- done = true
- repeat
- wait()
- beam.Transparency = beam.Transparency + 0.1
- until beam.Transparency > 1
- beam:Destroy()
- end
- end)
- end
- end
- local a = Instance.new("Part")
- a.FormFactor = "Custom"
- a.CanCollide = false
- a.Anchored = true
- a.Material = "Neon"
- a.CFrame = char.Torso.CFrame * CFrame.Angles(0, val * math.random(), 0)
- a.Size = Vector3.new(4, 4, 4)
- a.Parent = script
- a.BrickColor = BrickColor.new(1)
- a.Rotation = Vector3.new(30, 0, 0)
- glow(a)
- local particle = Instance.new("ParticleEmitter", a)
- particle.Rate = 100
- particle.Texture = "rbxassetid://6870073"
- particle.VelocitySpread = 180
- local mesh = Instance.new("SpecialMesh", a)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://24478215"
- mesh.Scale = Vector3.new(2, 2, 2)
- local b = a:Clone()
- local on = true
- game:GetService("RunService").Stepped:connect(function()
- if on == true then
- local mag2 = (pos.p - char.Torso.Position).magnitude
- local m = math.floor(mag2 * 1000)
- if m > 9000 then
- a.CFrame = a.CFrame * CFrame.new(0, 0, -4)
- char.Torso.CFrame = a.CFrame
- b.CFrame = a.CFrame * CFrame.new(0, 0, 5)
- beam(a, b, 10)
- a.CFrame = a.CFrame:lerp(CFrame.new(a.CFrame.p, pos.p), count)
- count = count + 0.01
- else
- cooldown = false
- on = false
- trail = false
- a:Destroy()
- p = char:GetChildren()
- for i = 1, #p do
- if p[i].ClassName == "Part" and p[i].Name ~= "HumanoidRootPart" then
- p[i].Transparency = 0
- p[i].Anchored = false
- end
- if p[i].ClassName == "Hat" then
- p[i].Handle.Transparency = 0
- end
- end
- end
- end
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement