Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInput = game:GetService("UserInputService")
- local rp = game.ReplicatedStorage
- local Kameha = rp:WaitForChild("Kameha")
- UserInput.InputBegan:connect(function(Key)
- if Key.KeyCode == Enum.KeyCode.E then
- Kameha:FireServer()
- end
- end)
- ----------------------------------------------------------------------
- local rp = game.ReplicatedStorage
- local Kameha = rp:WaitForChild("Kameha")
- Kameha.OnServerEvent:connect(function()
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Anim = script.Anim
- local Wave = Character:FindFirstChild("Humanoid"):LoadAnimation(Anim)
- Wave:Play()
- wait(0.75)
- local Ball = Instance.new("Part")
- Ball.Size = Vector3.new(2,2,2)
- Ball.Shape = "Ball"
- Ball.CanCollide = false
- Ball.Anchored = true
- Ball.CFrame = Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0.75,-3)
- Ball.Orientation = Character:FindFirstChild("HumanoidRootPart").Orientation
- Ball.Material = "Neon"
- Ball.BrickColor = BrickColor.new("Steel blue")
- Ball.Parent = Character:FindFirstChild("LeftHand")
- local Beam = Instance.new("Part")
- Beam.Size = Vector3.new(1,1,1)
- Beam.Shape = "Cylinder"
- Beam.Material = "Neon"
- Beam.BrickColor = BrickColor.new("Steel blue")
- Beam.CanCollide = false
- Beam.Anchored = false
- Beam.CFrame = Ball.CFrame
- Beam.Orientation = Ball.Orientation + Vector3.new(0,90,0)
- Beam.Parent = Ball
- local Vel = Instance.new("BodyVelocity")
- Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Vel.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 30
- Vel.Parent = Beam
- for i=0,30,1 do
- Ball.Size = Ball.Size + Vector3.new(.15,.15,.15)
- Beam.Size = Beam.Size + Vector3.new(2,.1,.1)
- wait()
- end
- Ball:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment