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 | - | player = game.Players.LocalPlayer |
| 8 | + | script.Parent = Player.Character |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | - | Mouse = player:GetMouse() |
| 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").Banana_Borealis
| |
| 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 | --Yukio Katana-- | |
| 89 | ---------------- | |
| 90 | --By -- | |
| 91 | --CKbackup- | |
| 92 | ----------- | |
| 93 | ||
| 94 | player = game.Players.Banana_Borealis | |
| 95 | chara = player.Character | |
| 96 | debby = game.Debris | |
| 97 | chara.Humanoid.WalkSpeed = 32 | |
| 98 | atkd = false | |
| 99 | targetted = nil | |
| 100 | freezeatk = false | |
| 101 | iaidoatk = false | |
| 102 | dfreatk = false | |
| 103 | ||
| 104 | --Outfit-- | |
| 105 | New = function(Object, Parent, Name, Data) | |
| 106 | local Object = Instance.new(Object) | |
| 107 | for Index, Value in pairs(Data or {}) do
| |
| 108 | Object[Index] = Value | |
| 109 | end | |
| 110 | Object.Parent = Parent | |
| 111 | Object.Name = Name | |
| 112 | return Object | |
| 113 | end | |
| 114 | ||
| 115 | Sheath = New("Model",chara,"Sheath",{})
| |
| 116 | Handle2 = New("Part",Sheath,"Handle2",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 1.39999938, 0.399999976),CFrame = CFrame.new(-16.8999863, 5.10000372, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 117 | Mesh = New("BlockMesh",Handle2,"Mesh",{Scale = Vector3.new(1.29999995, 1, 2),})
| |
| 118 | Weld = New("ManualWeld",Handle2,"Weld",{Part0 = Handle2,Part1 = chara["Left Arm"],C1 = CFrame.new(0, -1, 0, -1, 0, -0, 0, 0, -1, 0, -1, -0),})
| |
| 119 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.400000006, 2.60000014, 0.200000003),CFrame = CFrame.new(-16.8999863, 1.5000031, -7, 0, 0, 1, 0, -1, 0, 1, 0, 0),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 120 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, 0.119999997),Scale = Vector3.new(0.300000012, 2, 0.00999999978),MeshId = "http://www.roblox.com/asset/?id=1051557",MeshType = Enum.MeshType.FileMesh,})
| |
| 121 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, -1, 0, 1, 0, -0),C1 = CFrame.new(0, -3.60000062, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 122 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 5.10000372, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 123 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 124 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,})
| |
| 125 | SheathHitbox = New("Part",Sheath,"SheathHitbox",{BrickColor = BrickColor.new("Deep blue"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 5.79999971, 0.399999976),CFrame = CFrame.new(-16.8999863, 3.10000277, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.129412, 0.329412, 0.72549),})
| |
| 126 | Mesh = New("BlockMesh",SheathHitbox,"Mesh",{Scale = Vector3.new(1.10000002, 1, 1.79999995),})
| |
| 127 | Weld = New("ManualWeld",SheathHitbox,"Weld",{Part0 = SheathHitbox,Part1 = Handle2,C1 = CFrame.new(0, -2.00000095, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 128 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.400000006, 2.60000014, 0.200000003),CFrame = CFrame.new(-16.8999863, 4.70000315, -7, 0, 0, 1, 0, 1, 0, -1, 0, 0),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 129 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, 0.119999997),Scale = Vector3.new(0.300000012, 2, 0.00999999978),MeshId = "http://www.roblox.com/asset/?id=1051557",MeshType = Enum.MeshType.FileMesh,})
| |
| 130 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0, -0.400000572, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 131 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.5, 0.400000006),CFrame = CFrame.new(-16.8999863, 3.10000277, -7, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 132 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.100000001, 0.5, 0.5),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 133 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, -2.00000095, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 134 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.400000006, 2.60000014, 0.200000003),CFrame = CFrame.new(-16.8999863, 4.70000315, -7, 0, 0, -1, 0, 1, 0, 1, 0, 0),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 135 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, 0.119999997),Scale = Vector3.new(0.300000012, 2, 0.00999999978),MeshId = "http://www.roblox.com/asset/?id=1051557",MeshType = Enum.MeshType.FileMesh,})
| |
| 136 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0, -0.400000572, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 137 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.5, 0.400000006),CFrame = CFrame.new(-16.8999863, 3.10000277, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 138 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.100000001, 0.5, 0.5),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 139 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, -2.00000095, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 140 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.400000006, 2.60000014, 0.200000003),CFrame = CFrame.new(-16.8999863, 1.5000031, -7, 0, 0, -1, 0, -1, 0, -1, 0, 0),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 141 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, 0.119999997),Scale = Vector3.new(0.300000012, 2, 0.00999999978),MeshId = "http://www.roblox.com/asset/?id=1051557",MeshType = Enum.MeshType.FileMesh,})
| |
| 142 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, -1, -0, -1, 0, -0),C1 = CFrame.new(0, -3.60000062, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 143 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 0.100002766, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 144 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 2),})
| |
| 145 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, -5.00000095, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 146 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 4.7000041, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 147 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 148 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, -0.399999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 149 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 5.70000362, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 150 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 151 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.599999905, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 152 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 5.50000334, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 153 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 154 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.399999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 155 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 4.90000391, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 156 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 157 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, -0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 158 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999882, 6.099998, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 159 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.60000002, 1, 2.0999999),})
| |
| 160 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-1.90734863e-006, 0.999994278, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 161 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 4.50000429, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 162 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 163 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, -0.599999428, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 164 | Part = New("Part",Sheath,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-16.8999863, 5.30000353, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 165 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.39999998, 0.800000012, 2.0999999),})
| |
| 166 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 167 | ||
| 168 | Yukio = New("Model",chara,"Yukio",{})
| |
| 169 | Handle = New("Part",Yukio,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.99999994, 0.399999976),CFrame = CFrame.new(-18.6999989, 8.29999733, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 170 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-3.81469727e-006, 1.79999161, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 171 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999989, 8.89999771, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 172 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -0.599999905, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 173 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 5.19999981, 0.399999976),CFrame = CFrame.new(-18.6999989, 4.99999762, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 174 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
| |
| 175 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 3.29999971, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 176 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.799999714, 0.399999976),CFrame = CFrame.new(-18.6999989, 1.99999809, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 177 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 178 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 6.29999924, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 179 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999989, 7.69999743, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 180 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 2),})
| |
| 181 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.599999905, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 182 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 5.19999981, 0.200000003),CFrame = CFrame.new(-18.6999989, 4.99999809, -2.29999995, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 183 | Mesh = New("BlockMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, 0.0500000007),Scale = Vector3.new(1, 1, 1.54999995),})
| |
| 184 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 3.29999924, -0.0999999046, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 185 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.599999726, 0.200000003),CFrame = CFrame.new(-18.6999989, 2.09999752, -2.29999995, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 186 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, -0.0500000007),Scale = Vector3.new(1, 1, 1.54999995),MeshType = Enum.MeshType.Wedge,})
| |
| 187 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 6.19999981, -0.0999999046, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 188 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.400000006, 0.399999976),CFrame = CFrame.new(-18.6999989, 7.59999752, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 189 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.10000002, 0.5, 1.10000002),})
| |
| 190 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.699999809, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 191 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 7.89999819, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 192 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 193 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-1.90734863e-006, 0.399999142, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 194 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.29999733, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 195 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 196 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-1.90734863e-006, -4.76837158e-007, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 197 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.69999695, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 198 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 199 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-1.90734863e-006, -0.400000095, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 200 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.49999809, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 201 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 202 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-1.90734863e-006, -0.20000124, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 203 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.09999847, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 204 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 205 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-1.90734863e-006, 0.199998379, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 206 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 7.89999819, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 207 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 208 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-1.90734863e-006, 0.399999142, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 209 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.29999924, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 210 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 211 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-1.90734863e-006, -1.43051147e-006, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 212 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.69999886, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 213 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 214 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-1.90734863e-006, -0.400001049, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 215 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.49999809, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 216 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 217 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-1.90734863e-006, -0.200000286, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 218 | Part = New("Part",Yukio,"Part",{BrickColor = BrickColor.new("Pastel blue-green"),Material = Enum.Material.Ice,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(-18.6999969, 8.09999847, -2.20000005, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.623529, 0.952941, 0.913726),})
| |
| 219 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0.100000001, 0, 0),Scale = Vector3.new(0.0500000007, 0.100000001, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
| |
| 220 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-1.90734863e-006, 0.199999332, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 221 | Hitbox = New("Part",Yukio,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 6, 0.399999976),CFrame = CFrame.new(-18.6999989, 4.59999752, -2.20000005, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,})
| |
| 222 | Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
| |
| 223 | Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 3.69999957, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),})
| |
| 224 | ||
| 225 | RightArm = New("Model",chara,"RightArm",{})
| |
| 226 | 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,})
| |
| 227 | 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),})
| |
| 228 | Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),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),})
| |
| 229 | Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 230 | 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),})
| |
| 231 | LeftArm = New("Model",chara,"LeftArm",{})
| |
| 232 | 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,})
| |
| 233 | 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),})
| |
| 234 | EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),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),})
| |
| 235 | Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 236 | 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),})
| |
| 237 | ||
| 238 | lach = LeftArm:GetChildren() | |
| 239 | rach = RightArm:GetChildren() | |
| 240 | ch = chara:GetChildren() | |
| 241 | ||
| 242 | local p1mit = Instance.new("ParticleEmitter",Hitbox)
| |
| 243 | p1mit.Texture = "http://www.roblox.com/asset/?id=68072538" | |
| 244 | p1mit.LightEmission = 1 | |
| 245 | p1mit.Enabled = false | |
| 246 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 247 | p1mit.Lifetime = NumberRange.new(1) | |
| 248 | p1mit.Rate = 10000 | |
| 249 | p1mit.Rotation = NumberRange.new(0,359) | |
| 250 | p1mit.RotSpeed = NumberRange.new(100) | |
| 251 | p1mit.Speed = NumberRange.new(0) | |
| 252 | ||
| 253 | ScreenGui = New("ScreenGui",player.PlayerGui,"ScreenGui",{})
| |
| 254 | Frame = New("Frame",ScreenGui,"Frame",{BackgroundColor3 = Color3.new(0,0,1),BorderColor3 = Color3.new(0,1,1),BorderSizePixel = 3,Position = UDim2.new(0,700,0,100),Size = UDim2.new(0,200,0,400),Draggable = true})
| |
| 255 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,0),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Yukio Katana",TextColor3 = Color3.new(0,1,1)})
| |
| 256 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,20),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "M - Mute/Unmute Music",TextColor3 = Color3.new(0,1,1)})
| |
| 257 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,40),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Z - Punch",TextColor3 = Color3.new(0,1,1)})
| |
| 258 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,60),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "X - Kick",TextColor3 = Color3.new(0,1,1)})
| |
| 259 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,80),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "C - Slash",TextColor3 = Color3.new(0,1,1)})
| |
| 260 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,100),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Q - Select Target",TextColor3 = Color3.new(0,1,1)})
| |
| 261 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,120),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ADQ - Icy Storm",TextColor3 = Color3.new(0,1,1)})
| |
| 262 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,140),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DASQ - Tundra Spike",TextColor3 = Color3.new(0,1,1)})
| |
| 263 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,160),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "AADQ - Winter's Riposte",TextColor3 = Color3.new(0,1,1)})
| |
| 264 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,180),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ASDWWQ - Coldheart",TextColor3 = Color3.new(0,1,1)})
| |
| 265 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,200),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSZ - Freezer Kick",TextColor3 = Color3.new(0,1,1)})
| |
| 266 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,220),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SAX - Bandit Revolver",TextColor3 = Color3.new(0,1,1)})
| |
| 267 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,240),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "AWC - Cutting Hailstone",TextColor3 = Color3.new(0,1,1)})
| |
| 268 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,260),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ASC - Cold Wind",TextColor3 = Color3.new(0,1,1)})
| |
| 269 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,280),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DSADDC - Iaido Frost",TextColor3 = Color3.new(0,1,1)})
| |
| 270 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,300),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSADC - Harbinger of",TextColor3 = Color3.new(0,1,1)})
| |
| 271 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,320),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = " Winter",TextColor3 = Color3.new(0,1,1)})
| |
| 272 | OpenButton = New("TextButton",ScreenGui,"OpenButton",{BackgroundColor3 = Color3.new(0,0,1),BorderColor3 = Color3.new(0,1,1),BorderSizePixel = 3,Position = UDim2.new(0,700,0,500),Size = UDim2.new(0,50,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Close",TextColor3 = Color3.new(0,1,1)})
| |
| 273 | ||
| 274 | OpenButton.MouseButton1Click:connect(function() | |
| 275 | if Frame.Visible == true then | |
| 276 | Frame.Visible = false | |
| 277 | OpenButton.Text = "Open" | |
| 278 | elseif Frame.Visible == false then | |
| 279 | Frame.Visible = true | |
| 280 | OpenButton.Text = "Close" | |
| 281 | end | |
| 282 | end) | |
| 283 | ||
| 284 | crosshair = Instance.new("BillboardGui",chara)
| |
| 285 | crosshair.Size = UDim2.new(10,0,10,0) | |
| 286 | crosshair.Enabled = false | |
| 287 | imgl = Instance.new("ImageLabel",crosshair)
| |
| 288 | imgl.Position = UDim2.new(0,0,0,0) | |
| 289 | imgl.Size = UDim2.new(1,0,1,0) | |
| 290 | imgl.Image = "rbxassetid://233522684" | |
| 291 | imgl.BackgroundTransparency = 1 | |
| 292 | imgl.ImageColor3 = Color3.new(0,1,1) | |
| 293 | ||
| 294 | --Sounds-- | |
| 295 | function LoadSnd(id,loop,vol,pit) | |
| 296 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
| |
| 297 | return snd | |
| 298 | end | |
| 299 | Music = LoadSnd(721223409,true,1,1) | |
| 300 | StartUpSnd = LoadSnd(98333808,false,1,1) | |
| 301 | SwingSnd = LoadSnd(62339698,false,1,.8) | |
| 302 | Swing2Snd = LoadSnd(12222208,false,1,1) | |
| 303 | HitSnd = LoadSnd(566593606,false,1,1) | |
| 304 | HitPunchSnd = LoadSnd(386946017,false,1,1) | |
| 305 | DodgeSnd = LoadSnd(232210079,false,1,1) | |
| 306 | ExpSnd = LoadSnd(142070127,false,1,1) | |
| 307 | FlySnd = LoadSnd(169445602,false,1,1) | |
| 308 | BExpSnd = LoadSnd(258057783,false,5,1) | |
| 309 | ClawDashSnd = LoadSnd(62339698,false,1,.5) | |
| 310 | deathmus = LoadSnd(395580552,true,5,1) | |
| 311 | deathex = LoadSnd(258057783,false,5,1) | |
| 312 | --Grunt1Snd = LoadSnd(159882486,false,1,1.1) | |
| 313 | --Grunt2Snd = LoadSnd(159882466,false,1,1.1) | |
| 314 | --Grunt3Snd = LoadSnd(159972643,false,1,1.1) | |
| 315 | --Grunt4Snd = LoadSnd(159882584,false,1,1.1) | |
| 316 | --YouIdiotSnd = LoadSnd(160212768,false,1,1.1) | |
| 317 | --DieSnd = LoadSnd(159882598,false,1,1.1) | |
| 318 | --Laugh1Snd = LoadSnd(160212549,false,1,1.1) | |
| 319 | --Laugh2Snd = LoadSnd(159882561,false,1,1.1) | |
| 320 | --Laugh3Snd = LoadSnd(160212812,false,1,1.1) | |
| 321 | ChargeSnd = LoadSnd(137463716,false,1,1) | |
| 322 | LasSnd = LoadSnd(162246701,false,1,1) | |
| 323 | LasLoopSnd = LoadSnd(162246683,true,1,1) | |
| 324 | ChatSnd = LoadSnd(565939471,false,1,1) | |
| 325 | RStompSnd = LoadSnd(2760979,false,1,1) | |
| 326 | SuperSnd = LoadSnd(178452241,false,1,1) | |
| 327 | GunFlameSnd = LoadSnd(32656754,false,1,1) | |
| 328 | OrbSnd = LoadSnd(233091161,false,1,1) | |
| 329 | ElectricSnd = LoadSnd(231917975,false,1,1) | |
| 330 | LightsOutSnd = LoadSnd(231917794,false,1,1) | |
| 331 | SkyKickSnd = LoadSnd(12222208,false,1,.5) | |
| 332 | SkyBeamSnd = LoadSnd(260433522,false,1,1) | |
| 333 | TargetSnd = LoadSnd(613361563,false,1,1) | |
| 334 | SV1Snd = LoadSnd(28144425,false,1,.265) | |
| 335 | SV2Snd = LoadSnd(2697431,false,1,.3) | |
| 336 | SVHitSnd = LoadSnd(62339698,false,1,.3) | |
| 337 | IceBreakSnd = LoadSnd(357568316,false,1,1) | |
| 338 | FreezeSnd = LoadSnd(203936153,false,1,1) | |
| 339 | IceBreak2Snd = LoadSnd(87015121,false,1,1) | |
| 340 | ||
| 341 | --Play Sound in Part-- | |
| 342 | function PlaySnd(snd,part) | |
| 343 | local sound = snd:Clone() | |
| 344 | sound.PlayOnRemove = true | |
| 345 | sound.Parent = part | |
| 346 | sound:Destroy() | |
| 347 | end | |
| 348 | ||
| 349 | --Target Select-- | |
| 350 | function TargetSelect(person) | |
| 351 | local dd=coroutine.wrap(function() | |
| 352 | if targetted ~= person then | |
| 353 | targetted = person | |
| 354 | for i = 0,30,10 do | |
| 355 | wait(.05) | |
| 356 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
| 357 | end | |
| 358 | end | |
| 359 | end) | |
| 360 | dd() | |
| 361 | end | |
| 362 | ||
| 363 | --Damage Function-- | |
| 364 | function dealdmg(dude,damage,env,toim) | |
| 365 | hurt = coroutine.wrap(function(dude2,damage2,env2,toim2) | |
| 366 | if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
| |
| 367 | TargetSelect(dude) | |
| 368 | dude.Humanoid.MaxHealth = 100 | |
| 369 | finaldmg = damage + math.random(-env,env) | |
| 370 | dude.Humanoid.Health = dude.Humanoid.Health - finaldmg | |
| 371 | local vall = Instance.new("ObjectValue",dude)
| |
| 372 | vall.Name = "IsHit" | |
| 373 | debby:AddItem(vall,toim) | |
| 374 | local naeeym2 = Instance.new("BillboardGui",dude)
| |
| 375 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 376 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 377 | naeeym2.Adornee = dude.Head | |
| 378 | naeeym2.Name = "TalkingBillBoard" | |
| 379 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 380 | tecks2.BackgroundTransparency = 1 | |
| 381 | tecks2.BorderSizePixel = 0 | |
| 382 | tecks2.Text = "-"..finaldmg | |
| 383 | tecks2.Font = "SciFi" | |
| 384 | tecks2.FontSize = "Size24" | |
| 385 | tecks2.TextStrokeTransparency = 0 | |
| 386 | tecks2.TextColor3 = Color3.new(1,0.6,0) | |
| 387 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 388 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 389 | if freezeatk == true and dude:FindFirstChild("IsFrozen")==nil then
| |
| 390 | local fre = coroutine.wrap(function() | |
| 391 | local v = Instance.new("BoolValue",dude)
| |
| 392 | v.Name = "IsFrozen" | |
| 393 | debby:AddItem(v,4) | |
| 394 | local p = Instance.new("Part",dude)
| |
| 395 | p.Transparency = .5 | |
| 396 | p.Anchored = 1 | |
| 397 | p.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 398 | p.Material = "Ice" | |
| 399 | p.Size = Vector3.new(5,7,5) | |
| 400 | p.CFrame = dude.Head.CFrame - Vector3.new(0,1.5,0) | |
| 401 | local w = Instance.new("Weld",p)
| |
| 402 | w.Part0 = dude.Head | |
| 403 | w.Part1 = p | |
| 404 | wait(2) | |
| 405 | for i = 1,4 do | |
| 406 | p.Transparency = p.Transparency + .1 | |
| 407 | wait(.01) | |
| 408 | end | |
| 409 | p:Destroy() | |
| 410 | end) | |
| 411 | fre() | |
| 412 | end | |
| 413 | for i = 1, 5 do | |
| 414 | wait(.1) | |
| 415 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 416 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 417 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 418 | end | |
| 419 | naeeym2:Destroy() | |
| 420 | end | |
| 421 | end) | |
| 422 | hurt(dude,damage,env,toim) | |
| 423 | end | |
| 424 | ||
| 425 | --Explode Hitbox-- | |
| 426 | function ExHitbox(rad,pos,damage,env,toim) | |
| 427 | local E = Instance.new("Explosion")
| |
| 428 | E.Position = pos | |
| 429 | E.Parent = game.Workspace | |
| 430 | E.BlastRadius = rad | |
| 431 | E.BlastPressure = 0 | |
| 432 | E.Visible = false | |
| 433 | E.Hit:connect(function(hit) | |
| 434 | if hit.Parent:FindFirstChild("Humanoid")~=nil then
| |
| 435 | dealdmg(hit.Parent,damage,env,toim) | |
| 436 | end | |
| 437 | end) | |
| 438 | end | |
| 439 | ||
| 440 | --Chat Function-- | |
| 441 | function chatfunc(text) | |
| 442 | local chat = coroutine.wrap(function() | |
| 443 | if chara:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 444 | chara:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 445 | end | |
| 446 | local naeeym2 = Instance.new("BillboardGui",chara)
| |
| 447 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 448 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 449 | naeeym2.Adornee = chara.Head | |
| 450 | naeeym2.Name = "TalkingBillBoard" | |
| 451 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 452 | tecks2.BackgroundTransparency = 1 | |
| 453 | tecks2.BorderSizePixel = 0 | |
| 454 | tecks2.Text = "" | |
| 455 | tecks2.Font = "Fantasy" | |
| 456 | tecks2.FontSize = "Size24" | |
| 457 | tecks2.TextStrokeTransparency = 0 | |
| 458 | tecks2.TextColor3 = Color3.new(1,1,1) | |
| 459 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 460 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 461 | for i = 1,string.len(text),1 do | |
| 462 | PlaySnd(ChatSnd,chara) | |
| 463 | tecks2.Text = string.sub(text,1,i) | |
| 464 | wait(0.01) | |
| 465 | end | |
| 466 | wait(1) | |
| 467 | for i = 1, 5 do | |
| 468 | wait(.01) | |
| 469 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 470 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 471 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 472 | end | |
| 473 | naeeym2:Destroy() | |
| 474 | end) | |
| 475 | chat() | |
| 476 | end | |
| 477 | ||
| 478 | function onChatted(msg) | |
| 479 | chatfunc(msg) | |
| 480 | end | |
| 481 | player.Chatted:connect(onChatted) | |
| 482 | ||
| 483 | --Punch Hit Effect-- | |
| 484 | function PunchEff(pos) | |
| 485 | local p = Instance.new("Part",game.Workspace)
| |
| 486 | p.Size = Vector3.new(0,0,0) | |
| 487 | p.BrickColor = BrickColor.new("White")
| |
| 488 | p.Material = "Neon" | |
| 489 | p.Anchored = true | |
| 490 | p.CanCollide = false | |
| 491 | p.CFrame = pos | |
| 492 | local pm = Instance.new("SpecialMesh",p)
| |
| 493 | pm.MeshType = "Sphere" | |
| 494 | local disp = coroutine.wrap(function() | |
| 495 | for i = 1, 4 do | |
| 496 | wait(.01) | |
| 497 | p.Transparency = p.Transparency + .2 | |
| 498 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
| 499 | end | |
| 500 | wait(.01) | |
| 501 | p:Destroy() | |
| 502 | end) | |
| 503 | disp() | |
| 504 | end | |
| 505 | ||
| 506 | --Blade Hit Effect-- | |
| 507 | function SlashEff(pos) | |
| 508 | local p = Instance.new("Part",game.Workspace)
| |
| 509 | p.Size = Vector3.new(0,0,0) | |
| 510 | p.BrickColor = BrickColor.new("White")
| |
| 511 | p.Material = "Neon" | |
| 512 | p.Anchored = true | |
| 513 | p.CanCollide = false | |
| 514 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 515 | local pm = Instance.new("SpecialMesh",p)
| |
| 516 | pm.MeshType = "Sphere" | |
| 517 | pm.Scale = Vector3.new(2.5,0,2.5) | |
| 518 | local disp = coroutine.wrap(function() | |
| 519 | for i = 1, 4 do | |
| 520 | wait(.01) | |
| 521 | p.Transparency = p.Transparency + .2 | |
| 522 | pm.Scale = pm.Scale + Vector3.new(0,30,0) | |
| 523 | end | |
| 524 | wait(.01) | |
| 525 | p:Destroy() | |
| 526 | end) | |
| 527 | disp() | |
| 528 | end | |
| 529 | ||
| 530 | --Super Pause-- | |
| 531 | function SuperPause() | |
| 532 | SuperSnd:Play() | |
| 533 | local p = Instance.new("Part",game.Workspace)
| |
| 534 | p.Size = Vector3.new(0,0,0) | |
| 535 | p.BrickColor = BrickColor.new("White")
| |
| 536 | p.Material = "Neon" | |
| 537 | p.Anchored = true | |
| 538 | p.CanCollide = false | |
| 539 | p.CFrame = chara.Torso.CFrame | |
| 540 | local pm = Instance.new("SpecialMesh",p)
| |
| 541 | pm.MeshType = "Sphere" | |
| 542 | local disp = coroutine.wrap(function() | |
| 543 | for i = 1, 4 do | |
| 544 | wait(.01) | |
| 545 | p.Transparency = p.Transparency + .2 | |
| 546 | pm.Scale = pm.Scale + Vector3.new(20,20,20) | |
| 547 | end | |
| 548 | wait(.01) | |
| 549 | p:Destroy() | |
| 550 | end) | |
| 551 | disp() | |
| 552 | end | |
| 553 | ||
| 554 | --Punch Touch-- | |
| 555 | dela = .5 | |
| 556 | punchactive = false | |
| 557 | function punchhit(hit) | |
| 558 | if punchactive == true then | |
| 559 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 560 | dealdmg(hit.Parent,15,2,dela) | |
| 561 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 562 | PunchEff(Emit2Part.CFrame) | |
| 563 | end | |
| 564 | end | |
| 565 | end | |
| 566 | Emit2Part.Touched:connect(punchhit) | |
| 567 | EmitPart.Touched:connect(punchhit) | |
| 568 | ||
| 569 | --Kick Touch-- | |
| 570 | kickactive = false | |
| 571 | dkickactive = false | |
| 572 | skickactive = false | |
| 573 | didskick = false | |
| 574 | lkickactive = false | |
| 575 | function kickhit(hit) | |
| 576 | if kickactive == true then | |
| 577 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 578 | dealdmg(hit.Parent,15,2,dela) | |
| 579 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 580 | PunchEff(hit.CFrame) | |
| 581 | if dkickactive == true then | |
| 582 | hit.Parent.Humanoid.PlatformStand = true | |
| 583 | hit.Parent.Head.CFrame = CFrame.new(hit.Parent.Head.Position.x,hit.Parent.Head.Position.y,hit.Parent.Head.Position.z) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
| 584 | wait(3) | |
| 585 | hit.Parent.Humanoid.PlatformStand = false | |
| 586 | end | |
| 587 | if skickactive == true then | |
| 588 | local bodpf = Instance.new("BodyPosition",hit.Parent.Head)
| |
| 589 | bodpf.MaxForce = Vector3.new(10000,10000,10000) | |
| 590 | bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3) | |
| 591 | debby:AddItem(bodpf,3.5) | |
| 592 | didskick = true | |
| 593 | end | |
| 594 | if lkickactive == true then | |
| 595 | if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then
| |
| 596 | hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy()
| |
| 597 | end | |
| 598 | local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
| |
| 599 | bfos.P = 20000 | |
| 600 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 601 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0) | |
| 602 | debby:AddItem(bfos,.3) | |
| 603 | end | |
| 604 | end | |
| 605 | end | |
| 606 | end | |
| 607 | chara["Left Leg"].Touched:connect(kickhit) | |
| 608 | chara["Right Leg"].Touched:connect(kickhit) | |
| 609 | ||
| 610 | --Blade Touch-- | |
| 611 | dela = .5 | |
| 612 | bladeactive = false | |
| 613 | function bladehit(hit) | |
| 614 | if bladeactive == true then | |
| 615 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 616 | dealdmg(hit.Parent,20,2,dela) | |
| 617 | PlaySnd(HitSnd,hit.Parent.Head) | |
| 618 | SlashEff(hit.CFrame) | |
| 619 | if iaidoatk == true then | |
| 620 | local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
| |
| 621 | bfos.P = 20000 | |
| 622 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 623 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 10 | |
| 624 | wait(1) | |
| 625 | for i = 1, 30 do | |
| 626 | wait(.0001) | |
| 627 | dealdmg(hit.Parent,2,1,0) | |
| 628 | PlaySnd(HitSnd,hit.Parent.Head) | |
| 629 | SlashEff(hit.CFrame) | |
| 630 | end | |
| 631 | bfos:Destroy() | |
| 632 | end | |
| 633 | if dfreatk == true then | |
| 634 | hit.Parent.Humanoid.Health = 0 | |
| 635 | hit.Parent.Humanoid:Destroy() | |
| 636 | PlaySnd(FreezeSnd,hit.Parent.Head) | |
| 637 | local cc = hit.Parent:GetChildren() | |
| 638 | for i = 1, #cc do | |
| 639 | if cc[i].ClassName == "Part" or cc[i].ClassName == "MeshPart" then | |
| 640 | cc[i].Anchored = true | |
| 641 | cc[i].BrickColor = BrickColor.new("Pastel blue-green")
| |
| 642 | cc[i].Material = "Ice" | |
| 643 | end | |
| 644 | end | |
| 645 | wait(2) | |
| 646 | PlaySnd(IceBreak2Snd,hit.Parent.Head) | |
| 647 | for i = 1, #cc do | |
| 648 | if cc[i].ClassName == "Part" or cc[i].ClassName == "MeshPart" then | |
| 649 | for i = 1, 6 do | |
| 650 | local ice = Instance.new("Part",game.Workspace)
| |
| 651 | ice.Size = Vector3.new(.4,.4,.4) | |
| 652 | ice.Material = "Ice" | |
| 653 | ice.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 654 | ice.Position = cc[i].Position | |
| 655 | ice.CFrame = cc[i].CFrame | |
| 656 | debby:AddItem(ice,5) | |
| 657 | end | |
| 658 | cc[i]:Destroy() | |
| 659 | end | |
| 660 | end | |
| 661 | end | |
| 662 | end | |
| 663 | end | |
| 664 | end | |
| 665 | Hitbox.Touched:connect(bladehit) | |
| 666 | ||
| 667 | --Material Return-- | |
| 668 | gprop = {}
| |
| 669 | function materialhit(hit) | |
| 670 | if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
| |
| 671 | gprop = {hit.BrickColor,hit.Material}
| |
| 672 | end | |
| 673 | end | |
| 674 | chara["Left Leg"].Touched:connect(materialhit) | |
| 675 | chara["Right Leg"].Touched:connect(materialhit) | |
| 676 | ||
| 677 | --Clerp Animations-- | |
| 678 | TC = chara.HumanoidRootPart.RootJoint | |
| 679 | HC = chara.Torso.Neck | |
| 680 | RAC = chara.Torso["Right Shoulder"] | |
| 681 | LAC = chara.Torso["Left Shoulder"] | |
| 682 | RLC = chara.Torso["Right Hip"] | |
| 683 | LLC = chara.Torso["Left Hip"] | |
| 684 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 685 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 686 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 687 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 688 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 689 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 690 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 691 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 692 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 693 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 694 | RW = Instance.new("Weld",HC.Parent)
| |
| 695 | RW.Part1 = HC.Parent | |
| 696 | RW.Part0 = chara["Right Arm"] | |
| 697 | RW.C0 = RWF | |
| 698 | LW = Instance.new("Weld",HC.Parent)
| |
| 699 | LW.Part1 = HC.Parent | |
| 700 | LW.Part0 = chara["Left Arm"] | |
| 701 | LW.C0 = LWF | |
| 702 | RLW = nil | |
| 703 | LLW = nil | |
| 704 | ||
| 705 | function Sheath(stype) | |
| 706 | KWeld:Destroy() | |
| 707 | if stype == 1 then --Sheathed | |
| 708 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(-3.81469727e-006, 1.79999161, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 709 | elseif stype == 2 then --Unsheathed | |
| 710 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, -4.76837158e-007, 1, 0, 0, 0, 0, -1, 0, 1, 0),})
| |
| 711 | elseif stype == 3 then --Unsheathed, Pointing | |
| 712 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -0.500001907, -0.0999999046, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 713 | elseif stype == 4 then --Unsheathed, Down | |
| 714 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, 4.76837158e-007, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
| |
| 715 | end | |
| 716 | end | |
| 717 | ||
| 718 | function AddLegWelds() | |
| 719 | RLW = Instance.new("Weld",chara["Right Leg"])
| |
| 720 | RLW.Part1 = HC.Parent | |
| 721 | RLW.Part0 = chara["Right Leg"] | |
| 722 | RLW.C0 = RLWF | |
| 723 | LLW = Instance.new("Weld",chara["Left Leg"])
| |
| 724 | LLW.Part1 = HC.Parent | |
| 725 | LLW.Part0 = chara["Left Leg"] | |
| 726 | LLW.C0 = LLWF | |
| 727 | end | |
| 728 | ||
| 729 | function DestroyLegWelds() | |
| 730 | 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),})
| |
| 731 | 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),})
| |
| 732 | RLW:Destroy() | |
| 733 | LLW:Destroy() | |
| 734 | end | |
| 735 | ||
| 736 | function clerp(a,b,c) | |
| 737 | return a:lerp(b,c) | |
| 738 | end | |
| 739 | ||
| 740 | --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 741 | --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
| 742 | --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 743 | --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
| 744 | ||
| 745 | TC.C0 = TCF | |
| 746 | HC.C0 = HCF | |
| 747 | RW.C0 = RWF | |
| 748 | LW.C0 = LWF | |
| 749 | ||
| 750 | --Idle Clerp-- | |
| 751 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)) | |
| 752 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
| 753 | IRWF = (RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0) | |
| 754 | ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
| 755 | ||
| 756 | TC.C0 = ITCF | |
| 757 | HC.C0 = IHCF | |
| 758 | RW.C0 = IRWF | |
| 759 | LW.C0 = ILWF | |
| 760 | ||
| 761 | ||
| 762 | --Punch-- | |
| 763 | function Punch() | |
| 764 | del = true | |
| 765 | atkd = true | |
| 766 | chara.Humanoid.WalkSpeed = 0 | |
| 767 | punchactive = true | |
| 768 | wait(.01) | |
| 769 | for i = 0,.75,.25 do | |
| 770 | wait(.01) | |
| 771 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 772 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 773 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 774 | end | |
| 775 | for i = 0,.6,.2 do | |
| 776 | wait(.01) | |
| 777 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 778 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 779 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 780 | end | |
| 781 | chara.Humanoid.WalkSpeed = 32 | |
| 782 | punchactive = false | |
| 783 | del = false | |
| 784 | end | |
| 785 | ||
| 786 | --Kick Atk-- | |
| 787 | function KickAtk() | |
| 788 | del = true | |
| 789 | atkd = true | |
| 790 | chara.Humanoid.WalkSpeed = 0 | |
| 791 | kickactive = true | |
| 792 | AddLegWelds() | |
| 793 | for i = 0,.75,.25 do | |
| 794 | wait(.05) | |
| 795 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i) | |
| 796 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i) | |
| 797 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i) | |
| 798 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 799 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
| 800 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
| 801 | end | |
| 802 | for i = 0,.75,.25 do | |
| 803 | wait(.05) | |
| 804 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i) | |
| 805 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i) | |
| 806 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i) | |
| 807 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 808 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i) | |
| 809 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i) | |
| 810 | end | |
| 811 | DestroyLegWelds() | |
| 812 | kickactive = false | |
| 813 | chara.Humanoid.WalkSpeed = 32 | |
| 814 | del = false | |
| 815 | end | |
| 816 | ||
| 817 | --Slash Attack-- | |
| 818 | function SlashAtk() | |
| 819 | del = true | |
| 820 | atkd = true | |
| 821 | chara.Humanoid.WalkSpeed = 0 | |
| 822 | bladeactive = true | |
| 823 | Sheath(2) | |
| 824 | SwingSnd:Play() | |
| 825 | wait(.01) | |
| 826 | for i = 0,.75,.25 do | |
| 827 | wait(.01) | |
| 828 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 829 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 830 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 831 | end | |
| 832 | wait(.5) | |
| 833 | Sheath(3) | |
| 834 | bladeactive = false | |
| 835 | for i = 0,.6,.2 do | |
| 836 | wait(.01) | |
| 837 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 838 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 839 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 840 | end | |
| 841 | Sheath(1) | |
| 842 | del = false | |
| 843 | chara.Humanoid.WalkSpeed = 32 | |
| 844 | end | |
| 845 | ||
| 846 | --Bandit Revolver-- | |
| 847 | function BanditRevolver() | |
| 848 | del = true | |
| 849 | atkd = true | |
| 850 | chara.Humanoid.WalkSpeed = 0 | |
| 851 | kickactive = true | |
| 852 | dkickactive = true | |
| 853 | chatfunc("Bandit Revolver!")
| |
| 854 | AddLegWelds() | |
| 855 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 856 | bfos.P = 10000 | |
| 857 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 858 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 50 | |
| 859 | for i = 0,.6,.2 do | |
| 860 | wait(.01) | |
| 861 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
| 862 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i) | |
| 863 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
| 864 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
| 865 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 866 | end | |
| 867 | for i = 0,1,.25 do | |
| 868 | wait(.01) | |
| 869 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i) | |
| 870 | end | |
| 871 | for i = 0,1,.25 do | |
| 872 | wait(.01) | |
| 873 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i) | |
| 874 | end | |
| 875 | for i = 0,1,.25 do | |
| 876 | wait(.01) | |
| 877 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i) | |
| 878 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
| 879 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i) | |
| 880 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i) | |
| 881 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i) | |
| 882 | end | |
| 883 | DestroyLegWelds() | |
| 884 | dkickactive = false | |
| 885 | kickactive = false | |
| 886 | chara.Humanoid.WalkSpeed = 32 | |
| 887 | bfos:Destroy() | |
| 888 | del = false | |
| 889 | end | |
| 890 | ||
| 891 | --Freezer Kick-- | |
| 892 | function FlipKickEffect(pos) | |
| 893 | local p = Instance.new("Part",game.Workspace)
| |
| 894 | p.Size = Vector3.new(0,0,0) | |
| 895 | p.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 896 | p.Material = "Ice" | |
| 897 | p.Anchored = true | |
| 898 | p.CanCollide = false | |
| 899 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 900 | local pm = Instance.new("BlockMesh",p)
| |
| 901 | local disp = coroutine.wrap(function() | |
| 902 | for i = 1, 4 do | |
| 903 | wait(.01) | |
| 904 | p.Transparency = p.Transparency + .2 | |
| 905 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
| 906 | end | |
| 907 | wait(.01) | |
| 908 | p:Destroy() | |
| 909 | end) | |
| 910 | disp() | |
| 911 | end | |
| 912 | function FlipKick() | |
| 913 | del = true | |
| 914 | atkd = true | |
| 915 | chatfunc("Freezer Kick!")
| |
| 916 | SkyKickSnd.Pitch = 1.5 | |
| 917 | AddLegWelds() | |
| 918 | kickactive = true | |
| 919 | lkickactive = true | |
| 920 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 921 | bfos.P = 10000 | |
| 922 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 923 | bfos.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector * 20 | |
| 924 | SkyKickSnd:Play() | |
| 925 | for i = 0,.6,.2 do | |
| 926 | wait(.001) | |
| 927 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 928 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 929 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
| 930 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
| 931 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 932 | FlipKickEffect(chara["Left Leg"].CFrame - chara["Left Leg"].CFrame.upVector*1.5) | |
| 933 | end | |
| 934 | bfos:Destroy() | |
| 935 | kickactive = false | |
| 936 | lkickactive = false | |
| 937 | wait(.1) | |
| 938 | for i = 0,1,.25 do | |
| 939 | wait(.001) | |
| 940 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),ITCF,.4+i) | |
| 941 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i) | |
| 942 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i) | |
| 943 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i) | |
| 944 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i) | |
| 945 | end | |
| 946 | DestroyLegWelds() | |
| 947 | del = false | |
| 948 | end | |
| 949 | ||
| 950 | --Tundra Spike-- | |
| 951 | function TundraSpike() | |
| 952 | del = true | |
| 953 | atkd = true | |
| 954 | freezeatk = true | |
| 955 | --Grunt2Snd:Play() | |
| 956 | chara.Humanoid.WalkSpeed = 0 | |
| 957 | chatfunc("Tundra Spike!")
| |
| 958 | Sheath(4) | |
| 959 | AddLegWelds() | |
| 960 | for i = 0,.6,.2 do | |
| 961 | wait(.01) | |
| 962 | TC.C0 = clerp(ITCF,(TCF - Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 963 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 964 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(1,1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-90)),.4+i) | |
| 965 | LLW.C0 = clerp(LLWF,LLWF + Vector3.new(0,-1,.5),.4+i) | |
| 966 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,.5),.4+i) | |
| 967 | end | |
| 968 | local num = 10 | |
| 969 | local oopos = chara.HumanoidRootPart.CFrame-Vector3.new(0,2,0) | |
| 970 | for i = 1,4 do | |
| 971 | local cpos = oopos+(oopos.lookVector*num) | |
| 972 | wait(.1) | |
| 973 | local beam = Instance.new("Part",game.Workspace)
| |
| 974 | beam.Size = Vector3.new(0,0,0) | |
| 975 | beam.CFrame = CFrame.new(cpos.x,cpos.y,cpos.z) | |
| 976 | beam.CanCollide = false | |
| 977 | beam.Anchored = true | |
| 978 | beam.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 979 | beam.Reflectance = .2 | |
| 980 | local mehs = Instance.new("SpecialMesh",beam)
| |
| 981 | mehs.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 982 | mehs.Offset = Vector3.new(0,-3,0) | |
| 983 | mehs.Scale = Vector3.new(2,20,2) | |
| 984 | local trace = Instance.new("Part",game.Workspace)
| |
| 985 | trace.Size = Vector3.new(0,0,0) | |
| 986 | trace.CFrame = CFrame.new(cpos.x,cpos.y,cpos.z) | |
| 987 | trace.CanCollide = false | |
| 988 | trace.Anchored = true | |
| 989 | trace.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 990 | trace.Reflectance = .2 | |
| 991 | local tmesh2 = Instance.new("SpecialMesh",trace)
| |
| 992 | tmesh2.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
| 993 | tmesh2.Scale = Vector3.new(6,1,6) | |
| 994 | PlaySnd(GunFlameSnd,beam) | |
| 995 | ExHitbox(6,beam.Position,30,2,.5) | |
| 996 | tracegrow = coroutine.wrap(function() | |
| 997 | for i = -6,6,2 do | |
| 998 | wait(.01) | |
| 999 | mehs.Offset = Vector3.new(0,i,0) | |
| 1000 | end | |
| 1001 | wait(1) | |
| 1002 | for i = 1, 9 do | |
| 1003 | wait(.01) | |
| 1004 | beam.Transparency = beam.Transparency + .1 | |
| 1005 | trace.Transparency = trace.Transparency + .1 | |
| 1006 | end | |
| 1007 | beam:Destroy() | |
| 1008 | trace:Destroy() | |
| 1009 | end) | |
| 1010 | tracegrow() | |
| 1011 | num = num + 10 | |
| 1012 | end | |
| 1013 | wait(.1) | |
| 1014 | for i = 0,.6,.2 do | |
| 1015 | wait(.01) | |
| 1016 | TC.C0 = clerp(ITCF,(TCF - Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1017 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1018 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(1,1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-90)),.6-i) | |
| 1019 | LLW.C0 = clerp(LLWF,LLWF + Vector3.new(0,-1,.5),.6-i) | |
| 1020 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,.5),.6-i) | |
| 1021 | end | |
| 1022 | DestroyLegWelds() | |
| 1023 | Sheath(1) | |
| 1024 | freezeatk = false | |
| 1025 | del = false | |
| 1026 | chara.Humanoid.WalkSpeed = 32 | |
| 1027 | end | |
| 1028 | ||
| 1029 | --Claw Dash-- | |
| 1030 | function ClawDash() | |
| 1031 | del = true | |
| 1032 | atkd = true | |
| 1033 | chara.Humanoid.WalkSpeed = 0 | |
| 1034 | chatfunc("Without a trace...")
| |
| 1035 | for i = 0,.6,.2 do | |
| 1036 | wait(.01) | |
| 1037 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1038 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1039 | RW.C0 = clerp(IRWF,RWF,.4+i) | |
| 1040 | end | |
| 1041 | local hittpart = Instance.new("Part",chara)
| |
| 1042 | hittpart.Anchored = true | |
| 1043 | hittpart.Size = Vector3.new(5,5,1) | |
| 1044 | hittpart.Transparency = 1 | |
| 1045 | hittpart.CFrame = chara.HumanoidRootPart.CFrame + (chara.HumanoidRootPart.CFrame.lookVector * 3) | |
| 1046 | local sawlookv = hittpart.CFrame.lookVector | |
| 1047 | local hitm = Instance.new("BlockMesh",hittpart)
| |
| 1048 | hitm.Scale = Vector3.new(0,0,0) | |
| 1049 | local trpart = Instance.new("Part",chara)
| |
| 1050 | trpart.Anchored = true | |
| 1051 | trpart.Size = Vector3.new(0,0,0) | |
| 1052 | trpart.CFrame = hittpart.CFrame | |
| 1053 | trpart.BrickColor = BrickColor.new("Really black")
| |
| 1054 | local trmesh = Instance.new("FileMesh",trpart)
| |
| 1055 | trmesh.Scale = Vector3.new(0,0,0) | |
| 1056 | trmesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1057 | local hdec1 = Instance.new("Decal",hittpart)
| |
| 1058 | hdec1.Texture = "http://www.roblox.com/asset/?id=362691215" | |
| 1059 | hdec1.Face = "Front" | |
| 1060 | local hdec2 = hdec1:Clone() | |
| 1061 | hdec2.Parent = hittpart | |
| 1062 | hdec2.Face = "Back" | |
| 1063 | OrbSnd:Play() | |
| 1064 | ElectricSnd:Play() | |
| 1065 | for i = 1, 5 do | |
| 1066 | hitm.Scale = hitm.Scale + Vector3.new(.2,.2,0) | |
| 1067 | trmesh.Scale = trmesh.Scale + Vector3.new(1,1,.1) | |
| 1068 | wait(.01) | |
| 1069 | end | |
| 1070 | hittpart.Touched:connect(function(hit) | |
| 1071 | if hit.Parent ~= chara then | |
| 1072 | ClawDashSnd:Play() | |
| 1073 | hittpart:Destroy() | |
| 1074 | trpart:Destroy() | |
| 1075 | AddLegWelds() | |
| 1076 | freezeatk = true | |
| 1077 | chatfunc("Winter's Riposte!")
| |
| 1078 | Sheath(4) | |
| 1079 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
| 1080 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
| 1081 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
| 1082 | LW.C0 = (LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)) | |
| 1083 | LLW.C0 = LLWF | |
| 1084 | RLW.C0 = RLWF + Vector3.new(0,-1,1) | |
| 1085 | for i = 1, 10 do | |
| 1086 | local trace = Instance.new("Part",game.Workspace)
| |
| 1087 | trace.CanCollide = false | |
| 1088 | trace.Size = Vector3.new(1,1,1) | |
| 1089 | trace.Transparency = 1 | |
| 1090 | trace.BottomSurface = 0 | |
| 1091 | trace.TopSurface = 0 | |
| 1092 | trace.Anchored = true | |
| 1093 | trace.CFrame = (chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * (5*i)) | |
| 1094 | debby:AddItem(trace,1) | |
| 1095 | ExHitbox(10,trace.Position,40,2,.1) | |
| 1096 | end | |
| 1097 | local trace = Instance.new("Part",game.Workspace)
| |
| 1098 | trace.BrickColor = BrickColor.new("Toothpaste")
| |
| 1099 | trace.CanCollide = false | |
| 1100 | trace.Size = Vector3.new(1,1,1) | |
| 1101 | trace.BottomSurface = 0 | |
| 1102 | trace.TopSurface = 0 | |
| 1103 | trace.Anchored = true | |
| 1104 | trace.CFrame = chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * 25 | |
| 1105 | trace.Material = "Neon" | |
| 1106 | local tracem = Instance.new("SpecialMesh",trace)
| |
| 1107 | tracem.MeshType = "Sphere" | |
| 1108 | tracem.Scale = Vector3.new(1,1,50) | |
| 1109 | local disp = coroutine.wrap(function() | |
| 1110 | for i = 1, 9 do | |
| 1111 | wait(.01) | |
| 1112 | trace.Transparency = trace.Transparency + .1 | |
| 1113 | end | |
| 1114 | wait(.01) | |
| 1115 | trace:Destroy() | |
| 1116 | end) | |
| 1117 | disp() | |
| 1118 | chara.HumanoidRootPart.CFrame = chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * 60 | |
| 1119 | wait(1) | |
| 1120 | Sheath(3) | |
| 1121 | for i = 0,.6,.2 do | |
| 1122 | wait(.05) | |
| 1123 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.6-i) | |
| 1124 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.6-i) | |
| 1125 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.6-i) | |
| 1126 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.6-i) | |
| 1127 | LLW.C0 = LLWF | |
| 1128 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,1),.6-i) | |
| 1129 | end | |
| 1130 | Sheath(1) | |
| 1131 | freezeatk = false | |
| 1132 | del = false | |
| 1133 | DestroyLegWelds() | |
| 1134 | chara.Humanoid.WalkSpeed = 32 | |
| 1135 | end | |
| 1136 | end) | |
| 1137 | for i = 1, 60 do | |
| 1138 | wait(.01) | |
| 1139 | hittpart.CFrame=hittpart.CFrame*CFrame.fromEulerAnglesXYZ(0,0,math.pi/64) | |
| 1140 | end | |
| 1141 | if hittpart ~= nil then | |
| 1142 | for i = 1, 5 do | |
| 1143 | hitm.Scale = hitm.Scale - Vector3.new(.2,.2,0) | |
| 1144 | trmesh.Scale = trmesh.Scale - Vector3.new(1,1,.1) | |
| 1145 | wait(.01) | |
| 1146 | end | |
| 1147 | hittpart:Destroy() | |
| 1148 | trpart:Destroy() | |
| 1149 | for i = 0,.6,.2 do | |
| 1150 | wait(.01) | |
| 1151 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1152 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1153 | RW.C0 = clerp(IRWF,RWF,.6-i) | |
| 1154 | end | |
| 1155 | del = false | |
| 1156 | chara.Humanoid.WalkSpeed = 32 | |
| 1157 | end | |
| 1158 | end | |
| 1159 | ||
| 1160 | --Blast-- | |
| 1161 | function PsychoBlast() | |
| 1162 | del = true | |
| 1163 | atkd = true | |
| 1164 | freezeatk = true | |
| 1165 | chatfunc("Icy Storm!")
| |
| 1166 | for i = 0,.6,.2 do | |
| 1167 | wait(.01) | |
| 1168 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1169 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1170 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1171 | end | |
| 1172 | for i = 1,3 do | |
| 1173 | wait(.1) | |
| 1174 | SkyBeamSnd:Play() | |
| 1175 | local target = nil | |
| 1176 | if targetted ~= nil then | |
| 1177 | target = targetted.Head.Position | |
| 1178 | elseif targetted == nil then | |
| 1179 | target = Mouse.Hit.p | |
| 1180 | end | |
| 1181 | local dir = (target - (chara.HumanoidRootPart.Position + Vector3.new(0,50,0))).unit | |
| 1182 | local pos = (chara.HumanoidRootPart.Position + Vector3.new(0,50,0)) + (dir*1) | |
| 1183 | local missile = Instance.new("Part",game.Workspace)
| |
| 1184 | missile.Material = "Neon" | |
| 1185 | missile.Size = Vector3.new(1,1,3) | |
| 1186 | missile.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 1187 | missile.Reflectance = .2 | |
| 1188 | missile.Name = "Blast" | |
| 1189 | missile.CanCollide = false | |
| 1190 | missile.TopSurface = 0 | |
| 1191 | missile.BottomSurface = 0 | |
| 1192 | missile.Position = chara.HumanoidRootPart.Position + Vector3.new(0,50,0) | |
| 1193 | missile.CFrame = CFrame.new(pos,pos+dir) | |
| 1194 | missile.Velocity = (target - (chara.HumanoidRootPart.Position + Vector3.new(0,50,0))).unit*150 | |
| 1195 | -- local p1mit = Instance.new("ParticleEmitter",missile)
| |
| 1196 | -- p1mit.Texture = "rbxasset://textures/particles/fire_main.dds" | |
| 1197 | -- p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Deep orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
| |
| 1198 | -- p1mit.LightEmission = 1 | |
| 1199 | -- p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1200 | -- p1mit.Lifetime = NumberRange.new(1) | |
| 1201 | -- p1mit.Rate = 100 | |
| 1202 | -- p1mit.Rotation = NumberRange.new(0,359) | |
| 1203 | -- p1mit.RotSpeed = NumberRange.new(100) | |
| 1204 | -- p1mit.Speed = NumberRange.new(0) | |
| 1205 | local mesh1 = Instance.new("SpecialMesh",missile)
| |
| 1206 | mesh1.MeshId = "http://www.roblox.com/asset/?id=20518365" | |
| 1207 | local force = Instance.new("BodyForce")
| |
| 1208 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1209 | force.Parent = missile | |
| 1210 | -- local bfo = Instance.new("BodyVelocity",missile)
| |
| 1211 | -- bfo.P = 100000 | |
| 1212 | -- bfo.MaxForce = Vector3.new(bfo.P,bfo.P,bfo.P) | |
| 1213 | -- bfo.Velocity = (chara.HumanoidRootPart.CFrame.lookVector*100)+(chara.HumanoidRootPart.CFrame.rightVector*i) | |
| 1214 | -- debby:AddItem(bfo,1) | |
| 1215 | missile.Touched:connect(function(hit) | |
| 1216 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then | |
| 1217 | missile.Anchored = true | |
| 1218 | ExHitbox(3,missile.Position,15,1,.1) | |
| 1219 | PlaySnd(IceBreakSnd,missile) | |
| 1220 | for i = 1, 6 do | |
| 1221 | local ice = Instance.new("Part",game.Workspace)
| |
| 1222 | ice.Size = Vector3.new(.4,.4,.4) | |
| 1223 | ice.Material = "Ice" | |
| 1224 | ice.BrickColor = BrickColor.new("Pastel blue-green")
| |
| 1225 | ice.Position = missile.Position | |
| 1226 | ice.CFrame = missile.CFrame | |
| 1227 | debby:AddItem(ice,5) | |
| 1228 | end | |
| 1229 | missile:Destroy() | |
| 1230 | end | |
| 1231 | end) | |
| 1232 | debby:AddItem(missile,10) | |
| 1233 | end | |
| 1234 | for i = 0,.6,.2 do | |
| 1235 | wait(.01) | |
| 1236 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1237 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1238 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1239 | end | |
| 1240 | freezeatk = false | |
| 1241 | del = false | |
| 1242 | end | |
| 1243 | ||
| 1244 | --Cold Wind-- | |
| 1245 | function ColdWind() | |
| 1246 | del = true | |
| 1247 | atkd = true | |
| 1248 | chara.Humanoid.WalkSpeed = 0 | |
| 1249 | bladeactive = true | |
| 1250 | freezeatk = true | |
| 1251 | chatfunc("Cold Wind!")
| |
| 1252 | Sheath(2) | |
| 1253 | GunFlameSnd:Play() | |
| 1254 | SwingSnd:Play() | |
| 1255 | p1mit.Enabled = true | |
| 1256 | wait(.01) | |
| 1257 | for i = 0,.75,.25 do | |
| 1258 | wait(.01) | |
| 1259 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1260 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1261 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1262 | end | |
| 1263 | wait(.5) | |
| 1264 | Sheath(3) | |
| 1265 | p1mit.Enabled = false | |
| 1266 | bladeactive = false | |
| 1267 | freezeatk = false | |
| 1268 | for i = 0,.6,.2 do | |
| 1269 | wait(.01) | |
| 1270 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 1271 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 1272 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1273 | end | |
| 1274 | Sheath(1) | |
| 1275 | del = false | |
| 1276 | chara.Humanoid.WalkSpeed = 32 | |
| 1277 | end | |
| 1278 | ||
| 1279 | --Cutting Hailstone-- | |
| 1280 | function CHailstone() | |
| 1281 | del = true | |
| 1282 | atkd = true | |
| 1283 | local bpo = Instance.new("BodyPosition",chara.Torso)
| |
| 1284 | bpo.MaxForce = Vector3.new(0,10000,0) | |
| 1285 | bpo.Position = chara.Torso.Position + Vector3.new(0,50,0) | |
| 1286 | AddLegWelds() | |
| 1287 | for i = 0,.6,.2 do | |
| 1288 | wait(.01) | |
| 1289 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,.5),.4+i) | |
| 1290 | end | |
| 1291 | wait(.5) | |
| 1292 | bpo.D = 100 | |
| 1293 | chatfunc("Cutting Hailstone!")
| |
| 1294 | p1mit.Enabled = true | |
| 1295 | chara.Humanoid.WalkSpeed = 8 | |
| 1296 | Sheath(4) | |
| 1297 | Swing2Snd:Play() | |
| 1298 | wait(.01) | |
| 1299 | for i = 0,.75,.25 do | |
| 1300 | wait(.01) | |
| 1301 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1302 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i) | |
| 1303 | RW.C0 = IRWF | |
| 1304 | end | |
| 1305 | bladeactive = true | |
| 1306 | freezeatk = true | |
| 1307 | bpo.Position = chara.Torso.Position - Vector3.new(0,50,0) | |
| 1308 | wait(1) | |
| 1309 | for i = 0,.6,.2 do | |
| 1310 | wait(.01) | |
| 1311 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,.5),.6-i) | |
| 1312 | end | |
| 1313 | DestroyLegWelds() | |
| 1314 | bpo:Destroy() | |
| 1315 | Sheath(3) | |
| 1316 | p1mit.Enabled = false | |
| 1317 | bladeactive = false | |
| 1318 | freezeatk = false | |
| 1319 | for i = 0,.6,.2 do | |
| 1320 | wait(.01) | |
| 1321 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 1322 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i) | |
| 1323 | RW.C0 = IRWF | |
| 1324 | end | |
| 1325 | Sheath(1) | |
| 1326 | del = false | |
| 1327 | chara.Humanoid.WalkSpeed = 32 | |
| 1328 | end | |
| 1329 | ||
| 1330 | --Iaido Frost-- | |
| 1331 | function IaidoFrost() | |
| 1332 | del = true | |
| 1333 | atkd = true | |
| 1334 | chara.Humanoid.WalkSpeed = 8 | |
| 1335 | SuperPause() | |
| 1336 | chatfunc("Iaido Frost!")
| |
| 1337 | for i = 0,.75,.25 do | |
| 1338 | wait(.01) | |
| 1339 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1340 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1341 | end | |
| 1342 | wait(1) | |
| 1343 | bladeactive = true | |
| 1344 | iaidoatk = true | |
| 1345 | Sheath(2) | |
| 1346 | GunFlameSnd:Play() | |
| 1347 | Swing2Snd:Play() | |
| 1348 | p1mit.Enabled = true | |
| 1349 | wait(.01) | |
| 1350 | for i = 0,.75,.25 do | |
| 1351 | wait(.01) | |
| 1352 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1353 | end | |
| 1354 | wait(1) | |
| 1355 | Sheath(3) | |
| 1356 | p1mit.Enabled = false | |
| 1357 | bladeactive = false | |
| 1358 | iaidoatk = false | |
| 1359 | for i = 0,.6,.2 do | |
| 1360 | wait(.01) | |
| 1361 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 1362 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 1363 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1364 | end | |
| 1365 | Sheath(1) | |
| 1366 | del = false | |
| 1367 | chara.Humanoid.WalkSpeed = 32 | |
| 1368 | end | |
| 1369 | ||
| 1370 | --Coldheart-- | |
| 1371 | function Coldheart() | |
| 1372 | del = true | |
| 1373 | atkd = true | |
| 1374 | chara.Humanoid.WalkSpeed = 8 | |
| 1375 | SuperPause() | |
| 1376 | chatfunc("Cold Heart...")
| |
| 1377 | for i = 0,.75,.25 do | |
| 1378 | wait(.01) | |
| 1379 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1380 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1381 | end | |
| 1382 | wait(1) | |
| 1383 | chara.Humanoid.WalkSpeed = 0 | |
| 1384 | bladeactive = true | |
| 1385 | dfreatk = true | |
| 1386 | GunFlameSnd:Play() | |
| 1387 | SwingSnd:Play() | |
| 1388 | p1mit.Enabled = true | |
| 1389 | Sheath(3) | |
| 1390 | wait(.01) | |
| 1391 | for i = 0,.75,.25 do | |
| 1392 | wait(.01) | |
| 1393 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1394 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1395 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1396 | end | |
| 1397 | wait(1) | |
| 1398 | for i = 0,.6,.2 do | |
| 1399 | wait(.01) | |
| 1400 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1401 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1402 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1403 | end | |
| 1404 | Sheath(1) | |
| 1405 | chara.Humanoid.WalkSpeed = 32 | |
| 1406 | bladeactive = false | |
| 1407 | dfreatk = false | |
| 1408 | p1mit.Enabled = false | |
| 1409 | del = false | |
| 1410 | end | |
| 1411 | ||
| 1412 | --Harbinger of Winter-- | |
| 1413 | function HarbingerW() | |
| 1414 | del = true | |
| 1415 | atkd = true | |
| 1416 | chara.Humanoid.WalkSpeed = 8 | |
| 1417 | SuperPause() | |
| 1418 | chatfunc("Harbinger of Winter!")
| |
| 1419 | for i = 0,.75,.25 do | |
| 1420 | wait(.01) | |
| 1421 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1422 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1423 | end | |
| 1424 | wait(1) | |
| 1425 | chara.Humanoid.WalkSpeed = 0 | |
| 1426 | bladeactive = true | |
| 1427 | dela = 0 | |
| 1428 | Sheath(3) | |
| 1429 | wait(.01) | |
| 1430 | for i = 0,.75,.25 do | |
| 1431 | wait(.01) | |
| 1432 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1433 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1434 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1435 | end | |
| 1436 | for i = 1, 40 do | |
| 1437 | wait(.001) | |
| 1438 | PlaySnd(Swing2Snd,chara) | |
| 1439 | RW.C0 = ((RWF + Vector3.new(math.random(-.2,.8),1.4,math.random(-.8,.8)))) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1440 | end | |
| 1441 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1442 | wait(1) | |
| 1443 | for i = 0,.6,.2 do | |
| 1444 | wait(.01) | |
| 1445 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1446 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1447 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1448 | end | |
| 1449 | Sheath(1) | |
| 1450 | chara.Humanoid.WalkSpeed = 32 | |
| 1451 | bladeactive = false | |
| 1452 | dela = .5 | |
| 1453 | del = false | |
| 1454 | end | |
| 1455 | ||
| 1456 | --Lock On-- | |
| 1457 | function LockOn() | |
| 1458 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
| |
| 1459 | TargetSelect(Mouse.Target.Parent) | |
| 1460 | TargetSnd:Play() | |
| 1461 | wait(.05) | |
| 1462 | TargetSnd:Play() | |
| 1463 | else end | |
| 1464 | end | |
| 1465 | ||
| 1466 | --Mouse Functions-- | |
| 1467 | orbpushactive = false | |
| 1468 | del = false | |
| 1469 | input = "" | |
| 1470 | letterd = 0 | |
| 1471 | ltoim = 0 | |
| 1472 | function onKeyDown(key) | |
| 1473 | if del == false then | |
| 1474 | if key == "q" then | |
| 1475 | LockOn() | |
| 1476 | elseif key =="e" then | |
| 1477 | TundraSpike() | |
| 1478 | elseif key =="r" then | |
| 1479 | PsychoBlast() | |
| 1480 | elseif key =="t" then | |
| 1481 | ClawDash() | |
| 1482 | elseif key =="y" then | |
| 1483 | Coldheart() | |
| 1484 | elseif key =="u" then | |
| 1485 | FlipKick() | |
| 1486 | elseif key == "z" then | |
| 1487 | Punch() | |
| 1488 | elseif key == "x" then | |
| 1489 | KickAtk() | |
| 1490 | elseif key == "p" then | |
| 1491 | BanditRevolver() | |
| 1492 | elseif key == "c" then | |
| 1493 | SlashAtk() | |
| 1494 | elseif key =="f" then | |
| 1495 | CHailstone() | |
| 1496 | elseif key == "g" then | |
| 1497 | ColdWind() | |
| 1498 | elseif key == "h" then | |
| 1499 | IaidoFrost() | |
| 1500 | elseif key == "j" then | |
| 1501 | HarbingerW() | |
| 1502 | ||
| 1503 | elseif (key == "w" or key == "a" or key == "s" or key == "d") then | |
| 1504 | input=input..key | |
| 1505 | print(input) | |
| 1506 | letterd = letterd + 1 | |
| 1507 | ltoim = ltoim + 10 | |
| 1508 | if letterd > 5 then | |
| 1509 | input = "" | |
| 1510 | letterd = 0 | |
| 1511 | ltoim = 0 | |
| 1512 | end | |
| 1513 | elseif key == "m" then | |
| 1514 | if Music.IsPlaying == true then | |
| 1515 | Music:Stop() | |
| 1516 | elseif Music.IsPlaying == false then | |
| 1517 | Music:Play() | |
| 1518 | end | |
| 1519 | end | |
| 1520 | end | |
| 1521 | end | |
| 1522 | combo = 0 | |
| 1523 | ||
| 1524 | --Mouse Activation-- | |
| 1525 | if Mouse then | |
| 1526 | Mouse.KeyDown:connect(onKeyDown) | |
| 1527 | end | |
| 1528 | ||
| 1529 | --Loop Function-- | |
| 1530 | walking = false | |
| 1531 | toim = 0 | |
| 1532 | while true do | |
| 1533 | wait() | |
| 1534 | toim = toim + .1 | |
| 1535 | ltoim = ltoim - 1 | |
| 1536 | if ltoim < 1 then | |
| 1537 | input = "" | |
| 1538 | end | |
| 1539 | if atkd == true then | |
| 1540 | TC.C0 = TCF | |
| 1541 | HC.C0 = HCF | |
| 1542 | RW.C0 = RWF | |
| 1543 | LW.C0 = LWF | |
| 1544 | atkd = false | |
| 1545 | end | |
| 1546 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1547 | if torvel < 1 and walking == true and del == false and atkd == false then | |
| 1548 | for i = 0,1,.5 do | |
| 1549 | wait(.001) | |
| 1550 | if del == false then | |
| 1551 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),ITCF,i) | |
| 1552 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),IHCF,i) | |
| 1553 | RW.C0 = IRWF | |
| 1554 | LW.C0 = clerp((LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,i) | |
| 1555 | end | |
| 1556 | end | |
| 1557 | walking = false | |
| 1558 | elseif torvel > 1 and walking == false and del == false and atkd == false then | |
| 1559 | for i = 0,1,.5 do | |
| 1560 | wait(.001) | |
| 1561 | if del == false then | |
| 1562 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 1563 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),i) | |
| 1564 | RW.C0 = IRWF | |
| 1565 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),i) | |
| 1566 | end | |
| 1567 | end | |
| 1568 | walking = true | |
| 1569 | else | |
| 1570 | end | |
| 1571 | imgl.Rotation = imgl.Rotation + 3 | |
| 1572 | if targetted ~= nil then | |
| 1573 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 1574 | crosshair.Enabled = true | |
| 1575 | elseif targetted == nil then | |
| 1576 | crosshair.Adornee = nil | |
| 1577 | crosshair.Enabled = false | |
| 1578 | end | |
| 1579 | end |