SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players").iigalacticeight
|
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | local Player,game,owner = owner,game | |
| 3 | - | Character = Player.Character |
| 3 | + | local RealPlayer = Player |
| 4 | do | |
| 5 | - | PlayerGui = Player.PlayerGui |
| 5 | + | print("FE Compatibility code by Mokiros")
|
| 6 | local rp = RealPlayer | |
| 7 | - | Backpack = Player.Backpack |
| 7 | + | script.Parent = rp.Character |
| 8 | ||
| 9 | - | Torso = Character.Torso |
| 9 | + | --RemoteEvent for communicating |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | - | Head = Character.Head |
| 11 | + | Event.Name = "UserInput_Event" |
| 12 | ||
| 13 | - | Humanoid = Character.Humanoid |
| 13 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 14 | local function fakeEvent() | |
| 15 | - | LeftArm = Character["Left Arm"] |
| 15 | + | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
|
| 16 | t.connect = t.Connect | |
| 17 | - | LeftLeg = Character["Left Leg"] |
| 17 | + | return t |
| 18 | end | |
| 19 | - | RightArm = Character["Right Arm"] |
| 19 | + | |
| 20 | --Creating fake input objects with fake variables | |
| 21 | - | RightLeg = Character["Right Leg"] |
| 21 | + | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | - | LS = Torso["Left Shoulder"] |
| 23 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | - | LH = Torso["Left Hip"] |
| 25 | + | end} |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | - | RS = Torso["Right Shoulder"] |
| 27 | + | CAS.UnbindAction = CAS.BindAction |
| 28 | ||
| 29 | - | RH = Torso["Right Hip"] |
| 29 | + | --This function will trigger the events that have been :Connect()'ed |
| 30 | local function te(self,ev,...) | |
| 31 | - | Neck = Torso.Neck |
| 31 | + | local t = m[ev] |
| 32 | if t and t._fakeEvent then | |
| 33 | - | it=Instance.new |
| 33 | + | for _,f in pairs(t.Functions) do |
| 34 | f(...) | |
| 35 | - | vt=Vector3.new |
| 35 | + | end |
| 36 | end | |
| 37 | - | cf=CFrame.new |
| 37 | + | end |
| 38 | m.TrigEvent = te | |
| 39 | - | euler=CFrame.fromEulerAnglesXYZ |
| 39 | + | UIS.TrigEvent = te |
| 40 | ||
| 41 | - | angles=CFrame.Angles |
| 41 | + | Event.OnServerEvent:Connect(function(plr,io) |
| 42 | if plr~=rp then return end | |
| 43 | - | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 43 | + | m.Target = io.Target |
| 44 | m.Hit = io.Hit | |
| 45 | - | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 45 | + | if not io.isMouse then |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | - | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
| 47 | + | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | - | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
| 49 | + | end |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | - | attack = false |
| 51 | + | for _,k in pairs(t.Keys) do |
| 52 | if k==io.KeyCode then | |
| 53 | - | attacktype = 1 |
| 53 | + | t.Function(t.Name,io.UserInputState,io) |
| 54 | end | |
| 55 | - | damage = 5 |
| 55 | + | |
| 56 | end | |
| 57 | - | oridamage = 50 |
| 57 | + | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | - | attackdebounce = false |
| 59 | + | |
| 60 | end) | |
| 61 | - | ssdebounce=false |
| 61 | + | Event.Parent = NLS([==[ |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | - | MMouse=nil |
| 63 | + | local Event = script:WaitForChild("UserInput_Event")
|
| 64 | ||
| 65 | - | combo=0 |
| 65 | + | local Mouse = Player:GetMouse() |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | - | magic=true |
| 67 | + | local input = function(io,a) |
| 68 | if a then return end | |
| 69 | - | RootPart=Character.HumanoidRootPart |
| 69 | + | --Since InputObject is a client-side instance, we create and pass table instead |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | - | RootJoint=RootPart.RootJoint |
| 71 | + | end |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | - | RootCF=euler(-1.57,0,3.14) |
| 73 | + | UIS.InputEnded:Connect(input) |
| 74 | ||
| 75 | - | --player |
| 75 | + | local h,t |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | - | player = nil |
| 77 | + | --If player is not moving their mouse, client won't fire events |
| 78 | while wait(1/30) do | |
| 79 | - | --save shoulders |
| 79 | + | if h~=Mouse.Hit or t~=Mouse.Target then |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | - | RSH, LSH = nil, nil |
| 81 | + | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 82 | end | |
| 83 | - | --welds |
| 83 | + | end]==],Player.Character) |
| 84 | ||
| 85 | - | RW, LW = Instance.new("Weld"), Instance.new("Weld")
|
| 85 | + | ----Sandboxed game object that allows the usage of client-side methods and services |
| 86 | --Real game object | |
| 87 | - | RW.Name="Right Shoulder" LW.Name="Left Shoulder" |
| 87 | + | local _rg = game |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | - | if Character:findFirstChild("Rapier",true) ~= nil then
|
| 93 | + | if s then return s[k] end |
| 94 | end, | |
| 95 | - | Character:findFirstChild("Rapier",true).Parent = nil
|
| 95 | + | __newindex = function(self,k,v) |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | - | end |
| 97 | + | if s then s[k]=v end |
| 98 | end, | |
| 99 | - | if Character:findFirstChild("Block",true) ~= nil then
|
| 99 | + | __call = function(self,...) |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | - | Character:findFirstChild("Block",true).Parent = nil
|
| 101 | + | if s then return s(...) end |
| 102 | end | |
| 103 | - | end |
| 103 | + | } |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | - | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) |
| 109 | + | --Fake game object |
| 110 | local g = {
| |
| 111 | - | local fp = it("Part")
|
| 111 | + | GetService = function(self,s) |
| 112 | return self[s] | |
| 113 | - | fp.formFactor = formfactor |
| 113 | + | end, |
| 114 | Players = FakeService({
| |
| 115 | - | fp.Parent = parent |
| 115 | + | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
|
| 116 | },"Players"), | |
| 117 | - | fp.Reflectance = reflectance |
| 117 | + | UserInputService = FakeService(UIS,"UserInputService"), |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | - | fp.Transparency = transparency |
| 119 | + | } |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | - | fp.CanCollide = false |
| 121 | + | g.service = g.GetService |
| 122 | ||
| 123 | - | fp.Locked=true |
| 123 | + | g.RunService = FakeService({
|
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | - | fp.BrickColor = brickcolor |
| 125 | + | BindToRenderStep = function(self,name,_,fun) |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | - | fp.Name = name |
| 127 | + | end, |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | - | fp.Size = size |
| 129 | + | self._btrs[name]:Disconnect() |
| 130 | end, | |
| 131 | - | fp.Position = Torso.Position |
| 131 | + | },"RunService") |
| 132 | ||
| 133 | - | fp.BottomSurface="Smooth" |
| 133 | + | setmetatable(g,{
|
| 134 | __index=function(self,s) | |
| 135 | - | fp.TopSurface="Smooth" |
| 135 | + | return _rg:GetService(s) or typeof(_rg[s])=="function" |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | - | fp:BreakJoints() |
| 137 | + | end, |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | - | return fp |
| 139 | + | __call = fsmt.__call |
| 140 | }) | |
| 141 | - | end |
| 141 | + | --Changing owner to fake player object to support owner:GetMouse() |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | ||
| 145 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
| 145 | + | |
| 146 | ||
| 147 | - | local mesh = it(Mesh) |
| 147 | + | |
| 148 | --//====================================================\\-- | |
| 149 | - | mesh.Parent = part |
| 149 | + | --|| CREATED BY SHACKLUSTER |
| 150 | --\\====================================================//-- | |
| 151 | - | if Mesh=="SpecialMesh" then |
| 151 | + | |
| 152 | -- | |
| 153 | - | mesh.MeshType = meshtype |
| 153 | + | local textblin = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
|
| 154 | textblin.Adornee = cykablyat | |
| 155 | - | mesh.MeshId = meshid |
| 155 | + | textblin.Name = "ky" |
| 156 | textblin.Size = UDim2.new(2, 0, 1.2, 0) | |
| 157 | textblin.StudsOffset = Vector3.new(-5, 3, 0) | |
| 158 | local textblin= Instance.new("TextLabel", textblin)
| |
| 159 | - | mesh.Offset=offset |
| 159 | + | textblin.Size = UDim2.new(6, 0, 1, 0) |
| 160 | textblin.FontSize = "Size14" | |
| 161 | - | mesh.Scale=scale |
| 161 | + | textblin.TextScaled = true |
| 162 | textblin.TextTransparency = 0 | |
| 163 | - | return mesh |
| 163 | + | textblin.BackgroundTransparency = 1 |
| 164 | textblin.TextTransparency = 0 | |
| 165 | textblin.TextStrokeTransparency = 0 | |
| 166 | textblin.Font = "Cartoon" | |
| 167 | textblin.TextStrokeColor3 = Color3.new(255,255,255) | |
| 168 | textblin.Text = "Thanos" | |
| 169 | - | function weld(parent,part0,part1,c0) |
| 169 | + | |
| 170 | p = game.Players.LocalPlayer | |
| 171 | - | local weld = it("Weld")
|
| 171 | + | char = p.Character |
| 172 | torso = char.Torso | |
| 173 | - | weld.Parent = parent |
| 173 | + | hed = char.Head |
| 174 | neck = char.Torso.Neck | |
| 175 | - | weld.Part0 = part0 |
| 175 | + | hum = char.Humanoid |
| 176 | hum.MaxHealth = math.huge | |
| 177 | - | weld.Part1 = part1 |
| 177 | + | local msg = game:GetService("Chat")
|
| 178 | torso.BrickColor = BrickColor.new("Bright purple")
| |
| 179 | - | weld.C0 = c0 |
| 179 | + | hed.BrickColor = BrickColor.new("Bright purple")
|
| 180 | char["Right Arm"].BrickColor = BrickColor.new("Bright purple")
| |
| 181 | - | return weld |
| 181 | + | char["Left Arm"].BrickColor = BrickColor.new("Bright purple")
|
| 182 | char["Left Leg"].BrickColor = BrickColor.new("Bright purple")
| |
| 183 | char["Right Leg"].BrickColor = BrickColor.new("Bright purple")
| |
| 184 | ypcall(function() | |
| 185 | shirt = Instance.new("Shirt", char)
| |
| 186 | shirt.Name = "Shirt" | |
| 187 | - | local modelzorz = Instance.new("Model")
|
| 187 | + | pants = Instance.new("Pants", char)
|
| 188 | pants.Name = "Pants" | |
| 189 | - | modelzorz.Parent = Character |
| 189 | + | char.Shirt.ShirtTemplate = "rbxassetid://1539852026" |
| 190 | char.Pants.PantsTemplate = "rbxassetid://1539857183" | |
| 191 | - | modelzorz.Name = "Rapier" |
| 191 | + | end) |
| 192 | hed.face.Texture = "http://www.roblox.com/asset/?id=405704563" | |
| 193 | -- | |
| 194 | local Player = game:GetService('Players').LocalPlayer
| |
| 195 | - | local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part1",vt(1,1,1))
|
| 195 | + | repeat wait() until Player.Character |
| 196 | local Character = Player.Character | |
| 197 | - | local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
|
| 197 | + | |
| 198 | --All The Settings for Trails in this Script | |
| 199 | - | local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
|
| 199 | + | TrailSettings = {
|
| 200 | Lifetime = 0.1, | |
| 201 | - | local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
|
| 201 | + | Texture = 'rbxassetid://31270182', |
| 202 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
| 203 | - | local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
|
| 203 | + | Color1 = ColorSequence.new(BrickColor.new('Bright purple').Color,BrickColor.new('Bright purple').Color),
|
| 204 | Color2 = ColorSequence.new(BrickColor.new('Bright purple').Color,BrickColor.new('Bright purple').Color),
| |
| 205 | - | local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
|
| 205 | + | AllBody = true, |
| 206 | UpperBodyOnly = false, | |
| 207 | - | local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
|
| 207 | + | LowerBodyOnly = false, |
| 208 | Accessories = false, | |
| 209 | - | local prt8=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
|
| 209 | + | Extras = true, |
| 210 | R15 = false, --Change to true if you're using R15 | |
| 211 | - | local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(1,1,1))
|
| 211 | + | R15Parts = {
|
| 212 | 'UpperTorso', | |
| 213 | - | local prt10=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
|
| 213 | + | 'LowerTorso', |
| 214 | } | |
| 215 | - | local prt11=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
|
| 215 | + | } |
| 216 | ||
| 217 | - | local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
|
| 217 | + | local Trail; --Making other Trails uses this in this Script |
| 218 | ||
| 219 | - | local prt13=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part13",vt(0.5,4,0.5))
|
| 219 | + | --UpperBody Function |
| 220 | UpperBody = function() | |
| 221 | if TrailSettings.R15 == false then | |
| 222 | A0 = Instance.new('Attachment',Character.Torso)
| |
| 223 | - | local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.2,1,0.2))
|
| 223 | + | A1 = Instance.new('Attachment',Character.Head)
|
| 224 | A2 = Instance.new('Attachment',Character['Right Arm'])
| |
| 225 | - | local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,0.5,0.2))
|
| 225 | + | A3 = Instance.new('Attachment',Character['Left Arm'])
|
| 226 | Trail = Instance.new('Trail',Character)
| |
| 227 | - | local msh3=mesh("SpecialMesh",prt3,"Sphere","",vt(0,0,0),vt(0.1,0.6,0.1))
|
| 227 | + | Trail.Attachment0 = A0 |
| 228 | Trail.Attachment1 = A1 | |
| 229 | - | local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.3,0.2,0.05))
|
| 229 | + | Trail.Texture = TrailSettings.Texture |
| 230 | Trail.Color = TrailSettings.Color1 | |
| 231 | - | local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.05,0.2,0.3))
|
| 231 | + | Trail.Lifetime = TrailSettings.Lifetime |
| 232 | local Trail2 = Trail:Clone() | |
| 233 | - | local msh6=mesh("SpecialMesh",prt6,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
|
| 233 | + | Trail2.Parent = Character |
| 234 | Trail2.Attachment1 = A2 | |
| 235 | - | local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(0.1,0.5,0.1))
|
| 235 | + | local Trail3 = Trail:Clone() |
| 236 | Trail3.Parent = Character | |
| 237 | - | local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(0.4,0.5,0.4))
|
| 237 | + | Trail3.Attachment1 = A3 |
| 238 | local Trail6 = Trail:Clone() | |
| 239 | - | local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.3,0.05,0.3))
|
| 239 | + | Trail6.Parent = Character |
| 240 | Trail6.Attachment0 = A1 | |
| 241 | - | local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(0.2,0.1,0.2))
|
| 241 | + | Trail6.Attachment1 = A2 |
| 242 | local Trail7 = Trail:Clone() | |
| 243 | - | local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,1,0.2))
|
| 243 | + | Trail7.Parent = Character |
| 244 | Trail7.Attachment0 = A1 | |
| 245 | - | local msh12=mesh("SpecialMesh",prt12,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,3,0.2))
|
| 245 | + | Trail7.Attachment1 = A3 |
| 246 | else | |
| 247 | - | local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
|
| 247 | + | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
|
| 248 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
| |
| 249 | A1 = Instance.new('Attachment',Character.Head)
| |
| 250 | A2 = Instance.new('Attachment',Character['RightUpperArm'])
| |
| 251 | - | local wld1=weld(prt1,prt1,Torso,euler(-2,0,0)*cf(1,0.5,1.5)) |
| 251 | + | A2R = Instance.new('Attachment',Character['RightLowerArm'])
|
| 252 | A3 = Instance.new('Attachment',Character['LeftUpperArm'])
| |
| 253 | - | local wld2=weld(prt2,prt2,prt1,cf(0,0.3,0)) |
| 253 | + | A3R = Instance.new('Attachment',Character['LeftLowerArm'])
|
| 254 | Trail = Instance.new('Trail',Character)
| |
| 255 | - | local wld3=weld(prt3,prt3,prt2,cf(0,0.3,0)) |
| 255 | + | Trail.Attachment0 = A0 |
| 256 | Trail.Attachment1 = A1 | |
| 257 | - | local wld4=weld(prt4,prt4,prt2,cf(0,0.3,0)) |
| 257 | + | Trail.Texture = TrailSettings.Texture |
| 258 | Trail.Color = TrailSettings.Color1 | |
| 259 | - | local wld5=weld(prt5,prt5,prt2,cf(0,0.3,0)) |
| 259 | + | Trail.Lifetime = TrailSettings.Lifetime |
| 260 | local Trail2 = Trail:Clone() | |
| 261 | - | local wld6=weld(prt6,prt6,prt1,cf(0,-0.5,0)) |
| 261 | + | Trail2.Parent = Character |
| 262 | Trail2.Attachment1 = A2 | |
| 263 | - | local wld7=weld(prt7,prt7,prt6,cf(0,-0.25,0)) |
| 263 | + | local Trail3 = Trail:Clone() |
| 264 | Trail3.Parent = Character | |
| 265 | - | local wld8=weld(prt8,prt8,prt7,cf(0,0,0)) |
| 265 | + | Trail3.Attachment1 = A3 |
| 266 | local Trail6 = Trail:Clone() | |
| 267 | - | local wld9=weld(prt9,prt9,prt7,cf(0,-0.3,0)) |
| 267 | + | Trail6.Parent = Character |
| 268 | Trail6.Attachment0 = A1 | |
| 269 | - | local wld10=weld(prt10,prt10,prt9,cf(0,-0.05,0)) |
| 269 | + | Trail6.Attachment1 = A2 |
| 270 | local Trail7 = Trail:Clone() | |
| 271 | - | local wld11=weld(prt11,prt11,prt10,cf(0,-0.5,0)) |
| 271 | + | Trail7.Parent = Character |
| 272 | Trail7.Attachment0 = A1 | |
| 273 | - | local wld12=weld(prt12,prt12,prt11,cf(0,-1.5,0)) |
| 273 | + | Trail7.Attachment1 = A3 |
| 274 | --R15 Trails | |
| 275 | - | local wld13=weld(prt13,prt13,prt12,cf(0,0,0)) |
| 275 | + | local Trail1R = Trail:Clone() |
| 276 | Trail1R.Parent = Character | |
| 277 | Trail1R.Attachment1 = A2R | |
| 278 | local Trail2R = Trail:Clone() | |
| 279 | - | numb=0 |
| 279 | + | Trail2R.Parent = Character |
| 280 | Trail2R.Attachment1 = A3R | |
| 281 | - | for i=1,4 do |
| 281 | + | local Trail6R = Trail:Clone() |
| 282 | Trail6.Parent = Character | |
| 283 | - | local prt13=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part13",vt(1,1,1))
|
| 283 | + | Trail6.Attachment0 = A1 |
| 284 | Trail6.Attachment1 = A2R | |
| 285 | - | local prt14=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part14",vt(1,1,1))
|
| 285 | + | local Trail7R = Trail:Clone() |
| 286 | Trail7.Parent = Character | |
| 287 | - | local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
|
| 287 | + | Trail7.Attachment0 = A1 |
| 288 | Trail7.Attachment1 = A3R | |
| 289 | - | local prt16=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part16",vt(1,1,1))
|
| 289 | + | |
| 290 | end | |
| 291 | ||
| 292 | --Lower Body Function | |
| 293 | - | local msh13=mesh("SpecialMesh",prt13,"Wedge","",vt(0,0,0),vt(0.05,0.5,0.5))
|
| 293 | + | LowerBody = function() |
| 294 | if TrailSettings.R15 == false then | |
| 295 | - | local msh14=mesh("SpecialMesh",prt14,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.3))
|
| 295 | + | A4 = Instance.new('Attachment',Character['Right Leg'])
|
| 296 | A5 = Instance.new('Attachment',Character['Left Leg'])
| |
| 297 | - | local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(0.052,0.3,0.2))
|
| 297 | + | local Trail4 = Trail:Clone() |
| 298 | Trail4.Parent = Character | |
| 299 | - | local msh16=mesh("SpecialMesh",prt16,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.5))
|
| 299 | + | Trail4.Attachment1 = A4 |
| 300 | local Trail5 = Trail:Clone() | |
| 301 | Trail5.Parent = Character | |
| 302 | Trail5.Attachment1 = A5 | |
| 303 | - | local wld13=weld(prt13,prt13,prt6,euler(0,0,3.14)*cf(0,0.2,0.3)*euler(0,numb,0)) |
| 303 | + | local Trail8 = Trail:Clone() |
| 304 | Trail8.Parent = Character | |
| 305 | - | local wld14=weld(prt14,prt14,prt13,euler(-0.3,0,3.14)*cf(0,0.4,0.2)) |
| 305 | + | Trail8.Attachment0 = A2 |
| 306 | Trail8.Attachment1 = A4 | |
| 307 | - | local wld15=weld(prt15,prt15,prt14,euler(-0.2,0,0)*cf(0,-0.3,-0.1)) |
| 307 | + | Trail8.Color = TrailSettings.Color2 |
| 308 | local Trail9 = Trail:Clone() | |
| 309 | - | local wld16=weld(prt16,prt16,prt15,euler(0.5,0,0)*cf(0,-0.3,0)) |
| 309 | + | Trail9.Parent = Character |
| 310 | Trail9.Attachment0 = A3 | |
| 311 | Trail9.Attachment1 = A5 | |
| 312 | Trail9.Color = TrailSettings.Color2 | |
| 313 | - | numb=numb+1.57 |
| 313 | + | local FT = Trail:Clone() |
| 314 | FT.Parent = Character | |
| 315 | FT.Attachment0 = A4 | |
| 316 | FT.Attachment1 = A5 | |
| 317 | FT.Color = TrailSettings.Color2 | |
| 318 | else | |
| 319 | - | numb=0 |
| 319 | + | A4 = Instance.new('Attachment',Character['RightLowerLeg'])
|
| 320 | A4R = Instance.new('Attachment',Character['RightUpperLeg'])
| |
| 321 | - | color="Bright red" |
| 321 | + | A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
|
| 322 | A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
| |
| 323 | - | for i=1,6 do |
| 323 | + | local Trail4 = Trail:Clone() |
| 324 | Trail4.Parent = Character | |
| 325 | - | if i==1 then color="White" elseif i==2 then color="Bright blue" elseif i==3 then color="Bright green" elseif i==4 then color="Black" elseif i==5 then color="Bright red" elseif i==6 then color="Bright yellow" end |
| 325 | + | Trail4.Attachment1 = A4 |
| 326 | local Trail5 = Trail:Clone() | |
| 327 | - | local prt17=part(3,modelzorz,0,0,BrickColor.new(color),"Part17",vt(1,1,1)) |
| 327 | + | Trail5.Parent = Character |
| 328 | Trail5.Attachment1 = A5 | |
| 329 | local Trail8 = Trail:Clone() | |
| 330 | Trail8.Parent = Character | |
| 331 | - | local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.1,0.2,0.1))
|
| 331 | + | Trail8.Attachment0 = A2 |
| 332 | Trail8.Attachment1 = A4 | |
| 333 | Trail8.Color = TrailSettings.Color2 | |
| 334 | local Trail9 = Trail:Clone() | |
| 335 | - | local wld17=weld(prt17,prt17,prt7,cf(0.15,0.13,0)*euler(0,numb,0)) |
| 335 | + | Trail9.Parent = Character |
| 336 | Trail9.Attachment0 = A3 | |
| 337 | Trail9.Attachment1 = A5 | |
| 338 | Trail9.Color = TrailSettings.Color2 | |
| 339 | - | numb=numb+1.046 |
| 339 | + | local FT = Trail:Clone() |
| 340 | FT.Parent = Character | |
| 341 | FT.Attachment0 = A4 | |
| 342 | FT.Attachment1 = A5 | |
| 343 | FT.Color = TrailSettings.Color2 | |
| 344 | --R15 Trails | |
| 345 | - | if (script.Parent.className ~= "HopperBin") then |
| 345 | + | local Trail3R = Trail:Clone() |
| 346 | Trail3R.Parent = Character | |
| 347 | - | Tool = Instance.new("HopperBin")
|
| 347 | + | Trail3R.Attachment1 = A4R |
| 348 | local Trail4R = Trail:Clone() | |
| 349 | - | Tool.Parent = Backpack |
| 349 | + | Trail4R.Parent = Character |
| 350 | Trail4R.Attachment1 = A5R | |
| 351 | - | Tool.Name = "Rapier" |
| 351 | + | local Trail8 = Trail:Clone() |
| 352 | Trail8.Parent = Character | |
| 353 | - | script.Parent = Tool |
| 353 | + | Trail8.Attachment0 = A2R |
| 354 | Trail8.Attachment1 = A4R | |
| 355 | - | end |
| 355 | + | Trail8.Color = TrailSettings.Color2 |
| 356 | local Trail9 = Trail:Clone() | |
| 357 | - | Bin = script.Parent |
| 357 | + | Trail9.Parent = Character |
| 358 | Trail9.Attachment0 = A3R | |
| 359 | Trail9.Attachment1 = A5R | |
| 360 | Trail9.Color = TrailSettings.Color2 | |
| 361 | - | local bg = it("BodyGyro")
|
| 361 | + | local FT2R = Trail:Clone() |
| 362 | FT2R.Parent = Character | |
| 363 | - | bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge |
| 363 | + | FT2R.Attachment0 = A4R |
| 364 | FT2R.Attachment1 = A5R | |
| 365 | - | bg.P = 20e+003 |
| 365 | + | FT2R.Color = TrailSettings.Color2 |
| 366 | end | |
| 367 | - | bg.Parent = nil |
| 367 | + | |
| 368 | ||
| 369 | - | bp=it("BodyPosition")
|
| 369 | + | --All Body Function calling Both Functions |
| 370 | AllBody = function() | |
| 371 | - | bp.P=2000 |
| 371 | + | UpperBody() |
| 372 | LowerBody() | |
| 373 | - | bp.D=100 |
| 373 | + | |
| 374 | ||
| 375 | - | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) |
| 375 | + | --Checking to make sure that Only some Variables are Selected else do All Body |
| 376 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
| 377 | TrailSettings.UpperBodyOnly = false | |
| 378 | TrailSettings.LowerBodyOnly = false | |
| 379 | - | so = function(id,par,vol,pit) |
| 379 | + | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then |
| 380 | TrailSettings.UpperBodyOnly = false | |
| 381 | - | coroutine.resume(coroutine.create(function() |
| 381 | + | TrailSettings.LowerBodyOnly = false |
| 382 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
| 383 | - | local sou = Instance.new("Sound",par or workspace)
|
| 383 | + | TrailSettings.UpperBodyOnly = false |
| 384 | TrailSettings.LowerBodyOnly = false | |
| 385 | - | sou.Volume=vol |
| 385 | + | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then |
| 386 | TrailSettings.AllBody = true | |
| 387 | - | sou.Pitch=pit or 1 |
| 387 | + | TrailSettings.UpperBodyOnly = false |
| 388 | TrailSettings.LowerBodyOnly = false | |
| 389 | - | sou.SoundId=id |
| 389 | + | |
| 390 | ||
| 391 | - | wait() |
| 391 | + | --Call Trail Functions |
| 392 | if TrailSettings.UpperBodyOnly == true then | |
| 393 | - | sou:play() |
| 393 | + | UpperBody() |
| 394 | print('Called Upper Body Trail')
| |
| 395 | - | wait(6) |
| 395 | + | elseif TrailSettings.LowerBodyOnly == true then |
| 396 | LowerBody() | |
| 397 | - | sou:Remove() |
| 397 | + | print('Called Lower Body Trail')
|
| 398 | elseif TrailSettings.AllBody == true then | |
| 399 | - | end)) |
| 399 | + | AllBody() |
| 400 | print('Called Full Body Trail')
| |
| 401 | end | |
| 402 | ||
| 403 | --Trails for Accessories | |
| 404 | if TrailSettings.Accessories == true then | |
| 405 | - | function unequipweld() |
| 405 | + | for Index,Item in pairs(Character:GetChildren()) do |
| 406 | if Item:IsA'Accessory' then | |
| 407 | - | wld1.Part1=Torso |
| 407 | + | local AA = Instance.new('Attachment',Item.Handle)
|
| 408 | local ATrail = Trail:Clone() | |
| 409 | - | wld1.C0=euler(-2,0,0)*cf(1,0.5,1.5) |
| 409 | + | ATrail.Parent = Character |
| 410 | ATrail.Attachment1 = AA | |
| 411 | - | end |
| 411 | + | end |
| 412 | end | |
| 413 | end | |
| 414 | ||
| 415 | - | function equipweld() |
| 415 | + | --Extras |
| 416 | if TrailSettings.Extras == true then | |
| 417 | - | wld1.Part1=LeftArm |
| 417 | + | --Making an Invisible Platform Part |
| 418 | local a = Instance.new('Part',Character)
| |
| 419 | - | wld1.C0=euler(1.57,0,0)*cf(0,1,0) |
| 419 | + | a.CanCollide = false |
| 420 | a.Size = Vector3.new(2,.2,2) | |
| 421 | - | end |
| 421 | + | a.Transparency = 1 |
| 422 | ||
| 423 | --Constantly putting it under your feet | |
| 424 | if TrailSettings.R15 == false then | |
| 425 | - | function hideanim() |
| 425 | + | spawn(function() |
| 426 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 427 | - | equipped=false |
| 427 | + | a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0) |
| 428 | end) | |
| 429 | - | wait(0.1) |
| 429 | + | end) |
| 430 | else | |
| 431 | - | Torso.Neck.C0=necko |
| 431 | + | spawn(function() |
| 432 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 433 | - | RootJoint.C0=RootCF |
| 433 | + | a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0) |
| 434 | end) | |
| 435 | - | unequipweld() |
| 435 | + | end) |
| 436 | end | |
| 437 | - | end |
| 437 | + | |
| 438 | --Make a Trail from both feet to the Platform | |
| 439 | spawn(function() | |
| 440 | repeat wait() until Trail | |
| 441 | - | function equipanim() |
| 441 | + | local AB = Instance.new('Attachment',a)
|
| 442 | local ABT = Trail:Clone() | |
| 443 | - | equipped=true |
| 443 | + | ABT.Parent = Character |
| 444 | ABT.Attachment0 = A4 | |
| 445 | - | wait(0.1) |
| 445 | + | ABT.Attachment1 = AB |
| 446 | ABT.Color = TrailSettings.Color2 | |
| 447 | - | equipweld() |
| 447 | + | local ABT2 = Trail:Clone() |
| 448 | ABT2.Parent = Character | |
| 449 | - | Torso.Neck.C0=necko*euler(0,0,1) |
| 449 | + | ABT2.Attachment0 = A5 |
| 450 | ABT2.Attachment1 = AB | |
| 451 | - | RootJoint.C0=RootCF*euler(0,0,-1) |
| 451 | + | ABT2.Color = TrailSettings.Color2 |
| 452 | end) | |
| 453 | - | RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3) |
| 453 | + | |
| 454 | -- | |
| 455 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 455 | + | |
| 456 | wait(0.2) | |
| 457 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0) |
| 457 | + | |
| 458 | Player = game:GetService("Players").LocalPlayer
| |
| 459 | - | LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0) |
| 459 | + | PlayerGui = Player.PlayerGui |
| 460 | Cam = workspace.CurrentCamera | |
| 461 | - | end |
| 461 | + | Backpack = Player.Backpack |
| 462 | Character = Player.Character | |
| 463 | Humanoid = Character:FindFirstChildOfClass("Humanoid")
| |
| 464 | Mouse = Player:GetMouse() | |
| 465 | - | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants |
| 465 | + | RootPart = Character["HumanoidRootPart"] |
| 466 | Torso = Character["Torso"] | |
| 467 | - | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
| 467 | + | Head = Character["Head"] |
| 468 | RightArm = Character["Right Arm"] | |
| 469 | - | end |
| 469 | + | LeftArm = Character["Left Arm"] |
| 470 | RightLeg = Character["Right Leg"] | |
| 471 | LeftLeg = Character["Left Leg"] | |
| 472 | RootJoint = RootPart["RootJoint"] | |
| 473 | - | function oneslash() |
| 473 | + | Neck = Torso["Neck"] |
| 474 | RightShoulder = Torso["Right Shoulder"] | |
| 475 | - | attack=true |
| 475 | + | LeftShoulder = Torso["Left Shoulder"] |
| 476 | RightHip = Torso["Right Hip"] | |
| 477 | - | for i=0,1,0.1 do |
| 477 | + | LeftHip = Torso["Left Hip"] |
| 478 | local sick = Instance.new("Sound",Character)
| |
| 479 | - | wait() |
| 479 | + | |
| 480 | IT = Instance.new | |
| 481 | - | LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0) |
| 481 | + | CF = CFrame.new |
| 482 | VT = Vector3.new | |
| 483 | - | LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0) |
| 483 | + | RAD = math.rad |
| 484 | C3 = Color3.new | |
| 485 | UD2 = UDim2.new | |
| 486 | BRICKC = BrickColor.new | |
| 487 | - | so("http://roblox.com/asset/?id=10209640",prt12,1,1)
|
| 487 | + | ANGLES = CFrame.Angles |
| 488 | EULER = CFrame.fromEulerAnglesXYZ | |
| 489 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 489 | + | COS = math.cos |
| 490 | ACOS = math.acos | |
| 491 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) |
| 491 | + | SIN = math.sin |
| 492 | ASIN = math.asin | |
| 493 | - | for i=0,1,0.2 do |
| 493 | + | ABS = math.abs |
| 494 | MRANDOM = math.random | |
| 495 | - | wait() |
| 495 | + | FLOOR = math.floor |
| 496 | ||
| 497 | - | Torso.Neck.C0=necko*euler(0,0,1-2*i) |
| 497 | + | --//=================================\\ |
| 498 | --|| USEFUL VALUES | |
| 499 | - | RootJoint.C0=RootCF*euler(0,0,-1+2*i) |
| 499 | + | --\\=================================// |
| 500 | ||
| 501 | - | wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0) |
| 501 | + | Animation_Speed = 3 |
| 502 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 503 | - | LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0) |
| 503 | + | local Speed = 60 |
| 504 | local SIZE = 1.3 | |
| 505 | - | LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0) |
| 505 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 506 | local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 507 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 507 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
| 508 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 509 | - | local Point2 = prt12.CFrame |
| 509 | + | local ANIM = "Idle" |
| 510 | local ATTACK = false | |
| 511 | - | effect("White",0.5,0.1,LastPoint,Point)
|
| 511 | + | local COMBO = 1 |
| 512 | local Rooted = false | |
| 513 | - | LastPoint = Point |
| 513 | + | local SINE = 0 |
| 514 | local CHANGE = 2 / Animation_Speed | |
| 515 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 516 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 517 | - | con1:disconnect() |
| 517 | + | WEAPONGUI.Name = "Big Boie Squad" |
| 518 | local ANIMATOR = Humanoid.Animator | |
| 519 | - | attack=false |
| 519 | + | local ANIMATE = Character.Animate |
| 520 | local UNANCHOR = true | |
| 521 | local KILLCOUNT = 0 | |
| 522 | ||
| 523 | --//=================================\\ | |
| 524 | --\\=================================// | |
| 525 | - | function twoslash() |
| 525 | + | |
| 526 | ||
| 527 | - | attack=true |
| 527 | + | --//=================================\\ |
| 528 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 529 | - | for i=0,1,0.1 do |
| 529 | + | --\\=================================// |
| 530 | ||
| 531 | - | wait() |
| 531 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 532 | ArtificialHB.Name = "ArtificialHB" | |
| 533 | - | RootJoint.C0=RootCF*euler(0,0,1+3.14*i) |
| 533 | + | |
| 534 | script:WaitForChild("ArtificialHB")
| |
| 535 | - | wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0) |
| 535 | + | |
| 536 | frame = Frame_Speed | |
| 537 | - | LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.5+0.07*i,-1.37-0.2*i,0) |
| 537 | + | tf = 0 |
| 538 | allowframeloss = false | |
| 539 | - | LW.C1=cf(0, 0.5, 0) * euler(1-2*i,0,0) |
| 539 | + | tossremainder = false |
| 540 | lastframe = tick() | |
| 541 | script.ArtificialHB:Fire() | |
| 542 | ||
| 543 | - | so("http://roblox.com/asset/?id=10209640",prt12,1,1.1)
|
| 543 | + | game:GetService("RunService").Heartbeat:connect(function(s, p)
|
| 544 | tf = tf + s | |
| 545 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 545 | + | if tf >= frame then |
| 546 | if allowframeloss then | |
| 547 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) |
| 547 | + | script.ArtificialHB:Fire() |
| 548 | lastframe = tick() | |
| 549 | - | for i=0,1,0.2 do |
| 549 | + | else |
| 550 | for i = 1, math.floor(tf / frame) do | |
| 551 | - | wait() |
| 551 | + | script.ArtificialHB:Fire() |
| 552 | end | |
| 553 | - | RootJoint.C0=RootCF*euler(0,0,1+3.14+3.14*i) |
| 553 | + | lastframe = tick() |
| 554 | end | |
| 555 | - | wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0) |
| 555 | + | if tossremainder then |
| 556 | tf = 0 | |
| 557 | - | LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,-1.57,0) |
| 557 | + | else |
| 558 | tf = tf - frame * math.floor(tf / frame) | |
| 559 | - | LW.C1=cf(0, 0.5, 0) * euler(-1+2*i,0,0) |
| 559 | + | |
| 560 | end | |
| 561 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 561 | + | end) |
| 562 | ||
| 563 | - | effect("White",0.5,0.1,LastPoint,Point)
|
| 563 | + | --//=================================\\ |
| 564 | --\\=================================// | |
| 565 | - | LastPoint = Point |
| 565 | + | |
| 566 | --//=================================\\ | |
| 567 | --|| SOME FUNCTIONS | |
| 568 | --\\=================================// | |
| 569 | - | con1:disconnect() |
| 569 | + | |
| 570 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 571 | - | attack=false |
| 571 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
| 572 | end | |
| 573 | ||
| 574 | function PositiveAngle(NUMBER) | |
| 575 | if NUMBER >= 0 then | |
| 576 | NUMBER = 0 | |
| 577 | - | function threeslash() |
| 577 | + | end |
| 578 | return NUMBER | |
| 579 | - | attack=true |
| 579 | + | |
| 580 | ||
| 581 | - | for i=0,1,0.1 do |
| 581 | + | function NegativeAngle(NUMBER) |
| 582 | if NUMBER <= 0 then | |
| 583 | - | wait() |
| 583 | + | NUMBER = 0 |
| 584 | end | |
| 585 | - | RootJoint.C0=RootCF*euler(0,0,1-1*i) |
| 585 | + | return NUMBER |
| 586 | end | |
| 587 | - | Torso.Neck.C0=necko*euler(0,0,-1+1*i) |
| 587 | + | |
| 588 | function Swait(NUMBER) | |
| 589 | - | wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0) |
| 589 | + | if NUMBER == 0 or NUMBER == nil then |
| 590 | ArtificialHB.Event:wait() | |
| 591 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+3.64*i,-1.57+1*i,0) |
| 591 | + | else |
| 592 | for i = 1, NUMBER do | |
| 593 | - | LW.C1=cf(0, 0.5, 0) * euler(1,0,0) |
| 593 | + | ArtificialHB.Event:wait() |
| 594 | end | |
| 595 | end | |
| 596 | end | |
| 597 | - | so("http://roblox.com/asset/?id=10209640",prt12,1,1)
|
| 597 | + | |
| 598 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 599 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 599 | + | local NEWMESH = IT(MESH) |
| 600 | if MESH == "SpecialMesh" then | |
| 601 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) |
| 601 | + | NEWMESH.MeshType = MESHTYPE |
| 602 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 603 | - | for i=0,1,0.2 do |
| 603 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
| 604 | end | |
| 605 | - | wait() |
| 605 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 606 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 607 | - | RootJoint.C0=RootCF*euler(0,0,-1*i) |
| 607 | + | |
| 608 | end | |
| 609 | - | Torso.Neck.C0=necko*euler(0,0,1*i) |
| 609 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 610 | NEWMESH.Scale = SCALE | |
| 611 | - | LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(5.21-0.3*i,-0.57,0) |
| 611 | + | NEWMESH.Parent = PARENT |
| 612 | return NEWMESH | |
| 613 | - | LW.C1=cf(0, 0.5, 0) * euler(1+4*i,0,0) |
| 613 | + | |
| 614 | ||
| 615 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 615 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
| 616 | local NEWPART = IT("Part")
| |
| 617 | - | effect("White",0.5,0.1,LastPoint,Point)
|
| 617 | + | NEWPART.formFactor = FORMFACTOR |
| 618 | NEWPART.Reflectance = REFLECTANCE | |
| 619 | - | LastPoint = Point |
| 619 | + | NEWPART.Transparency = TRANSPARENCY |
| 620 | NEWPART.CanCollide = false | |
| 621 | NEWPART.Locked = true | |
| 622 | NEWPART.Anchored = true | |
| 623 | - | con1:disconnect() |
| 623 | + | if ANCHOR == false then |
| 624 | NEWPART.Anchored = false | |
| 625 | - | attack=false |
| 625 | + | end |
| 626 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 627 | NEWPART.Name = NAME | |
| 628 | NEWPART.Size = SIZE | |
| 629 | NEWPART.Position = Torso.Position | |
| 630 | NEWPART.Material = MATERIAL | |
| 631 | - | function fourslash() |
| 631 | + | NEWPART:BreakJoints() |
| 632 | NEWPART.Parent = PARENT | |
| 633 | - | attack=true |
| 633 | + | return NEWPART |
| 634 | end | |
| 635 | - | so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.5)
|
| 635 | + | |
| 636 | local function weldBetween(a, b) | |
| 637 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 637 | + | local weldd = Instance.new("ManualWeld")
|
| 638 | weldd.Part0 = a | |
| 639 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,15,10) end) |
| 639 | + | weldd.Part1 = b |
| 640 | weldd.C0 = CFrame.new() | |
| 641 | - | for i=0,1,0.2 do |
| 641 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 642 | weldd.Parent = a | |
| 643 | - | wait() |
| 643 | + | return weldd |
| 644 | end | |
| 645 | - | RootJoint.C0=RootCF*euler(0,0,-1-0.57*i) |
| 645 | + | |
| 646 | ||
| 647 | - | Torso.Neck.C0=necko*euler(0,0,1+0.57*i) |
| 647 | + | function QuaternionFromCFrame(cf) |
| 648 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 649 | - | wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0) |
| 649 | + | local trace = m00 + m11 + m22 |
| 650 | if trace > 0 then | |
| 651 | - | LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(4.91+1.57*i,-0.57+0.57*i,0) |
| 651 | + | local s = math.sqrt(1 + trace) |
| 652 | local recip = 0.5 / s | |
| 653 | - | LW.C1=cf(0, 0.5, 0) * euler(5,-1.57*i,0) |
| 653 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
| 654 | else | |
| 655 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 655 | + | local i = 0 |
| 656 | if m11 > m00 then | |
| 657 | - | effect("White",0.5,0.1,LastPoint,Point)
|
| 657 | + | i = 1 |
| 658 | end | |
| 659 | - | LastPoint = Point |
| 659 | + | if m22 > (i == 0 and m00 or m11) then |
| 660 | i = 2 | |
| 661 | end | |
| 662 | if i == 0 then | |
| 663 | - | for i=0,1,0.2 do |
| 663 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
| 664 | local recip = 0.5 / s | |
| 665 | - | wait() |
| 665 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
| 666 | elseif i == 1 then | |
| 667 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 667 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
| 668 | local recip = 0.5 / s | |
| 669 | - | effect("White",0.5,0.1,LastPoint,Point)
|
| 669 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
| 670 | elseif i == 2 then | |
| 671 | - | LastPoint = Point |
| 671 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
| 672 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 673 | end | |
| 674 | end | |
| 675 | - | con1:disconnect() |
| 675 | + | |
| 676 | ||
| 677 | - | attack=false |
| 677 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
| 678 | local xs, ys, zs = x + x, y + y, z + z | |
| 679 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 680 | local xx = x * xs | |
| 681 | local xy = x * ys | |
| 682 | local xz = x * zs | |
| 683 | - | function FlameBarrage() |
| 683 | + | local yy = y * ys |
| 684 | local yz = y * zs | |
| 685 | - | attack=true |
| 685 | + | local zz = z * zs |
| 686 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 687 | - | magic=true |
| 687 | + | |
| 688 | ||
| 689 | - | for i=0,1,0.1 do |
| 689 | + | function QuaternionSlerp(a, b, t) |
| 690 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 691 | - | wait() |
| 691 | + | local startInterp, finishInterp; |
| 692 | if cosTheta >= 0.0001 then | |
| 693 | - | Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i) |
| 693 | + | if (1 - cosTheta) > 0.0001 then |
| 694 | local theta = ACOS(cosTheta) | |
| 695 | - | wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0) |
| 695 | + | local invSinTheta = 1 / SIN(theta) |
| 696 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 697 | - | RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i) |
| 697 | + | finishInterp = SIN(t * theta) * invSinTheta |
| 698 | else | |
| 699 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 699 | + | startInterp = 1 - t |
| 700 | finishInterp = t | |
| 701 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0) |
| 701 | + | |
| 702 | else | |
| 703 | - | LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0) |
| 703 | + | if (1 + cosTheta) > 0.0001 then |
| 704 | local theta = ACOS(-cosTheta) | |
| 705 | local invSinTheta = 1 / SIN(theta) | |
| 706 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 707 | - | for i=0,1,0.1 do |
| 707 | + | finishInterp = SIN(t * theta) * invSinTheta |
| 708 | else | |
| 709 | - | wait() |
| 709 | + | startInterp = t - 1 |
| 710 | finishInterp = t | |
| 711 | - | RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1) |
| 711 | + | |
| 712 | end | |
| 713 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 713 | + | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp |
| 714 | end | |
| 715 | - | wld7.C0=wld7.C0*euler(0,-0.2,0) |
| 715 | + | |
| 716 | function Clerp(a, b, t) | |
| 717 | - | so("http://roblox.com/asset/?id=28445431",prt7,1,20)
|
| 717 | + | local qa = {QuaternionFromCFrame(a)}
|
| 718 | local qb = {QuaternionFromCFrame(b)}
| |
| 719 | local ax, ay, az = a.x, a.y, a.z | |
| 720 | local bx, by, bz = b.x, b.y, b.z | |
| 721 | - | coroutine.resume(coroutine.create(function() |
| 721 | + | local _t = 1 - t |
| 722 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 723 | - | for i=1,10 do |
| 723 | + | |
| 724 | ||
| 725 | - | so("http://roblox.com/asset/?id=131382140",prt12,1,10)
|
| 725 | + | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
| 726 | local frame = IT("Frame")
| |
| 727 | - | wait(0) |
| 727 | + | frame.BackgroundTransparency = TRANSPARENCY |
| 728 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 729 | frame.Position = POSITION | |
| 730 | frame.Size = SIZE | |
| 731 | - | end)) |
| 731 | + | frame.BackgroundColor3 = COLOR |
| 732 | frame.BorderColor3 = BORDERCOLOR | |
| 733 | - | reffect=prt12:Clone() |
| 733 | + | frame.Name = NAME |
| 734 | frame.Parent = PARENT | |
| 735 | - | reffect.Parent=modelzorz |
| 735 | + | return frame |
| 736 | end | |
| 737 | - | reffect.Transparency=1 |
| 737 | + | |
| 738 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 739 | - | reffect.Mesh.Scale=vt(0.3,3,0.3) |
| 739 | + | local label = IT("TextLabel")
|
| 740 | label.BackgroundTransparency = 1 | |
| 741 | - | reffect.BrickColor=BrickColor.new("Bright red")
|
| 741 | + | label.Size = UD2(1, 0, 1, 0) |
| 742 | label.Position = UD2(0, 0, 0, 0) | |
| 743 | - | local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0)) |
| 743 | + | label.TextColor3 = TEXTCOLOR |
| 744 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 745 | - | coroutine.resume(coroutine.create(function(Part) |
| 745 | + | label.TextTransparency = TRANSPARENCY |
| 746 | label.FontSize = TEXTFONTSIZE | |
| 747 | - | for i=0,1,0.1 do |
| 747 | + | label.Font = TEXTFONT |
| 748 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 749 | - | wait() |
| 749 | + | label.TextScaled = false |
| 750 | label.Text = TEXT | |
| 751 | - | Part.Transparency=Part.Transparency-0.05 |
| 751 | + | label.Name = NAME |
| 752 | label.Parent = PARENT | |
| 753 | return label | |
| 754 | end | |
| 755 | - | while magic==true do |
| 755 | + | |
| 756 | function NoOutlines(PART) | |
| 757 | - | wait() |
| 757 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
| 758 | end | |
| 759 | - | MagicBlock(BrickColor.new("Bright red"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
|
| 759 | + | |
| 760 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 761 | local NEWWELD = IT(TYPE) | |
| 762 | NEWWELD.Part0 = PART0 | |
| 763 | - | for i=0,1,0.1 do |
| 763 | + | NEWWELD.Part1 = PART1 |
| 764 | NEWWELD.C0 = C0 | |
| 765 | - | wait() |
| 765 | + | NEWWELD.C1 = C1 |
| 766 | NEWWELD.Parent = PARENT | |
| 767 | - | Part.Transparency=Part.Transparency+0.1 |
| 767 | + | return NEWWELD |
| 768 | end | |
| 769 | ||
| 770 | local S = IT("Sound")
| |
| 771 | - | Part.Parent=nil |
| 771 | + | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
| 772 | local NEWSOUND = nil | |
| 773 | - | end),reffect) |
| 773 | + | coroutine.resume(coroutine.create(function() |
| 774 | NEWSOUND = S:Clone() | |
| 775 | - | for i=0,1,0.05 do |
| 775 | + | NEWSOUND.Parent = PARENT |
| 776 | NEWSOUND.Volume = VOLUME | |
| 777 | - | wait() |
| 777 | + | NEWSOUND.Pitch = PITCH |
| 778 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 779 | - | Torso.Neck.C0=necko*euler(0.5-0.5*i,0,1*i) |
| 779 | + | NEWSOUND:play() |
| 780 | if DOESLOOP == true then | |
| 781 | - | RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7) |
| 781 | + | NEWSOUND.Looped = true |
| 782 | else | |
| 783 | - | RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0) |
| 783 | + | repeat wait(1) until NEWSOUND.Playing == false |
| 784 | NEWSOUND:remove() | |
| 785 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0) |
| 785 | + | |
| 786 | end)) | |
| 787 | - | LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0) |
| 787 | + | return NEWSOUND |
| 788 | end | |
| 789 | ||
| 790 | function CFrameFromTopBack(at, top, back) | |
| 791 | - | so("http://roblox.com/asset/?id=10209640",prt12,1,1)
|
| 791 | + | local right = top:Cross(back) |
| 792 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 793 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 793 | + | |
| 794 | ||
| 795 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) |
| 795 | + | function MakeForm(PART,TYPE) |
| 796 | if TYPE == "Cyl" then | |
| 797 | - | for i=1,3 do |
| 797 | + | local MSH = IT("CylinderMesh",PART)
|
| 798 | elseif TYPE == "Ball" then | |
| 799 | - | so("http://roblox.com/asset/?id=130865054",Torso,1,1.5)
|
| 799 | + | local MSH = IT("SpecialMesh",PART)
|
| 800 | MSH.MeshType = "Sphere" | |
| 801 | elseif TYPE == "Wedge" then | |
| 802 | local MSH = IT("SpecialMesh",PART)
| |
| 803 | - | for i=0,0.2,0.1 do |
| 803 | + | MSH.MeshType = "Wedge" |
| 804 | end | |
| 805 | - | wait() |
| 805 | + | |
| 806 | ||
| 807 | - | RootJoint.C0=RootCF*euler(0,0,-1+7.28*i) |
| 807 | + | Debris = game:GetService("Debris")
|
| 808 | ||
| 809 | - | Torso.Neck.C0=necko*euler(0,0,1-1*i) |
| 809 | + | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
| 810 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 811 | - | RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i) |
| 811 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
| 812 | end | |
| 813 | - | RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0) |
| 813 | + | |
| 814 | --//=================================\\ | |
| 815 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0) |
| 815 | + | --|| WEAPON CREATION |
| 816 | --\\=================================// | |
| 817 | - | LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0) |
| 817 | + | |
| 818 | Humanoid.Parent = nil | |
| 819 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 819 | + | RootPart.Size = RootPart.Size*SIZE |
| 820 | Torso.Size = Torso.Size*SIZE | |
| 821 | - | effect("Bright red",0.5,0.3,LastPoint,Point)
|
| 821 | + | RightArm.Size = RightArm.Size*SIZE |
| 822 | RightLeg.Size = RightLeg.Size*SIZE | |
| 823 | - | LastPoint = Point |
| 823 | + | LeftArm.Size = LeftArm.Size*SIZE |
| 824 | LeftLeg.Size = LeftLeg.Size*SIZE | |
| 825 | - | end |
| 825 | + | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) |
| 826 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 827 | - | local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
|
| 827 | + | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
| 828 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 829 | - | exprt.Anchored=true |
| 829 | + | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) |
| 830 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
| 831 | - | exprt.CFrame=RootPart.CFrame*cf(0,0,-7) |
| 831 | + | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
| 832 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 833 | - | so("http://www.roblox.com/asset/?id=2101148",exprt,1,0.6)
|
| 833 | + | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) |
| 834 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 835 | - | game:GetService("Debris"):AddItem(exprt,1)
|
| 835 | + | Head.Size = Head.Size*SIZE |
| 836 | RootJoint.Parent = RootPart | |
| 837 | - | MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
|
| 837 | + | Neck.Parent = Torso |
| 838 | RightShoulder.Parent = Torso | |
| 839 | - | for i=1,4 do |
| 839 | + | LeftShoulder.Parent = Torso |
| 840 | RightHip.Parent = Torso | |
| 841 | - | MagicRing(BrickColor.new("Bright red"),exprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,0.1,1,1,0.05)
|
| 841 | + | LeftHip.Parent = Torso |
| 842 | ||
| 843 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
| 844 | MakeForm(PART,"Ball") | |
| 845 | - | local c = game.Workspace:GetChildren() |
| 845 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0))
|
| 846 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
| 847 | - | for i = 1, #c do |
| 847 | + | MakeForm(PART,"Ball") |
| 848 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0))
| |
| 849 | - | local hum = c[i]:findFirstChild("Humanoid")
|
| 849 | + | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) |
| 850 | MakeForm(PART,"Ball") | |
| 851 | - | if hum ~= nil and hum.Health ~= 0 then |
| 851 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0))
|
| 852 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) | |
| 853 | - | local head = c[i]:findFirstChild("Head")
|
| 853 | + | MakeForm(PART,"Ball") |
| 854 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0))
| |
| 855 | - | if head ~= nil then |
| 855 | + | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) |
| 856 | MakeForm(PART,"Ball") | |
| 857 | - | local targ = head.Position - exprt.Position |
| 857 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0))
|
| 858 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) | |
| 859 | - | local mag = targ.magnitude |
| 859 | + | MakeForm(PART,"Ball") |
| 860 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0))
| |
| 861 | - | if mag <= 10 and c[i].Name ~= Player.Name then |
| 861 | + | |
| 862 | Humanoid.Parent = Character | |
| 863 | - | attackdebounce=false |
| 863 | + | |
| 864 | Humanoid.Died:connect(function() | |
| 865 | - | Damagefunc1(head,15,50) |
| 865 | + | ATTACK = true |
| 866 | end) | |
| 867 | ||
| 868 | local TRACKFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Yeet") | |
| 869 | ||
| 870 | local TEXT = CreateLabel(TRACKFRAME, KILLCOUNT, C3(1,1,1), 8, "Cartoon", 0, 2, 1, "Text") | |
| 871 | ||
| 872 | --//=================================\\ | |
| 873 | --|| DAMAGING | |
| 874 | --\\=================================// | |
| 875 | - | for i=0.2,1,0.1 do |
| 875 | + | |
| 876 | local EXPLOSION = IT("Explosion",nil)
| |
| 877 | - | wait() |
| 877 | + | EXPLOSION.BlastPressure = 0 |
| 878 | function PUNCH(Fist) | |
| 879 | - | RootJoint.C0=RootCF*euler(0,0,-1+7.28*i) |
| 879 | + | TOUCH = Fist.Touched:Connect(function(hit) |
| 880 | if hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 881 | - | Torso.Neck.C0=necko*euler(0,0,1-1*i) |
| 881 | + | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
|
| 882 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 883 | - | RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i) |
| 883 | + | if TORSO and HUM.Health > 0 then |
| 884 | CreateSound(296102734,Fist,6,1,false) | |
| 885 | - | RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0) |
| 885 | + | CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false) |
| 886 | TORSO.Parent:BreakJoints() | |
| 887 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0) |
| 887 | + | for _, c in pairs(TORSO.Parent:GetChildren()) do |
| 888 | if c:IsA("BasePart") then
| |
| 889 | - | LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0) |
| 889 | + | local bv = Instance.new("BodyVelocity",c)
|
| 890 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 891 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 891 | + | bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100) |
| 892 | Debris:AddItem(bv,0.05) | |
| 893 | - | effect("Bright red",0.5,0.3,LastPoint,Point)
|
| 893 | + | end |
| 894 | end | |
| 895 | - | LastPoint = Point |
| 895 | + | local BOOM = EXPLOSION:Clone() |
| 896 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
| 897 | BOOM.Parent = Character | |
| 898 | TOUCH:Disconnect() | |
| 899 | - | con1:disconnect() |
| 899 | + | KILLCOUNT = KILLCOUNT + 69 |
| 900 | end | |
| 901 | - | for i=0,1,0.1 do |
| 901 | + | elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then |
| 902 | hit:remove() | |
| 903 | - | wait() |
| 903 | + | CreateSound(296102734,Fist,6,1,false) |
| 904 | local BOOM = EXPLOSION:Clone() | |
| 905 | - | RootJoint.C0=RootCF*euler(0,0,1*i) |
| 905 | + | BOOM.BlastPressure = 50 |
| 906 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
| 907 | - | Torso.Neck.C0=necko*euler(0,0,-1*i) |
| 907 | + | BOOM.Parent = Character |
| 908 | elseif hit.Anchored == false then | |
| 909 | - | wld1.C0=euler(1.77-1.2*i,0,0)*cf(0,1,0) |
| 909 | + | CreateSound(296102734,Fist,6,1,false) |
| 910 | local BOOM = EXPLOSION:Clone() | |
| 911 | - | RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(0.6,0,-1.2) |
| 911 | + | BOOM.BlastPressure = 100 |
| 912 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
| 913 | - | RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0) |
| 913 | + | BOOM.Parent = Character |
| 914 | TOUCH:Disconnect() | |
| 915 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0) |
| 915 | + | |
| 916 | end) | |
| 917 | - | LW.C1=cf(0, 0.5, 0) * euler(2-0.43*i,0,0) |
| 917 | + | return TOUCH |
| 918 | end | |
| 919 | ||
| 920 | --//=================================\\ | |
| 921 | - | so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.2)
|
| 921 | + | --|| ATTACK FUNCTIONS AND STUFF |
| 922 | --\\=================================// | |
| 923 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 923 | + | |
| 924 | function Yeet() | |
| 925 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,30) end) |
| 925 | + | ATTACK = true |
| 926 | Rooted = false | |
| 927 | - | for i=0,1,0.2 do |
| 927 | + | if COMBO == 1 then |
| 928 | COMBO = 2 | |
| 929 | - | wait() |
| 929 | + | for i=0, 0.1, 0.1 / Animation_Speed do |
| 930 | Swait() | |
| 931 | - | RootJoint.C0=RootCF*euler(0,0,1-2.57*i) |
| 931 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) |
| 932 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 933 | - | Torso.Neck.C0=necko*euler(0,0,-1+2.57*i) |
| 933 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 934 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 935 | - | wld1.C0=euler(0.57+2.57*i,0,0)*cf(0,1,0) |
| 935 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 936 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 937 | - | RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(0.6,0,-1.2+2.4*i) |
| 937 | + | |
| 938 | local FIST = PUNCH(LeftArm) | |
| 939 | - | RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0) |
| 939 | + | for i=0, 0.15, 0.1 / Animation_Speed do |
| 940 | Swait() | |
| 941 | - | LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0) |
| 941 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed) |
| 942 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 943 | - | LW.C1=cf(0, 0.5, 0) * euler(1.57,0,0) |
| 943 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 944 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 945 | - | local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 945 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 946 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 947 | - | effect("Bright red",0.5,0.3,LastPoint,Point)
|
| 947 | + | |
| 948 | FIST:Disconnect() | |
| 949 | - | LastPoint = Point |
| 949 | + | else |
| 950 | COMBO = 1 | |
| 951 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 952 | Swait() | |
| 953 | - | con1:disconnect() |
| 953 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) |
| 954 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
| 955 | - | numb=-7 |
| 955 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 956 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 957 | - | for i=1,3 do |
| 957 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 958 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 959 | - | local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
|
| 959 | + | |
| 960 | local FIST = PUNCH(RightArm) | |
| 961 | - | exprt.Anchored=true |
| 961 | + | for i=0, 0.15, 0.1 / Animation_Speed do |
| 962 | Swait() | |
| 963 | - | exprt.CFrame=RootPart.CFrame*cf(0,0,numb) |
| 963 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed) |
| 964 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
| 965 | - | so("http://www.roblox.com/asset/?id=2101148",exprt,1,1)
|
| 965 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
| 966 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 967 | - | game:GetService("Debris"):AddItem(exprt,1)
|
| 967 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 968 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 969 | - | MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
|
| 969 | + | |
| 970 | FIST:Disconnect() | |
| 971 | - | coroutine.resume(coroutine.create(function(Part) |
| 971 | + | end |
| 972 | ATTACK = false | |
| 973 | - | for i=1,4 do |
| 973 | + | Rooted = false |
| 974 | end | |
| 975 | - | MagicBlock(BrickColor.new("Bright red"),Part.CFrame,3,3,3,2,2,2)
|
| 975 | + | |
| 976 | function YesPlease() | |
| 977 | - | wait(0.1) |
| 977 | + | ATTACK = true |
| 978 | Rooted = true | |
| 979 | CreateSound(291394633,Head,6,1,false) | |
| 980 | for i=0, 2, 0.1 / Animation_Speed do | |
| 981 | - | end),exprt) |
| 981 | + | Swait() |
| 982 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 983 | - | local c = game.Workspace:GetChildren() |
| 983 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
| 984 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2+(MRANDOM(-5,5)/100)*SIZE, (0.45+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 985 | - | for i = 1, #c do |
| 985 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2+(MRANDOM(-5,5)/100)*SIZE, (0.65+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(65), RAD(0), RAD(65)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
| 986 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 987 | - | local hum = c[i]:findFirstChild("Humanoid")
|
| 987 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 988 | end | |
| 989 | - | if hum ~= nil and hum.Health ~= 0 then |
| 989 | + | ATTACK = false |
| 990 | Rooted = false | |
| 991 | - | local head = c[i]:findFirstChild("Head")
|
| 991 | + | |
| 992 | ||
| 993 | - | if head ~= nil then |
| 993 | + | --//=================================\\ |
| 994 | --|| ASSIGN THINGS TO KEYS | |
| 995 | - | local targ = head.Position - exprt.Position |
| 995 | + | --\\=================================// |
| 996 | ||
| 997 | - | local mag = targ.magnitude |
| 997 | + | Mouse.Button1Down:connect(function(NEWKEY) |
| 998 | if ATTACK == false then | |
| 999 | - | if mag <= 10 and c[i].Name ~= Player.Name then |
| 999 | + | Yeet() |
| 1000 | end | |
| 1001 | - | attackdebounce=false |
| 1001 | + | end) |
| 1002 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1003 | - | Damagefunc1(head,5,30) |
| 1003 | + | if NEWKEY == "t" and ATTACK == false then |
| 1004 | YesPlease() | |
| 1005 | end | |
| 1006 | end) | |
| 1007 | ||
| 1008 | --//=================================\\ | |
| 1009 | --\\=================================// | |
| 1010 | ||
| 1011 | function unanchor() | |
| 1012 | if UNANCHOR == true then | |
| 1013 | - | numb=numb-5 |
| 1013 | + | g = Character:GetChildren() |
| 1014 | for i = 1, #g do | |
| 1015 | if g[i].ClassName == "Part" then | |
| 1016 | g[i].Anchored = false | |
| 1017 | end | |
| 1018 | end | |
| 1019 | - | wait(1) |
| 1019 | + | end |
| 1020 | end | |
| 1021 | - | Torso.Neck.C0=necko*euler(0,0,1) |
| 1021 | + | |
| 1022 | --//=================================\\ | |
| 1023 | - | RootJoint.C0=RootCF*euler(0,0,-1) |
| 1023 | + | --|| WRAP THE WHOLE SCRIPT UP |
| 1024 | --\\=================================// | |
| 1025 | - | magic=false |
| 1025 | + | |
| 1026 | Humanoid.Changed:connect(function(Jump) | |
| 1027 | - | attack=false |
| 1027 | + | if Jump == "Jump" and (Disable_Jump == true) then |
| 1028 | Humanoid.Jump = false | |
| 1029 | end | |
| 1030 | end) | |
| 1031 | ||
| 1032 | local FF = IT("ForceField",Character)
| |
| 1033 | - | function IcePrison() |
| 1033 | + | FF.Visible = false |
| 1034 | ||
| 1035 | - | attack=true |
| 1035 | + | while true do |
| 1036 | Swait() | |
| 1037 | - | magic=true |
| 1037 | + | script.Parent = WEAPONGUI |
| 1038 | ANIMATE.Parent = nil | |
| 1039 | - | for i=0,1,0.1 do |
| 1039 | + | for _,v in next, Humanoid:GetPlayingAnimationTracks() do |
| 1040 | v:Stop(); | |
| 1041 | - | wait() |
| 1041 | + | end |
| 1042 | SINE = SINE + CHANGE | |
| 1043 | - | Torso.Neck.C0=necko*euler(0,0,1-1*i) |
| 1043 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
| 1044 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1045 | - | RootJoint.C0=RootCF*euler(0,0,-1+1*i) |
| 1045 | + | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) |
| 1046 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1047 | - | wld1.C0=euler(1.57,0,0)*cf(0,1,0) |
| 1047 | + | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
| 1048 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 / Animation_Speed) | |
| 1049 | - | RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.9*i,0,0.3-0.8*i) |
| 1049 | + | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
| 1050 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.5- 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1051 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 1051 | + | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.5+ 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
| 1052 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1053 | - | LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+1.57*i,0.7*i) |
| 1053 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
| 1054 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1055 | - | LW.C1=cf(0, 0.5, 0) * euler(0.2-0.2*i,0,0) |
| 1055 | + | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1056 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1057 | end | |
| 1058 | if HITFLOOR == nil then | |
| 1059 | - | for i=0,1,0.1 do |
| 1059 | + | ANIM = "Midair" |
| 1060 | if ATTACK == false then | |
| 1061 | - | wait() |
| 1061 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1062 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1063 | - | RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9,0,-0.5-0.2*i) |
| 1063 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1064 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.45*SIZE, 0.3*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1065 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 1065 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.2*SIZE, -0.7*SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) |
| 1066 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
| 1067 | - | wld7.C0=wld7.C0*euler(0,0.2,0) |
| 1067 | + | |
| 1068 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1069 | - | so("http://roblox.com/asset/?id=28445431",prt7,1,20)
|
| 1069 | + | ANIM = "Idle" |
| 1070 | if ATTACK == false then | |
| 1071 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1072 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1073 | - | reffect=prt12:Clone() |
| 1073 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1074 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1075 | - | reffect.Parent=modelzorz |
| 1075 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1076 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1077 | - | reffect.Transparency=1 |
| 1077 | + | |
| 1078 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1079 | - | reffect.Mesh.Scale=vt(0.3,3,0.3) |
| 1079 | + | ANIM = "Walk" |
| 1080 | if ATTACK == false then | |
| 1081 | - | reffect.BrickColor=BrickColor.new("Bright blue")
|
| 1081 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1082 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed) | |
| 1083 | - | local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0)) |
| 1083 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25+70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1084 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25-70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1085 | - | coroutine.resume(coroutine.create(function(Part) |
| 1085 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) |
| 1086 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1087 | - | for i=0,1,0.1 do |
| 1087 | + | |
| 1088 | end | |
| 1089 | - | wait() |
| 1089 | + | unanchor() |
| 1090 | Humanoid.MaxHealth = 5e7 | |
| 1091 | - | Part.Transparency=Part.Transparency-0.05 |
| 1091 | + | Humanoid.Health = 5e7 |
| 1092 | Humanoid.Name = "Stronk Shed" | |
| 1093 | if Rooted == false then | |
| 1094 | Disable_Jump = false | |
| 1095 | - | while magic==true do |
| 1095 | + | Humanoid.WalkSpeed = Speed |
| 1096 | elseif Rooted == true then | |
| 1097 | - | wait() |
| 1097 | + | Disable_Jump = true |
| 1098 | Humanoid.WalkSpeed = 0 | |
| 1099 | - | MagicBlock(BrickColor.new("Bright blue"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
|
| 1099 | + | end |
| 1100 | for _, c in pairs(Character:GetChildren()) do | |
| 1101 | if c.ClassName == "Part" then | |
| 1102 | c.Material = "SmoothPlastic" | |
| 1103 | - | for i=0,1,0.1 do |
| 1103 | + | if c:FindFirstChildOfClass("ParticleEmitter") then
|
| 1104 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 1105 | - | wait() |
| 1105 | + | end |
| 1106 | if c == Torso or c.Name == "Muscle" then | |
| 1107 | - | Part.Transparency=Part.Transparency+0.1 |
| 1107 | + | c.BrickColor = BRICKC"Bright purple" |
| 1108 | elseif c == RightLeg or c == LeftLeg then | |
| 1109 | c.BrickColor = BRICKC"Bright purple" | |
| 1110 | else | |
| 1111 | - | Part.Parent=nil |
| 1111 | + | c.BrickColor = BRICKC"Bright purple" |
| 1112 | end | |
| 1113 | - | end),reffect) |
| 1113 | + | if c == Head then |
| 1114 | if c:FindFirstChild("face") then
| |
| 1115 | - | for i=1,3 do |
| 1115 | + | c.face.Texture = "http://www.roblox.com/asset/?id=405704563" |
| 1116 | end | |
| 1117 | - | so("http://roblox.com/asset/?id=25605551",prt12,1,1)
|
| 1117 | + | end |
| 1118 | elseif c.ClassName == c.Name == "Body Colors" then | |
| 1119 | c:remove() | |
| 1120 | end | |
| 1121 | - | wait(0.5) |
| 1121 | + | end |
| 1122 | sick.SoundId = "rbxassetid://1333021608" | |
| 1123 | - | for i=0,1,0.1 do |
| 1123 | + | sick.Looped = true |
| 1124 | sick.Pitch = 1 | |
| 1125 | - | wait() |
| 1125 | + | sick.Volume = 1 |
| 1126 | sick:Resume() | |
| 1127 | - | wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0) |
| 1127 | + | sick.Parent = Torso |
| 1128 | Humanoid.JumpPower = 150 | |
| 1129 | - | RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9-0.6*i,0,-0.7) |
| 1129 | + | TEXT.Text = KILLCOUNT |
| 1130 | end | |
| 1131 | - | RW.C1=cf(0, 0.5, 0) * euler(0,0,0) |
| 1131 | + | |
| 1132 | --//=================================\\ | |
| 1133 | - | LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.57-0.57*i,0,0.7-0.2*i) |
| 1133 | + | --\\=================================// |
| 1134 | ||
| 1135 | - | LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0) |
| 1135 | + | |
| 1136 | ||
| 1137 | ||
| 1138 | ||
| 1139 | - | local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0) |
| 1139 | + | --//====================================================\\-- |
| 1140 | --|| END OF SCRIPT | |
| 1141 | - | con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) |
| 1141 | + | --\\====================================================//-- |