Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not getmetatable(shared) do
- wait()
- end
- shared(script)
- local Player = game:GetService("Players").LocalPlayer
- local Char = Player.Character
- local Mouse = Player:GetMouse()
- local PlayerGui = Player.PlayerGui
- local HuRoot = Char:FindFirstChild("HumanoidRootPart")
- local Torso = Char.Torso
- local Head = Char.Head
- local RightArm = Char["Right Arm"]
- local LeftArm = Char["Left Arm"]
- local LeftLeg = Char["Left Leg"]
- local RightLeg = Char["Right Leg"]
- local Humanoid = Char.Humanoid
- local RJ = HuRoot.RootJoint
- local NK = Torso.Neck
- local LH = Torso["Left Hip"]
- local RH = Torso["Right Hip"]
- Torso:FindFirstChild("Left Shoulder"):Destroy()
- Torso:FindFirstChild("Right Shoulder"):Destroy()
- local LS = Instance.new("ManualWeld", Torso)
- local RS = Instance.new("ManualWeld", Torso)
- LS.Name = "Left Shoulder"
- LS.Part0 = Torso
- LS.Part1 = LeftArm
- LS.C0 = CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8)
- LS.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8)
- RS.Name = "Right Shoulder"
- RS.Part0 = Torso
- RS.Part1 = RightArm
- RS.C0 = CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8)
- RS.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8)
- CanUseAnimations = true
- Idle = false
- Walk = false
- Jump = false
- Fall = false
- Swim = false
- Stunned = false
- CanClickAttack = false
- CanClickAttackDamage = false
- ClickProgress = 0
- PunchAnim1 = false
- PunchAnim2 = false
- damageMultiplyer = 1
- defenceMultiplyer = 1
- canclickopenclose = true
- game:GetService("RunService").RenderStepped:connect(function()
- Humanoid.MaxHealth = Humanoid.MaxHealth * defenceMultiplyer
- if CanUseAnimations == true then
- if Idle then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(-0.0599678755, 0.263537616, -0.0940124542, -0.880678296, 0.472979337, -0.0263881497, -0.024495516, 0.0101615489, 0.999648273, 0.473081142, 0.881014943, 0.00263682008), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -0.876219034, -0.481913149, 0, 0, 0, 1, -0.481913149, 0.876219034, 0), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.0479653478, 0.147130907, -0.594825864, -0.180627942, -0.351361483, -0.918650448, 0.328128248, -0.902030349, 0.28048709, -0.92720294, -0.250771374, 0.278223515), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.607181191, 0.624071479, -0.734454036, 0.713451028, 0.564803064, 0.414711028, -0.356187731, -0.217351019, 0.90878433, 0.603421986, -0.796088099, 0.0461065732), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.699635029, 0.761355281, 0.418607026, -0.520770729, -0.181128234, -0.834260464, -0.016961487, 0.979235411, -0.202016175, 0.853528082, -0.0910538062, -0.513029277), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.454061151, 0.830899656, 0.193133831, 0.15651153, 0.210319534, 0.96502322, 0.576116741, 0.774182975, -0.262164384, -0.802242875, 0.596997797, -3.50671492E-8), 0.1)
- end
- if Walk then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(0, -0.00653108442, 0.181265086, -1, 0, 0, 0, -0.136834219, 0.99059391, 0, 0.99059391, 0.136834219), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0743306801, 0.997233629, 0, 0.997233629, -0.0743306801), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.49999997, 0.5, 0, -0.150980204, -0.0523474067, -0.987149775, 0.0336370207, 0.997746587, -0.0580539741, 0.987964392, -0.0419697836, -0.14887917), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.5, 0.5, -7.4505806E-9, -0.155062318, 0.0924798623, 0.983566523, 4.09191614E-9, 0.995608747, -0.0936121345, -0.987904668, -0.0145157101, -0.154381394), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.467875719, 1, 0, -4.37113883E-8, 0, -1, 0.0854092315, 0.996345937, -3.73335629E-9, 0.996345937, -0.0854092315, -4.35516654E-8), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.452878892, 1, 0, -4.37113883E-8, 0, 1, -0.0370549373, 0.999313235, -1.6197228E-9, -0.999313235, -0.0370549373, -4.36813679E-8), 0.1)
- end
- if Jump then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.135610417, 0.990762234, 0, 0.990762234, -0.135610417), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.252793014, 0.967520356, 0, 0.967520356, -0.252793014), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.5, 0.5, 0, -4.31810605E-8, -0.155299395, -0.987867475, -6.7883521E-9, 0.987867475, -0.155299395, 1, 0, -4.37113883E-8), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.5, 0.50000006, 0, -4.35613892E-8, 0.0827726871, 0.996568441, 3.61810915E-9, 0.996568441, -0.0827726871, -1, 0, -4.37113883E-8), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.5, 1, 0.413039833, -4.37113883E-8, 0, -1, 0.312294096, 0.949985504, -1.36508085E-8, 0.949985504, -0.312294096, -4.15251868E-8), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.5, 1.25988173, -0.0857533813, -4.37113883E-8, 0, 1, 0.649969757, 0.759960055, 2.84110797E-8, -0.759960055, 0.649969757, -3.32189103E-8), 0.1)
- end
- if Fall then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.10274113, 0.994708121, 0, 0.994708121, 0.10274113), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0785602033, 0.99690938, 0, 0.99690938, 0.0785602033), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.138767123, 0.983813465, -0.0868017524, 1.30355549E-8, -0.954497576, 0.298218727, 0.176591963, -0.293531984, -0.939496875, 0.984284163, 0.0526630431, 0.168556601), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.2661708, 1.03134346, 0.15178445, 8.97407038E-9, 0.978698492, -0.205302805, 0.274674356, -0.197406307, -0.941055119, -0.961537302, -0.0563914105, -0.268823385), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.5, 1.06891787, 0.139980257, -4.37113883E-8, 0, -1, -0.766496718, 0.642248213, 3.35046373E-8, 0.642248213, 0.766496718, -2.80735613E-8), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.5, 1, 0.329321623, -4.37113883E-8, 0, 1, -0.616365314, 0.787460387, -2.69421836E-8, -0.787460387, -0.616365314, -3.44209852E-8), 0.1)
- end
- if Swim then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.0367999673, 0.958289385, 0, 4.07103268E-10, -0.999956608, 0.00931343716, -4.37094911E-8, -0.00931343716, -0.999956608, 1, 0, -4.37113883E-8), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.0404959619, 0.960685313, 0, -1.04967612E-9, 0.999711633, 0.0240137894, 4.36987833E-8, 0.0240137894, -0.999711633, -1, 0, -4.37113883E-8), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.357407629, 1.02051449, 0, -4.32659206E-8, -0.142402217, -0.989808857, -6.22459861E-9, 0.989808857, -0.142402217, 1, 0, -4.37113883E-8), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.394455612, 1.01336467, 0, -4.33651053E-8, 0.12562339, 0.992078006, 5.49117285E-9, 0.992078006, -0.12562339, -1, 0, -4.37113883E-8), 0.1)
- end
- if Stunned then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- RJ.C1 = RJ.C1:lerp(CFrame.new(0, 0.00787734985, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.1)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.251089305, 0.967963934, 0, 0.967963934, 0.251089305), 0.1)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LS.C1 = LS.C1:lerp(CFrame.new(0.5, 0.5, 0, 0.96788609, 0.145687819, -0.204870015, 0.221851692, -0.111733809, 0.968657613, 0.118230738, -0.983000815, -0.14046669), 0.1)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.5, 0.50000006, 7.4505806E-9, 0.34550634, -0.716668427, 0.605814934, -0.938260555, -0.252058893, 0.236924469, -0.0170952231, -0.650271237, -0.759509683), 0.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.1)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.502830684, 1.28182256, 0.209705651, -0.0782996044, -0.0901469588, -0.992845714, 0.996918142, -0.0119161196, -0.0775388256, -0.00484097889, -0.995857179, 0.0908021554), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.1)
- RH.C1 = RH.C1:lerp(CFrame.new(0.792719603, -0.35184139, 0.975364566, -0.283124149, -0.049664963, 0.957796514, -0.172779441, 0.984960496, -7.5524289E-9, -0.94339174, -0.165487543, -0.287447214), 0.1)
- end
- elseif CanUseAnimations == false then
- Idle = false
- Walk = false
- Fall = false
- Jump = false
- Swim = false
- Stunned = false
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if PunchAnim1 then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2)
- RJ.C1 = RJ.C1:lerp(CFrame.new(-0.378869504, 1.25988078, -0.842275977, -0.938668132, 0.316512167, 0.13682878, 0.0252757426, -0.332586288, 0.942734063, 0.343894184, 0.888372898, 0.304188073), 0.2)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -0.923091531, -0.384467721, -0.00930224173, -0.110133648, 0.241096735, 0.964231789, -0.368473291, 0.891098738, -0.264897197), 0.2)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.2)
- LS.C1 = LS.C1:lerp(CFrame.new(0.5, 0.50000006, 0, 0.935272157, -0.147802636, -0.321590543, 0.31764853, -0.0501985252, 0.94687885, -0.156094551, -0.987742126, 6.82310963E-9), 0.2)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.2)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.576898575, 0.697948158, 0, -0.905961394, -0.293397486, 0.305207968, -0.302170604, -0.056812387, -0.951559365, 0.296524704, -0.95430088, -0.0371862724), 0.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.2)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.49999997, -0.0115736127, 0.231806278, -0.345441461, -0.133836955, -0.928847611, 0.209614262, 0.953767061, -0.215383828, 0.914730608, -0.269102216, -0.301416546), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.2)
- RH.C1 = RH.C1:lerp(CFrame.new(0.5, 1, 5.96046448E-8, 0.265015811, -0.0730493143, 0.961472988, 0.604139686, 0.789726734, -0.10652151, -0.75151968, 0.609093964, 0.253422052), 0.2)
- end
- if PunchAnim2 then
- RJ.C0 = RJ.C0:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.23)
- RJ.C1 = RJ.C1:lerp(CFrame.new(-1.25705326, 9.14812088E-4, 1.89397597, -0.791667581, -0.610952079, 0, -5.80318272E-4, 7.51972198E-4, 0.999999523, -0.610951781, 0.791667163, -9.49859619E-4), 0.23)
- NK.C0 = NK.C0:lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.23)
- NK.C1 = NK.C1:lerp(CFrame.new(0, -0.5, 0, -0.923091531, -0.384467721, -0.00930224173, -0.110133648, 0.241096735, 0.964231789, -0.368473291, 0.891098738, -0.264897197), 0.23)
- LS.C0 = LS.C0:lerp(CFrame.new(-1, 0.5, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.23)
- LS.C1 = LS.C1:lerp(CFrame.new(0.49999997, 0.876227498, 0, -0.874575853, 0.138210699, 0.464774162, -0.45907703, 0.0725487024, -0.885429263, -0.156094536, -0.987742066, 6.82310874E-9), 0.23)
- RS.C0 = RS.C0:lerp(CFrame.new(1, 0.5, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.23)
- RS.C1 = RS.C1:lerp(CFrame.new(-0.58966732, 0.855955124, -0.36041823, 0.845101237, 0.244059175, 0.475645989, -0.444833755, -0.172466964, 0.87885046, 0.296524704, -0.95430088, -0.0371862724), 0.23)
- LH.C0 = LH.C0:lerp(CFrame.new(-1, -1, 0, -4.37113883E-8, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883E-8), 0.23)
- LH.C1 = LH.C1:lerp(CFrame.new(-0.567647576, 0.483614296, 0.48280865, 0.465665579, -0.0613492429, -0.882831693, -0.781806469, 0.438905209, -0.442878038, 0.414649695, 0.896436572, 0.156419814), 0.23)
- RH.C0 = RH.C0:lerp(CFrame.new(1, -1, 0, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8), 0.23)
- RH.C1 = RH.C1:lerp(CFrame.new(0.5, 1, -2.98023224E-8, -0.579990566, 0.12594974, 0.804827631, 0.542340636, 0.796897054, 0.266123384, -0.607846737, 0.590839803, -0.530500352), 0.23)
- end
- end)
- Idle = true
- function xWalk(spd)
- if spd >= 1.0E-5 then
- Walk = true
- Idle = false
- Jump = false
- Fall = false
- Swim = false
- Stunned = false
- else
- Walk = false
- Idle = true
- Jump = false
- Fall = false
- Swim = false
- Stunned = false
- end
- end
- function xJump()
- Walk = false
- Idle = false
- Jump = true
- Fall = false
- Swim = false
- Stunned = false
- wait(0.25)
- Walk = false
- Idle = false
- Jump = false
- Fall = true
- Swim = false
- Stunned = false
- end
- function xSwim()
- Walk = false
- Idle = false
- Jump = false
- Fall = false
- Swim = true
- Stunned = false
- end
- function xStunned()
- Walk = false
- Idle = false
- Jump = false
- Fall = false
- Swim = false
- Stunned = true
- end
- RightArm.Touched:connect(function(part)
- if CanClickAttackDamage == true then
- local plr = part.Parent
- local Hum = plr:FindFirstChild("Humanoid")
- if Hum then
- Hum:TakeDamage(math.random(5, 8) * damageMultiplyer)
- CanClickAttackDamage = false
- print("Damaged " .. plr.Name)
- end
- end
- end)
- function ClickAttack1()
- if CanClickAttack == false then
- print("Attacking")
- CanClickAttack = true
- CanClickAttackDamage = true
- CanUseAnimations = false
- Humanoid.WalkSpeed = 0
- wait(0.1)
- PunchAnim1 = true
- PunchAnim2 = false
- wait(0.2)
- PunchAnim1 = false
- PunchAnim2 = true
- wait(0.23)
- PunchAnim1 = false
- PunchAnim2 = false
- Idle = true
- CanUseAnimations = true
- Humanoid.WalkSpeed = 16
- CanClickAttack = false
- CanClickAttackDamage = false
- end
- end
- Mouse.Button1Down:connect(function()
- if ClickProgress == 0 then
- print("Click")
- ClickAttack1()
- ClickProgress = 0
- end
- end)
- Humanoid.Running:connect(xWalk)
- Humanoid.Jumping:connect(xJump)
- Humanoid.Swimming:connect(xSwim)
- Humanoid.PlatformStanding:connect(xStunned)
- local CripAttack = Instance.new("ScreenGui")
- local Settings = Instance.new("Frame")
- local TextDamage = Instance.new("TextLabel")
- local DamageMultContainer = Instance.new("TextBox")
- local UpdateAttack = Instance.new("TextButton")
- local DefenceMultCointainer = Instance.new("TextBox")
- local UpdateDefence = Instance.new("TextButton")
- local TextDefence = Instance.new("TextLabel")
- local CloseOpener = Instance.new("TextButton")
- CripAttack.Name = "CripAttack"
- CripAttack.Parent = PlayerGui
- Settings.Name = "Settings"
- Settings.Parent = CripAttack
- Settings.BackgroundColor3 = Color3.new(1, 1, 1)
- Settings.Position = UDim2.new(0.824404776, 0, 0.466772139, 0)
- Settings.Size = UDim2.new(0.179563493, 0, 0.32911393, 0)
- Settings.Style = Enum.FrameStyle.DropShadow
- TextDamage.Name = "TextDamage"
- TextDamage.Parent = Settings
- TextDamage.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextDamage.BackgroundTransparency = 0.60000002384186
- TextDamage.BorderColor3 = Color3.new(1, 1, 1)
- TextDamage.Size = UDim2.new(1, 0, 0.264423072, 0)
- TextDamage.Font = Enum.Font.SourceSans
- TextDamage.FontSize = Enum.FontSize.Size14
- TextDamage.Text = "Damage Multiplyer"
- TextDamage.TextColor3 = Color3.new(1, 1, 1)
- TextDamage.TextSize = 14
- DamageMultContainer.Name = "DamageMultContainer"
- DamageMultContainer.Parent = Settings
- DamageMultContainer.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- DamageMultContainer.BackgroundTransparency = 0.5
- DamageMultContainer.BorderColor3 = Color3.new(1, 1, 0)
- DamageMultContainer.Position = UDim2.new(0.0441988967, 0, 0.302884609, 0)
- DamageMultContainer.Size = UDim2.new(0.243093923, 0, 0.129807696, 0)
- DamageMultContainer.Font = Enum.Font.SourceSans
- DamageMultContainer.FontSize = Enum.FontSize.Size14
- DamageMultContainer.Text = "1"
- DamageMultContainer.TextColor3 = Color3.new(1, 1, 1)
- DamageMultContainer.TextScaled = true
- DamageMultContainer.TextSize = 14
- DamageMultContainer.TextWrapped = true
- UpdateAttack.Name = "UpdateAttack"
- UpdateAttack.Parent = Settings
- UpdateAttack.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- UpdateAttack.BackgroundTransparency = 0.60000002384186
- UpdateAttack.BorderColor3 = Color3.new(0.333333, 1, 0)
- UpdateAttack.Position = UDim2.new(0.3480663, 0, 0.302884609, 0)
- UpdateAttack.Size = UDim2.new(0.640883982, 0, 0.129807696, 0)
- UpdateAttack.Font = Enum.Font.SourceSans
- UpdateAttack.FontSize = Enum.FontSize.Size14
- UpdateAttack.Text = "Update"
- UpdateAttack.TextColor3 = Color3.new(1, 1, 1)
- UpdateAttack.TextSize = 14
- DefenceMultCointainer.Name = "DefenceMultCointainer"
- DefenceMultCointainer.Parent = Settings
- DefenceMultCointainer.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- DefenceMultCointainer.BackgroundTransparency = 0.5
- DefenceMultCointainer.BorderColor3 = Color3.new(1, 1, 0)
- DefenceMultCointainer.Position = UDim2.new(0.0441988967, 0, 0.800000012, 0)
- DefenceMultCointainer.Size = UDim2.new(0.243093923, 0, 0.129807696, 0)
- DefenceMultCointainer.Font = Enum.Font.SourceSans
- DefenceMultCointainer.FontSize = Enum.FontSize.Size14
- DefenceMultCointainer.Text = "1"
- DefenceMultCointainer.TextColor3 = Color3.new(1, 1, 1)
- DefenceMultCointainer.TextScaled = true
- DefenceMultCointainer.TextSize = 14
- DefenceMultCointainer.TextWrapped = true
- UpdateDefence.Name = "UpdateDefence"
- UpdateDefence.Parent = Settings
- UpdateDefence.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- UpdateDefence.BackgroundTransparency = 0.60000002384186
- UpdateDefence.BorderColor3 = Color3.new(0.333333, 1, 0)
- UpdateDefence.Position = UDim2.new(0.3480663, 0, 0.800000012, 0)
- UpdateDefence.Size = UDim2.new(0.640883982, 0, 0.129807696, 0)
- UpdateDefence.Font = Enum.Font.SourceSans
- UpdateDefence.FontSize = Enum.FontSize.Size14
- UpdateDefence.Text = "Update"
- UpdateDefence.TextColor3 = Color3.new(1, 1, 1)
- UpdateDefence.TextSize = 14
- TextDefence.Name = "TextDefence"
- TextDefence.Parent = Settings
- TextDefence.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextDefence.BackgroundTransparency = 0.60000002384186
- TextDefence.BorderColor3 = Color3.new(1, 1, 1)
- TextDefence.Position = UDim2.new(0, 0, 0.5, 0)
- TextDefence.Size = UDim2.new(1, 0, 0.264423072, 0)
- TextDefence.Font = Enum.Font.SourceSans
- TextDefence.FontSize = Enum.FontSize.Size14
- TextDefence.Text = "Defence Multiplyer"
- TextDefence.TextColor3 = Color3.new(1, 1, 1)
- TextDefence.TextSize = 14
- CloseOpener.Name = "CloseOpener"
- CloseOpener.Parent = Settings
- CloseOpener.BackgroundColor3 = Color3.new(1, 1, 1)
- CloseOpener.Position = UDim2.new(-0.287292808, 0, 0.384615391, 0)
- CloseOpener.Size = UDim2.new(0.281767964, 0, 0.264423072, 0)
- CloseOpener.Style = Enum.ButtonStyle.RobloxRoundButton
- CloseOpener.Font = Enum.Font.SourceSans
- CloseOpener.FontSize = Enum.FontSize.Size14
- CloseOpener.Text = ">"
- CloseOpener.TextColor3 = Color3.new(0.333333, 1, 0)
- CloseOpener.TextScaled = true
- CloseOpener.TextSize = 14
- CloseOpener.TextStrokeTransparency = 0
- CloseOpener.TextWrapped = true
- UpdateAttack.MouseButton1Down:connect(function()
- damageMultiplyer = DamageMultContainer.Text
- end)
- UpdateDefence.MouseButton1Down:connect(function()
- defenceMultiplyer = DefenceMultCointainer.Text
- end)
- if canclickopenclose == true then
- CloseOpener.MouseButton1Down:connect(function()
- if CloseOpener.Text == ">" then
- canclickopenclose = false
- CloseOpener.Text = "<"
- Settings:TweenPosition(UDim2.new(1, 0, 0.467, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5)
- wait(0.5)
- canclickopenclose = true
- elseif CloseOpener.Text == "<" then
- CloseOpener.Text = ">"
- canclickopenclose = false
- Settings:TweenPosition(UDim2.new(0.824, 0, 0.467, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5)
- wait(0.5)
- canclickopenclose = true
- end
- end)
- end
Add Comment
Please, Sign In to add comment