Advertisement
JordanScripter1337

Earth Kick

Sep 21st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Char = Player.Character
  3. Mouse = Player:GetMouse()
  4.  
  5.  
  6.  
  7. function EarthKick(key)
  8.     key = key:lower()
  9.    
  10.     if key == "v" then
  11. local ChatService = game:GetService("Chat")
  12.             ChatService:Chat(Char.Head, "Earth Kick!", "Red")
  13.  
  14.         for i = 1, 100, 3 do
  15.             wait()
  16.             Char.Torso.Anchored = true
  17.                         local EarthBlock = Instance.new("Part");
  18.             EarthBlock.Parent = game.Workspace
  19.             EarthBlock.Size = Vector3.new(math.random(4,6),math.random(4,6),math.random(4,6))
  20.             EarthBlock.Anchored = true
  21.             EarthBlock.TopSurface = 0
  22.             EarthBlock.BottomSurface = 0
  23.             EarthBlock.BrickColor = BrickColor.new("Brown");
  24.             EarthBlock.CFrame = CFrame.new(Char.Torso.Position.x,5,Char.Torso.Position.z) * CFrame.new(0,0,-i) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  25.             Char.Torso.Anchored = false
  26.         end
  27.     end
  28. end
  29.  
  30. Mouse.KeyDown:connect(EarthKick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement