Pastebin
Paste #30130: No description
< previous paste - next paste>
Pasted by Sss
-- Make sure to inject this script into the game using synapse or another exploit
-- Prevent players from moving out of the saber zone while perfect blocking
game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
-- Get the local player and character
local player = game.Players.LocalPlayer
local character = player.Character
-- Wait for the character to fully load
while character:FindFirstChild("Head") == nil do
task.wait(0.1)
end
-- Get the saber part and handle perfect block
local saberPart = character:WaitForChild("SaberPart")
saberPart.Touched:Connect(function(hit)
local otherPart = hit.Parent
-- Check if the hit part is a saber part and if the other player is not the local player
if otherPart:FindFirstChild("SaberPart") and hit.Parent ~= player.Character then
-- Calculate the direction from the local saber part to the other saber part
local direction = (otherPart.SaberPart.Position - saberPart.Position).Unit
-- Move the local saber part in the opposite direction of the hit
saberPart.Velocity = direction * 200
-- Animate the local character to perform a perfect block
local humanoid = character:WaitForChild("Humanoid")
humanoid:LoadAnimation(game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("PerfectBlockAnim")):Play()
end
end)
New Paste
Go to most recent paste.