SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").Rohan_Kishiba
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | ------------------ | |
| 88 | --Basic Fighting-- | |
| 89 | ------------------ | |
| 90 | --By CKbackup-- | |
| 91 | --------------- | |
| 92 | ||
| 93 | player = game:GetService("Players").Rohan_Kishiba
| |
| 94 | chara = player.Character | |
| 95 | equipped = false | |
| 96 | del = false | |
| 97 | attacking = false | |
| 98 | atkd = false | |
| 99 | hum = chara:FindFirstChildOfClass("Humanoid")
| |
| 100 | debby = game.Debris | |
| 101 | ws = 16 | |
| 102 | if hum.WalkSpeed > 16 then | |
| 103 | ws = hum.WalkSpeed | |
| 104 | end | |
| 105 | ||
| 106 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 107 | ArtificialHB.Name = "Heartbeat" | |
| 108 | script:WaitForChild("Heartbeat")
| |
| 109 | frame = 0.03333333333333 | |
| 110 | tf = 0 | |
| 111 | allowframeloss = false | |
| 112 | tossremainder = false | |
| 113 | lastframe = tick() | |
| 114 | script.Heartbeat:Fire() | |
| 115 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 116 | tf = tf + s | |
| 117 | if tf >= frame then | |
| 118 | if allowframeloss then | |
| 119 | script.Heartbeat:Fire() | |
| 120 | lastframe = tick() | |
| 121 | else | |
| 122 | for i = 1, math.floor(tf / frame) do | |
| 123 | script.Heartbeat:Fire() | |
| 124 | end | |
| 125 | lastframe = tick() | |
| 126 | end | |
| 127 | if tossremainder then | |
| 128 | tf = 0 | |
| 129 | else | |
| 130 | tf = tf - frame * math.floor(tf / frame) | |
| 131 | end | |
| 132 | end | |
| 133 | end) | |
| 134 | function swait(num) | |
| 135 | if num == 0 or num == nil then | |
| 136 | ArtificialHB.Event:wait() | |
| 137 | else | |
| 138 | for i = 0, num*30 do | |
| 139 | ArtificialHB.Event:wait() | |
| 140 | end | |
| 141 | end | |
| 142 | end | |
| 143 | ||
| 144 | New = function(Object, Parent, Name, Data) | |
| 145 | local Object = Instance.new(Object) | |
| 146 | for Index, Value in pairs(Data or {}) do
| |
| 147 | Object[Index] = Value | |
| 148 | end | |
| 149 | Object.Parent = Parent | |
| 150 | Object.Name = Name | |
| 151 | return Object | |
| 152 | end | |
| 153 | ||
| 154 | RightArm = New("Model",chara,"RightArm",{})
| |
| 155 | MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 156 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 157 | Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
| |
| 158 | Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 159 | Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 160 | LeftArm = New("Model",chara,"LeftArm",{})
| |
| 161 | MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 162 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 163 | EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
| |
| 164 | Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 165 | Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 166 | ||
| 167 | lach = LeftArm:GetChildren() | |
| 168 | rach = RightArm:GetChildren() | |
| 169 | ||
| 170 | local pemit = Instance.new("ParticleEmitter")
| |
| 171 | pemit.Enabled = false | |
| 172 | pemit.Color = ColorSequence.new(Color3.new(255,255,0)) | |
| 173 | pemit.LightEmission = 1 | |
| 174 | pemit.Size = NumberSequence.new(1.5,0) | |
| 175 | pemit.Texture = "http://www.roblox.com/asset/?id=243098098" | |
| 176 | pemit.Lifetime = NumberRange.new(.2) | |
| 177 | pemit.Rate = 100 | |
| 178 | pemit.Rotation = NumberRange.new(0,360) | |
| 179 | pemit.Speed = NumberRange.new(0) | |
| 180 | ||
| 181 | local p1 = pemit:Clone() | |
| 182 | p1.Parent = EmitPart | |
| 183 | local p2 = pemit:Clone() | |
| 184 | p2.Parent = Emit2Part | |
| 185 | local p3 = pemit:Clone() | |
| 186 | p3.Parent = chara["Right Leg"] | |
| 187 | p3.Rate = 10000 | |
| 188 | local p4 = pemit:Clone() | |
| 189 | p4.Parent = chara["Left Leg"] | |
| 190 | p4.Rate = 10000 | |
| 191 | ||
| 192 | --Sounds-- | |
| 193 | function LoadSnd(id,loop,vol,pit) | |
| 194 | local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
| |
| 195 | return snd | |
| 196 | end | |
| 197 | Swing2Snd = LoadSnd(536642316,false,1,1) | |
| 198 | HitPunchSnd = LoadSnd(153092227,false,1,1) | |
| 199 | HitHamonSnd = LoadSnd(260433624,false,1,1) | |
| 200 | HamonSnd = LoadSnd(876570589,false,1,1) | |
| 201 | SHamonSnd = LoadSnd(379557765,true,.5,1) | |
| 202 | ||
| 203 | --Play Sound in Part-- | |
| 204 | function PlaySnd(snd,part) | |
| 205 | local sound = snd:Clone() | |
| 206 | sound.PlayOnRemove = true | |
| 207 | sound.Parent = part | |
| 208 | sound:Destroy() | |
| 209 | end | |
| 210 | ||
| 211 | maincol = "Really black" | |
| 212 | ||
| 213 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
| 214 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
| |
| 215 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
| |
| 216 | local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
| |
| 217 | return TEff | |
| 218 | end | |
| 219 | ||
| 220 | RPunchT = CreateTrailObj(chara["Right Arm"],"Institutional white","Institutional white",0,0) | |
| 221 | LPunchT = CreateTrailObj(chara["Left Arm"],"Really black","Really black",0,0) | |
| 222 | RKickT = CreateTrailObj(chara["Right Leg"],"Institutional white","Institutional white",0,0) | |
| 223 | LKickT = CreateTrailObj(chara["Left Leg"],"Really black","Really black",0,0) | |
| 224 | ||
| 225 | --Punch Hit Effect-- | |
| 226 | function PunchEff(pos) | |
| 227 | local p = Instance.new("Part",game.Workspace)
| |
| 228 | p.Size = Vector3.new(1,1,1) | |
| 229 | p.BrickColor = BrickColor.new(maincol) | |
| 230 | - | p.Material = "Neon" |
| 230 | + | p.Material = "Granite" |
| 231 | p.Anchored = true | |
| 232 | p.CanCollide = false | |
| 233 | p.CFrame = pos | |
| 234 | local pm = Instance.new("SpecialMesh",p)
| |
| 235 | pm.MeshType = "Sphere" | |
| 236 | coroutine.resume(coroutine.create(function() | |
| 237 | for i = 0,1,.05 do | |
| 238 | swait() | |
| 239 | p.Transparency = i | |
| 240 | pm.Scale = Vector3.new(2*i,2*i,2*i) | |
| 241 | end | |
| 242 | swait() | |
| 243 | p:Destroy() | |
| 244 | end)) | |
| 245 | end | |
| 246 | ||
| 247 | --Damage Function-- | |
| 248 | function dealdmg(dude,damage,env,toim,kby,kbx) | |
| 249 | coroutine.resume(coroutine.create(function() | |
| 250 | if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
| |
| 251 | finaldmg = damage + math.random(-env,env) | |
| 252 | dudehum = dude:FindFirstChildOfClass("Humanoid")
| |
| 253 | dudehum.MaxHealth = 100 | |
| 254 | dudehum.Health = dudehum.Health - finaldmg | |
| 255 | local vall = Instance.new("ObjectValue",dude)
| |
| 256 | vall.Name = "IsHit" | |
| 257 | game.Debris:AddItem(vall,toim) | |
| 258 | local bfos = Instance.new("BodyVelocity",dude.Head)
| |
| 259 | bfos.P = 20000 | |
| 260 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 261 | bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx | |
| 262 | game.Debris:AddItem(bfos,.1) | |
| 263 | local naeeym2 = Instance.new("BillboardGui",dude)
| |
| 264 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 265 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 266 | naeeym2.Adornee = dude.Head | |
| 267 | naeeym2.Name = "TalkingBillBoard" | |
| 268 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 269 | tecks2.BackgroundTransparency = 1 | |
| 270 | tecks2.BorderSizePixel = 0 | |
| 271 | tecks2.Text = "-"..finaldmg | |
| 272 | tecks2.Font = "Fantasy" | |
| 273 | tecks2.FontSize = "Size24" | |
| 274 | tecks2.TextStrokeTransparency = 0 | |
| 275 | tecks2.TextColor3 = Color3.new(1,0.6,0) | |
| 276 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 277 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 278 | for i = 1, 5 do | |
| 279 | wait(.1) | |
| 280 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 281 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 282 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 283 | end | |
| 284 | naeeym2:Destroy() | |
| 285 | end | |
| 286 | end)) | |
| 287 | end | |
| 288 | ||
| 289 | --Explode Hitbox-- | |
| 290 | function ExHitbox(rad,pos,damage,env,toim,kby,kbx) | |
| 291 | local E = Instance.new("Explosion")
| |
| 292 | E.Position = pos | |
| 293 | E.Parent = game.Workspace | |
| 294 | E.BlastRadius = rad | |
| 295 | E.BlastPressure = 0 | |
| 296 | E.Visible = false | |
| 297 | E.Hit:connect(function(hit) | |
| 298 | if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
| |
| 299 | dealdmg(hit.Parent,damage,env,toim,kby,kbx) | |
| 300 | end | |
| 301 | end) | |
| 302 | end | |
| 303 | ||
| 304 | --Punch Touch-- | |
| 305 | dela = .5 | |
| 306 | punchactive = false | |
| 307 | function punchhit(hit) | |
| 308 | if punchactive == true then | |
| 309 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 310 | dealdmg(hit.Parent,15,2,dela,0,5) | |
| 311 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 312 | - | if maincol == "Institutional white" then |
| 312 | + | if maincol == "Crimson" then |
| 313 | PlaySnd(HitHamonSnd,hit.Parent.Head) | |
| 314 | end | |
| 315 | PunchEff(hit.CFrame) | |
| 316 | end | |
| 317 | end | |
| 318 | end | |
| 319 | Emit2Part.Touched:connect(punchhit) | |
| 320 | EmitPart.Touched:connect(punchhit) | |
| 321 | ||
| 322 | --Kick Touch-- | |
| 323 | kickactive = false | |
| 324 | function kickhit(hit) | |
| 325 | if kickactive == true then | |
| 326 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 327 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 328 | PunchEff(hit.CFrame) | |
| 329 | - | if maincol == "Institutional white" then |
| 329 | + | if maincol == "Crimson" then |
| 330 | PlaySnd(HitHamonSnd,hit.Parent.Head) | |
| 331 | end | |
| 332 | dealdmg(hit.Parent,20,2,dela,0,20) | |
| 333 | end | |
| 334 | end | |
| 335 | end | |
| 336 | chara["Right Leg"].Touched:connect(kickhit) | |
| 337 | chara["Left Leg"].Touched:connect(kickhit) | |
| 338 | ||
| 339 | --Chat Function-- | |
| 340 | function chatfunc(text) | |
| 341 | coroutine.resume(coroutine.create(function() | |
| 342 | if chara:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 343 | chara:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 344 | end | |
| 345 | local naeeym2 = Instance.new("BillboardGui",chara)
| |
| 346 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 347 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 348 | naeeym2.Adornee = chara.Head | |
| 349 | naeeym2.Name = "TalkingBillBoard" | |
| 350 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 351 | tecks2.BackgroundTransparency = 1 | |
| 352 | tecks2.BorderSizePixel = 0 | |
| 353 | tecks2.Text = "" | |
| 354 | tecks2.Font = "Fantasy" | |
| 355 | tecks2.FontSize = "Size24" | |
| 356 | tecks2.TextStrokeTransparency = 0 | |
| 357 | tecks2.TextColor3 = Color3.new(1,1,1) | |
| 358 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 359 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 360 | coroutine.resume(coroutine.create(function() | |
| 361 | for i = 1,string.len(text),1 do | |
| 362 | tecks2.Text = string.sub(text,1,i) | |
| 363 | swait(0.01) | |
| 364 | end | |
| 365 | swait(1) | |
| 366 | for i = 1, 5 do | |
| 367 | swait(.01) | |
| 368 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 369 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 370 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 371 | end | |
| 372 | naeeym2:Destroy() | |
| 373 | end)) | |
| 374 | end)) | |
| 375 | end | |
| 376 | ||
| 377 | function onChatted(msg) | |
| 378 | --chatfunc(msg) | |
| 379 | if msg == "Hamon!" then | |
| 380 | HamonSnd:Play() | |
| 381 | - | maincol = "Institutional white" |
| 381 | + | maincol = "Crimson" |
| 382 | for i = 0,.1,.01 do | |
| 383 | swait() | |
| 384 | EmitPart.Transparency = 1-i | |
| 385 | Emit2Part.Transparency = 1-i | |
| 386 | end | |
| 387 | p1.Enabled = true | |
| 388 | p2.Enabled = true | |
| 389 | RPunchT.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 390 | LPunchT.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 391 | RKickT.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 392 | LKickT.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 393 | elseif msg == "Hamon off." then | |
| 394 | maincol = "Crimson" | |
| 395 | p1.Enabled = false | |
| 396 | p2.Enabled = false | |
| 397 | for i = .9,1,.01 do | |
| 398 | swait() | |
| 399 | EmitPart.Transparency = i | |
| 400 | Emit2Part.Transparency = i | |
| 401 | end | |
| 402 | RPunchT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
| |
| 403 | LPunchT.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 404 | RKickT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
| |
| 405 | LKickT.Color = ColorSequence.new(BrickColor.new("Really black").Color)
| |
| 406 | end | |
| 407 | end | |
| 408 | player.Chatted:connect(onChatted) | |
| 409 | ||
| 410 | --Clerp Animations-- | |
| 411 | TC = chara.HumanoidRootPart.RootJoint | |
| 412 | HC = chara.Torso.Neck | |
| 413 | RAC = chara.Torso["Right Shoulder"] | |
| 414 | LAC = chara.Torso["Left Shoulder"] | |
| 415 | RLC = chara.Torso["Right Hip"] | |
| 416 | LLC = chara.Torso["Left Hip"] | |
| 417 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 418 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 419 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 420 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 421 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 422 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 423 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 424 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 425 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 426 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 427 | RW = Instance.new("Weld",HC.Parent)
| |
| 428 | RW.Part1 = HC.Parent | |
| 429 | RW.Part0 = chara["Right Arm"] | |
| 430 | RW.C0 = RWF | |
| 431 | LW = Instance.new("Weld",HC.Parent)
| |
| 432 | LW.Part1 = HC.Parent | |
| 433 | LW.Part0 = chara["Left Arm"] | |
| 434 | LW.C0 = LWF | |
| 435 | RLW = nil | |
| 436 | LLW = nil | |
| 437 | grp = Instance.new("Model",chara)
| |
| 438 | ||
| 439 | function AddLegWelds() | |
| 440 | RLW = Instance.new("Weld",chara["Right Leg"])
| |
| 441 | RLW.Part1 = HC.Parent | |
| 442 | RLW.Part0 = chara["Right Leg"] | |
| 443 | RLW.C0 = RLWF | |
| 444 | LLW = Instance.new("Weld",chara["Left Leg"])
| |
| 445 | LLW.Part1 = HC.Parent | |
| 446 | LLW.Part0 = chara["Left Leg"] | |
| 447 | LLW.C0 = LLWF | |
| 448 | end | |
| 449 | ||
| 450 | function DestroyLegWelds() | |
| 451 | RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
| |
| 452 | LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
| |
| 453 | RLW:Destroy() | |
| 454 | LLW:Destroy() | |
| 455 | end | |
| 456 | ||
| 457 | function clerp(a,b,c) | |
| 458 | return a:lerp(b,c) | |
| 459 | end | |
| 460 | ||
| 461 | ITCF = TCF | |
| 462 | IHCF = HCF | |
| 463 | IRWF = RWF | |
| 464 | ILWF = LWF | |
| 465 | ||
| 466 | function res() | |
| 467 | TC.C0 = ITCF | |
| 468 | HC.C0 = IHCF | |
| 469 | RW.C0 = IRWF | |
| 470 | LW.C0 = ILWF | |
| 471 | end | |
| 472 | res() | |
| 473 | ||
| 474 | --Flip-- | |
| 475 | function Flip() | |
| 476 | del = true | |
| 477 | res() | |
| 478 | hum.WalkSpeed = 0 | |
| 479 | AddLegWelds() | |
| 480 | Swing2Snd:Play() | |
| 481 | for i = 0,.6,.2 do | |
| 482 | swait() | |
| 483 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i) | |
| 484 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i) | |
| 485 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 486 | LW.C0 = clerp(ILWF,LWF,.4+i) | |
| 487 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i) | |
| 488 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 489 | end | |
| 490 | local bf = Instance.new("BodyVelocity",chara.Torso)
| |
| 491 | bf.P = 100000 | |
| 492 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 493 | bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30 | |
| 494 | debby:AddItem(bf,.5) | |
| 495 | for i = 0,1,.25 do | |
| 496 | swait() | |
| 497 | TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 498 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i) | |
| 499 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 500 | LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 501 | LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i) | |
| 502 | end | |
| 503 | bf.MaxForce = Vector3.new(bf.P,0,bf.P) | |
| 504 | for i = 0,1,.25 do | |
| 505 | swait() | |
| 506 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i) | |
| 507 | end | |
| 508 | swait(.5) | |
| 509 | bf:Destroy() | |
| 510 | for i = 0,1,.25 do | |
| 511 | swait() | |
| 512 | TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i) | |
| 513 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 514 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i) | |
| 515 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i) | |
| 516 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i) | |
| 517 | end | |
| 518 | for i = 0,.6,.2 do | |
| 519 | swait() | |
| 520 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i) | |
| 521 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i) | |
| 522 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 523 | LW.C0 = clerp(ILWF,LWF,.6-i) | |
| 524 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i) | |
| 525 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i) | |
| 526 | end | |
| 527 | DestroyLegWelds() | |
| 528 | res() | |
| 529 | hum.WalkSpeed = ws | |
| 530 | walking = false | |
| 531 | del = false | |
| 532 | end | |
| 533 | function BackFlip() | |
| 534 | del = true | |
| 535 | res() | |
| 536 | hum.WalkSpeed = 0 | |
| 537 | AddLegWelds() | |
| 538 | Swing2Snd:Play() | |
| 539 | for i = 0,.6,.2 do | |
| 540 | swait() | |
| 541 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i) | |
| 542 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i) | |
| 543 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 544 | LW.C0 = clerp(ILWF,LWF,.4+i) | |
| 545 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i) | |
| 546 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 547 | end | |
| 548 | local bf = Instance.new("BodyVelocity",chara.Torso)
| |
| 549 | bf.P = 100000 | |
| 550 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 551 | bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30 | |
| 552 | for i = 0,1,.25 do | |
| 553 | swait() | |
| 554 | TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
| 555 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i) | |
| 556 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 557 | LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 558 | LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i) | |
| 559 | end | |
| 560 | bf.MaxForce = Vector3.new(bf.P,0,bf.P) | |
| 561 | for i = 0,1,.25 do | |
| 562 | swait() | |
| 563 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
| 564 | end | |
| 565 | swait(.5) | |
| 566 | bf:Destroy() | |
| 567 | for i = 0,1,.25 do | |
| 568 | swait() | |
| 569 | TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i) | |
| 570 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 571 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i) | |
| 572 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i) | |
| 573 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i) | |
| 574 | end | |
| 575 | for i = 0,.6,.2 do | |
| 576 | swait() | |
| 577 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i) | |
| 578 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i) | |
| 579 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 580 | LW.C0 = clerp(ILWF,LWF,.6-i) | |
| 581 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i) | |
| 582 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i) | |
| 583 | end | |
| 584 | DestroyLegWelds() | |
| 585 | res() | |
| 586 | hum.WalkSpeed = ws | |
| 587 | walking = false | |
| 588 | del = false | |
| 589 | end | |
| 590 | ||
| 591 | --Keys-- | |
| 592 | combo = 0 | |
| 593 | function onKeyDown(key) | |
| 594 | if del == false then | |
| 595 | if key == "r" then | |
| 596 | BackFlip() | |
| 597 | elseif key == "t" then | |
| 598 | Flip() | |
| 599 | end | |
| 600 | end | |
| 601 | end | |
| 602 | function onButton1Down() | |
| 603 | if del == false then | |
| 604 | del = true | |
| 605 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(0,1,0)).magnitude | |
| 606 | res() | |
| 607 | if torvel > 3 then | |
| 608 | Swing2Snd:Play() | |
| 609 | kickactive = true | |
| 610 | RKickT.Enabled = true | |
| 611 | - | if maincol == "Institutional white" then |
| 611 | + | if maincol == "Crimson" then |
| 612 | SHamonSnd:Play() | |
| 613 | p3.Enabled = true | |
| 614 | end | |
| 615 | AddLegWelds() | |
| 616 | for i = 0,1,.2 do | |
| 617 | swait() | |
| 618 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 619 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i) | |
| 620 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 621 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 622 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i) | |
| 623 | end | |
| 624 | for i = 0,1,.2 do | |
| 625 | swait() | |
| 626 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i) | |
| 627 | end | |
| 628 | DestroyLegWelds() | |
| 629 | kickactive = false | |
| 630 | RKickT.Enabled = false | |
| 631 | p3.Enabled = false | |
| 632 | SHamonSnd:Stop() | |
| 633 | elseif torvel < 3 then | |
| 634 | if combo == 0 then | |
| 635 | for i = 0,.6,.2 do | |
| 636 | swait() | |
| 637 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 638 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 639 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i) | |
| 640 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 641 | end | |
| 642 | swait(.1) | |
| 643 | Swing2Snd:Play() | |
| 644 | punchactive = true | |
| 645 | LPunchT.Enabled = true | |
| 646 | - | if maincol == "Really black" then |
| 646 | + | if maincol == "Crimson" then |
| 647 | SHamonSnd:Play() | |
| 648 | end | |
| 649 | for i = 0,.6,.3 do | |
| 650 | swait() | |
| 651 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),TCF,.4+i) | |
| 652 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),HCF,.4+i) | |
| 653 | LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 654 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i) | |
| 655 | end | |
| 656 | LW.C0 = (LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 657 | for i = 0,.6,.2 do | |
| 658 | swait() | |
| 659 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 660 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 661 | end | |
| 662 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 663 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 664 | swait(.1) | |
| 665 | for i = 0,.6,.2 do | |
| 666 | swait() | |
| 667 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 668 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 669 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 670 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i) | |
| 671 | end | |
| 672 | punchactive = false | |
| 673 | LPunchT.Enabled = false | |
| 674 | SHamonSnd:Stop() | |
| 675 | combo = 1 | |
| 676 | elseif combo == 1 then | |
| 677 | hum.WalkSpeed = 0 | |
| 678 | AddLegWelds() | |
| 679 | for i = 0,.6,.2 do | |
| 680 | swait() | |
| 681 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i) | |
| 682 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 683 | LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
| 684 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i) | |
| 685 | end | |
| 686 | swait(.1) | |
| 687 | Swing2Snd:Play() | |
| 688 | kickactive = true | |
| 689 | RKickT.Enabled = true | |
| 690 | - | if maincol == "Institutional white" then |
| 690 | + | if maincol == "Crimson" then |
| 691 | SHamonSnd:Play() | |
| 692 | p3.Enabled = true | |
| 693 | end | |
| 694 | local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
| |
| 695 | bfos.P = 10000 | |
| 696 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 697 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200 | |
| 698 | debby:AddItem(bfos,.1) | |
| 699 | for i = 0,.6,.2 do | |
| 700 | swait() | |
| 701 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
| 702 | LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),.4+i) | |
| 703 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),(RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 704 | end | |
| 705 | swait(.3) | |
| 706 | for i = 0,.6,.2 do | |
| 707 | swait() | |
| 708 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),ITCF,.4+i) | |
| 709 | HC.C0 = clerp(HCF,IHCF,.4+i) | |
| 710 | LLW.C0 = clerp(LLWF * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0),LLWF,.4+i) | |
| 711 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1))*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i) | |
| 712 | end | |
| 713 | DestroyLegWelds() | |
| 714 | kickactive = false | |
| 715 | RKickT.Enabled = false | |
| 716 | p3.Enabled = false | |
| 717 | SHamonSnd:Stop() | |
| 718 | combo = 2 | |
| 719 | elseif combo == 2 then | |
| 720 | for i = 0,.6,.2 do | |
| 721 | swait() | |
| 722 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 723 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 724 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 725 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i) | |
| 726 | end | |
| 727 | swait(.1) | |
| 728 | Swing2Snd:Play() | |
| 729 | punchactive = true | |
| 730 | RPunchT.Enabled = true | |
| 731 | - | if maincol == "Institutional white" then |
| 731 | + | if maincol == "Crimson" then |
| 732 | SHamonSnd:Play() | |
| 733 | end | |
| 734 | for i = 0,.6,.3 do | |
| 735 | swait() | |
| 736 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF,.4+i) | |
| 737 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF,.4+i) | |
| 738 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i) | |
| 739 | RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 740 | end | |
| 741 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 742 | for i = 0,.6,.2 do | |
| 743 | swait() | |
| 744 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 745 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 746 | end | |
| 747 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 748 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 749 | swait(.1) | |
| 750 | for i = 0,.6,.2 do | |
| 751 | swait() | |
| 752 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 753 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 754 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 755 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 756 | end | |
| 757 | punchactive = false | |
| 758 | RPunchT.Enabled = false | |
| 759 | SHamonSnd:Stop() | |
| 760 | combo = 3 | |
| 761 | elseif combo == 3 then | |
| 762 | hum.WalkSpeed = 0 | |
| 763 | AddLegWelds() | |
| 764 | for i = 0,.6,.2 do | |
| 765 | swait() | |
| 766 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 767 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 768 | LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.4+i) | |
| 769 | RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.4+i) | |
| 770 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 771 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i) | |
| 772 | end | |
| 773 | Swing2Snd:Play() | |
| 774 | kickactive = true | |
| 775 | LKickT.Enabled = true | |
| 776 | - | if maincol == "Really black" then |
| 776 | + | if maincol == "Crimson" then |
| 777 | SHamonSnd:Play() | |
| 778 | p4.Enabled = true | |
| 779 | end | |
| 780 | local bfos = Instance.new("BodyVelocity",chara.HumanoidRootPart)
| |
| 781 | bfos.P = 10000 | |
| 782 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 783 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200 | |
| 784 | debby:AddItem(bfos,.1) | |
| 785 | for i = 0,.6,.1 do | |
| 786 | swait() | |
| 787 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-100)),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.4+i) | |
| 788 | end | |
| 789 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)) | |
| 790 | swait(.2) | |
| 791 | for i = 0,.6,.1 do | |
| 792 | swait() | |
| 793 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-60),0,math.rad(90)),.6-i) | |
| 794 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 795 | LLW.C0 = clerp(LLWF,LLWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-60)),.6-i) | |
| 796 | RLW.C0 = clerp(RLWF,RLWF*CFrame.fromEulerAnglesXYZ(0,0,math.rad(60)),.6-i) | |
| 797 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 798 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.6-i) | |
| 799 | end | |
| 800 | DestroyLegWelds() | |
| 801 | kickactive = false | |
| 802 | LKickT.Enabled = false | |
| 803 | p4.Enabled = false | |
| 804 | SHamonSnd:Stop() | |
| 805 | combo = 0 | |
| 806 | end | |
| 807 | end | |
| 808 | res() | |
| 809 | hum.WalkSpeed = ws | |
| 810 | walking = false | |
| 811 | del = false | |
| 812 | end | |
| 813 | end | |
| 814 | if mouse then | |
| 815 | mouse.Button1Down:connect(onButton1Down) | |
| 816 | mouse.KeyDown:connect(onKeyDown) | |
| 817 | end | |
| 818 | ||
| 819 | --Loop Function-- | |
| 820 | walking = false | |
| 821 | toim = 0 | |
| 822 | while true do | |
| 823 | swait() | |
| 824 | toim = toim + .1 | |
| 825 | if del == false then attacking = false elseif del == true then attacking = true end | |
| 826 | if atkd == true then | |
| 827 | TC.C0 = TCF | |
| 828 | HC.C0 = HCF | |
| 829 | RW.C0 = RWF | |
| 830 | LW.C0 = LWF | |
| 831 | atkd = false | |
| 832 | end | |
| 833 | if atkdd == true then | |
| 834 | TC.C0 = ITCF | |
| 835 | HC.C0 = IHCF | |
| 836 | RW.C0 = IRWF | |
| 837 | LW.C0 = ILWF | |
| 838 | atkdd = false | |
| 839 | end | |
| 840 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 841 | if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then | |
| 842 | for i = 0,1,.25 do | |
| 843 | swait(.001) | |
| 844 | if del == false and attacking == false then | |
| 845 | TC.C0 = clerp(TCF,ITCF,i) | |
| 846 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i) | |
| 847 | RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,i) | |
| 848 | LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,i) | |
| 849 | end | |
| 850 | end | |
| 851 | walking = false | |
| 852 | elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then | |
| 853 | for i = 0,1,.25 do | |
| 854 | swait(.001) | |
| 855 | if del == false and attacking == false then | |
| 856 | TC.C0 = clerp(ITCF,TCF,i) | |
| 857 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),i) | |
| 858 | RW.C0 = clerp((RWF - Vector3.new(-1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(45)),IRWF,1-i) | |
| 859 | LW.C0 = clerp((LWF - Vector3.new(1,0,.7)) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,math.rad(-45)),ILWF,1-i) | |
| 860 | end | |
| 861 | end | |
| 862 | walking = true | |
| 863 | else | |
| 864 | end | |
| 865 | end |