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