Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --if you bully me about my ugly bad practise coding I will cry, so don't
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local count = 0
- local cooldown = false
- local function move1(player, character)
- player.Character.Humanoid.WalkSpeed = 0
- player.Character.Humanoid.JumpPower = 0
- player.Character.Humanoid.AutoRotate = false
- wait(.5)
- local x = Instance.new("Part",workspace)
- x.Anchored = true
- x.CanCollide = false
- x.Shape = "Cylinder"
- x.Color = Color3.fromRGB(0,0,0)
- x.Material = Enum.Material.Neon
- x.Size = Vector3.new(.3,3,3)
- x.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3,-20) * CFrame.Angles(0,0,1.575)
- local tweenservice = game:GetService("TweenService")
- local info = TweenInfo.new(.5,Enum.EasingStyle.Bounce)
- local goal = {}
- goal.Size = Vector3.new(.3,7,7)
- local tween = tweenservice:Create(x,info,goal)
- tween:Play()
- x.Anchored = false
- local debounce = true
- x.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and debounce then
- debounce = false
- local damage = 15
- game.ReplicatedStorage.remotevents.damage:FireServer(hit,damage)
- print("damage2")
- wait(2)
- debounce = true
- end
- end)
- local bp = Instance.new("BodyVelocity")
- bp.Parent = x
- bp.MaxForce = Vector3.new(500000000000,50000000000,50000000000)
- bp.P = 200
- bp.Velocity = Vector3.new(0,-0.5,0)
- game.Debris:AddItem(bp,2.5)
- local bladepart = Instance.new("Part")
- bladepart.Parent = workspace
- bladepart.CFrame = x.CFrame * CFrame.new(-4,0,0)
- bladepart.Anchored = true
- bladepart.CanCollide = false
- local tweenservice = game:GetService("TweenService")
- local info = TweenInfo.new(.3,Enum.EasingStyle.Linear)
- local goal = {}
- goal.CFrame = bladepart.CFrame * CFrame.new(7.5,0,0)
- local tween = tweenservice:Create(bladepart,info,goal)
- tween:Play()
- bladepart.Anchored = false
- local debounce = true
- bladepart.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and debounce then
- debounce = false
- local damage = 15
- print("damage")
- game.ReplicatedStorage.remotevents.damage:FireServer(hit,damage)
- wait(1)
- debounce = true
- end
- end)
- local bp = Instance.new("BodyVelocity")
- bp.Parent = bladepart
- bp.MaxForce = Vector3.new(500000000000,50000000000,50000000000)
- bp.P = 200
- bp.Velocity = Vector3.new(0,-0.5,0)
- game.Debris:AddItem(bp,2.5)
- wait(.5)
- player.Character.Humanoid.WalkSpeed = 16
- player.Character.Humanoid.JumpPower = 50
- player.Character.Humanoid.AutoRotate = true
- local tweenservice = game:GetService("TweenService")
- local info = TweenInfo.new(.5,Enum.EasingStyle.Linear)
- local goal = {}
- goal.CFrame = bladepart.CFrame * CFrame.new(-7.5,0,0)
- goal.Transparency = 1
- local tween = tweenservice:Create(bladepart,info,goal)
- tween:Play()
- local info = TweenInfo.new(.5,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Size = Vector3.new(.3,.1,.1)
- goal.Transparency = 1
- local tween = tweenservice:Create(x,info,goal)
- tween:Play()
- wait(.5)
- x:Destroy()
- bladepart:Destroy()
- end
- mouse.Button1Down:Connect(function()
- if cooldown then return end
- cooldown = true
- game.ReplicatedStorage.remotevents.shunsuimove1:FireServer()
- local player1 = game.Players.LocalPlayer
- local character2 = player1.Character
- move1(player1,character2)
- wait(.75)
- cooldown = false
- end)
- game.ReplicatedStorage.remotevents.shunsuimove1.OnClientEvent:Connect(function(player, character)
- move1(player,character)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement