REDPlays

FE script

Jul 15th, 2018
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.75 KB | None | 0 0
  1. local UserInput = game:GetService("UserInputService")
  2. local rp = game.ReplicatedStorage
  3. local Kameha = rp:WaitForChild("Kameha")
  4.  
  5. UserInput.InputBegan:connect(function(Key)
  6.     if Key.KeyCode == Enum.KeyCode.E then
  7.         Kameha:FireServer()
  8.     end
  9. end)
  10. ----------------------------------------------------------------------
  11. local rp = game.ReplicatedStorage
  12. local Kameha = rp:WaitForChild("Kameha")
  13.  
  14. Kameha.OnServerEvent:connect(function()
  15.     local Player = game.Players.LocalPlayer
  16.     local Character = Player.Character
  17.    
  18.     local Anim = script.Anim
  19.    
  20.     local Wave = Character:FindFirstChild("Humanoid"):LoadAnimation(Anim)
  21.     Wave:Play()
  22.     wait(0.75)
  23.    
  24.     local Ball = Instance.new("Part")
  25.     Ball.Size = Vector3.new(2,2,2)
  26.     Ball.Shape = "Ball"
  27.     Ball.CanCollide = false
  28.     Ball.Anchored = true
  29.     Ball.CFrame = Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0.75,-3)
  30.     Ball.Orientation = Character:FindFirstChild("HumanoidRootPart").Orientation
  31.     Ball.Material = "Neon"
  32.     Ball.BrickColor = BrickColor.new("Steel blue")
  33.     Ball.Parent = Character:FindFirstChild("LeftHand")
  34.    
  35.     local Beam = Instance.new("Part")
  36.     Beam.Size = Vector3.new(1,1,1)
  37.     Beam.Shape = "Cylinder"
  38.     Beam.Material = "Neon"
  39.     Beam.BrickColor = BrickColor.new("Steel blue")
  40.     Beam.CanCollide = false
  41.     Beam.Anchored = false
  42.     Beam.CFrame = Ball.CFrame
  43.     Beam.Orientation = Ball.Orientation + Vector3.new(0,90,0)
  44.     Beam.Parent = Ball
  45.    
  46.     local Vel = Instance.new("BodyVelocity")
  47.     Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  48.     Vel.Velocity = Character:FindFirstChild("HumanoidRootPart").CFrame.lookVector * 30
  49.     Vel.Parent = Beam
  50.    
  51.     for i=0,30,1 do
  52.         Ball.Size = Ball.Size + Vector3.new(.15,.15,.15)
  53.         Beam.Size = Beam.Size + Vector3.new(2,.1,.1)
  54.         wait()
  55.     end
  56.     Ball:Destroy()
  57. end)
Advertisement
Add Comment
Please, Sign In to add comment