Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = script.Parent.Parent.Character
- local Tool = Instance.new("Tool")
- Tool.Name = "Kamehameha"
- Tool.RequiresHandle = false
- local p = Instance.new("Part")
- p.Material = "Neon"
- p.Anchored = false
- p.CanCollide = false
- p.BrickColor = BrickColor.new("Bright blue")
- p.Size = Vector3.new(3,3,3)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Cylinder"
- mesh.Parent = p
- local v = Instance.new("BodyVelocity")
- v.MaxForce = Vector3.new(0,80000,0)
- v.Velocity = Vector3.new(0,0,0)
- v.Parent = p
- local Go = false
- Tool.Activated:connect(function()
- if Go then return end
- Go = true
- local beam = p:Clone()
- beam.CFrame = Tool.Parent.HumanoidRootPart.CFrame*CFrame.new(0,0,-3)*CFrame.Angles(0,math.rad(90),0)
- beam.Parent = workspace
- local debounce = false
- beam.Touched:connect(function(hit)
- if hit.Parent:findFirstChild("Humanoid") and hit.Parent ~= char then
- if debounce then return end
- hit.Parent.Humanoid:TakeDamage(9)
- debounce = true
- task.wait(0.2)
- debounce = false
- end
- end)
- local goal = {}
- goal.CFrame = beam.CFrame * CFrame.new(50,0,0)
- goal.Size = beam.Size + Vector3.new(3001,1)
- local info = TweenInfo.new(2, Enum.EasingStyle.Linear)
- local tween = game:GetService("TweenService"):Create(beam,info,goal)
- tween:Play()
- tween.Completed:connect(function()
- beam:Destroy()
- end)
- wait(3)
- Go = false
- end)
- Tool.Parent = char
Advertisement
Add Comment
Please, Sign In to add comment