SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --[[screw bumper cars now we have... |
| 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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | - | A REAL FUCKING CAR HOLY SHIT!!!!1!1]]-- |
| 6 | + | |
| 7 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
| 8 | secondcolor = "Really black" | |
| 9 | ||
| 10 | wait(1 / 60) | |
| 11 | Effects = { }
| |
| 12 | local Player = game.Players.localPlayer | |
| 13 | local Character = Player.Character | |
| 14 | local Humanoid = Character:FindFirstChildOfClass("Humanoid")
| |
| 15 | local mouse = Player:GetMouse() | |
| 16 | local LeftArm = Character["Left Arm"] | |
| 17 | local RightArm = Character["Right Arm"] | |
| 18 | local LeftLeg = Character["Left Leg"] | |
| 19 | local RightLeg = Character["Right Leg"] | |
| 20 | local Head = Character.Head | |
| 21 | local Torso = Character.Torso | |
| 22 | local cam = game.Workspace.CurrentCamera | |
| 23 | local RootPart = Character.HumanoidRootPart | |
| 24 | local RootJoint = RootPart.RootJoint | |
| 25 | local equipped = true | |
| 26 | local attack = false | |
| 27 | local Anim = 'Idle' | |
| 28 | local idle = 0 | |
| 29 | local attacktype = 1 | |
| 30 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 31 | local velocity = RootPart.Velocity.y | |
| 32 | local sine = 0 | |
| 33 | local change = 1 | |
| 34 | local grabbed = false | |
| 35 | local cn = CFrame.new | |
| 36 | local mr = math.rad | |
| 37 | local angles = CFrame.Angles | |
| 38 | local ud = UDim2.new | |
| 39 | local c3 = Color3.new | |
| 40 | local dir = {w = 0, s = 0, a = 0, d = 0}
| |
| 41 | Climbanim = false | |
| 42 | Runkey=false | |
| 43 | firemode = false | |
| 44 | inair = false | |
| 45 | blocking=false | |
| 46 | humHsave=0 | |
| 47 | humDsave=0 | |
| 48 | extralock=true | |
| 49 | lasthit = nil | |
| 50 | IKM = false | |
| 51 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
| |
| 52 | ff.Visible = false | |
| 53 | HMDX = Humanoid.MoveDirection.X/3 | |
| 54 | HMDZ = Humanoid.MoveDirection.Z/3 | |
| 55 | local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,1)),
| |
| 56 | ColorSequenceKeypoint.new(0.16, Color3.new(0,1,1)), | |
| 57 | ColorSequenceKeypoint.new(0.32, Color3.new(0,1,1)), | |
| 58 | ColorSequenceKeypoint.new(0.48, Color3.new(0.5,0,1)), | |
| 59 | ColorSequenceKeypoint.new(0.64, Color3.new(0.5,0,1)), | |
| 60 | ColorSequenceKeypoint.new(0.80, Color3.new(0.5,0,1)), | |
| 61 | ColorSequenceKeypoint.new(0.96, Color3.new(0.5,0,1)), | |
| 62 | ColorSequenceKeypoint.new(1, Color3.new(0.5,0,1))} | |
| 63 | local s = Instance.new("Sound",Character)
| |
| 64 | s.Name = "BumperCarSound" | |
| 65 | s.SoundId = "http://www.roblox.com/asset/?id=532147820" | |
| 66 | s.Pitch = .7 | |
| 67 | s.Volume = 5 | |
| 68 | s.Looped = true | |
| 69 | s.archivable = false | |
| 70 | s.Parent = Character | |
| 71 | s:play() | |
| 72 | local airtime = Instance.new("Sound",Character)
| |
| 73 | airtime.Name = "airtime" | |
| 74 | airtime.SoundId = "http://www.roblox.com/asset/?id=892076107" | |
| 75 | airtime.Volume = 5 | |
| 76 | airtime.archivable = false | |
| 77 | airtime.Parent = Character | |
| 78 | sflon = true | |
| 79 | bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
| |
| 80 | game:GetService("RunService"):BindToRenderStep("ew", 0, function()
| |
| 81 | if attack == true then | |
| 82 | bg2.D = 0 | |
| 83 | bg2.P = 0 | |
| 84 | bg2.maxTorque = Vector3.new(0,0,0) | |
| 85 | end | |
| 86 | if attack == false then | |
| 87 | bg2.D = 100 | |
| 88 | bg2.P = 9999 | |
| 89 | bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge | |
| 90 | bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0) | |
| 91 | ||
| 92 | end | |
| 93 | end)--]] | |
| 94 | ||
| 95 | New = function(Object, Parent, Name, Data) | |
| 96 | local Object = Instance.new(Object) | |
| 97 | for Index, Value in pairs(Data or {}) do
| |
| 98 | Object[Index] = Value | |
| 99 | end | |
| 100 | Object.Parent = Parent | |
| 101 | Object.Name = Name | |
| 102 | return Object | |
| 103 | end | |
| 104 | ||
| 105 | BumperCar = New("Model",Workspace,"BumperCar",{})
| |
| 106 | SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
| |
| 107 | Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(1.359, 0.416, 13.38),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.7,0.7,0.7),})
| |
| 108 | wheel = New("Part",BumperCar,"wheels",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 8.15000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
| |
| 109 | wheel2 = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 6.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
| |
| 110 | body = New("Part",BumperCar,"car",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,1),})
| |
| 111 | glass = New("Part",BumperCar,"glass",{BrickColor = BrickColor.new("Pastel light blue"),Material = Enum.Material.Glass,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.18500664, 10.45000019, -35.7631157, 0.001, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Transparency = 0.5,})
| |
| 112 | inside = New("Part",BumperCar,"inside",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 8.75000019, -36.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
| |
| 113 | grille = New("Part",BumperCar,"grille",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9631157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.1,0.1,0.1),})
| |
| 114 | plate = New("Part",BumperCar,"plate",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -44.7851157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
| |
| 115 | rl = New("Part",BumperCar,"rl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.06500664, 9.45000019, -44.1751157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,0,0),})
| |
| 116 | hl = New("Part",BumperCar,"hl",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Neon,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 9.55000019, -29.9651157, 1, 0, 0, 0, 1, 0, -90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1,1,1),})
| |
| 117 | ep = New("Part",BumperCar,"idk",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.DiamondPlate,Size = Vector3.new(18, 0.7, 6.5),CFrame = CFrame.new(-5.16500664, 12.98000019, -36.9631157, 1, 0, 0, 0, 1, 0, 90, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
| |
| 118 | hitbox = New("Part",BumperCar,"hitbox",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 16),CFrame = CFrame.new(-5.16500664, 10.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
| |
| 119 | hitbox2 = New("Part",BumperCar,"hitbox2",{BrickColor = BrickColor.new("Really Blue"),Material = Enum.Material.Metal,Size = Vector3.new(6.5, 0.53, 6.5),CFrame = CFrame.new(-5.16500664, 11.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.5,0.5,0.5),})
| |
| 120 | ||
| 121 | FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -31.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
| |
| 122 | ||
| 123 | ||
| 124 | ||
| 125 | ||
| 126 | ||
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | ||
| 134 | local mesh2 = Instance.new("FileMesh")
| |
| 135 | mesh2.Parent = body | |
| 136 | mesh2.MeshId = "rbxassetid://1432737948" | |
| 137 | local mesh = Instance.new("FileMesh")
| |
| 138 | mesh.Parent = wheel | |
| 139 | mesh.MeshId = "rbxassetid://1432629613" | |
| 140 | local mesh3 = Instance.new("FileMesh")
| |
| 141 | mesh3.Parent = glass | |
| 142 | mesh3.MeshId = "rbxassetid://1432810983" | |
| 143 | local mesh4 = Instance.new("FileMesh")
| |
| 144 | mesh4.Parent = inside | |
| 145 | mesh4.MeshId = "rbxassetid://1432877497" | |
| 146 | local mesh5 = Instance.new("FileMesh")
| |
| 147 | mesh5.Parent = grille | |
| 148 | mesh5.MeshId = "rbxassetid://1432898984" | |
| 149 | local mesh6 = Instance.new("FileMesh")
| |
| 150 | mesh6.Parent = plate | |
| 151 | mesh6.MeshId = "rbxassetid://1432917470" | |
| 152 | local mesh7 = Instance.new("FileMesh")
| |
| 153 | mesh7.Parent = rl | |
| 154 | mesh7.MeshId = "rbxassetid://1432942116" | |
| 155 | local mesh8 = Instance.new("FileMesh")
| |
| 156 | mesh8.Parent = hl | |
| 157 | mesh8.MeshId = "rbxassetid://1432958104" | |
| 158 | local Light = Instance.new("SpotLight",hl)
| |
| 159 | Light.Angle = 90; | |
| 160 | Light.Brightness = 100; | |
| 161 | Light.Face = Enum.NormalId.Left; | |
| 162 | Light.Range = 30; | |
| 163 | local lt2 = Instance.new('PointLight',rl)
| |
| 164 | lt2.Range = 8 | |
| 165 | lt2.Brightness = 100 | |
| 166 | lt2.Color = Color3.new(1,0,0) | |
| 167 | lt2.Enabled = true | |
| 168 | lt2.Shadows = true | |
| 169 | ep.Transparency = 1 | |
| 170 | particle = Instance.new("ParticleEmitter",ep)
| |
| 171 | particle.Enabled = false | |
| 172 | particle.EmissionDirection = "Bottom" | |
| 173 | particle.Lifetime = NumberRange.new(2.5,2.501) | |
| 174 | particle.Rate = 1500 | |
| 175 | particle.Texture = "rbxassetid://241629053" | |
| 176 | particle.Color = ColorSequence.new(Color3.new(0,0,1)) | |
| 177 | ||
| 178 | particle.Size = NumberSequence.new(1.4,1.41) | |
| 179 | local all,last = {}
| |
| 180 | function scan(p) | |
| 181 | for _,v in pairs(p:GetChildren()) do | |
| 182 | if (v:IsA("BasePart")) then
| |
| 183 | if (last) then | |
| 184 | local w = Instance.new("Weld")
| |
| 185 | w.Part0,w.Part1 = last,v | |
| 186 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
| 187 | w.Parent = last | |
| 188 | end | |
| 189 | table.insert(all,v) | |
| 190 | last = v | |
| 191 | end | |
| 192 | scan(v) | |
| 193 | end | |
| 194 | end | |
| 195 | scan(BumperCar) | |
| 196 | ||
| 197 | ||
| 198 | for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end | |
| 199 | wheel2.Transparency = 1 | |
| 200 | wheel2.CanCollide = true | |
| 201 | hitbox.CanCollide = true | |
| 202 | hitbox.Transparency = 1 | |
| 203 | hitbox2.CanCollide = true | |
| 204 | hitbox2.Transparency = 1 | |
| 205 | BumperCar.Parent = Character | |
| 206 | ||
| 207 | local Services = {
| |
| 208 | ||
| 209 | ||
| 210 | SoundService = game:GetService("SoundService");
| |
| 211 | Players = game:GetService("Players");
| |
| 212 | Debris = game:GetService("Debris");
| |
| 213 | Workspace = game:GetService("Workspace");
| |
| 214 | Lighting = game:GetService("Lighting");
| |
| 215 | HttpService = game:GetService("HttpService");
| |
| 216 | InsertService = game:GetService("InsertService");
| |
| 217 | ||
| 218 | } | |
| 219 | ||
| 220 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 221 | Humanoid.Animator:Destroy() | |
| 222 | Character.Animate:Destroy() | |
| 223 | ||
| 224 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 225 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 226 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 227 | ||
| 228 | ||
| 229 | ||
| 230 | SWW = Instance.new("Weld")
| |
| 231 | SWW.Name = "SWW" | |
| 232 | SWW.Part0 = Torso | |
| 233 | SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0)) | |
| 234 | SWW.C1 = cn(0, 0, 0) | |
| 235 | SWW.Part1 = SwHandle | |
| 236 | SWW.Parent = Torso | |
| 237 | ||
| 238 | RSH, LSH = nil, nil | |
| 239 | ||
| 240 | RW = Instance.new("Weld")
| |
| 241 | LW = Instance.new("Weld")
| |
| 242 | ||
| 243 | RH = Torso["Right Hip"] | |
| 244 | LH = Torso["Left Hip"] | |
| 245 | ||
| 246 | RSH = Torso["Right Shoulder"] | |
| 247 | LSH = Torso["Left Shoulder"] | |
| 248 | ||
| 249 | RSH.Parent = nil | |
| 250 | LSH.Parent = nil | |
| 251 | ||
| 252 | RW.Name = "RW" | |
| 253 | RW.Part0 = Torso | |
| 254 | RW.C0 = cn(1.5, 0.5, 0) | |
| 255 | RW.C1 = cn(0, 0.5, 0) | |
| 256 | RW.Part1 = RightArm | |
| 257 | RW.Parent = Torso | |
| 258 | ||
| 259 | LW.Name = "LW" | |
| 260 | LW.Part0 = Torso | |
| 261 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 262 | LW.C1 = cn(0, 0.5, 0) | |
| 263 | LW.Part1 = LeftArm | |
| 264 | LW.Parent = Torso | |
| 265 | ||
| 266 | function clerp(a, b, t) | |
| 267 | local qa = {
| |
| 268 | QuaternionFromCFrame(a) | |
| 269 | } | |
| 270 | local qb = {
| |
| 271 | QuaternionFromCFrame(b) | |
| 272 | } | |
| 273 | local ax, ay, az = a.x, a.y, a.z | |
| 274 | local bx, by, bz = b.x, b.y, b.z | |
| 275 | local _t = 1 - t | |
| 276 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 277 | end | |
| 278 | ||
| 279 | function QuaternionFromCFrame(cf) | |
| 280 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 281 | local trace = m00 + m11 + m22 | |
| 282 | if trace > 0 then | |
| 283 | local s = math.sqrt(1 + trace) | |
| 284 | local recip = 0.5 / s | |
| 285 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 286 | else | |
| 287 | local i = 0 | |
| 288 | if m11 > m00 then | |
| 289 | i = 1 | |
| 290 | end | |
| 291 | if m22 > (i == 0 and m00 or m11) then | |
| 292 | i = 2 | |
| 293 | end | |
| 294 | if i == 0 then | |
| 295 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 296 | local recip = 0.5 / s | |
| 297 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 298 | elseif i == 1 then | |
| 299 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 300 | local recip = 0.5 / s | |
| 301 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 302 | elseif i == 2 then | |
| 303 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 304 | local recip = 0.5 / s | |
| 305 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 306 | end | |
| 307 | end | |
| 308 | end | |
| 309 | ||
| 310 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 311 | local xs, ys, zs = x + x, y + y, z + z | |
| 312 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 313 | local xx = x * xs | |
| 314 | local xy = x * ys | |
| 315 | local xz = x * zs | |
| 316 | local yy = y * ys | |
| 317 | local yz = y * zs | |
| 318 | local zz = z * zs | |
| 319 | 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)) | |
| 320 | end | |
| 321 | ||
| 322 | function QuaternionSlerp(a, b, t) | |
| 323 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 324 | local startInterp, finishInterp; | |
| 325 | if cosTheta >= 0.0001 then | |
| 326 | if (1 - cosTheta) > 0.0001 then | |
| 327 | local theta = math.acos(cosTheta) | |
| 328 | local invSinTheta = 1 / math.sin(theta) | |
| 329 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 330 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 331 | else | |
| 332 | startInterp = 1 - t | |
| 333 | finishInterp = t | |
| 334 | end | |
| 335 | else | |
| 336 | if (1 + cosTheta) > 0.0001 then | |
| 337 | local theta = math.acos(-cosTheta) | |
| 338 | local invSinTheta = 1 / math.sin(theta) | |
| 339 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 340 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 341 | else | |
| 342 | startInterp = t - 1 | |
| 343 | finishInterp = t | |
| 344 | end | |
| 345 | end | |
| 346 | 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 | |
| 347 | end | |
| 348 | ||
| 349 | function swait(num) | |
| 350 | if num == 0 or num == nil then | |
| 351 | game:service'RunService'.RenderStepped:wait(0) | |
| 352 | else | |
| 353 | for i = 0, num do | |
| 354 | game:service'RunService'.RenderStepped:wait(0) | |
| 355 | end | |
| 356 | end | |
| 357 | end | |
| 358 | ||
| 359 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 360 | local Create = RbxUtility.Create | |
| 361 | ||
| 362 | function RemoveOutlines(part) | |
| 363 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 364 | end | |
| 365 | ||
| 366 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 367 | local Part = Create("Part"){
| |
| 368 | formFactor = FormFactor, | |
| 369 | Parent = Parent, | |
| 370 | Reflectance = Reflectance, | |
| 371 | Transparency = Transparency, | |
| 372 | CanCollide = false, | |
| 373 | Locked = true, | |
| 374 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 375 | Name = Name, | |
| 376 | Size = Size, | |
| 377 | Material = Material, | |
| 378 | } | |
| 379 | RemoveOutlines(Part) | |
| 380 | return Part | |
| 381 | end | |
| 382 | ||
| 383 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 384 | local Msh = Create(Mesh){
| |
| 385 | Parent = Part, | |
| 386 | Offset = OffSet, | |
| 387 | Scale = Scale, | |
| 388 | } | |
| 389 | if Mesh == "SpecialMesh" then | |
| 390 | Msh.MeshType = MeshType | |
| 391 | Msh.MeshId = MeshId | |
| 392 | end | |
| 393 | return Msh | |
| 394 | end | |
| 395 | ||
| 396 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 397 | local Weld = Create("Weld"){
| |
| 398 | Parent = Parent, | |
| 399 | Part0 = Part0, | |
| 400 | Part1 = Part1, | |
| 401 | C0 = C0, | |
| 402 | C1 = C1, | |
| 403 | } | |
| 404 | return Weld | |
| 405 | end | |
| 406 | ||
| 407 | function rayCast(Position, Direction, Range, Ignore) | |
| 408 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 409 | end | |
| 410 | ||
| 411 | function CreateSound(id, par, vol, pit) | |
| 412 | coroutine.resume(coroutine.create(function() | |
| 413 | local sou = Instance.new("Sound", par or workspace)
| |
| 414 | sou.Volume = vol | |
| 415 | sou.Pitch = pit or 1 | |
| 416 | sou.SoundId = id | |
| 417 | wait() | |
| 418 | sou:play() | |
| 419 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 420 | end)) | |
| 421 | end | |
| 422 | function CreateSong(id, par, vol, pit) | |
| 423 | coroutine.resume(coroutine.create(function() | |
| 424 | sou2 = Instance.new("Sound", par or workspace)
| |
| 425 | sou2.Volume = vol | |
| 426 | sou2.Pitch = 1 | |
| 427 | sou2.SoundId = id | |
| 428 | wait() | |
| 429 | sou2:play() | |
| 430 | sou2.Looped = true | |
| 431 | end)) | |
| 432 | end | |
| 433 | ||
| 434 | local function getclosest(obj, distance) | |
| 435 | local last, lastx = distance + 1 | |
| 436 | for i, v in pairs(workspace:GetChildren()) do | |
| 437 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 438 | local t = v.Torso | |
| 439 | local dist = (t.Position - obj.Position).magnitude | |
| 440 | if dist <= distance then | |
| 441 | if dist < last then | |
| 442 | last = dist | |
| 443 | lastx = v | |
| 444 | end | |
| 445 | end | |
| 446 | end | |
| 447 | end | |
| 448 | return lastx | |
| 449 | end | |
| 450 | ||
| 451 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 452 | for i, v in pairs(hit:GetChildren()) do | |
| 453 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 454 | local find = v:FindFirstChild("Hitz")
| |
| 455 | if not find then | |
| 456 | if v.Parent:findFirstChild("Head") then
| |
| 457 | local BillG = Create("BillboardGui"){
| |
| 458 | Parent = v.Parent.Head, | |
| 459 | Size = UDim2.new(1, 0, 1, 0), | |
| 460 | Adornee = v.Parent.Head, | |
| 461 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 462 | } | |
| 463 | local TL = Create("TextLabel"){
| |
| 464 | Parent = BillG, | |
| 465 | Size = UDim2.new(3, 3, 3, 3), | |
| 466 | BackgroundTransparency = 1, | |
| 467 | Text = tostring(damage).."-", | |
| 468 | TextColor3 = Color1.Color, | |
| 469 | TextStrokeColor3 = Color2.Color, | |
| 470 | TextStrokeTransparency = 0, | |
| 471 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 472 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 473 | FontSize = Enum.FontSize.Size18, | |
| 474 | Font = "ArialBold", | |
| 475 | } | |
| 476 | coroutine.resume(coroutine.create(function() | |
| 477 | wait(1) | |
| 478 | for i = 0, 1, .1 do | |
| 479 | wait(.1) | |
| 480 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 481 | end | |
| 482 | BillG:Destroy() | |
| 483 | end)) | |
| 484 | end | |
| 485 | v.Health = v.Health - damage | |
| 486 | local bool = Create("BoolValue"){
| |
| 487 | Parent = v, | |
| 488 | Name = 'Hitz', | |
| 489 | } | |
| 490 | if HSound ~= nil and HPitch ~= nil then | |
| 491 | CreateSound(HSound, hit, 1, HPitch) | |
| 492 | end | |
| 493 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 494 | end | |
| 495 | end | |
| 496 | end | |
| 497 | end | |
| 498 | ||
| 499 | ||
| 500 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 501 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 502 | prt.Anchored = true | |
| 503 | prt.CFrame = cframe | |
| 504 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 505 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 506 | if Type == 1 or Type == nil then | |
| 507 | table.insert(Effects, {
| |
| 508 | prt, | |
| 509 | "Block1", | |
| 510 | delay, | |
| 511 | x3, | |
| 512 | y3, | |
| 513 | z3, | |
| 514 | msh | |
| 515 | }) | |
| 516 | elseif Type == 2 then | |
| 517 | table.insert(Effects, {
| |
| 518 | prt, | |
| 519 | "Block2", | |
| 520 | delay, | |
| 521 | x3, | |
| 522 | y3, | |
| 523 | z3, | |
| 524 | msh | |
| 525 | }) | |
| 526 | elseif Type == 3 then | |
| 527 | table.insert(Effects, {
| |
| 528 | prt, | |
| 529 | "Block3", | |
| 530 | delay, | |
| 531 | x3, | |
| 532 | y3, | |
| 533 | z3, | |
| 534 | msh | |
| 535 | }) | |
| 536 | end | |
| 537 | end | |
| 538 | ||
| 539 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 540 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 541 | prt.Anchored = true | |
| 542 | prt.CFrame = cframe | |
| 543 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 544 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 545 | table.insert(Effects, {
| |
| 546 | prt, | |
| 547 | "Cylinder", | |
| 548 | delay, | |
| 549 | x3, | |
| 550 | y3, | |
| 551 | z3, | |
| 552 | msh | |
| 553 | }) | |
| 554 | end | |
| 555 | ||
| 556 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 557 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 558 | prt.Anchored = true | |
| 559 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 560 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 561 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 562 | table.insert(Effects, {
| |
| 563 | prt, | |
| 564 | "Cylinder", | |
| 565 | delay, | |
| 566 | x3, | |
| 567 | y3, | |
| 568 | z3, | |
| 569 | msh | |
| 570 | }) | |
| 571 | end | |
| 572 | ||
| 573 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 574 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 575 | prt.Anchored = true | |
| 576 | prt.CFrame = cframe | |
| 577 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 578 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 579 | table.insert(Effects, {
| |
| 580 | prt, | |
| 581 | "Cylinder", | |
| 582 | delay, | |
| 583 | x3, | |
| 584 | y3, | |
| 585 | z3, | |
| 586 | msh | |
| 587 | }) | |
| 588 | end | |
| 589 | ||
| 590 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 591 | local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 592 | prt.Anchored = true | |
| 593 | prt.CFrame = cframe | |
| 594 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 595 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 596 | table.insert(Effects, {
| |
| 597 | prt, | |
| 598 | "Cylinder", | |
| 599 | delay, | |
| 600 | x3, | |
| 601 | y3, | |
| 602 | z3, | |
| 603 | msh | |
| 604 | }) | |
| 605 | end | |
| 606 | ||
| 607 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 608 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 609 | prt.Anchored = true | |
| 610 | prt.CFrame = cframe | |
| 611 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 612 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 613 | table.insert(Effects, {
| |
| 614 | prt, | |
| 615 | "Cylinder", | |
| 616 | delay, | |
| 617 | x3, | |
| 618 | y3, | |
| 619 | z3, | |
| 620 | msh | |
| 621 | }) | |
| 622 | end | |
| 623 | ||
| 624 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 625 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 626 | prt.Anchored = true | |
| 627 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 628 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 629 | local num = math.random(10, 50) / 1000 | |
| 630 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 631 | table.insert(Effects, {
| |
| 632 | prt, | |
| 633 | "Shatter", | |
| 634 | num, | |
| 635 | prt.CFrame, | |
| 636 | math.random() - math.random(), | |
| 637 | 0, | |
| 638 | math.random(50, 100) / 100 | |
| 639 | }) | |
| 640 | end | |
| 641 | ||
| 642 | ||
| 643 | ||
| 644 | ||
| 645 | for i = 0, 1, 0.05 do | |
| 646 | swait() | |
| 647 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 648 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 649 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 650 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 651 | if Torsovelocity > 2 then | |
| 652 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 653 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 654 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 655 | elseif Torsovelocity < 1 then | |
| 656 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 657 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 658 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 659 | end | |
| 660 | end | |
| 661 | attack = false | |
| 662 | ||
| 663 | ||
| 664 | ||
| 665 | game:GetService'RunService'.Stepped:connect(function() | |
| 666 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 667 | velocity = RootPart.Velocity.y | |
| 668 | sine = sine + change | |
| 669 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 670 | if equipped == true or equipped == false then | |
| 671 | if RootPart.Velocity.y > -1 and hit == nil then | |
| 672 | Anim = "Jump" | |
| 673 | inair = true | |
| 674 | ||
| 675 | if attack == false then | |
| 676 | s.Pitch = 1 | |
| 677 | s.Volume = 5 | |
| 678 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1) | |
| 679 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 680 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1) | |
| 681 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1) | |
| 682 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 683 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 684 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 685 | end | |
| 686 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 687 | Anim = "Fall" | |
| 688 | inair = true | |
| 689 | ||
| 690 | if attack == false then | |
| 691 | s.Pitch = .7 | |
| 692 | s.Volume = 5 | |
| 693 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 694 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 695 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05) | |
| 696 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05) | |
| 697 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 698 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 699 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 700 | end | |
| 701 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 702 | Anim = "Idle" | |
| 703 | ||
| 704 | inair = false | |
| 705 | if attack == false then | |
| 706 | s.Pitch = .7 | |
| 707 | s.Volume = 5 | |
| 708 | change = 0.8 | |
| 709 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 710 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 711 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 712 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 713 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 714 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 715 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 716 | end --]] | |
| 717 | ||
| 718 | elseif Torsovelocity > 1 and hit ~= nil then | |
| 719 | Anim = "Walk" | |
| 720 | inair = false | |
| 721 | ||
| 722 | if attack == false and Runkey == true then | |
| 723 | s.Pitch = 1.2 | |
| 724 | s.Volume = 5 | |
| 725 | ||
| 726 | change = 1 | |
| 727 | Humanoid.WalkSpeed = 60 | |
| 728 | Humanoid.JumpPower = 105 | |
| 729 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4) | |
| 730 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .2) | |
| 731 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2) | |
| 732 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2) | |
| 733 | RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4) | |
| 734 | LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4) | |
| 735 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4) | |
| 736 | end | |
| 737 | if attack == false and Runkey == false then | |
| 738 | s.Pitch = .8 | |
| 739 | s.Volume = 5 | |
| 740 | change = 0.65 | |
| 741 | Humanoid.WalkSpeed = 30 | |
| 742 | Humanoid.JumpPower = 50 | |
| 743 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3) | |
| 744 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1) | |
| 745 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 746 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 747 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 748 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 749 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 750 | end | |
| 751 | ||
| 752 | function onClimbing(speed) | |
| 753 | if attack == false then | |
| 754 | attack = true | |
| 755 | Climbanim= true | |
| 756 | Humanoid.WalkSpeed = 14 | |
| 757 | while Climbanim == true do | |
| 758 | for i = 0, 0, 0.1 do | |
| 759 | swait() | |
| 760 | ||
| 761 | change = 0.5 | |
| 762 | ||
| 763 | ||
| 764 | ||
| 765 | if RootPart.Velocity.y > .01 then | |
| 766 | s.Pitch = .9 | |
| 767 | s.Volume = 5 | |
| 768 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3) | |
| 769 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 770 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 771 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 772 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 773 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 774 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 775 | end | |
| 776 | ||
| 777 | ||
| 778 | ||
| 779 | ||
| 780 | if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then | |
| 781 | s.Pitch = .7 | |
| 782 | s.Volume = 5 | |
| 783 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1) | |
| 784 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 785 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 786 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 787 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 788 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 789 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 790 | end | |
| 791 | ||
| 792 | ||
| 793 | if RootPart.Velocity.y < -1 then | |
| 794 | s.Pitch = .9 | |
| 795 | s.Volume = 5 | |
| 796 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3) | |
| 797 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 798 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 799 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 800 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 801 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 802 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end | |
| 803 | ||
| 804 | end | |
| 805 | if Torsovelocity > 1 then | |
| 806 | Climbanim = false | |
| 807 | end | |
| 808 | end | |
| 809 | attack = false | |
| 810 | end | |
| 811 | end | |
| 812 | Humanoid.Climbing:connect(onClimbing) | |
| 813 | ||
| 814 | ||
| 815 | ||
| 816 | end | |
| 817 | end | |
| 818 | ||
| 819 | ||
| 820 | if #Effects > 0 then | |
| 821 | for e = 1, #Effects do | |
| 822 | if Effects[e] ~= nil then | |
| 823 | local Thing = Effects[e] | |
| 824 | if Thing ~= nil then | |
| 825 | local Part = Thing[1] | |
| 826 | local Mode = Thing[2] | |
| 827 | local Delay = Thing[3] | |
| 828 | local IncX = Thing[4] | |
| 829 | local IncY = Thing[5] | |
| 830 | local IncZ = Thing[6] | |
| 831 | if Thing[1].Transparency <= 1 then | |
| 832 | if Thing[2] == "Block1" then | |
| 833 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 834 | local Mesh = Thing[1].Mesh | |
| 835 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 836 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 837 | elseif Thing[2] == "Block2" then | |
| 838 | Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0) | |
| 839 | local Mesh = Thing[7] | |
| 840 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 841 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 842 | elseif Thing[2] == "Block3" then | |
| 843 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0) | |
| 844 | local Mesh = Thing[7] | |
| 845 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 846 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 847 | elseif Thing[2] == "Cylinder" then | |
| 848 | local Mesh = Thing[1].Mesh | |
| 849 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 850 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 851 | elseif Thing[2] == "Blood" then | |
| 852 | local Mesh = Thing[7] | |
| 853 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 854 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 855 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 856 | elseif Thing[2] == "Elec" then | |
| 857 | local Mesh = Thing[1].Mesh | |
| 858 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 859 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 860 | elseif Thing[2] == "Disappear" then | |
| 861 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 862 | elseif Thing[2] == "Shatter" then | |
| 863 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 864 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 865 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 866 | Thing[6] = Thing[6] + Thing[5] | |
| 867 | end | |
| 868 | else | |
| 869 | Part.Parent = nil | |
| 870 | table.remove(Effects, e) | |
| 871 | end | |
| 872 | end | |
| 873 | end | |
| 874 | end | |
| 875 | end | |
| 876 | end) | |
| 877 | ||
| 878 | ||
| 879 | Effects = {
| |
| 880 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
| |
| 881 | ||
| 882 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 883 | prt.Anchored = true | |
| 884 | prt.CFrame = cframe | |
| 885 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 886 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 887 | if Type == 1 or Type == nil then | |
| 888 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 889 | else | |
| 890 | if Type == 2 then | |
| 891 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 892 | else | |
| 893 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
| |
| 894 | end | |
| 895 | end | |
| 896 | end | |
| 897 | } | |
| 898 | , | |
| 899 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 900 | ||
| 901 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 902 | prt.Anchored = true | |
| 903 | prt.CFrame = cframe | |
| 904 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 905 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 906 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 907 | end | |
| 908 | } | |
| 909 | , | |
| 910 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 911 | ||
| 912 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 913 | prt.Anchored = true | |
| 914 | prt.CFrame = cframe | |
| 915 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 916 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 917 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 918 | end | |
| 919 | } | |
| 920 | , | |
| 921 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 922 | ||
| 923 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 924 | prt.Anchored = true | |
| 925 | prt.CFrame = cframe | |
| 926 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
| |
| 927 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 928 | table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
| |
| 929 | end | |
| 930 | } | |
| 931 | , | |
| 932 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 933 | ||
| 934 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 935 | prt.Anchored = true | |
| 936 | prt.CFrame = cframe | |
| 937 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 938 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 939 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 940 | end | |
| 941 | } | |
| 942 | , | |
| 943 | Break = {Create = function(brickcolor, cframe, x1, y1, z1)
| |
| 944 | ||
| 945 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 946 | prt.Anchored = true | |
| 947 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 948 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 949 | local num = math.random(10, 50) / 1000 | |
| 950 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 951 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
| |
| 952 | end | |
| 953 | } | |
| 954 | } | |
| 955 | ||
| 956 | ||
| 957 | ||
| 958 | RemoveOutlines = function(part) | |
| 959 | ||
| 960 | part.TopSurface = 10 | |
| 961 | end | |
| 962 | ||
| 963 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 964 | ||
| 965 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 966 | RemoveOutlines(Part) | |
| 967 | return Part | |
| 968 | end | |
| 969 | ||
| 970 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 971 | ||
| 972 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 973 | if Mesh == "SpecialMesh" then | |
| 974 | Msh.MeshType = MeshType | |
| 975 | Msh.MeshId = MeshId | |
| 976 | end | |
| 977 | return Msh | |
| 978 | end | |
| 979 | ||
| 980 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
| 981 | ||
| 982 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 983 | return Weld | |
| 984 | end | |
| 985 | ||
| 986 | ||
| 987 | ||
| 988 | ||
| 989 | WSHM = {'White',"Pastel light red"}
| |
| 990 | WSH = WSHM[math.random(1,#WSHM)] | |
| 991 | ||
| 992 | ||
| 993 | IcePartFunk = function(HPart,aria,Min,Max) | |
| 994 | ||
| 995 | IcePart = Instance.new("Part",HPart)
| |
| 996 | IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max)) | |
| 997 | IcePart.CanCollide = false | |
| 998 | IuW = Instance.new("Weld")
| |
| 999 | IuW.Name = "GuW" | |
| 1000 | IuW.Part0 = HPart | |
| 1001 | IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180)) | |
| 1002 | IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0) | |
| 1003 | IuW.Part1 = IcePart | |
| 1004 | IuW.Parent = HPart | |
| 1005 | IcePart.Transparency = .85 | |
| 1006 | IcePart.Material= "Neon" | |
| 1007 | WSH = WSHM[math.random(1,#WSHM)] | |
| 1008 | IcePart.BrickColor = BrickColor.new(""..WSH)
| |
| 1009 | ||
| 1010 | RemoveOutlines(IcePart) | |
| 1011 | game:GetService("Debris"):AddItem(IuW, 4)
| |
| 1012 | game:GetService("Debris"):AddItem(IcePart, 6)
| |
| 1013 | ||
| 1014 | ||
| 1015 | end | |
| 1016 | --[[ | |
| 1017 | GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max) | |
| 1018 | ||
| 1019 | IcePart2 = Instance.new("Part",HPart)
| |
| 1020 | IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max)) | |
| 1021 | IcePart2.CanCollide = false | |
| 1022 | RemoveOutlines(IcePart2) | |
| 1023 | IcePart2.Anchored = true | |
| 1024 | ||
| 1025 | ||
| 1026 | ||
| 1027 | IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))) | |
| 1028 | ||
| 1029 | ||
| 1030 | ||
| 1031 | ||
| 1032 | ||
| 1033 | ||
| 1034 | IcePart2.Transparency = .85 | |
| 1035 | IcePart2.Material= "Neon" | |
| 1036 | ||
| 1037 | IcePart2.BrickColor = BrickColor.new(""..color)
| |
| 1038 | ||
| 1039 | ||
| 1040 | ||
| 1041 | game:GetService("Debris"):AddItem(IcePart2, 6)
| |
| 1042 | ||
| 1043 | ||
| 1044 | end | |
| 1045 | --]] | |
| 1046 | GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num) | |
| 1047 | ||
| 1048 | IcePart2 = Instance.new("Part",HPart)
| |
| 1049 | IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max)) | |
| 1050 | IcePart2.CanCollide = false | |
| 1051 | RemoveOutlines(IcePart2) | |
| 1052 | IcePart2.Anchored = true | |
| 1053 | game:GetService("Debris"):AddItem(IcePart2, .4)
| |
| 1054 | IcePart2.Transparency = .3 | |
| 1055 | IcePart2.Material= "Neon" | |
| 1056 | IcePart2.BrickColor = BrickColor.new(""..color)
| |
| 1057 | ||
| 1058 | IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45))) | |
| 1059 | for i = 0,num do | |
| 1060 | if num > 1 then | |
| 1061 | GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0) | |
| 1062 | end | |
| 1063 | end | |
| 1064 | ||
| 1065 | ||
| 1066 | ||
| 1067 | ||
| 1068 | ||
| 1069 | ||
| 1070 | ||
| 1071 | ||
| 1072 | ||
| 1073 | ||
| 1074 | ||
| 1075 | end | |
| 1076 | ||
| 1077 | ||
| 1078 | ||
| 1079 | ||
| 1080 | ||
| 1081 | SpikeMeshId = 1033714 | |
| 1082 | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
| 1083 | ||
| 1084 | ||
| 1085 | local Part = Instance.new("Part", Parent)
| |
| 1086 | Part.Name = Name | |
| 1087 | Part.BrickColor = BrickColor.new(Color) | |
| 1088 | Part.Size = Size | |
| 1089 | Part.Material = Material | |
| 1090 | Part.Transparency = Transparency | |
| 1091 | Part.CanCollide = false | |
| 1092 | RemoveOutlines(Part) | |
| 1093 | ||
| 1094 | local Mesh = Instance.new("SpecialMesh", Part)
| |
| 1095 | Mesh.MeshType = "Sphere" | |
| 1096 | Mesh.Scale = Scale | |
| 1097 | ||
| 1098 | return Mesh and Part | |
| 1099 | ||
| 1100 | end | |
| 1101 | ||
| 1102 | ||
| 1103 | ||
| 1104 | ||
| 1105 | ||
| 1106 | ||
| 1107 | ||
| 1108 | ||
| 1109 | CFuncs = {
| |
| 1110 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
| |
| 1111 | ||
| 1112 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 1113 | RemoveOutlines(Part) | |
| 1114 | return Part | |
| 1115 | end | |
| 1116 | } | |
| 1117 | , | |
| 1118 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 1119 | ||
| 1120 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 1121 | if Mesh == "SpecialMesh" then | |
| 1122 | Msh.MeshType = MeshType | |
| 1123 | Msh.MeshId = MeshId | |
| 1124 | end | |
| 1125 | return Msh | |
| 1126 | end | |
| 1127 | } | |
| 1128 | , | |
| 1129 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 1130 | ||
| 1131 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 1132 | if Mesh == "SpecialMesh" then | |
| 1133 | Msh.MeshType = MeshType | |
| 1134 | Msh.MeshId = MeshId | |
| 1135 | end | |
| 1136 | return Msh | |
| 1137 | end | |
| 1138 | } | |
| 1139 | , | |
| 1140 | Weld = {Create = function(Parent, Part0, Part1, C0, C1)
| |
| 1141 | ||
| 1142 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 1143 | return Weld | |
| 1144 | end | |
| 1145 | } | |
| 1146 | , | |
| 1147 | Sound = {Create = function(id, par, vol, pit)
| |
| 1148 | ||
| 1149 | coroutine.resume(coroutine.create(function() | |
| 1150 | ||
| 1151 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
| |
| 1152 | wait() | |
| 1153 | S:play() | |
| 1154 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1155 | end | |
| 1156 | )) | |
| 1157 | end | |
| 1158 | } | |
| 1159 | , | |
| 1160 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
| |
| 1161 | ||
| 1162 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
| |
| 1163 | return fp | |
| 1164 | end | |
| 1165 | } | |
| 1166 | } | |
| 1167 | ||
| 1168 | ||
| 1169 | ||
| 1170 | ||
| 1171 | ||
| 1172 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1173 | ||
| 1174 | if hit.Parent == nil then | |
| 1175 | return | |
| 1176 | end | |
| 1177 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1178 | for _,v in pairs(hit.Parent:children()) do | |
| 1179 | if v:IsA("Humanoid") then
| |
| 1180 | h.MaxHealth = 100 | |
| 1181 | h = v | |
| 1182 | end | |
| 1183 | end | |
| 1184 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1185 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1186 | return | |
| 1187 | end | |
| 1188 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
| |
| 1189 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1190 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1191 | CreateSound(HitSound, hit, 1, HitPitch) | |
| 1192 | end | |
| 1193 | local Damage = math.random(minim, maxim) | |
| 1194 | local blocked = false | |
| 1195 | local block = hit.Parent:findFirstChild("Block")
| |
| 1196 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1197 | blocked = true | |
| 1198 | block.Value = block.Value - 1 | |
| 1199 | print(block.Value) | |
| 1200 | end | |
| 1201 | if blocked == false then | |
| 1202 | h.Health = h.Health - Damage | |
| 1203 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1204 | else | |
| 1205 | h.Health = h.Health - Damage / 2 | |
| 1206 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1207 | end | |
| 1208 | if hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1209 | lasthit = hit.Parent.Torso | |
| 1210 | end | |
| 1211 | if Type == "Knockdown" then | |
| 1212 | local hum = hit.Parent.Humanoid | |
| 1213 | hum.PlatformStand = true | |
| 1214 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1215 | ||
| 1216 | swait(.2) | |
| 1217 | HHumanoid.PlatformStand = false | |
| 1218 | end | |
| 1219 | ), hum) | |
| 1220 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1221 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
| |
| 1222 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
| |
| 1223 | game:GetService("Debris"):AddItem(bodvol, 0.1)
| |
| 1224 | game:GetService("Debris"):AddItem(rl, 0.1)
| |
| 1225 | elseif Type == "Normal" then | |
| 1226 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
| |
| 1227 | if knockback > 0 then | |
| 1228 | vp.Parent = hit.Parent.Torso | |
| 1229 | end | |
| 1230 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1231 | elseif Type == "Impale" then | |
| 1232 | ||
| 1233 | local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5)) | |
| 1234 | Spike.Anchored = true | |
| 1235 | Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45)) | |
| 1236 | Spike.Position = hit.Parent.Torso.Position | |
| 1237 | ||
| 1238 | Services.Debris:AddItem(Spike, 4) | |
| 1239 | ||
| 1240 | ||
| 1241 | ||
| 1242 | ||
| 1243 | ||
| 1244 | ||
| 1245 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
| |
| 1246 | hit.Parent.Humanoid.PlatformStand = true | |
| 1247 | ||
| 1248 | ||
| 1249 | swait(1) | |
| 1250 | hit.Parent.Humanoid.PlatformStand = false | |
| 1251 | elseif Type == "Up" then | |
| 1252 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 1253 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
| |
| 1254 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 1255 | game:GetService("Debris"):AddItem(bodyVelocity, .1)
| |
| 1256 | ||
| 1257 | ||
| 1258 | ||
| 1259 | elseif Type == "UltSlice" then | |
| 1260 | ||
| 1261 | BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
| |
| 1262 | BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
| |
| 1263 | BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
| |
| 1264 | BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
| |
| 1265 | BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
| |
| 1266 | BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
| |
| 1267 | BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
| |
| 1268 | ||
| 1269 | ||
| 1270 | elseif Type == "Slice" then | |
| 1271 | local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
| |
| 1272 | game:GetService("Debris"):AddItem(bp2, 1)
| |
| 1273 | ||
| 1274 | if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
| |
| 1275 | for i = 1,10 do | |
| 1276 | Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
| |
| 1277 | ||
| 1278 | ||
| 1279 | end | |
| 1280 | end | |
| 1281 | ||
| 1282 | ||
| 1283 | ||
| 1284 | ||
| 1285 | elseif Type == "Snare" then | |
| 1286 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
| |
| 1287 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1288 | elseif Type == "Slowness" then | |
| 1289 | local SpeedSave=hit.Parent.Humanoid.WalkSpeed | |
| 1290 | ||
| 1291 | for i = 1,25 do | |
| 1292 | hit.Parent.Humanoid.WalkSpeed = 4 | |
| 1293 | IcePartFunk(hit.Parent.Torso,.55,0.1,1) | |
| 1294 | end | |
| 1295 | wait(4) | |
| 1296 | hit.Parent.Humanoid.WalkSpeed = SpeedSave | |
| 1297 | elseif Type == "Firedmg" then | |
| 1298 | ||
| 1299 | for i = 1,math.random(1, 6) do | |
| 1300 | if hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1301 | BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
| |
| 1302 | BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
| |
| 1303 | BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
| |
| 1304 | ||
| 1305 | ||
| 1306 | ||
| 1307 | wait(.1) | |
| 1308 | end | |
| 1309 | end | |
| 1310 | ||
| 1311 | elseif Type == "Freeze" then | |
| 1312 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
| |
| 1313 | game:GetService("Debris"):AddItem(bp, 4)
| |
| 1314 | for i=1,25 do | |
| 1315 | IcePartFunk(hit.Parent.Torso,1,1.5,2) | |
| 1316 | end | |
| 1317 | elseif Type == "Freeze2" then | |
| 1318 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
| |
| 1319 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
| |
| 1320 | hit.Parent.Torso.Anchored = true | |
| 1321 | coroutine.resume(coroutine.create(function(Part) | |
| 1322 | ||
| 1323 | swait(1.5) | |
| 1324 | Part.Anchored = false | |
| 1325 | end | |
| 1326 | ), hit.Parent.Torso) | |
| 1327 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1328 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1329 | end | |
| 1330 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
| |
| 1331 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1332 | c = Instance.new("ObjectValue")
| |
| 1333 | c.Name = "creator" | |
| 1334 | c.Value = Player | |
| 1335 | c.Parent = h | |
| 1336 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1337 | end | |
| 1338 | end | |
| 1339 | ||
| 1340 | ShowDamage = function(Pos, Text, Time, Color) | |
| 1341 | ||
| 1342 | local Rate = 0.033333333333333 | |
| 1343 | if not Pos then | |
| 1344 | local Pos = Vector3.new(0, 0, 0) | |
| 1345 | end | |
| 1346 | local Text = Text or "" | |
| 1347 | local Time = Time or 2 | |
| 1348 | if not Color then | |
| 1349 | local Color = Color3.new(1, 0, 1) | |
| 1350 | end | |
| 1351 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1352 | EffectPart.Anchored = true | |
| 1353 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
| |
| 1354 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
| |
| 1355 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1356 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1357 | delay(0, function() | |
| 1358 | ||
| 1359 | local Frames = Time / Rate | |
| 1360 | for Frame = 1, Frames do | |
| 1361 | wait(Rate) | |
| 1362 | local Percent = Frame / Frames | |
| 1363 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1364 | TextLabel.TextTransparency = Percent | |
| 1365 | end | |
| 1366 | if EffectPart and EffectPart.Parent then | |
| 1367 | EffectPart:Destroy() | |
| 1368 | end | |
| 1369 | end | |
| 1370 | ) | |
| 1371 | end | |
| 1372 | ||
| 1373 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
| 1374 | ||
| 1375 | for _,c in pairs(workspace:children()) do | |
| 1376 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 1377 | if hum ~= nil then | |
| 1378 | local head = c:findFirstChild("Head")
| |
| 1379 | if head ~= nil then | |
| 1380 | local targ = head.Position - Part.Position | |
| 1381 | local mag = targ.magnitude | |
| 1382 | if mag <= magni and c.Name ~= Player.Name then | |
| 1383 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.001, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 1384 | end | |
| 1385 | end | |
| 1386 | end | |
| 1387 | end | |
| 1388 | end | |
| 1389 | MagniKILL = function(Part, magni, knock, Type) | |
| 1390 | ||
| 1391 | for _,c in pairs(workspace:children()) do | |
| 1392 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 1393 | if hum ~= nil then | |
| 1394 | local head = c:findFirstChild("Head")
| |
| 1395 | if head ~= nil then | |
| 1396 | local targ = head.Position - Part.Position | |
| 1397 | local mag = targ.magnitude | |
| 1398 | if mag <= magni and c.Name ~= Player.Name then | |
| 1399 | hum.Health = 0 | |
| 1400 | end | |
| 1401 | end | |
| 1402 | end | |
| 1403 | end | |
| 1404 | end | |
| 1405 | EffectModel = Instance.new("Model", Character)
| |
| 1406 | EffectModel.Name = "Effects" | |
| 1407 | ||
| 1408 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1409 | ||
| 1410 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1411 | prt.Anchored = true | |
| 1412 | prt.CFrame = cframe | |
| 1413 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1414 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1415 | if Type == 1 or Type == nil then | |
| 1416 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 1417 | else | |
| 1418 | if Type == 2 then | |
| 1419 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 1420 | else | |
| 1421 | if Type == 3 then | |
| 1422 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
| |
| 1423 | end | |
| 1424 | end | |
| 1425 | end | |
| 1426 | end | |
| 1427 | CreateSound = function(id, par, vol, pit) | |
| 1428 | ||
| 1429 | coroutine.resume(coroutine.create(function() | |
| 1430 | ||
| 1431 | local sou = Instance.new("Sound", par or workspace)
| |
| 1432 | sou.Volume = vol | |
| 1433 | sou.Pitch = pit or 1 | |
| 1434 | sou.SoundId = id | |
| 1435 | swait() | |
| 1436 | sou:play() | |
| 1437 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 1438 | end | |
| 1439 | )) | |
| 1440 | end | |
| 1441 | ||
| 1442 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1443 | ||
| 1444 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1445 | prt.Anchored = true | |
| 1446 | prt.CFrame = cframe | |
| 1447 | prt.Material = "Neon" | |
| 1448 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1449 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1450 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1451 | ||
| 1452 | for i = 0, 6, delay do | |
| 1453 | swait() | |
| 1454 | Part.Transparency = i | |
| 1455 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
| 1456 | end | |
| 1457 | Part.Parent = nil | |
| 1458 | end | |
| 1459 | ), prt, msh) | |
| 1460 | end | |
| 1461 | ||
| 1462 | shoottraildd = function(mouse, partt, SpreadAmount) | |
| 1463 | ||
| 1464 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount)) | |
| 1465 | local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2 | |
| 1466 | local MainPos2 = mouse + SpreadVectors | |
| 1467 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1468 | local speed = 100 | |
| 1469 | local num = 1 | |
| 1470 | coroutine.resume(coroutine.create(function() | |
| 1471 | ||
| 1472 | repeat | |
| 1473 | swait() | |
| 1474 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1475 | local mag = (MainPos - pos).magnitude | |
| 1476 | Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
| |
| 1477 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1478 | num = num - 1 | |
| 1479 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1480 | if hit ~= nil then | |
| 1481 | num = 0 | |
| 1482 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1483 | refpart.Anchored = true | |
| 1484 | refpart.CFrame = CFrame.new(pos) | |
| 1485 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1486 | end | |
| 1487 | do | |
| 1488 | if num <= 0 then | |
| 1489 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1490 | refpart.Anchored = true | |
| 1491 | refpart.CFrame = CFrame.new(pos) | |
| 1492 | if hit ~= nil then | |
| 1493 | ||
| 1494 | ||
| 1495 | ||
| 1496 | GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2) | |
| 1497 | BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
| |
| 1498 | -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
| |
| 1499 | -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
| |
| 1500 | MagniDamage(refpart, 6, 10, 25, 0, "Slice") | |
| 1501 | end | |
| 1502 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1503 | end | |
| 1504 | end | |
| 1505 | until num <= 0 | |
| 1506 | end | |
| 1507 | )) | |
| 1508 | end | |
| 1509 | ||
| 1510 | shoottraildd2 = function(mouse, partt, SpreadAmount) | |
| 1511 | ||
| 1512 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1513 | local MainPos = partt.Position | |
| 1514 | local MainPos2 = mouse + SpreadVectors | |
| 1515 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1516 | local speed = 1000 | |
| 1517 | local num = 1 | |
| 1518 | coroutine.resume(coroutine.create(function() | |
| 1519 | ||
| 1520 | repeat | |
| 1521 | swait() | |
| 1522 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1523 | local mag = (MainPos - pos).magnitude | |
| 1524 | Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
| |
| 1525 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1526 | num = num - 1 | |
| 1527 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1528 | if hit ~= nil then | |
| 1529 | num = 0 | |
| 1530 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1531 | refpart.Anchored = true | |
| 1532 | refpart.CFrame = CFrame.new(pos) | |
| 1533 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1534 | end | |
| 1535 | do | |
| 1536 | if num <= 0 then | |
| 1537 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1538 | refpart.Anchored = true | |
| 1539 | refpart.CFrame = CFrame.new(pos) | |
| 1540 | if hit ~= nil then | |
| 1541 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
| |
| 1542 | BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
| |
| 1543 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
| |
| 1544 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
| |
| 1545 | MagniKILL(refpart, 80, 0, "Normal") | |
| 1546 | end | |
| 1547 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1548 | end | |
| 1549 | end | |
| 1550 | until num <= 0 | |
| 1551 | end | |
| 1552 | )) | |
| 1553 | end | |
| 1554 | ||
| 1555 | shoottraildd3 = function(mouse, partt, SpreadAmount, dmg) | |
| 1556 | ||
| 1557 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1558 | local MainPos = partt.Position | |
| 1559 | local MainPos2 = mouse + SpreadVectors | |
| 1560 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1561 | local speed = 200 | |
| 1562 | local num = 0 | |
| 1563 | coroutine.resume(coroutine.create(function() | |
| 1564 | ||
| 1565 | repeat | |
| 1566 | swait() | |
| 1567 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1568 | local mag = (MainPos - pos).magnitude | |
| 1569 | Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
| |
| 1570 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1571 | num = num - 1 | |
| 1572 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1573 | if hit ~= nil then | |
| 1574 | num = 0 | |
| 1575 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1576 | refpart.Anchored = true | |
| 1577 | refpart.CFrame = CFrame.new(pos) | |
| 1578 | BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
| |
| 1579 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1580 | end | |
| 1581 | do | |
| 1582 | if num <= 0 then | |
| 1583 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1584 | refpart.Anchored = true | |
| 1585 | refpart.CFrame = CFrame.new(pos) | |
| 1586 | if hit ~= nil then | |
| 1587 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
| |
| 1588 | BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
| |
| 1589 | BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
| |
| 1590 | ||
| 1591 | ||
| 1592 | MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness") | |
| 1593 | ||
| 1594 | end | |
| 1595 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1596 | end | |
| 1597 | end | |
| 1598 | until num <= 0 | |
| 1599 | end | |
| 1600 | )) | |
| 1601 | end | |
| 1602 | ||
| 1603 | shoottraildd4 = function(mouse, partt, SpreadAmount, dmg) | |
| 1604 | ||
| 1605 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1606 | local MainPos = partt.Position | |
| 1607 | local MainPos2 = mouse + SpreadVectors | |
| 1608 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1609 | local speed = 150 | |
| 1610 | local num = 1 | |
| 1611 | coroutine.resume(coroutine.create(function() | |
| 1612 | ||
| 1613 | repeat | |
| 1614 | swait() | |
| 1615 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1616 | local mag = (MainPos - pos).magnitude | |
| 1617 | Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
| |
| 1618 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1619 | num = num - 1 | |
| 1620 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1621 | if hit ~= nil then | |
| 1622 | num = 0 | |
| 1623 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1624 | refpart.Anchored = true | |
| 1625 | refpart.CFrame = CFrame.new(pos) | |
| 1626 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1627 | end | |
| 1628 | do | |
| 1629 | if num <= 0 then | |
| 1630 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1631 | refpart.Anchored = true | |
| 1632 | refpart.CFrame = CFrame.new(pos) | |
| 1633 | if hit ~= nil then | |
| 1634 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
| |
| 1635 | BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
| |
| 1636 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
| |
| 1637 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
| |
| 1638 | MagniDamage(refpart, 6, dmg, dmg, 0, "Normal") | |
| 1639 | end | |
| 1640 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1641 | end | |
| 1642 | end | |
| 1643 | until num <= 0 | |
| 1644 | end | |
| 1645 | )) | |
| 1646 | end | |
| 1647 | ||
| 1648 | ||
| 1649 | ||
| 1650 | ||
| 1651 | ||
| 1652 | ||
| 1653 | ||
| 1654 | HitpartFunk3 = function(HPart3,Xv,Yv,Zv) | |
| 1655 | ||
| 1656 | Hitpart3 = Instance.new("Part",HPart3)
| |
| 1657 | RemoveOutlines(Hitpart3) | |
| 1658 | Hitpart3.Size = Vector3.new(1,1,1) | |
| 1659 | Hitpart3.CanCollide = false | |
| 1660 | HuW3 = Instance.new("Weld")
| |
| 1661 | HuW3.Name = "GuW" | |
| 1662 | HuW3.Part0 = HPart3 | |
| 1663 | HuW3.C0 = cn(Xv, Yv, Zv) | |
| 1664 | HuW3.C1 = cn(0, 0, 0) | |
| 1665 | HuW3.Part1 = Hitpart3 | |
| 1666 | HuW3.Parent = HPart3 | |
| 1667 | Hitpart3.Transparency = 1 | |
| 1668 | game:GetService("Debris"):AddItem(Hitpart3, 20)
| |
| 1669 | end | |
| 1670 | ||
| 1671 | HitpartFunk2 = function(HPart2,Xv,Yv,Zv) | |
| 1672 | ||
| 1673 | Hitpart2 = Instance.new("Part",HPart2)
| |
| 1674 | RemoveOutlines(Hitpart2) | |
| 1675 | Hitpart2.Size = Vector3.new(1,1,1) | |
| 1676 | Hitpart2.CanCollide = false | |
| 1677 | HuW2 = Instance.new("Weld")
| |
| 1678 | HuW2.Name = "GuW" | |
| 1679 | HuW2.Part0 = HPart2 | |
| 1680 | HuW2.C0 = cn(Xv, Yv, Zv) | |
| 1681 | HuW2.C1 = cn(0, 0, 0) | |
| 1682 | HuW2.Part1 = Hitpart2 | |
| 1683 | HuW2.Parent = HPart2 | |
| 1684 | Hitpart2.Transparency = 1 | |
| 1685 | game:GetService("Debris"):AddItem(Hitpart2, 20)
| |
| 1686 | end | |
| 1687 | ||
| 1688 | ||
| 1689 | HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb) | |
| 1690 | ||
| 1691 | Hitpart = Instance.new("Part",HPart)
| |
| 1692 | RemoveOutlines(Hitpart) | |
| 1693 | Hitpart.Size = Vector3.new(1,1,1) | |
| 1694 | Hitpart.CanCollide = false | |
| 1695 | HuW = Instance.new("Weld")
| |
| 1696 | HuW.Name = "GuW" | |
| 1697 | HuW.Part0 = HPart | |
| 1698 | HuW.C0 = cn(Xv, Yv, Zv) | |
| 1699 | HuW.C1 = cn(0, 0, 0) | |
| 1700 | HuW.Part1 = Hitpart | |
| 1701 | HuW.Parent = HPart | |
| 1702 | Hitpart.Transparency = 1 | |
| 1703 | game:GetService("Debris"):AddItem(Hitpart2, 20)
| |
| 1704 | MagniDamage(Hitpart, 4.5, Min, Max, kb, atype) | |
| 1705 | ||
| 1706 | end | |
| 1707 | HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb) | |
| 1708 | ||
| 1709 | Hitpart4 = Instance.new("Part",HPart)
| |
| 1710 | RemoveOutlines(Hitpart4) | |
| 1711 | Hitpart4.Size = Vector3.new(1,1,1) | |
| 1712 | Hitpart4.CanCollide = false | |
| 1713 | HuW4 = Instance.new("Weld")
| |
| 1714 | HuW4.Name = "HuW4" | |
| 1715 | HuW4.Part0 = HPart | |
| 1716 | HuW4.C0 = cn(Xv, Yv, Zv) | |
| 1717 | HuW4.C1 = cn(0, 0, 0) | |
| 1718 | HuW4.Part1 = Hitpart4 | |
| 1719 | HuW4.Parent = HPart | |
| 1720 | Hitpart4.Transparency = 1 | |
| 1721 | game:GetService("Debris"):AddItem(Hitpart4, 1.5)
| |
| 1722 | MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype) | |
| 1723 | ||
| 1724 | end | |
| 1725 | ||
| 1726 | ||
| 1727 | HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype) | |
| 1728 | ||
| 1729 | Hitboxpart = Instance.new("Part",Character)
| |
| 1730 | RemoveOutlines(Hitboxpart) | |
| 1731 | Hitboxpart.Size = Vector3.new(siz1,siz2,siz3) | |
| 1732 | Hitboxpart.CanCollide = false | |
| 1733 | Hitboxpart.Transparency = 1 | |
| 1734 | Hitboxpart.Anchored = true | |
| 1735 | Hitboxpart.CFrame = Pose | |
| 1736 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
| |
| 1737 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
| 1738 | ||
| 1739 | end | |
| 1740 | ||
| 1741 | ||
| 1742 | wait2 = false | |
| 1743 | ||
| 1744 | ||
| 1745 | combo = 1 | |
| 1746 | ||
| 1747 | ||
| 1748 | ||
| 1749 | ||
| 1750 | duljump = false | |
| 1751 | duljump2 = false | |
| 1752 | jumpatck = false | |
| 1753 | mouse.KeyDown:connect(function(k) | |
| 1754 | if k == "0" then | |
| 1755 | CFuncs['Sound'].Create("rbxassetid://891338458",Character,6,1)
| |
| 1756 | Runkey = true | |
| 1757 | end | |
| 1758 | if k == "x" then | |
| 1759 | airtime:play() | |
| 1760 | end | |
| 1761 | if k == "c" then | |
| 1762 | CFuncs['Sound'].Create("rbxassetid://892075913",Character,6,1)
| |
| 1763 | end | |
| 1764 | if k == "q" and attack == false then | |
| 1765 | attack = true | |
| 1766 | Humanoid.WalkSpeed = 0 | |
| 1767 | IKM = true | |
| 1768 | body.BrickColor = BrickColor.new("New Yeller")
| |
| 1769 | body.Color = Color3.new(1,1,0) | |
| 1770 | body.Reflectance = 0 | |
| 1771 | particle.LightEmission = 0.3 | |
| 1772 | particle.Texture = "rbxassetid://241629053" | |
| 1773 | particle.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 1774 | particle.Enabled = true | |
| 1775 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1776 | wait(0.1) | |
| 1777 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1778 | wait(1) | |
| 1779 | particle.Enabled = false | |
| 1780 | wait(2) | |
| 1781 | Humanoid.WalkSpeed = 30 | |
| 1782 | attack = false | |
| 1783 | end | |
| 1784 | ||
| 1785 | if k == "t" and attack == false then | |
| 1786 | attack = true | |
| 1787 | IKM = false | |
| 1788 | Humanoid.WalkSpeed = 0 | |
| 1789 | body.BrickColor = BrickColor.new("Really red")
| |
| 1790 | body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
| 1791 | body.Reflectance = 0.5 | |
| 1792 | particle.LightEmission = 0.3 | |
| 1793 | particle.Texture = "rbxassetid://241629053" | |
| 1794 | particle.Color = ColorSequence.new(Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))) | |
| 1795 | particle.Enabled = true | |
| 1796 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1797 | wait(0.1) | |
| 1798 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1799 | wait(1) | |
| 1800 | particle.Enabled = false | |
| 1801 | wait(2) | |
| 1802 | Humanoid.WalkSpeed = 30 | |
| 1803 | attack = false | |
| 1804 | end | |
| 1805 | ||
| 1806 | if k == "y" and attack == false then | |
| 1807 | attack = true | |
| 1808 | IKM = true | |
| 1809 | Humanoid.WalkSpeed = 0 | |
| 1810 | body.BrickColor = BrickColor.new("Really red")
| |
| 1811 | body.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1)) | |
| 1812 | body.Reflectance = 0.5 | |
| 1813 | particle.LightEmission = 0.9 | |
| 1814 | particle.Texture = "rbxassetid://280516525" | |
| 1815 | particle.Color = ColorSequence.new(ColorsArray) | |
| 1816 | particle.Enabled = true | |
| 1817 | CFuncs['Sound'].Create("rbxassetid://168615093",Character,5,1)
| |
| 1818 | wait(0.1) | |
| 1819 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1820 | wait(1) | |
| 1821 | particle.Enabled = false | |
| 1822 | wait(2) | |
| 1823 | Humanoid.WalkSpeed = 30 | |
| 1824 | attack = false | |
| 1825 | end | |
| 1826 | ||
| 1827 | if k == "r" and attack == false then | |
| 1828 | attack = true | |
| 1829 | Humanoid.WalkSpeed = 0 | |
| 1830 | IKM = false | |
| 1831 | body.BrickColor = BrickColor.new("Really Blue")
| |
| 1832 | body.Color = Color3.new(0,0,1) | |
| 1833 | body.Reflectance = 0 | |
| 1834 | particle.LightEmission = 0.3 | |
| 1835 | particle.Texture = "rbxassetid://241629053" | |
| 1836 | particle.Color = ColorSequence.new(Color3.new(0,0,1)) | |
| 1837 | particle.Enabled = true | |
| 1838 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1839 | wait(0.1) | |
| 1840 | CFuncs['Sound'].Create("rbxassetid://843338638",Character,5,0.75)
| |
| 1841 | wait(1) | |
| 1842 | particle.Enabled = false | |
| 1843 | wait(2) | |
| 1844 | Humanoid.WalkSpeed = 30 | |
| 1845 | attack = false | |
| 1846 | end | |
| 1847 | ||
| 1848 | if k == "e" and attack == false then | |
| 1849 | attack = true | |
| 1850 | ||
| 1851 | Humanoid.WalkSpeed = 0 | |
| 1852 | ||
| 1853 | CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 5, 1)
| |
| 1854 | ||
| 1855 | for i = 0, 2, 0.1 do | |
| 1856 | swait() | |
| 1857 | ||
| 1858 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 1859 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 1860 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2) | |
| 1861 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2) | |
| 1862 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 1863 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 1864 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 1865 | ||
| 1866 | ||
| 1867 | ||
| 1868 | end | |
| 1869 | ||
| 1870 | for i = 0, 4, 0.1 do | |
| 1871 | swait() | |
| 1872 | ||
| 1873 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 1874 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 1875 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05) | |
| 1876 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05) | |
| 1877 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 1878 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 1879 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 1880 | ||
| 1881 | ||
| 1882 | ||
| 1883 | end | |
| 1884 | for i = 0, 1 do | |
| 1885 | for i = 0, 1, 0.1 do | |
| 1886 | swait() | |
| 1887 | ||
| 1888 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 1889 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 1890 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 1891 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 1892 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 1893 | LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 1894 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 1895 | ||
| 1896 | ||
| 1897 | ||
| 1898 | end | |
| 1899 | for i = 0, 1, 0.1 do | |
| 1900 | swait() | |
| 1901 | ||
| 1902 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 1903 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 1904 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 1905 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1) | |
| 1906 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 1907 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 1908 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) | |
| 1909 | ||
| 1910 | ||
| 1911 | ||
| 1912 | end | |
| 1913 | end | |
| 1914 | ||
| 1915 | Humanoid.WalkSpeed = 30 | |
| 1916 | ||
| 1917 | attack = false | |
| 1918 | ||
| 1919 | ||
| 1920 | ||
| 1921 | ||
| 1922 | end | |
| 1923 | ||
| 1924 | ||
| 1925 | ||
| 1926 | ||
| 1927 | ||
| 1928 | ||
| 1929 | ||
| 1930 | ||
| 1931 | ||
| 1932 | ||
| 1933 | ||
| 1934 | ||
| 1935 | ||
| 1936 | ||
| 1937 | ||
| 1938 | ||
| 1939 | ||
| 1940 | end) | |
| 1941 | hitwait = false | |
| 1942 | function onTouch(part) | |
| 1943 | ||
| 1944 | local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
| |
| 1945 | local model = part.Parent | |
| 1946 | local torso = part.Parent:FindFirstChild("Torso")
| |
| 1947 | local head = part.Parent:findFirstChild("Head")
| |
| 1948 | local leftleg = part.Parent:findFirstChild("Left Leg")
| |
| 1949 | local rightleg = part.Parent:findFirstChild("Right Leg")
| |
| 1950 | local leftarm = part.Parent:findFirstChild("Left Arm")
| |
| 1951 | local rightarm = part.Parent:findFirstChild("Right Arm")
| |
| 1952 | ||
| 1953 | if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then | |
| 1954 | ||
| 1955 | hitwait = true | |
| 1956 | ||
| 1957 | ||
| 1958 | ||
| 1959 | ||
| 1960 | if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then | |
| 1961 | ||
| 1962 | if IKM == true then | |
| 1963 | Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
| |
| 1964 | Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
| |
| 1965 | model:BreakJoints() | |
| 1966 | CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
| |
| 1967 | local sel = math.random(3) | |
| 1968 | if sel == 1 then | |
| 1969 | CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
| |
| 1970 | end | |
| 1971 | if sel == 2 then | |
| 1972 | CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
| |
| 1973 | end | |
| 1974 | if sel == 3 then | |
| 1975 | CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
| |
| 1976 | end | |
| 1977 | ||
| 1978 | else | |
| 1979 | Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
| |
| 1980 | Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
| |
| 1981 | MagniDamage(FrontPart, 6.5, 30, 35, .3, "Knockdown") | |
| 1982 | CFuncs['Sound'].Create("rbxassetid://247264335",Character,4,1)
| |
| 1983 | local sel = math.random(3) | |
| 1984 | if sel == 1 then | |
| 1985 | CFuncs['Sound'].Create("rbxassetid://247264308",Character,4,1)
| |
| 1986 | end | |
| 1987 | if sel == 2 then | |
| 1988 | CFuncs['Sound'].Create("rbxassetid://247264326",Character,4,1)
| |
| 1989 | end | |
| 1990 | if sel == 3 then | |
| 1991 | CFuncs['Sound'].Create("rbxassetid://247264316",Character,4,1)
| |
| 1992 | end | |
| 1993 | end | |
| 1994 | ||
| 1995 | attack = true | |
| 1996 | Humanoid.WalkSpeed = 0 | |
| 1997 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
| |
| 1998 | ||
| 1999 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
| |
| 2000 | ||
| 2001 | for i = 0, .5, 0.1 do | |
| 2002 | swait() | |
| 2003 | ||
| 2004 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2) | |
| 2005 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1) | |
| 2006 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2) | |
| 2007 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2) | |
| 2008 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1) | |
| 2009 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1) | |
| 2010 | SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3) | |
| 2011 | ||
| 2012 | ||
| 2013 | ||
| 2014 | end | |
| 2015 | ||
| 2016 | ||
| 2017 | Humanoid.WalkSpeed = 30 | |
| 2018 | end | |
| 2019 | attack = false | |
| 2020 | wait(.08) | |
| 2021 | hitwait = false | |
| 2022 | end | |
| 2023 | ||
| 2024 | end | |
| 2025 | FrontPart.Touched:connect(onTouch) | |
| 2026 | ||
| 2027 | ||
| 2028 | ||
| 2029 | mouse.KeyUp:connect(function(k) | |
| 2030 | if k == "0"then | |
| 2031 | Runkey = false | |
| 2032 | ||
| 2033 | end | |
| 2034 | ||
| 2035 | ||
| 2036 | ||
| 2037 | ||
| 2038 | ||
| 2039 | ||
| 2040 | end) | |
| 2041 | ||
| 2042 | humHsave = Humanoid.Health | |
| 2043 | function GainCharge(Humanoid) | |
| 2044 | if Humanoid.Health == 0 then | |
| 2045 | equipped = false | |
| 2046 | end | |
| 2047 | if blocking == true then | |
| 2048 | ||
| 2049 | humDsave = Humanoid.Health | |
| 2050 | humDsave = humHsave - humDsave | |
| 2051 | if humDsave >0.01 then | |
| 2052 | ||
| 2053 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
| |
| 2054 | BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
| |
| 2055 | BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
| |
| 2056 | BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
| |
| 2057 | BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
| |
| 2058 | BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
| |
| 2059 | humDsave = humDsave/3 | |
| 2060 | end | |
| 2061 | if humDsave <0 then | |
| 2062 | ||
| 2063 | ||
| 2064 | Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
| |
| 2065 | --[[ | |
| 2066 | BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
| |
| 2067 | BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
| |
| 2068 | BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
| |
| 2069 | BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
| |
| 2070 | BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
| |
| 2071 | --]] | |
| 2072 | humDsave = humDsave*2.5 | |
| 2073 | end | |
| 2074 | ||
| 2075 | humHsave = humHsave - humDsave | |
| 2076 | ||
| 2077 | ||
| 2078 | ||
| 2079 | ||
| 2080 | end | |
| 2081 | ||
| 2082 | end | |
| 2083 | ||
| 2084 | Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) | |
| 2085 | ||
| 2086 | ||
| 2087 | OnDeath = function() | |
| 2088 | ||
| 2089 | equipped = false | |
| 2090 | ||
| 2091 | ||
| 2092 | ||
| 2093 | end | |
| 2094 | ||
| 2095 | Humanoid.Died:connect(function()OnDeath(Character)end) | |
| 2096 | ||
| 2097 | ||
| 2098 | ||
| 2099 | print('This fucking masterpiece was totally not created by xiaxiaokid.')
| |
| 2100 | local music=Instance.new('Sound',inside)
| |
| 2101 | music.Name='ok music' | |
| 2102 | music.Volume=7 | |
| 2103 | music.Pitch=1 | |
| 2104 | music.Looped=true | |
| 2105 | music.SoundId = "rbxassetid://737286463" | |
| 2106 | local gui=Instance.new('ScreenGui',Player.PlayerGui)
| |
| 2107 | gui.Name='you make me cri' | |
| 2108 | local topFrame=Instance.new('Frame',gui)
| |
| 2109 | topFrame.Name='TopFrame' | |
| 2110 | topFrame.Size=UDim2.new(1,0,1,0) | |
| 2111 | topFrame.BorderSizePixel=0 | |
| 2112 | topFrame.BackgroundTransparency=1 | |
| 2113 | local choiceFrame=Instance.new('Frame',topFrame)
| |
| 2114 | choiceFrame.Size=UDim2.new(.4,0,.05,0) | |
| 2115 | choiceFrame.Draggable=true | |
| 2116 | choiceFrame.BackgroundTransparency=.7 | |
| 2117 | choiceFrame.Position=UDim2.new(.5,0,.775,0) | |
| 2118 | choiceFrame.BackgroundColor3=Color3.new(0,0,0) | |
| 2119 | choiceFrame.BorderColor3=Color3.new(0,0,0) | |
| 2120 | local innerFrame3=Instance.new('Frame',choiceFrame)
| |
| 2121 | innerFrame3.Size=UDim2.new(.5,0,1,0) | |
| 2122 | innerFrame3.Position=UDim2.new(.5,0,0,0) | |
| 2123 | innerFrame3.Draggable=true | |
| 2124 | innerFrame3.BackgroundTransparency=.9 | |
| 2125 | innerFrame3.BackgroundColor3=Color3.new(0,0,0) | |
| 2126 | innerFrame3.BorderColor3=Color3.new(0,0,0) | |
| 2127 | local innerFrame4=Instance.new('Frame',choiceFrame)
| |
| 2128 | innerFrame4.Size=UDim2.new(.5,0,1,0) | |
| 2129 | innerFrame4.Draggable=false | |
| 2130 | innerFrame4.BackgroundTransparency=.5 | |
| 2131 | innerFrame4.Position=UDim2.new(.5,0,1,1) | |
| 2132 | innerFrame4.BackgroundColor3=Color3.new(0,0,0) | |
| 2133 | innerFrame4.BorderColor3=Color3.new(0,0,0) | |
| 2134 | local musicID=Instance.new('TextBox',innerFrame4)
| |
| 2135 | musicID.Size=UDim2.new(.8,0,.7,0) | |
| 2136 | musicID.Position=UDim2.new(.1,0,.15,0) | |
| 2137 | musicID.BackgroundTransparency=.7 | |
| 2138 | musicID.Visible=true | |
| 2139 | musicID.Text="Music ID (press enter to use the audio)" | |
| 2140 | musicID.TextScaled=true | |
| 2141 | musicID.TextStrokeTransparency=0 | |
| 2142 | musicID.TextColor3=Color3.new(0,255,255) | |
| 2143 | musicID.BackgroundColor3=Color3.new(0,0,0) | |
| 2144 | musicID.BorderColor3=Color3.new(0,0,0) | |
| 2145 | musicID.FocusLost:connect(function(ent) | |
| 2146 | if ent then | |
| 2147 | music.SoundId="http://www.roblox.com/asset?id="..musicID.Text | |
| 2148 | end | |
| 2149 | end) | |
| 2150 | local bt3=Instance.new('TextButton',innerFrame3)
| |
| 2151 | bt3.Draggable=false | |
| 2152 | bt3.BackgroundTransparency=.9 | |
| 2153 | bt3.BackgroundColor3=Color3.new(0,0,0) | |
| 2154 | bt3.Size=UDim2.new(.5,0,1,0) | |
| 2155 | bt3.Text="Play" | |
| 2156 | bt3.TextStrokeTransparency=0 | |
| 2157 | bt3.TextColor3=Color3.new(0,255,255) | |
| 2158 | bt3.TextScaled=true | |
| 2159 | bt3.Font="SciFi" | |
| 2160 | bt3.MouseButton1Click:connect(function() | |
| 2161 | if not music.IsPlaying then | |
| 2162 | musicID.Visible=false | |
| 2163 | music:play'' | |
| 2164 | innerFrame4.Visible=false | |
| 2165 | end | |
| 2166 | end) | |
| 2167 | local bt4=Instance.new('TextButton',innerFrame3)
| |
| 2168 | bt4.Draggable=false | |
| 2169 | bt4.BackgroundTransparency=.9 | |
| 2170 | bt4.BackgroundColor3=Color3.new(0,0,0) | |
| 2171 | bt4.Size=UDim2.new(.5,0,1,0) | |
| 2172 | bt4.Position=UDim2.new(.5,0,0,0) | |
| 2173 | bt4.Text="Stop" | |
| 2174 | bt4.TextStrokeTransparency=0 | |
| 2175 | bt4.TextColor3=Color3.new(0,255,255) | |
| 2176 | bt4.TextScaled=true | |
| 2177 | bt4.Font="SciFi" | |
| 2178 | bt4.MouseButton1Click:connect(function() | |
| 2179 | if music.IsPlaying then | |
| 2180 | music:stop'' | |
| 2181 | musicID.Visible=true | |
| 2182 | innerFrame4.Visible=true | |
| 2183 | end | |
| 2184 | end) | |
| 2185 | while true do | |
| 2186 | swait() | |
| 2187 | Humanoid.Name = "fnwihjfbewuhgbewjhgbrjhge" | |
| 2188 | Humanoid.MaxHealth = math.huge | |
| 2189 | Humanoid.Health = math.huge | |
| 2190 | end |