Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.SebTDZ500.Chatted:connect(function(message)
- local messageLow = string.lower(message)
- if messageLow:sub(1, 7) == "!block " then
- local TargetPlayer = FindPlayer(message:sub(8))
- Hit(game.Players.SebTDZ500.Name, TargetPlayer)
- end
- end)
- function FindPlayer(FindUser)
- local findUser = string.lower(FindUser)
- local inputsize = string.len(findUser)
- for i, v in pairs(game.Players:GetChildren()) do
- local NameLow = string.lower(v.Name)
- if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
- return v.Name
- end
- end
- end
- function Hit(username1, username2)
- --Player1
- plr1 = game.Workspace:WaitForChild(username1)
- plr1H = plr1:WaitForChild('HumanoidRootPart')
- --Player2
- plr2 = game.Workspace:WaitForChild(username2)
- plr2H = plr2:WaitForChild('HumanoidRootPart')
- --New Part
- local NewPart = Instance.new("Part")
- NewPart.Parent = game.Workspace
- NewPart.Position = plr1H.Position + Vector3.new(0, 25, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(0, 244, 150)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = false
- NewPart.Size = Vector3.new(35, 35, 35)
- --BodyPos
- local Part = NewPart
- local Body = Instance.new("BodyPosition")
- Body.Parent = Part
- Body.Position = plr1H.Position + Vector3.new(0, 25, 0)
- Body. MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- Part.Anchored = false
- wait(1.5)
- --Strike
- Body.Position = Body.Position + Vector3.new(0, 250, 0)
- wait(1)
- NewPart.RotVelocity = Vector3.new(math.random(100), math.random(100), math.random(100))
- wait(4)
- Body.P = 100000
- Body.Position = plr2H.Position
- wait(10)
- NewPart:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment