SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | - | player = game.Players:WaitForChild(name) |
| 2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | local h,t | |
| 87 | --Give the server mouse data every second frame, but only if the values changed | |
| 88 | --If player is not moving their mouse, client won't fire events | |
| 89 | local HB = game:GetService("RunService").Heartbeat
| |
| 90 | while true do | |
| 91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 92 | h,t=Mouse.Hit,Mouse.Target | |
| 93 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 94 | end | |
| 95 | --Wait 2 frames | |
| 96 | for i=1,2 do | |
| 97 | HB:Wait() | |
| 98 | end | |
| 99 | end]==],script) | |
| 100 | ||
| 101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 102 | --Real game object | |
| 103 | local RealGame = game | |
| 104 | ||
| 105 | --Metatable for fake service | |
| 106 | local FakeService_Metatable = {
| |
| 107 | __index = function(self,k) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then | |
| 110 | return typeof(s[k])=="function" | |
| 111 | and function(_,...)return s[k](s,...)end or s[k] | |
| 112 | end | |
| 113 | end, | |
| 114 | __newindex = function(self,k,v) | |
| 115 | local s = rawget(self,"_RealService") | |
| 116 | if s then s[k]=v end | |
| 117 | end | |
| 118 | } | |
| 119 | local function FakeService(t,RealService) | |
| 120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 121 | return setmetatable(t,FakeService_Metatable) | |
| 122 | end | |
| 123 | ||
| 124 | --Fake game object | |
| 125 | local FakeGame = {
| |
| 126 | GetService = function(self,s) | |
| 127 | return rawget(self,s) or RealGame:GetService(s) | |
| 128 | end, | |
| 129 | Players = FakeService({
| |
| 130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 131 | },"Players"), | |
| 132 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 134 | RunService = FakeService({
| |
| 135 | _btrs = {},
| |
| 136 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 137 | BindToRenderStep = function(self,name,_,fun) | |
| 138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 139 | end, | |
| 140 | UnbindFromRenderStep = function(self,name) | |
| 141 | self._btrs[name]:Disconnect() | |
| 142 | end, | |
| 143 | },"RunService") | |
| 144 | } | |
| 145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 146 | FakeGame.service = FakeGame.GetService | |
| 147 | FakeService(FakeGame,game) | |
| 148 | --Changing owner to fake player object to support owner:GetMouse() | |
| 149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 150 | end | |
| 151 | name = "XTheShowcaserX" | |
| 152 | player = owner | |
| 153 | chara = player.Character | |
| 154 | debby = game:GetService("Debris")
| |
| 155 | chara.Humanoid.MaxHealth = math.huge + math.huge | |
| 156 | chara.Humanoid.Health = math.huge + math.huge | |
| 157 | chara.Humanoid.WalkSpeed = 50 | |
| 158 | chara.Humanoid.JumpPower = 100 | |
| 159 | ||
| 160 | local p = Instance.new("Part", chara)
| |
| 161 | p.Name = "Ears" | |
| 162 | p.BrickColor = BrickColor.new("Really red")
| |
| 163 | p.Size = Vector3.new(0, 0, 0) | |
| 164 | p.BottomSurface = 0 | |
| 165 | p.TopSurface = 0 | |
| 166 | p.Position = chara.Head.Position | |
| 167 | local pweld = Instance.new("Weld", p)
| |
| 168 | pweld.Part0 = chara.Head | |
| 169 | pweld.Part1 = p | |
| 170 | pweld.C0 = CFrame.new(0, 0.7, 0) | |
| 171 | pweld.C0 = pweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, math.rad(180)) | |
| 172 | local earmesh = Instance.new("SpecialMesh", p)
| |
| 173 | earmesh.MeshType = "FileMesh" | |
| 174 | earmesh.MeshId = "http://www.roblox.com/asset/?id=1374148" | |
| 175 | earmesh.Scale = Vector3.new(1.1, 1.5, 3) | |
| 176 | ||
| 177 | local fakehead = chara.Head:clone() | |
| 178 | fakehead.Name = "FakeHead" | |
| 179 | fakehead.Parent = chara | |
| 180 | fakehead.Position = chara.Head.Position | |
| 181 | fakehead.Transparency = 0 | |
| 182 | fakehead.face.Texture = "http://www.roblox.com/asset/?id=" | |
| 183 | ||
| 184 | local hand1 = Instance.new("Part", chara)
| |
| 185 | hand1.Name = "Hand1" | |
| 186 | hand1.Size = Vector3.new(0.8, 0.8, 0.8) | |
| 187 | hand1.Transparency = 1 | |
| 188 | hand1.Position = chara["Left Arm"].Position | |
| 189 | local hand1weld = Instance.new("Weld", hand1)
| |
| 190 | hand1weld.Part0 = chara["Left Arm"] | |
| 191 | hand1weld.Part1 = hand1 | |
| 192 | hand1weld.C0 = CFrame.new(0, -1, 0) | |
| 193 | local hand2 = hand1:Clone() | |
| 194 | hand2.Name = "Hand2" | |
| 195 | hand2.Parent = chara | |
| 196 | hand2.Position = chara["Right Arm"].Position | |
| 197 | local hand2weld = Instance.new("Weld", hand2)
| |
| 198 | hand2weld.Part0 = chara["Right Arm"] | |
| 199 | hand2weld.Part1 = hand2 | |
| 200 | hand2weld.C0 = CFrame.new(0, -1, 0) | |
| 201 | ||
| 202 | color3colour = {
| |
| 203 | BrickColor.new("Really red").Color,
| |
| 204 | BrickColor.new("Really red").Color,
| |
| 205 | BrickColor.new("Really red").Color,
| |
| 206 | BrickColor.new("Really red").Color,
| |
| 207 | BrickColor.new("Really red").Color,
| |
| 208 | BrickColor.new("Really red").Color
| |
| 209 | } | |
| 210 | breekcolour = {
| |
| 211 | BrickColor.new("Really red"),
| |
| 212 | BrickColor.new("Really red"),
| |
| 213 | BrickColor.new("Really red"),
| |
| 214 | BrickColor.new("Really red"),
| |
| 215 | BrickColor.new("Really red"),
| |
| 216 | BrickColor.new("Really red")
| |
| 217 | } | |
| 218 | firecolour = {
| |
| 219 | ColorSequenceKeypoint.new(0, BrickColor.new("Really red").Color),
| |
| 220 | ColorSequenceKeypoint.new(0.05, BrickColor.new("Really red").Color),
| |
| 221 | ColorSequenceKeypoint.new(0.1, BrickColor.new("Really red").Color),
| |
| 222 | ColorSequenceKeypoint.new(0.15, BrickColor.new("Really red").Color),
| |
| 223 | ColorSequenceKeypoint.new(0.2, BrickColor.new("Really red").Color),
| |
| 224 | ColorSequenceKeypoint.new(0.25, BrickColor.new("Really red").Color),
| |
| 225 | ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color)
| |
| 226 | } | |
| 227 | barcolour = {
| |
| 228 | ColorSequenceKeypoint.new(0, BrickColor.new("Really red").Color),
| |
| 229 | ColorSequenceKeypoint.new(0.2, BrickColor.new("Really red").Color),
| |
| 230 | ColorSequenceKeypoint.new(0.4, BrickColor.new("Really red").Color),
| |
| 231 | ColorSequenceKeypoint.new(0.6, BrickColor.new("Really red").Color),
| |
| 232 | ColorSequenceKeypoint.new(0.8, BrickColor.new("Really red").Color),
| |
| 233 | ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color)
| |
| 234 | } | |
| 235 | normallife = {
| |
| 236 | NumberSequenceKeypoint.new(0, 0), | |
| 237 | NumberSequenceKeypoint.new(1, 1) | |
| 238 | } | |
| 239 | extendlife = {
| |
| 240 | NumberSequenceKeypoint.new(0, 0), | |
| 241 | NumberSequenceKeypoint.new(0.8, 0), | |
| 242 | NumberSequenceKeypoint.new(1, 1) | |
| 243 | } | |
| 244 | function createrainbow(color, part, texture, size, trans, life, face, speed, accel, velsp, lock, name) | |
| 245 | local fira = Instance.new("ParticleEmitter", part)
| |
| 246 | fira.Name = name | |
| 247 | fira.Color = ColorSequence.new(color) | |
| 248 | fira.Size = size | |
| 249 | fira.Texture = texture | |
| 250 | fira.Transparency = trans | |
| 251 | fira.Lifetime = life | |
| 252 | fira.EmissionDirection = face | |
| 253 | fira.Rate = 100000000 | |
| 254 | fira.RotSpeed = NumberRange.new(100) | |
| 255 | fira.Speed = speed | |
| 256 | fira.VelocitySpread = velsp | |
| 257 | fira.Acceleration = accel | |
| 258 | fira.LightEmission = 1 | |
| 259 | fira.LockedToPart = lock | |
| 260 | end | |
| 261 | handfire1 = createrainbow(firecolour, hand1, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
| |
| 262 | NumberSequenceKeypoint.new(0, 0.4), | |
| 263 | NumberSequenceKeypoint.new(1, 0) | |
| 264 | }), NumberSequence.new(extendlife), NumberRange.new(1), "Left", NumberRange.new(1), Vector3.new(0, 2, 0), 0, false, "FireEffect") | |
| 265 | handfire2 = createrainbow(firecolour, hand2, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
| |
| 266 | NumberSequenceKeypoint.new(0, 0.4), | |
| 267 | NumberSequenceKeypoint.new(1, 0) | |
| 268 | }), NumberSequence.new(extendlife), NumberRange.new(1), "Right", NumberRange.new(1), Vector3.new(0, 2, 0), 0, false, "FireEffect") | |
| 269 | createrainbow(barcolour, orbuur, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
| |
| 270 | NumberSequenceKeypoint.new(0, 1), | |
| 271 | NumberSequenceKeypoint.new(0.8, 1), | |
| 272 | NumberSequenceKeypoint.new(1, 0) | |
| 273 | }), NumberSequence.new(extendlife), NumberRange.new(1), "Front", NumberRange.new(0), Vector3.new(0, 0, 0), 0, false, "OrbEffect") | |
| 274 | local spelleffect = Instance.new("ParticleEmitter", chara.Torso)
| |
| 275 | spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454" | |
| 276 | spelleffect.Speed = NumberRange.new(0) | |
| 277 | spelleffect.LightEmission = 1 | |
| 278 | spelleffect.Transparency = NumberSequence.new(normallife) | |
| 279 | spelleffect.Size = NumberSequence.new({
| |
| 280 | NumberSequenceKeypoint.new(0, 0), | |
| 281 | NumberSequenceKeypoint.new(1, 10) | |
| 282 | }) | |
| 283 | spelleffect.Rate = 0.001 | |
| 284 | spelleffect.Rotation = NumberRange.new(0, 359) | |
| 285 | spelleffect.RotSpeed = NumberRange.new(100) | |
| 286 | spelleffect.Lifetime = NumberRange.new(1) | |
| 287 | createrainbow(barcolour, hand2, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
| |
| 288 | NumberSequenceKeypoint.new(0, 1), | |
| 289 | NumberSequenceKeypoint.new(1, 0) | |
| 290 | }), NumberSequence.new(normallife), NumberRange.new(1), "Front", NumberRange.new(10), Vector3.new(0, 0, 0), 1000, true, "PowerEffect") | |
| 291 | powereffect = hand2.PowerEffect | |
| 292 | powereffect.Enabled = false | |
| 293 | local naeeym = Instance.new("BillboardGui", chara)
| |
| 294 | naeeym.Size = UDim2.new(0, 100, 0, 40) | |
| 295 | naeeym.StudsOffset = Vector3.new(0, 2, 0) | |
| 296 | naeeym.Adornee = chara.Head | |
| 297 | local tecks = Instance.new("TextLabel", naeeym)
| |
| 298 | tecks.BackgroundTransparency = 1 | |
| 299 | tecks.BorderSizePixel = 0 | |
| 300 | tecks.Text = "" | |
| 301 | tecks.Font = "Fantasy" | |
| 302 | tecks.FontSize = "Size24" | |
| 303 | tecks.TextStrokeTransparency = 0 | |
| 304 | tecks.TextColor3 = Color3.new(1, 1, 1) | |
| 305 | tecks.TextStrokeColor3 = BrickColor.new("Really red").Color
| |
| 306 | tecks.Size = UDim2.new(1, 0, 0.5, 0) | |
| 307 | Void = nil | |
| 308 | VoidParts = {}
| |
| 309 | Equipped = false | |
| 310 | Counter = 1 | |
| 311 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 312 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 313 | end | |
| 314 | Player = player | |
| 315 | Character = chara | |
| 316 | Humanoid = Character:FindFirstChild("Humanoid")
| |
| 317 | Torso = Character:FindFirstChild("Torso")
| |
| 318 | if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then | |
| 319 | return | |
| 320 | end | |
| 321 | Equipped = true | |
| 322 | Void = Instance.new("Model")
| |
| 323 | Void.Name = "Void" | |
| 324 | Angle = 0 | |
| 325 | for i = 1, 1 do | |
| 326 | local VoidPart = Instance.new("Part")
| |
| 327 | VoidPart.Name = "VoidPart" | |
| 328 | VoidPart.Transparency = 1 | |
| 329 | VoidPart.BrickColor = BrickColor.new("Really red")
| |
| 330 | VoidPart.Material = Enum.Material.Plastic | |
| 331 | VoidPart.Shape = Enum.PartType.Block | |
| 332 | VoidPart.FormFactor = Enum.FormFactor.Custom | |
| 333 | VoidPart.TopSurface = Enum.SurfaceType.Smooth | |
| 334 | VoidPart.BottomSurface = Enum.SurfaceType.Smooth | |
| 335 | VoidPart.Anchored = true | |
| 336 | VoidPart.CanCollide = false | |
| 337 | VoidPart.Locked = true | |
| 338 | VoidPart.Size = Vector3.new(10, 0.2, 10) | |
| 339 | fiyer = createrainbow(firecolour, VoidPart, "http://www.roblox.com/asset/?id=224413104", NumberSequence.new({
| |
| 340 | NumberSequenceKeypoint.new(0, 0.4), | |
| 341 | NumberSequenceKeypoint.new(1, 0) | |
| 342 | }), NumberSequence.new({
| |
| 343 | NumberSequenceKeypoint.new(0, 0), | |
| 344 | NumberSequenceKeypoint.new(0.99, 0), | |
| 345 | NumberSequenceKeypoint.new(1, 1) | |
| 346 | }), NumberRange.new(10), "Top", NumberRange.new(2), Vector3.new(0, 2, 0), 0, false, "FireEffect") | |
| 347 | VoidPart.FireEffect.Rate = 10 | |
| 348 | local BlockMesh = Instance.new("BlockMesh")
| |
| 349 | BlockMesh.Scale = Vector3.new(5, 5, 5) | |
| 350 | BlockMesh.Parent = VoidPart | |
| 351 | VoidPart.Parent = Void | |
| 352 | local Star = Instance.new("Decal", VoidPart)
| |
| 353 | Star.Texture = "http://www.roblox.com/asset/?id=418573228" | |
| 354 | Star.Face = "Top" | |
| 355 | local Light = Instance.new("PointLight", VoidPart)
| |
| 356 | Light.Color = Color3.new(1, 0, 0) | |
| 357 | Light.Brightness = 10 | |
| 358 | Light.Range = 10 | |
| 359 | table.insert(VoidParts, VoidPart) | |
| 360 | end | |
| 361 | Spawn(function() | |
| 362 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do | |
| 363 | if Angle == 360 then | |
| 364 | Angle = 0 | |
| 365 | end | |
| 366 | Angle = Angle + 0.05 | |
| 367 | chara.Humanoid.MaxHealth = math.huge | |
| 368 | chara.Humanoid.Health = math.huge | |
| 369 | Counter = Counter + 1 | |
| 370 | if Counter == 7 then | |
| 371 | Counter = 1 | |
| 372 | end | |
| 373 | tecks.TextStrokeColor3 = color3colour[Counter] | |
| 374 | fakehead.face.Color3 = color3colour[Counter] | |
| 375 | Void.VoidPart.Decal.Color3 = color3colour[Counter] | |
| 376 | Void.VoidPart.PointLight.Color = color3colour[Counter] | |
| 377 | local parentPos = chara.Torso.CFrame | |
| 378 | ||
| 379 | local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), chara.Torso.Size.Y * 6.5, {Character})
| |
| 380 | if Hit then | |
| 381 | if not Void.Parent then | |
| 382 | Void.Parent = Character | |
| 383 | end | |
| 384 | for i, v in pairs(VoidParts) do | |
| 385 | v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, Angle + i, 0) | |
| 386 | end | |
| 387 | else | |
| 388 | Void.Parent = nil | |
| 389 | end | |
| 390 | wait() | |
| 391 | end | |
| 392 | end) | |
| 393 | ------------------------------------------------------------ | |
| 394 | Me = game.Players.LocalPlayer | |
| 395 | player = Me | |
| 396 | char = Me.Character | |
| 397 | chara = char | |
| 398 | larm = char["Left Arm"] | |
| 399 | rarm = char["Right Arm"] | |
| 400 | lleg = char["Left Leg"] | |
| 401 | rleg = char["Right Leg"] | |
| 402 | torso = char.Torso | |
| 403 | hed = char.Head | |
| 404 | mouse = player:GetMouse() | |
| 405 | lght = game.Lighting | |
| 406 | lichtact = false | |
| 407 | moosicact = false | |
| 408 | gotsagofest = true | |
| 409 | chara.Humanoid.MaxHealth = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
| 410 | chara.Humanoid.Health = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
| 411 | ||
| 412 | hed.BrickColor = BrickColor.new("Really black")
| |
| 413 | torso.BrickColor = BrickColor.new("Really black")
| |
| 414 | larm.BrickColor = BrickColor.new("Really black")
| |
| 415 | rarm.BrickColor = BrickColor.new("Really black")
| |
| 416 | lleg.BrickColor = BrickColor.new("Really black")
| |
| 417 | rleg.BrickColor = BrickColor.new("Really black")
| |
| 418 | ||
| 419 | hat=Instance.new("Part",chara)
| |
| 420 | ||
| 421 | hat.Size = Vector3.new(1, 1, 1) | |
| 422 | ||
| 423 | hatm = Instance.new("SpecialMesh",hat)
| |
| 424 | ||
| 425 | hatm.MeshType = "FileMesh" | |
| 426 | ||
| 427 | hatm.MeshId = "http://www.roblox.com/asset/?id=495214258" | |
| 428 | ||
| 429 | hatm.TextureId = "http://www.roblox.com/asset/?id=412059413" | |
| 430 | ||
| 431 | hatw = Instance.new("Weld",hat)
| |
| 432 | ||
| 433 | hatw.Part0 = hat | |
| 434 | ||
| 435 | hatw.Part1 = chara.Head | |
| 436 | ||
| 437 | New = function(Object, Parent, Name, Data) | |
| 438 | local Object = Instance.new(Object) | |
| 439 | for Index, Value in pairs(Data or {}) do
| |
| 440 | Object[Index] = Value | |
| 441 | end | |
| 442 | Object.Parent = Parent | |
| 443 | Object.Name = Name | |
| 444 | return Object | |
| 445 | end | |
| 446 | ||
| 447 | Mouse = player:GetMouse() | |
| 448 | ||
| 449 | for i,v in pairs(chara:children()) do | |
| 450 | if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
| |
| 451 | v:Destroy() | |
| 452 | end | |
| 453 | end | |
| 454 | char.Head.face:Destroy() | |
| 455 | ||
| 456 | local Orbd = Instance.new("Part", char)
| |
| 457 | Orbd.Name = "Orbd" | |
| 458 | Orbd.Shape = Enum.PartType.Ball | |
| 459 | Orbd.CanCollide = false | |
| 460 | Orbd.BrickColor = BrickColor.new("Really red")
| |
| 461 | Orbd.Transparency = 0 | |
| 462 | Orbd.Material = "Neon" | |
| 463 | Orbd.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 464 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
| 465 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
| 466 | local Weld = Instance.new("Weld", Orbd)
| |
| 467 | Weld.Part0 = char.Head | |
| 468 | Weld.Part1 = Orbd | |
| 469 | Weld.C1 = CFrame.new(-0.2, -0.2, 0.5) | |
| 470 | local glov = Instance.new("PointLight", Orbd)
| |
| 471 | glov.Brightness = 0.25 | |
| 472 | glov.Range = 20 | |
| 473 | glov.Color = Color3.new(255, 0, 0) | |
| 474 | local Orbvc = Instance.new("Part", char)
| |
| 475 | Orbvc.Name = "Orbvc" | |
| 476 | Orbvc.Shape = Enum.PartType.Ball | |
| 477 | Orbvc.CanCollide = false | |
| 478 | Orbvc.BrickColor = BrickColor.new("Really red")
| |
| 479 | Orbvc.Transparency = 0 | |
| 480 | Orbvc.Material = "Neon" | |
| 481 | Orbvc.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 482 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
| 483 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
| 484 | local Weld = Instance.new("Weld", Orbvc)
| |
| 485 | Weld.Part0 = char.Head | |
| 486 | Weld.Part1 = Orbvc | |
| 487 | Weld.C1 = CFrame.new(0.2, -0.2, 0.5) | |
| 488 | local glo = Instance.new("PointLight", Orbvc)
| |
| 489 | glo.Brightness = 0.25 | |
| 490 | glo.Range = 20 | |
| 491 | glo.Color = Color3.new(255, 0, 0) | |
| 492 | ||
| 493 | local IsFreeFalling = false | |
| 494 | local SpinPart = Instance.new('Part')
| |
| 495 | SpinPart.Transparency = 1 | |
| 496 | SpinPart.Size = Vector3.new(25,1,25) | |
| 497 | SpinPart.CanCollide = false | |
| 498 | SpinPart.FormFactor = 'Custom' | |
| 499 | local FX = Instance.new('ParticleEmitter',SpinPart)
| |
| 500 | FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Black").Color, 0)}), NumberSequence.new(0.25), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://132883219",-0.1
| |
| 501 | local FX = Instance.new('ParticleEmitter',SpinPart)
| |
| 502 | FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Black").Color, 0)}), NumberSequence.new(0.25), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://132883219",0.1
| |
| 503 | do | |
| 504 | local tspin = Instance.new('BodyAngularVelocity')
| |
| 505 | tspin.angularvelocity = Vector3.new(0,1,0) | |
| 506 | tspin.maxTorque =Vector3.new(math.huge,math.huge,math.huge) | |
| 507 | tspin.Parent = SpinPart | |
| 508 | end | |
| 509 | local SpinPos = Instance.new('BodyPosition')
| |
| 510 | SpinPos.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 511 | SpinPos.Parent = SpinPart | |
| 512 | ||
| 513 | function Equipped() | |
| 514 | IsEquipped = true | |
| 515 | local MyTorso = char.Torso | |
| 516 | if MyTorso then | |
| 517 | spawn(function() | |
| 518 | local startTime = tick() | |
| 519 | SpinPart.CFrame = CFrame.new(MyTorso.CFrame.p+Vector3.new(0,-2.8,0)) | |
| 520 | SpinPart.Parent = MyTorso | |
| 521 | local fadeIn = true | |
| 522 | while IsEquipped do | |
| 523 | if not IsFreeFalling then | |
| 524 | SpinPos.position = MyTorso.CFrame.p+Vector3.new(0,-2.8,0) | |
| 525 | end | |
| 526 | wait() | |
| 527 | end | |
| 528 | SpinPart.Parent = nil | |
| 529 | ||
| 530 | end) | |
| 531 | end | |
| 532 | end | |
| 533 | ||
| 534 | ||
| 535 | wait(0.01) | |
| 536 | Equipped() | |
| 537 | ||
| 538 | ||
| 539 | function start() | |
| 540 | print("Darkness falls across the battlefield...")
| |
| 541 | wait() | |
| 542 | print("----------------------------------------")
| |
| 543 | wait() | |
| 544 | print(" - Ender booted up. -")
| |
| 545 | wait() | |
| 546 | print("- Ender written by yeox769. -")
| |
| 547 | i = 0 | |
| 548 | while i<1 do | |
| 549 | wait() | |
| 550 | i = i + 0.01 | |
| 551 | l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375 | |
| 552 | l.TintColor = Color3.new(1,1-i,1-i) | |
| 553 | end | |
| 554 | end | |
| 555 | ||
| 556 | delay(0,start) | |
| 557 | ||
| 558 | TC = chara.HumanoidRootPart.RootJoint | |
| 559 | HC = chara.Torso.Neck | |
| 560 | RAC = chara.Torso["Right Shoulder"] | |
| 561 | LAC = chara.Torso["Left Shoulder"] | |
| 562 | RLC = chara.Torso["Right Hip"] | |
| 563 | LLC = chara.Torso["Left Hip"] | |
| 564 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 565 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 566 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 567 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 568 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 569 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 570 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 571 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 572 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 573 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 574 | RW = Instance.new("Weld",HC.Parent)
| |
| 575 | RW.Part1 = HC.Parent | |
| 576 | RW.Part0 = chara["Right Arm"] | |
| 577 | RW.C0 = RWF | |
| 578 | LW = Instance.new("Weld",HC.Parent)
| |
| 579 | LW.Part1 = HC.Parent | |
| 580 | LW.Part0 = chara["Left Arm"] | |
| 581 | LW.C0 = LWF | |
| 582 | RLW = nil | |
| 583 | LLW = nil | |
| 584 | ||
| 585 | ||
| 586 | function clerp(a,b,c) | |
| 587 | return a:lerp(b,c) | |
| 588 | end | |
| 589 | ||
| 590 | TC.C0 = TCF | |
| 591 | HC.C0 = HCF | |
| 592 | RW.C0 = RWF | |
| 593 | LW.C0 = LWF | |
| 594 | ||
| 595 | --Idle Clerp-- | |
| 596 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10)) | |
| 597 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-10)) | |
| 598 | IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-2)) | |
| 599 | ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
| 600 | ||
| 601 | TC.C0 = ITCF | |
| 602 | HC.C0 = IHCF | |
| 603 | RW.C0 = IRWF | |
| 604 | LW.C0 = ILWF | |
| 605 | ||
| 606 | ||
| 607 | ||
| 608 | ||
| 609 | ||
| 610 | New = function(Object, Parent, Name, Data) | |
| 611 | local Object = Instance.new(Object) | |
| 612 | for Index, Value in pairs(Data or {}) do
| |
| 613 | Object[Index] = Value | |
| 614 | end | |
| 615 | Object.Parent = Parent | |
| 616 | Object.Name = Name | |
| 617 | return Object | |
| 618 | end | |
| 619 | ||
| 620 | function BurningEff(part) | |
| 621 | local eff1 = Instance.new("ParticleEmitter",part)
| |
| 622 | eff1.Size = NumberSequence.new(.1) | |
| 623 | eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
| |
| 624 | eff1.LightEmission = 1 | |
| 625 | eff1.Lifetime = NumberRange.new(1) | |
| 626 | eff1.Speed = NumberRange.new(0) | |
| 627 | eff1.Rate = 100 | |
| 628 | eff1.Texture = "rbxassetid://347504241" | |
| 629 | eff1.Acceleration = Vector3.new(0,10,0) | |
| 630 | eff1.Color = ColorSequence.new(Color3.new(1,0,0)) | |
| 631 | local eff2 = Instance.new("ParticleEmitter",part)
| |
| 632 | eff2.Size = NumberSequence.new(.1) | |
| 633 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
| |
| 634 | eff2.LightEmission = 1 | |
| 635 | eff2.Lifetime = NumberRange.new(1) | |
| 636 | eff2.Speed = NumberRange.new(0) | |
| 637 | eff2.Rate = 100 | |
| 638 | eff2.Texture = "rbxassetid://347504259" | |
| 639 | eff2.Acceleration = Vector3.new(0,10,0) | |
| 640 | eff2.Color = ColorSequence.new(Color3.new(1,0,0)) | |
| 641 | local eff3 = Instance.new("ParticleEmitter",part)
| |
| 642 | eff3.Size = NumberSequence.new(1) | |
| 643 | eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 644 | eff3.LightEmission = 1 | |
| 645 | eff3.Lifetime = NumberRange.new(1) | |
| 646 | eff3.Speed = NumberRange.new(0) | |
| 647 | eff3.Rate = 100 | |
| 648 | eff3.Texture = "rbxasset://textures/particles/fire_main.dds" | |
| 649 | eff3.Acceleration = Vector3.new(0,10,0) | |
| 650 | eff3.Color = ColorSequence.new(Color3.new(1,0,0)) | |
| 651 | end | |
| 652 | ----------------------------------------------- | |
| 653 | Me = game.Players.LocalPlayer | |
| 654 | player = Me | |
| 655 | char = Me.Character | |
| 656 | root = char.HumanoidRootPart | |
| 657 | chara = char | |
| 658 | larm = char["Left Arm"] | |
| 659 | rarm = char["Right Arm"] | |
| 660 | lleg = char["Left Leg"] | |
| 661 | rleg = char["Right Leg"] | |
| 662 | torso = char.Torso | |
| 663 | hed = char.Head | |
| 664 | mouse = player:GetMouse() | |
| 665 | lght = game.Lighting | |
| 666 | lichtact = false | |
| 667 | moosicact = false | |
| 668 | gotsagofest = true | |
| 669 | chara.Humanoid.MaxHealth = 999e+999 | |
| 670 | chara.Humanoid.Health = 999e+999 | |
| 671 | r = false | |
| 672 | ||
| 673 | local shirt = Instance.new("Shirt",chara)
| |
| 674 | shirt.ShirtTemplate = "rbxassetid://519769931" | |
| 675 | local pants = Instance.new("Pants",chara)
| |
| 676 | pants.PantsTemplate = "rbxassetid://519770250" | |
| 677 | ||
| 678 | local bg = Instance.new("BillboardGui",hed)
| |
| 679 | bg.AlwaysOnTop = true | |
| 680 | local bgframe = Instance.new("Frame",bg)
| |
| 681 | bgframe.BackgroundTransparency = 1 | |
| 682 | bgframe.Size = UDim2.new(0,200,0,25) | |
| 683 | bgframe.Position = UDim2.new(0.5,-100,0.5,-12) | |
| 684 | local bgtxt = Instance.new("TextLabel",bgframe)
| |
| 685 | bgtxt.Size = UDim2.new(0,200,0,25) | |
| 686 | bgtxt.Position = UDim2.new(0.5,-100,0.5,-12) | |
| 687 | bgtxt.BackgroundTransparency = 1 | |
| 688 | bgtxt.TextColor3 = BrickColor.new("Really red").Color
| |
| 689 | bgtxt.Font = "SciFi" | |
| 690 | bgtxt.TextScaled = true | |
| 691 | spawn(function() | |
| 692 | local txt1 = "This is where I rule...You have fallen into your worst nightmare..." | |
| 693 | local txt2 = "Satan chose me... " | |
| 694 | ||
| 695 | local txt3 = "Welcome to the end!" | |
| 696 | for i=1,#txt1 do | |
| 697 | bgtxt.Text = txt1:sub(1,i) | |
| 698 | wait() | |
| 699 | end | |
| 700 | wait() | |
| 701 | for i=#txt1,1,-1 do | |
| 702 | bgtxt.Text = txt1:sub(1,i) | |
| 703 | wait() | |
| 704 | end | |
| 705 | wait() | |
| 706 | for i=1,#txt2 do | |
| 707 | bgtxt.Text = txt2:sub(1,i) | |
| 708 | wait() | |
| 709 | end | |
| 710 | wait() | |
| 711 | for i=#txt2,1,-1 do | |
| 712 | bgtxt.Text = txt2:sub(1,i) | |
| 713 | wait() | |
| 714 | end | |
| 715 | wait() | |
| 716 | for i=1,#txt3 do | |
| 717 | bgtxt.Text = txt3:sub(1,i) | |
| 718 | wait() | |
| 719 | end | |
| 720 | wait(3) | |
| 721 | for i=0,1,0.1 do | |
| 722 | bgtxt.TextTransparency = i | |
| 723 | wait() | |
| 724 | end | |
| 725 | bg:Destroy() | |
| 726 | end) | |
| 727 | ||
| 728 | wait(1) | |
| 729 | ||
| 730 | New = function(Object, Parent, Name, Data) | |
| 731 | local Object = Instance.new(Object) | |
| 732 | for Index, Value in pairs(Data or {}) do
| |
| 733 | Object[Index] = Value | |
| 734 | end | |
| 735 | Object.Parent = Parent | |
| 736 | Object.Name = Name | |
| 737 | return Object | |
| 738 | end | |
| 739 | ||
| 740 | New("ForceField",char,"ForceField",{Visible = false})
| |
| 741 | ||
| 742 | local z1 = Instance.new("Sound",char)
| |
| 743 | z1.Looped = false | |
| 744 | z1.SoundId = "rbxassetid://844632396" | |
| 745 | z1.Volume = 10 | |
| 746 | local z2 = Instance.new("Sound",char)
| |
| 747 | z2.Looped = true | |
| 748 | z2.SoundId = "rbxassetid://569026863" | |
| 749 | z2.Volume = 0.7 | |
| 750 | z2.Pitch = 0.8 | |
| 751 | wait(0.1) | |
| 752 | ||
| 753 | ||
| 754 | ||
| 755 | ||
| 756 | chara.Humanoid.WalkSpeed = 32 | |
| 757 | chara.Humanoid.JumpPower = 75 | |
| 758 | local naeeym = Instance.new("BillboardGui",chara)
| |
| 759 | naeeym.Size = UDim2.new(0,100,0,40) | |
| 760 | naeeym.StudsOffset = Vector3.new(0,2,0) | |
| 761 | naeeym.Adornee = chara.Head | |
| 762 | local tecks = Instance.new("TextLabel",naeeym)
| |
| 763 | tecks.BackgroundTransparency = 1 | |
| 764 | tecks.BorderSizePixel = 0 | |
| 765 | tecks.Text = "???" | |
| 766 | tecks.Font = "Fantasy" | |
| 767 | tecks.FontSize = "Size24" | |
| 768 | tecks.TextStrokeTransparency = 0 | |
| 769 | tecks.TextColor3 = Color3.new(0,0,0) | |
| 770 | rrer = BrickColor.new("Really red")
| |
| 771 | tecks.TextStrokeColor3 = rrer.Color | |
| 772 | tecks.Size = UDim2.new(1,0,0.5,0) | |
| 773 | ||
| 774 | local l = Instance.new("ColorCorrectionEffect",game.Lighting)
| |
| 775 | l.Contrast,l.Saturation,l.Brightness = 420,-1,-1 | |
| 776 | l.TintColor = Color3.new(1,0,0) | |
| 777 | game.Lighting.GeographicLatitude = 20000 | |
| 778 | ||
| 779 | function music() | |
| 780 | z1:Play() | |
| 781 | chara.Humanoid.JumpPower = 0 | |
| 782 | chara.Humanoid.WalkSpeed = 0 | |
| 783 | wait(9.69) | |
| 784 | chara.Humanoid.JumpPower, chara.Humanoid.WalkSpeed = 75, 25 | |
| 785 | l.Brightness, l.Contrast = 1, 1 | |
| 786 | r = true | |
| 787 | tecks.Text = "Riku The OverLord" | |
| 788 | z2:Play() | |
| 789 | i = 0 | |
| 790 | while i < 1 do | |
| 791 | wait() | |
| 792 | l.Brightness = l.Brightness - 0.01 | |
| 793 | l.Contrast = l.Contrast + 0.03 | |
| 794 | i = i + 0.02 | |
| 795 | end | |
| 796 | end | |
| 797 | delay(0,music) | |
| 798 | ------------------------------ | |
| 799 | ||
| 800 | wait(1 / 60) | |
| 801 | Effects = { }
| |
| 802 | local Player = game.Players.localPlayer | |
| 803 | local Character = Player.Character | |
| 804 | local Humanoid = Character.Humanoid | |
| 805 | local Mouse = Player:GetMouse() | |
| 806 | local LeftArm = Character["Left Arm"] | |
| 807 | local RightArm = Character["Right Arm"] | |
| 808 | local LeftLeg = Character["Left Leg"] | |
| 809 | local RightLeg = Character["Right Leg"] | |
| 810 | local Head = Character.Head | |
| 811 | local Torso = Character.Torso | |
| 812 | local Camera = game.Workspace.CurrentCamera | |
| 813 | local RootPart = Character.HumanoidRootPart | |
| 814 | local RootJoint = RootPart.RootJoint | |
| 815 | local attack = false | |
| 816 | local Anim = 'Idle' | |
| 817 | local attacktype = 1 | |
| 818 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 819 | local velocity = RootPart.Velocity.y | |
| 820 | local sine = 0 | |
| 821 | local change = 1 | |
| 822 | local Create = LoadLibrary("RbxUtility").Create
| |
| 823 | Humanoid.MaxHealth = math.huge | |
| 824 | local spooky = Instance.new("Sound",Character)
| |
| 825 | spooky.SoundId = "rbxassetid://" | |
| 826 | spooky.Looped = true | |
| 827 | spooky.Pitch = 1 | |
| 828 | spooky.Volume = 1.1 | |
| 829 | spooky:Stop() | |
| 830 | local spooky2 = Instance.new("Sound",Character)
| |
| 831 | spooky2.SoundId = "rbxassetid://" | |
| 832 | spooky2.Looped = false | |
| 833 | spooky2.Pitch = 1 | |
| 834 | spooky2.Volume = 1.4 | |
| 835 | spooky2:Play() | |
| 836 | local m = Create("Model"){
| |
| 837 | Parent = Character, | |
| 838 | Name = "WeaponModel", | |
| 839 | } | |
| 840 | ||
| 841 | ||
| 842 | ||
| 843 | local newMotor = function(part0, part1, c0, c1) | |
| 844 | local w = Create('Motor'){
| |
| 845 | Parent = part0, | |
| 846 | Part0 = part0, | |
| 847 | Part1 = part1, | |
| 848 | C0 = c0, | |
| 849 | C1 = c1, | |
| 850 | } | |
| 851 | return w | |
| 852 | end | |
| 853 | ||
| 854 | function clerp(a, b, t) | |
| 855 | return a:lerp(b, t) | |
| 856 | end | |
| 857 | ||
| 858 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 859 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 860 | ||
| 861 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 862 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 863 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 864 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 865 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 866 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 867 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 868 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 869 | ||
| 870 | local rarmc1 = RW.C1 | |
| 871 | local larmc1 = LW.C1 | |
| 872 | local rlegc1 = RH.C1 | |
| 873 | local llegc1 = LH.C1 | |
| 874 | ||
| 875 | local resetc1 = false | |
| 876 | ||
| 877 | function PlayAnimationFromTable(table, speed, bool) | |
| 878 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 879 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 880 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 881 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 882 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 883 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 884 | if bool == true then | |
| 885 | if resetc1 == false then | |
| 886 | resetc1 = true | |
| 887 | RootJoint.C1 = RootJoint.C1 | |
| 888 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 889 | RW.C1 = rarmc1 | |
| 890 | LW.C1 = larmc1 | |
| 891 | RH.C1 = rlegc1 | |
| 892 | LH.C1 = llegc1 | |
| 893 | end | |
| 894 | end | |
| 895 | end | |
| 896 | ||
| 897 | ArtificialHB = Create("BindableEvent", script){
| |
| 898 | Parent = script, | |
| 899 | Name = "Heartbeat", | |
| 900 | } | |
| 901 | ||
| 902 | script:WaitForChild("Heartbeat")
| |
| 903 | ||
| 904 | frame = 1 / 30 | |
| 905 | tf = 0 | |
| 906 | allowframeloss = false | |
| 907 | tossremainder = false | |
| 908 | lastframe = tick() | |
| 909 | script.Heartbeat:Fire() | |
| 910 | ||
| 911 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 912 | tf = tf + s | |
| 913 | if tf >= frame then | |
| 914 | if allowframeloss then | |
| 915 | script.Heartbeat:Fire() | |
| 916 | lastframe = tick() | |
| 917 | else | |
| 918 | for i = 1, math.floor(tf / frame) do | |
| 919 | script.Heartbeat:Fire() | |
| 920 | end | |
| 921 | lastframe = tick() | |
| 922 | end | |
| 923 | if tossremainder then | |
| 924 | tf = 0 | |
| 925 | else | |
| 926 | tf = tf - frame * math.floor(tf / frame) | |
| 927 | end | |
| 928 | end | |
| 929 | end) | |
| 930 | ||
| 931 | function swait(num) | |
| 932 | if num == 0 or num == nil then | |
| 933 | ArtificialHB.Event:wait() | |
| 934 | else | |
| 935 | for i = 0, num do | |
| 936 | ArtificialHB.Event:wait() | |
| 937 | end | |
| 938 | end | |
| 939 | end | |
| 940 | ||
| 941 | function RemoveOutlines(part) | |
| 942 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 943 | end | |
| 944 | ||
| 945 | CFuncs = {
| |
| 946 | ["Part"] = {
| |
| 947 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 948 | local Part = Create("Part"){
| |
| 949 | Parent = Parent, | |
| 950 | Reflectance = Reflectance, | |
| 951 | Transparency = Transparency, | |
| 952 | CanCollide = false, | |
| 953 | Locked = true, | |
| 954 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 955 | Name = Name, | |
| 956 | Size = Size, | |
| 957 | Material = Material, | |
| 958 | } | |
| 959 | RemoveOutlines(Part) | |
| 960 | return Part | |
| 961 | end; | |
| 962 | }; | |
| 963 | ||
| 964 | ["Mesh"] = {
| |
| 965 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 966 | local Msh = Create(Mesh){
| |
| 967 | Parent = Part, | |
| 968 | Offset = OffSet, | |
| 969 | Scale = Scale, | |
| 970 | } | |
| 971 | if Mesh == "SpecialMesh" then | |
| 972 | Msh.MeshType = MeshType | |
| 973 | Msh.MeshId = MeshId | |
| 974 | end | |
| 975 | return Msh | |
| 976 | end; | |
| 977 | }; | |
| 978 | ||
| 979 | ["Mesh"] = {
| |
| 980 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 981 | local Msh = Create(Mesh){
| |
| 982 | Parent = Part, | |
| 983 | Offset = OffSet, | |
| 984 | Scale = Scale, | |
| 985 | } | |
| 986 | if Mesh == "SpecialMesh" then | |
| 987 | Msh.MeshType = MeshType | |
| 988 | Msh.MeshId = MeshId | |
| 989 | end | |
| 990 | return Msh | |
| 991 | end; | |
| 992 | }; | |
| 993 | ||
| 994 | ["Weld"] = {
| |
| 995 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 996 | local Weld = Create("Weld"){
| |
| 997 | Parent = Parent, | |
| 998 | Part0 = Part0, | |
| 999 | Part1 = Part1, | |
| 1000 | C0 = C0, | |
| 1001 | C1 = C1, | |
| 1002 | } | |
| 1003 | return Weld | |
| 1004 | end; | |
| 1005 | }; | |
| 1006 | ||
| 1007 | ["Sound"] = {
| |
| 1008 | Create = function(id, par, vol, pit) | |
| 1009 | coroutine.resume(coroutine.create(function() | |
| 1010 | local S = Create("Sound"){
| |
| 1011 | Volume = vol, | |
| 1012 | Pitch = pit or 1, | |
| 1013 | SoundId = id, | |
| 1014 | Parent = par or workspace, | |
| 1015 | } | |
| 1016 | wait() | |
| 1017 | S:play() | |
| 1018 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1019 | end)) | |
| 1020 | end; | |
| 1021 | }; | |
| 1022 | ||
| 1023 | ["ParticleEmitter"] = {
| |
| 1024 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1025 | local fp = Create("ParticleEmitter"){
| |
| 1026 | Parent = Parent, | |
| 1027 | Color = ColorSequence.new(Color1, Color2), | |
| 1028 | LightEmission = LightEmission, | |
| 1029 | Size = Size, | |
| 1030 | Texture = Texture, | |
| 1031 | Transparency = Transparency, | |
| 1032 | ZOffset = ZOffset, | |
| 1033 | Acceleration = Accel, | |
| 1034 | Drag = Drag, | |
| 1035 | LockedToPart = LockedToPart, | |
| 1036 | VelocityInheritance = VelocityInheritance, | |
| 1037 | EmissionDirection = EmissionDirection, | |
| 1038 | Enabled = Enabled, | |
| 1039 | Lifetime = LifeTime, | |
| 1040 | Rate = Rate, | |
| 1041 | Rotation = Rotation, | |
| 1042 | RotSpeed = RotSpeed, | |
| 1043 | Speed = Speed, | |
| 1044 | VelocitySpread = VelocitySpread, | |
| 1045 | } | |
| 1046 | return fp | |
| 1047 | end; | |
| 1048 | }; | |
| 1049 | ||
| 1050 | CreateTemplate = {
| |
| 1051 | ||
| 1052 | }; | |
| 1053 | } | |
| 1054 | New = function(Object, Parent, Name, Data) | |
| 1055 | local Object = Instance.new(Object) | |
| 1056 | for Index, Value in pairs(Data or {}) do
| |
| 1057 | Object[Index] = Value | |
| 1058 | end | |
| 1059 | Object.Parent = Parent | |
| 1060 | Object.Name = Name | |
| 1061 | return Object | |
| 1062 | end | |
| 1063 | ||
| 1064 | function rayCast(Position, Direction, Range, Ignore) | |
| 1065 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 1066 | end | |
| 1067 | ||
| 1068 | FindNearestTorso = function(pos) | |
| 1069 | local list = (game.Workspace:children()) | |
| 1070 | local torso = nil | |
| 1071 | local dist = 1000 | |
| 1072 | local temp, human, temp2 = nil, nil, nil | |
| 1073 | for x = 1, #list do | |
| 1074 | temp2 = list[x] | |
| 1075 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 1076 | temp = temp2:findFirstChild("Torso")
| |
| 1077 | human = temp2:findFirstChild("Humanoid")
| |
| 1078 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 1079 | local dohit = true | |
| 1080 | if dohit == true then | |
| 1081 | torso = temp | |
| 1082 | dist = (temp.Position - pos).magnitude | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end | |
| 1086 | end | |
| 1087 | return torso, dist | |
| 1088 | end | |
| 1089 | ||
| 1090 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1091 | if hit.Parent == nil then | |
| 1092 | return | |
| 1093 | end | |
| 1094 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1095 | for _, v in pairs(hit.Parent:children()) do | |
| 1096 | if v:IsA("Humanoid") then
| |
| 1097 | h = v | |
| 1098 | end | |
| 1099 | end | |
| 1100 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1101 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 1102 | if hit.Parent.DebounceHit.Value == true then | |
| 1103 | return | |
| 1104 | end | |
| 1105 | end | |
| 1106 | local c = Create("ObjectValue"){
| |
| 1107 | Name = "creator", | |
| 1108 | Value = game:service("Players").LocalPlayer,
| |
| 1109 | Parent = h, | |
| 1110 | } | |
| 1111 | game:GetService("Debris"):AddItem(c, .5)
| |
| 1112 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1113 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1114 | end | |
| 1115 | local Damage = math.random(minim, maxim) | |
| 1116 | local blocked = false | |
| 1117 | local block = hit.Parent:findFirstChild("Block")
| |
| 1118 | if block ~= nil then | |
| 1119 | if block.className == "IntValue" then | |
| 1120 | if block.Value > 0 then | |
| 1121 | blocked = true | |
| 1122 | block.Value = block.Value - 1 | |
| 1123 | print(block.Value) | |
| 1124 | end | |
| 1125 | end | |
| 1126 | end | |
| 1127 | if blocked == false then | |
| 1128 | h.Health = h.Health - Damage | |
| 1129 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 1130 | else | |
| 1131 | h.Health = h.Health - (Damage / 2) | |
| 1132 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 1133 | end | |
| 1134 | if Type == "Knockdown" then | |
| 1135 | local hum = hit.Parent.Humanoid | |
| 1136 | hum.PlatformStand = true | |
| 1137 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1138 | swait(1) | |
| 1139 | HHumanoid.PlatformStand = false | |
| 1140 | end), hum) | |
| 1141 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 1142 | local bodvol = Create("BodyVelocity"){
| |
| 1143 | velocity = angle * knockback, | |
| 1144 | P = 5000, | |
| 1145 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 1146 | Parent = hit, | |
| 1147 | } | |
| 1148 | local rl = Create("BodyAngularVelocity"){
| |
| 1149 | P = 3000, | |
| 1150 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1151 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1152 | Parent = hit, | |
| 1153 | } | |
| 1154 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 1155 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 1156 | elseif Type == "Normal" then | |
| 1157 | local vp = Create("BodyVelocity"){
| |
| 1158 | P = 500, | |
| 1159 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1160 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 1161 | } | |
| 1162 | if knockback > 0 then | |
| 1163 | vp.Parent = hit.Parent.Torso | |
| 1164 | end | |
| 1165 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 1166 | elseif Type == "Up" then | |
| 1167 | local bodyVelocity = Create("BodyVelocity"){
| |
| 1168 | velocity = Vector3.new(0, 20, 0), | |
| 1169 | P = 5000, | |
| 1170 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 1171 | Parent = hit, | |
| 1172 | } | |
| 1173 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 1174 | elseif Type == "DarkUp" then | |
| 1175 | coroutine.resume(coroutine.create(function() | |
| 1176 | for i = 0, 1, 0.1 do | |
| 1177 | swait() | |
| 1178 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 1179 | end | |
| 1180 | end)) | |
| 1181 | local bodyVelocity = Create("BodyVelocity"){
| |
| 1182 | velocity = Vector3.new(0, 20, 0), | |
| 1183 | P = 5000, | |
| 1184 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 1185 | Parent = hit, | |
| 1186 | } | |
| 1187 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1188 | elseif Type == "Snare" then | |
| 1189 | local bp = Create("BodyPosition"){
| |
| 1190 | P = 2000, | |
| 1191 | D = 100, | |
| 1192 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1193 | position = hit.Parent.Torso.Position, | |
| 1194 | Parent = hit.Parent.Torso, | |
| 1195 | } | |
| 1196 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1197 | elseif Type == "Freeze" then | |
| 1198 | local BodPos = Create("BodyPosition"){
| |
| 1199 | P = 50000, | |
| 1200 | D = 1000, | |
| 1201 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1202 | position = hit.Parent.Torso.Position, | |
| 1203 | Parent = hit.Parent.Torso, | |
| 1204 | } | |
| 1205 | local BodGy = Create("BodyGyro") {
| |
| 1206 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 1207 | P = 20e+003, | |
| 1208 | Parent = hit.Parent.Torso, | |
| 1209 | cframe = hit.Parent.Torso.CFrame, | |
| 1210 | } | |
| 1211 | hit.Parent.Torso.Anchored = true | |
| 1212 | coroutine.resume(coroutine.create(function(Part) | |
| 1213 | swait(1.5) | |
| 1214 | Part.Anchored = false | |
| 1215 | end), hit.Parent.Torso) | |
| 1216 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1217 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1218 | end | |
| 1219 | local debounce = Create("BoolValue"){
| |
| 1220 | Name = "DebounceHit", | |
| 1221 | Parent = hit.Parent, | |
| 1222 | Value = true, | |
| 1223 | } | |
| 1224 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1225 | c = Create("ObjectValue"){
| |
| 1226 | Name = "creator", | |
| 1227 | Value = Player, | |
| 1228 | Parent = h, | |
| 1229 | } | |
| 1230 | game:GetService("Debris"):AddItem(c, .5)
| |
| 1231 | end | |
| 1232 | end | |
| 1233 | ||
| 1234 | function ShowDamage(Pos, Text, Time, Color) | |
| 1235 | local Rate = (1 / 30) | |
| 1236 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 1237 | local Text = (Text or "") | |
| 1238 | local Time = (Time or 2) | |
| 1239 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 1240 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1241 | EffectPart.Anchored = true | |
| 1242 | local BillboardGui = Create("BillboardGui"){
| |
| 1243 | Size = UDim2.new(3, 0, 3, 0), | |
| 1244 | Adornee = EffectPart, | |
| 1245 | Parent = EffectPart, | |
| 1246 | } | |
| 1247 | local TextLabel = Create("TextLabel"){
| |
| 1248 | BackgroundTransparency = 1, | |
| 1249 | Size = UDim2.new(1, 0, 1, 0), | |
| 1250 | Text = Text, | |
| 1251 | Font = "SciFi", | |
| 1252 | TextColor3 = Color, | |
| 1253 | TextScaled = true, | |
| 1254 | Parent = BillboardGui, | |
| 1255 | } | |
| 1256 | game.Debris:AddItem(EffectPart, (Time)) | |
| 1257 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1258 | delay(0, function() | |
| 1259 | local Frames = (Time / Rate) | |
| 1260 | for Frame = 1, Frames do | |
| 1261 | wait(Rate) | |
| 1262 | local Percent = (Frame / Frames) | |
| 1263 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1264 | TextLabel.TextTransparency = Percent | |
| 1265 | end | |
| 1266 | if EffectPart and EffectPart.Parent then | |
| 1267 | EffectPart:Destroy() | |
| 1268 | end | |
| 1269 | end) | |
| 1270 | end | |
| 1271 | ||
| 1272 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 1273 | for _, c in pairs(workspace:children()) do | |
| 1274 | local hum = c:findFirstChild("Humanoid")
| |
| 1275 | if hum ~= nil then | |
| 1276 | local head = c:findFirstChild("Torso")
| |
| 1277 | if head ~= nil then | |
| 1278 | local targ = head.Position - Part.Position | |
| 1279 | local mag = targ.magnitude | |
| 1280 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 1281 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 1282 | end | |
| 1283 | end | |
| 1284 | end | |
| 1285 | end | |
| 1286 | end | |
| 1287 | function UltraMagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) -- kek | |
| 1288 | for _, c in pairs(workspace:children()) do | |
| 1289 | local hum = c:findFirstChild("Humanoid")
| |
| 1290 | if hum ~= nil then | |
| 1291 | local head = c:findFirstChild("Torso")
| |
| 1292 | if head ~= nil then | |
| 1293 | local targ = head.Position - Part.Position | |
| 1294 | local mag = targ.magnitude | |
| 1295 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 1296 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 1297 | head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01) | |
| 1298 | end | |
| 1299 | end | |
| 1300 | end | |
| 1301 | end | |
| 1302 | end | |
| 1303 | EffectModel = Create("Model"){
| |
| 1304 | Parent = Character, | |
| 1305 | Name = "Effects", | |
| 1306 | } | |
| 1307 | ||
| 1308 | Effects = {
| |
| 1309 | Block = {
| |
| 1310 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1311 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1312 | prt.Anchored = true | |
| 1313 | prt.CFrame = cframe | |
| 1314 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1315 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1316 | if Type == 1 or Type == nil then | |
| 1317 | table.insert(Effects, {
| |
| 1318 | prt, | |
| 1319 | "Block1", | |
| 1320 | delay, | |
| 1321 | x3, | |
| 1322 | y3, | |
| 1323 | z3, | |
| 1324 | msh | |
| 1325 | }) | |
| 1326 | elseif Type == 2 then | |
| 1327 | table.insert(Effects, {
| |
| 1328 | prt, | |
| 1329 | "Block2", | |
| 1330 | delay, | |
| 1331 | x3, | |
| 1332 | y3, | |
| 1333 | z3, | |
| 1334 | msh | |
| 1335 | }) | |
| 1336 | end | |
| 1337 | end; | |
| 1338 | }; | |
| 1339 | ||
| 1340 | Cylinder = {
| |
| 1341 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1342 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1343 | prt.Anchored = true | |
| 1344 | prt.CFrame = cframe | |
| 1345 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1346 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1347 | table.insert(Effects, {
| |
| 1348 | prt, | |
| 1349 | "Cylinder", | |
| 1350 | delay, | |
| 1351 | x3, | |
| 1352 | y3, | |
| 1353 | z3, | |
| 1354 | msh | |
| 1355 | }) | |
| 1356 | end; | |
| 1357 | }; | |
| 1358 | Head = {
| |
| 1359 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1360 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1361 | prt.Anchored = true | |
| 1362 | prt.CFrame = cframe | |
| 1363 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1364 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1365 | table.insert(Effects, {
| |
| 1366 | prt, | |
| 1367 | "Cylinder", | |
| 1368 | delay, | |
| 1369 | x3, | |
| 1370 | y3, | |
| 1371 | z3, | |
| 1372 | msh | |
| 1373 | }) | |
| 1374 | end; | |
| 1375 | }; | |
| 1376 | ||
| 1377 | Sphere = {
| |
| 1378 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1379 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1380 | prt.Anchored = true | |
| 1381 | prt.CFrame = cframe | |
| 1382 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1383 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1384 | table.insert(Effects, {
| |
| 1385 | prt, | |
| 1386 | "Cylinder", | |
| 1387 | delay, | |
| 1388 | x3, | |
| 1389 | y3, | |
| 1390 | z3, | |
| 1391 | msh | |
| 1392 | }) | |
| 1393 | end; | |
| 1394 | }; | |
| 1395 | ||
| 1396 | Elect = {
| |
| 1397 | Create = function(cff, x, y, z) | |
| 1398 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 1399 | prt.Anchored = true | |
| 1400 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 1401 | prt.CFrame = CFrame.new(prt.Position) | |
| 1402 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1403 | local xval = math.random() / 2 | |
| 1404 | local yval = math.random() / 2 | |
| 1405 | local zval = math.random() / 2 | |
| 1406 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 1407 | table.insert(Effects, {
| |
| 1408 | prt, | |
| 1409 | "Elec", | |
| 1410 | 0.1, | |
| 1411 | x, | |
| 1412 | y, | |
| 1413 | z, | |
| 1414 | xval, | |
| 1415 | yval, | |
| 1416 | zval | |
| 1417 | }) | |
| 1418 | end; | |
| 1419 | ||
| 1420 | }; | |
| 1421 | ||
| 1422 | Ring = {
| |
| 1423 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1424 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1425 | prt.Anchored = true | |
| 1426 | prt.CFrame = cframe | |
| 1427 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1428 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1429 | table.insert(Effects, {
| |
| 1430 | prt, | |
| 1431 | "Cylinder", | |
| 1432 | delay, | |
| 1433 | x3, | |
| 1434 | y3, | |
| 1435 | z3, | |
| 1436 | msh | |
| 1437 | }) | |
| 1438 | end; | |
| 1439 | }; | |
| 1440 | ||
| 1441 | ||
| 1442 | Wave = {
| |
| 1443 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1444 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1445 | prt.Anchored = true | |
| 1446 | prt.CFrame = cframe | |
| 1447 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1448 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1449 | table.insert(Effects, {
| |
| 1450 | prt, | |
| 1451 | "Cylinder", | |
| 1452 | delay, | |
| 1453 | x3, | |
| 1454 | y3, | |
| 1455 | z3, | |
| 1456 | msh | |
| 1457 | }) | |
| 1458 | end; | |
| 1459 | }; | |
| 1460 | ||
| 1461 | Break = {
| |
| 1462 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1463 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1464 | prt.Anchored = true | |
| 1465 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1466 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1467 | local num = math.random(10, 50) / 1000 | |
| 1468 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1469 | table.insert(Effects, {
| |
| 1470 | prt, | |
| 1471 | "Shatter", | |
| 1472 | num, | |
| 1473 | prt.CFrame, | |
| 1474 | math.random() - math.random(), | |
| 1475 | 0, | |
| 1476 | math.random(50, 100) / 100 | |
| 1477 | }) | |
| 1478 | end; | |
| 1479 | }; | |
| 1480 | ||
| 1481 | Fire = {
| |
| 1482 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 1483 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1484 | prt.Anchored = true | |
| 1485 | prt.CFrame = cframe | |
| 1486 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1487 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1488 | table.insert(Effects, {
| |
| 1489 | prt, | |
| 1490 | "Fire", | |
| 1491 | delay, | |
| 1492 | 1, | |
| 1493 | 1, | |
| 1494 | 1, | |
| 1495 | msh | |
| 1496 | }) | |
| 1497 | end; | |
| 1498 | }; | |
| 1499 | ||
| 1500 | FireWave = {
| |
| 1501 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1502 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 1503 | prt.Anchored = true | |
| 1504 | prt.CFrame = cframe | |
| 1505 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1506 | local d = Create("Decal"){
| |
| 1507 | Parent = prt, | |
| 1508 | Texture = "rbxassetid://26356434", | |
| 1509 | Face = "Top", | |
| 1510 | } | |
| 1511 | local d = Create("Decal"){
| |
| 1512 | Parent = prt, | |
| 1513 | Texture = "rbxassetid://26356434", | |
| 1514 | Face = "Bottom", | |
| 1515 | } | |
| 1516 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1517 | table.insert(Effects, {
| |
| 1518 | prt, | |
| 1519 | "FireWave", | |
| 1520 | 1, | |
| 1521 | 30, | |
| 1522 | math.random(400, 600) / 100, | |
| 1523 | msh | |
| 1524 | }) | |
| 1525 | end; | |
| 1526 | }; | |
| 1527 | ||
| 1528 | Lightning = {
| |
| 1529 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 1530 | local magz = (p0 - p1).magnitude | |
| 1531 | local curpos = p0 | |
| 1532 | local trz = {
| |
| 1533 | -ofs, | |
| 1534 | ofs | |
| 1535 | } | |
| 1536 | for i = 1, tym do | |
| 1537 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 1538 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 1539 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 1540 | li.Material = "Neon" | |
| 1541 | if tym == i then | |
| 1542 | local magz2 = (curpos - p1).magnitude | |
| 1543 | li.Size = Vector3.new(th, th, magz2) | |
| 1544 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 1545 | table.insert(Effects, {
| |
| 1546 | li, | |
| 1547 | "Disappear", | |
| 1548 | last | |
| 1549 | }) | |
| 1550 | else | |
| 1551 | do | |
| 1552 | do | |
| 1553 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 1554 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 1555 | game.Debris:AddItem(li, 10) | |
| 1556 | table.insert(Effects, {
| |
| 1557 | li, | |
| 1558 | "Disappear", | |
| 1559 | last | |
| 1560 | }) | |
| 1561 | end | |
| 1562 | end | |
| 1563 | end | |
| 1564 | end | |
| 1565 | end | |
| 1566 | }; | |
| 1567 | ||
| 1568 | EffectTemplate = {
| |
| 1569 | ||
| 1570 | }; | |
| 1571 | } | |
| 1572 | function hahahohoho(Part, Dmg) | |
| 1573 | sp = Part.Position | |
| 1574 | dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
| 1575 | local hit, pos = rayCast(sp, dirr.lookVector, 500, Character) | |
| 1576 | local las = Instance.new("Part", Character)
| |
| 1577 | las.Anchored = true | |
| 1578 | las.Locked = true | |
| 1579 | las.CanCollide = false | |
| 1580 | las.TopSurface = 0 | |
| 1581 | las.BottomSurface = 0 | |
| 1582 | las.BrickColor = BrickColor.new("Really black")
| |
| 1583 | las.Size = Vector3.new(1, 1, 1) | |
| 1584 | las.CFrame = CFrame.new((Part.Position + pos) / 2, pos) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1585 | local msh = Instance.new("SpecialMesh", las)
| |
| 1586 | mag = (Part.Position - pos).magnitude | |
| 1587 | msh.Scale = Vector3.new(0.1, mag, 0.1) | |
| 1588 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1589 | for i = 0, 3, 0.1 do | |
| 1590 | wait() | |
| 1591 | Part.Transparency = Part.Transparency + 0.03 | |
| 1592 | Mesh.Scale = Mesh.Scale + Vector3.new(0.5, 0.7, 0.5) | |
| 1593 | end | |
| 1594 | Part.Parent = nil | |
| 1595 | end), las, msh) | |
| 1596 | if pos ~= nil then | |
| 1597 | local las2 = Instance.new("Part", Character)
| |
| 1598 | las2.Anchored = true | |
| 1599 | las2.Locked = true | |
| 1600 | las2.CanCollide = false | |
| 1601 | las2.TopSurface = 0 | |
| 1602 | las2.BottomSurface = 0 | |
| 1603 | las2.Transparency = 1 | |
| 1604 | las2.BrickColor = BrickColor.new("Really black")
| |
| 1605 | las2.Size = Vector3.new(1, 1, 1) | |
| 1606 | las2.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1607 | local msh = Instance.new("SpecialMesh", las2)
| |
| 1608 | msh.MeshType = "Sphere" | |
| 1609 | mag = (Part.Position - pos).magnitude | |
| 1610 | msh.Scale = Vector3.new(0.1, 0.1, 0.1) | |
| 1611 | Effects.Ring.Create(BrickColor.new("Really black"), las2.CFrame * CFrame.Angles(math.random(-4,4),math.random(-4,4),math.random(-4,4)), 8, 8, 8, 2.5, 2.5, 2.5, 0.04)
| |
| 1612 | Effects.Sphere.Create(BrickColor.new("Really black"), las2.CFrame, 6, 6, 6, 9, 9, 9, 0.04)
| |
| 1613 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=228343252", las2, 1.2, 0.9)
| |
| 1614 | UltraMagnitudeDamage(las2, 20, 100, 100, math.random(1, 5), "Normal", "http://www.roblox.com/asset/?id=228343252", 1) | |
| 1615 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1616 | for i = 0, 3, 0.1 do | |
| 1617 | wait() | |
| 1618 | Part.Transparency = Part.Transparency + 1 | |
| 1619 | Mesh.Scale = Mesh.Scale + Vector3.new(0, 0, 0) | |
| 1620 | end | |
| 1621 | Part.Parent = nil | |
| 1622 | end), las2, msh) | |
| 1623 | end | |
| 1624 | if hit ~= nil and pos ~= nil then | |
| 1625 | if hit.Parent.className == "Hat" then | |
| 1626 | hit:BreakJoints() | |
| 1627 | hit.Velocity = Vector3.new(math.random(-5, 5), 20, math.random(-5, 5)) | |
| 1628 | end | |
| 1629 | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
| |
| 1630 | hit.Parent.Humanoid:TakeDamage(Dmg) | |
| 1631 | end | |
| 1632 | end | |
| 1633 | end | |
| 1634 | function attackone() | |
| 1635 | attack = true | |
| 1636 | local ref = New("Part",Character,"ref",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-63.7534943, 0.396845818, -9.92230225, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 1637 | mot = New("Weld",ref,"mot",{Part0 = ref,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 1638 | ||
| 1639 | for i = 0, 1, 0.1 do | |
| 1640 | swait() | |
| 1641 | PlayAnimationFromTable({
| |
| 1642 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1643 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1644 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1645 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1646 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1647 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1648 | }, .3, false) | |
| 1649 | end | |
| 1650 | hahahohoho(ref, 100) | |
| 1651 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", Character, 1, .6)
| |
| 1652 | attack = false | |
| 1653 | wait(1) | |
| 1654 | ref:Remove() | |
| 1655 | end | |
| 1656 | function spamrein() | |
| 1657 | attack = true | |
| 1658 | local ref1 = New("Part",EffectModel,"ref1",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 1659 | local ref2 = New("Part",EffectModel,"ref2",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 1660 | for i = 0, 1, 0.1 do | |
| 1661 | swait() | |
| 1662 | PlayAnimationFromTable({
| |
| 1663 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1664 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1665 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1666 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1667 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1668 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1669 | }, .3, false) | |
| 1670 | end | |
| 1671 | for i = 0, 8 do | |
| 1672 | swait(3) | |
| 1673 | ref1.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25))) | |
| 1674 | hahahohoho(ref1, 100) | |
| 1675 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref1, 1, .6)
| |
| 1676 | wait(.05) | |
| 1677 | ref2.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25))) | |
| 1678 | hahahohoho(ref2, 100) | |
| 1679 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref2, 1, .6)
| |
| 1680 | wait(.05) | |
| 1681 | end | |
| 1682 | attack = false | |
| 1683 | end | |
| 1684 | function spamspin() | |
| 1685 | attack = true | |
| 1686 | local ref3 = New("Part",EffectModel,"ref3",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 1687 | local ref4 = New("Part",EffectModel,"ref4",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 1688 | moter1 = New("Motor",ref3,"mot",{Part0 = LeftArm,Part1 = ref3,})
| |
| 1689 | moter2 = New("Motor",ref4,"mot",{Part0 = RightArm,Part1 = ref4,})
| |
| 1690 | for i = 0, 1, 0.1 do | |
| 1691 | swait() | |
| 1692 | PlayAnimationFromTable({
| |
| 1693 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1694 | CFrame.new(0, 1.49998045, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1695 | CFrame.new(2.00000072, 0.500000775, 0, -6.33299351e-007, -1.00000048, 0, 1.00000048, -6.33299351e-007, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1696 | CFrame.new(-1.99999726, 0.500000834, 0, -2.38418579e-007, 1.0000006, 0, -1.00000048, -3.7252903e-007, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1697 | CFrame.new(0.5, -1.99999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1698 | CFrame.new(-0.5, -1.99999619, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1699 | }, .3, false) | |
| 1700 | end | |
| 1701 | coroutine.wrap(function() | |
| 1702 | for i = 0, 18 do | |
| 1703 | swait(2) | |
| 1704 | hahahohoho(ref3, 100) | |
| 1705 | hahahohoho(ref4, 100) | |
| 1706 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", RootPart, 1, .6)
| |
| 1707 | end | |
| 1708 | end)() | |
| 1709 | for i = 0, 7, 0.1 do | |
| 1710 | swait() | |
| 1711 | PlayAnimationFromTable({
| |
| 1712 | CFrame.new(0, -0.500001013, 7.62939453e-006, 1, 0, 0, 0, 0, -1, 0, 1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(sine * 25), 0), | |
| 1713 | CFrame.new(0, 1.4999733, -9.00030136e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1714 | CFrame.new(2, 0.499996185, -1.40070915e-005, 0, -1, 0, 1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1715 | CFrame.new(-1.99999237, 0.499996185, -1.40070915e-005, 0, 1, 0, -1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1716 | CFrame.new(0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1717 | CFrame.new(-0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1718 | }, .3, false) | |
| 1719 | moter1.C0 = clerp(moter1.C0, CFrame.new(1.07955907e-006, -1.10001731, 0, 1.0000031, 3.13669534e-006, 0, -3.00258512e-006, 1.00000322, -0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1720 | moter2.C0 = clerp(moter2.C0, CFrame.new(-2.22906492e-005, -1.10000086, 1.03585517e-005, -1.00000048, 4.00841191e-006, -1.0410066e-011, 4.00840509e-006, 1.00000215, -2.61515493e-006, 1.75116303e-014, -2.48104334e-006, -1.00000179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1721 | end | |
| 1722 | attack = false | |
| 1723 | end | |
| 1724 | function criufkinbastard() | |
| 1725 | Humanoid.WalkSpeed = 0 | |
| 1726 | Humanoid.JumpPower = 0 | |
| 1727 | coroutine.wrap(function() | |
| 1728 | attack = true | |
| 1729 | local txt = Instance.new("BillboardGui", Character)
| |
| 1730 | txt.Adornee = game.Players.LocalPlayer.Character.Head | |
| 1731 | txt.Name = "_status" | |
| 1732 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1733 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 1734 | local text = Instance.new("TextLabel", txt)
| |
| 1735 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 1736 | text.FontSize = "Size24" | |
| 1737 | text.TextScaled = true | |
| 1738 | text.TextTransparency = 1 | |
| 1739 | text.BackgroundTransparency = 1 | |
| 1740 | text.TextStrokeTransparency = 1 | |
| 1741 | text.Font = "Garamond" | |
| 1742 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
| 1743 | text.TextColor3 = Color3.new(0, 0, 0) | |
| 1744 | text.Text = "greetings...my friend..." | |
| 1745 | ||
| 1746 | local text2 = Instance.new("TextLabel", txt)
| |
| 1747 | text2.Size = UDim2.new(10, 0, 7, 0) | |
| 1748 | text2.FontSize = "Size24" | |
| 1749 | text2.TextScaled = true | |
| 1750 | text2.TextTransparency = 1 | |
| 1751 | text2.BackgroundTransparency = 1 | |
| 1752 | text2.TextStrokeTransparency = 1 | |
| 1753 | text2.Font = "Garamond" | |
| 1754 | text2.TextStrokeColor3 = Color3.new(1,0,0) | |
| 1755 | text2.TextColor3 = Color3.new(0, 0, 0) | |
| 1756 | text2.Text = "I am the overlord!." | |
| 1757 | ||
| 1758 | local text3 = Instance.new("TextLabel", txt)
| |
| 1759 | text3.Size = UDim2.new(10, 0, 7, 0) | |
| 1760 | text3.FontSize = "Size24" | |
| 1761 | text3.TextScaled = true | |
| 1762 | text3.TextTransparency = 1 | |
| 1763 | text3.BackgroundTransparency = 1 | |
| 1764 | text3.TextStrokeTransparency = 1 | |
| 1765 | text3.Font = "Garamond" | |
| 1766 | text3.TextStrokeColor3 = Color3.new(1,1,1) | |
| 1767 | text3.TextColor3 = Color3.new(1, 0, 0) | |
| 1768 | text3.Text = "and i...will kill you" | |
| 1769 | ||
| 1770 | local text4 = Instance.new("TextLabel", txt)
| |
| 1771 | text4.Size = UDim2.new(10, 0, 7, 0) | |
| 1772 | text4.FontSize = "Size24" | |
| 1773 | text4.TextScaled = true | |
| 1774 | text4.TextTransparency = 1 | |
| 1775 | text4.BackgroundTransparency = 1 | |
| 1776 | text4.TextStrokeTransparency = 1 | |
| 1777 | text4.Font = "Garamond" | |
| 1778 | text4.TextStrokeColor3 = Color3.new(1,0,0) | |
| 1779 | text4.TextColor3 = Color3.new(0, 0, 0) | |
| 1780 | text4.Text = "If you have to run.....this is the moment." | |
| 1781 | ||
| 1782 | local text5 = Instance.new("TextLabel", txt)
| |
| 1783 | text5.Size = UDim2.new(10, 0, 7, 0) | |
| 1784 | text5.FontSize = "Size24" | |
| 1785 | text5.TextScaled = true | |
| 1786 | text5.TextTransparency = 1 | |
| 1787 | text5.BackgroundTransparency = 1 | |
| 1788 | text5.TextStrokeTransparency = 1 | |
| 1789 | text5.Font = "Garamond" | |
| 1790 | text5.TextStrokeColor3 = Color3.new(1,0,0) | |
| 1791 | text5.TextColor3 = Color3.new(0, 0, 0) | |
| 1792 | text5.Text = "Run..." | |
| 1793 | ||
| 1794 | ||
| 1795 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
| |
| 1796 | while wait() and text and text.TextTransparency >= 0 do | |
| 1797 | text.TextStrokeTransparency = text.TextStrokeTransparency - .05 | |
| 1798 | text.TextTransparency = text.TextTransparency - .05 | |
| 1799 | ||
| 1800 | end | |
| 1801 | wait(10) | |
| 1802 | while wait() and text and text.TextTransparency <= 1 do | |
| 1803 | text.TextStrokeTransparency = text.TextStrokeTransparency + .05 | |
| 1804 | text.TextTransparency = text.TextTransparency + .05 | |
| 1805 | text.Position = text.Position - UDim2.new(0,0,0,1) | |
| 1806 | text.Rotation = text.Rotation - 1 | |
| 1807 | text2.TextStrokeTransparency = text2.TextStrokeTransparency - .05 | |
| 1808 | text2.TextTransparency = text2.TextTransparency - .05 | |
| 1809 | end | |
| 1810 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
| |
| 1811 | wait(5) | |
| 1812 | while wait() and text2 and text2.TextTransparency <= 1 do | |
| 1813 | text2.TextStrokeTransparency = text2.TextStrokeTransparency + .05 | |
| 1814 | text2.TextTransparency = text2.TextTransparency + .05 | |
| 1815 | text2.Position = text2.Position - UDim2.new(0,0,0,1) | |
| 1816 | text2.Rotation = text2.Rotation - 1 | |
| 1817 | text3.TextStrokeTransparency = text3.TextStrokeTransparency - .05 | |
| 1818 | text3.TextTransparency = text3.TextTransparency - .05 | |
| 1819 | end | |
| 1820 | wait(5) | |
| 1821 | while wait() and text3 and text3.TextTransparency <= 1 do | |
| 1822 | text3.TextStrokeTransparency = text3.TextStrokeTransparency + .05 | |
| 1823 | text3.TextTransparency = text3.TextTransparency + .05 | |
| 1824 | text3.Position = text3.Position - UDim2.new(0,0,0,1) | |
| 1825 | text3.Rotation = text3.Rotation - 1 | |
| 1826 | text4.TextStrokeTransparency = text4.TextStrokeTransparency - .05 | |
| 1827 | text4.TextTransparency = text4.TextTransparency - .05 | |
| 1828 | end | |
| 1829 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
| |
| 1830 | wait(3) | |
| 1831 | while wait() and text4 and text4.TextTransparency <= 1 do | |
| 1832 | text4.TextStrokeTransparency = text4.TextStrokeTransparency + .05 | |
| 1833 | text4.TextTransparency = text4.TextTransparency + .05 | |
| 1834 | text4.Position = text4.Position - UDim2.new(0,0,0,1) | |
| 1835 | text4.Rotation = text4.Rotation - 1 | |
| 1836 | text5.TextStrokeTransparency = text5.TextStrokeTransparency - .05 | |
| 1837 | text5.TextTransparency = text5.TextTransparency - .05 | |
| 1838 | end | |
| 1839 | wait(3) | |
| 1840 | while wait() and text5 and text5.TextTransparency <= 1 do | |
| 1841 | text5.TextStrokeTransparency = text5.TextStrokeTransparency + .05 | |
| 1842 | text5.TextTransparency = text5.TextTransparency + .05 | |
| 1843 | text5.Position = text5.Position - UDim2.new(math.random(-0.3,0.3),math.random(-5,5),math.random(-0.3,0.3),math.random(-5,5)) | |
| 1844 | text5.Rotation = text5.Rotation - 1 | |
| 1845 | spooky2.Volume = spooky2.Volume - 0.05 | |
| 1846 | end | |
| 1847 | spooky:Play() | |
| 1848 | text:Remove() | |
| 1849 | text2:Remove() | |
| 1850 | text3:Remove() | |
| 1851 | text4:Remove() | |
| 1852 | text5:Remove() | |
| 1853 | end)() | |
| 1854 | for i = 0, 51, 0.1 do | |
| 1855 | swait() | |
| 1856 | PlayAnimationFromTable({
| |
| 1857 | CFrame.new(-0, -2.01999879, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1858 | CFrame.new(-0.100006104, 1.64000487, -3.69548798e-006, 1, 0, 0, 0, 0.891016304, 0.453991741, 0, -0.453991264, 0.891006649) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1859 | CFrame.new(0.950131536, 1.02000284, -0.609929323, 0.838677049, 0.544629633, 1.82800829e-006, 0.280503511, -0.431945533, -0.857170463, -0.466839492, 0.718889475, -0.515032887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1860 | CFrame.new(-1.01001573, 1.08999729, -0.649995506, 0.743156135, -0.669118106, 5.49372999e-006, -0.324383408, -0.360283762, -0.874626398, 0.585230291, 0.649981976, -0.484797955) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1861 | CFrame.new(0.5, -0.169970214, -1.0898838, 1, 0, -0, 0, 0.681989849, -0.73136127, 0, 0.73136127, 0.681989849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1862 | CFrame.new(-0.549926758, -0.149971083, -1.56995773, 1, 0, -0, 0, 0.1736864, -0.984801233, 0, 0.984801233, 0.1736864) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1863 | }, .1, false) | |
| 1864 | end | |
| 1865 | for i = 0, 5, 0.1 do | |
| 1866 | swait() | |
| 1867 | PlayAnimationFromTable({
| |
| 1868 | CFrame.new(-0.0981965065, -1.31277657, -0.54871279, 0.808166862, -0.196366429, -0.555253625, 0.575620949, 0.0638884008, 0.815217137, -0.124606982, -0.97844708, 0.164665088) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1869 | CFrame.new(0.0582410395, 1.44129539, 0.0734805763, 0.934516311, 2.10106373e-006, 0.355920374, 0.121625632, 0.939799547, -0.319349885, -0.334494382, 0.34172672, 0.878257751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1870 | CFrame.new(0.759254932, 0.609628737, -1.37132394, 0.887519658, 0.460769922, 5.49852848e-006, 0.0474366248, -0.0913589746, -0.994687736, -0.458321631, 0.882805049, -0.102940291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1871 | CFrame.new(-1.522138, 1.1763432, -0.233797818, 0.654816628, 0.623950124, -0.426499099, 0.0684916377, -0.610978603, -0.788678765, -0.752677917, 0.487228334, -0.44281441) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1872 | CFrame.new(0.55273962, -1.8331666, -0.853646398, 0.994906187, -2.04518437e-006, 0.100805953, 0.0784842819, 0.627576351, -0.774589181, -0.0632617697, 0.778555214, 0.624379694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1873 | CFrame.new(-0.663739324, -1.72484899, -0.279409111, 0.936938882, 0.336636096, -0.0939244553, -0.32966578, 0.762038469, -0.557331204, -0.116043702, 0.553148985, 0.824960768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1874 | }, .05, false) | |
| 1875 | end | |
| 1876 | for i = 0, 5, 0.1 do | |
| 1877 | swait() | |
| 1878 | PlayAnimationFromTable({
| |
| 1879 | CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1880 | CFrame.new(0, 1.446419, -0.149725705, 1, 0, 0, 0, 0.941553891, 0.336862653, 0, -0.336862624, 0.94155395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1881 | CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1882 | CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1883 | CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1884 | CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1885 | }, .05, false) | |
| 1886 | end | |
| 1887 | for i = 0, 2 do | |
| 1888 | for i = 0, 1, 0.1 do | |
| 1889 | swait() | |
| 1890 | PlayAnimationFromTable({
| |
| 1891 | CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1892 | CFrame.new(5.51342964e-007, 1.44641995, -0.149724424, 0.782274365, -6.99407749e-008, -0.622934043, 0.209844083, 0.941553354, 0.263520032, 0.586525559, -0.336863965, 0.736553073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1893 | CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1894 | CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1895 | CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1896 | CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1897 | }, .3, false) | |
| 1898 | end | |
| 1899 | for i = 0, 1, 0.1 do | |
| 1900 | swait() | |
| 1901 | PlayAnimationFromTable({
| |
| 1902 | CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1903 | CFrame.new(1.78813934e-007, 1.4464184, -0.149724573, 0.864948869, -2.57774872e-007, 0.501860023, -0.169061571, 0.941551089, 0.291375846, -0.472526848, -0.336870432, 0.81439352) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1904 | CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1905 | CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1906 | CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1907 | CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1908 | }, .3, false) | |
| 1909 | end | |
| 1910 | end | |
| 1911 | local Anim = false | |
| 1912 | ||
| 1913 | Humanoid.WalkSpeed = 16 | |
| 1914 | Humanoid.JumpPower = 50 | |
| 1915 | attack = false | |
| 1916 | end | |
| 1917 | criufkinbastard() | |
| 1918 | Mouse.Button1Down:connect(function() | |
| 1919 | if attack == false and attacktype == 1 then | |
| 1920 | attackone() | |
| 1921 | end | |
| 1922 | end) | |
| 1923 | ||
| 1924 | Mouse.KeyDown:connect(function(k) | |
| 1925 | k = k:lower() | |
| 1926 | if attack == false and k == 'z' then | |
| 1927 | spamrein() | |
| 1928 | elseif attack == false and k == 'x' then | |
| 1929 | spamspin() | |
| 1930 | end | |
| 1931 | end) | |
| 1932 | ||
| 1933 | while true do | |
| 1934 | swait() | |
| 1935 | for i, v in pairs(Character:GetChildren()) do | |
| 1936 | if v:IsA("Part") then
| |
| 1937 | v.Material = "SmoothPlastic" | |
| 1938 | elseif v:IsA("Accessory") then
| |
| 1939 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1940 | end | |
| 1941 | end | |
| 1942 | ||
| 1943 | player = game.Players.LocalPlayer | |
| 1944 | chara = player.Character | |
| 1945 | debby = game:GetService("Debris")
| |
| 1946 | ||
| 1947 | --Outfit-- | |
| 1948 | ||
| 1949 | New = function(Object, Parent, Name, Data) | |
| 1950 | local Object = Instance.new(Object) | |
| 1951 | for Index, Value in pairs(Data or {}) do
| |
| 1952 | Object[Index] = Value | |
| 1953 | end | |
| 1954 | Object.Parent = Parent | |
| 1955 | Object.Name = Name | |
| 1956 | return Object | |
| 1957 | end | |
| 1958 | ||
| 1959 | --Animations-- | |
| 1960 | function LoadAnim(id) | |
| 1961 | local anim = New("Animation",chara,"Animation",{AnimationId = "rbxassetid://"..id})
| |
| 1962 | local realanim = chara.Humanoid:LoadAnimation(anim) | |
| 1963 | return realanim | |
| 1964 | end | |
| 1965 | HoldA = LoadAnim(69427262) | |
| 1966 | Swing1A = LoadAnim(186934658) | |
| 1967 | Swing2A = LoadAnim(94160738) | |
| 1968 | Swing3A = LoadAnim(186934910) | |
| 1969 | Swing4A = LoadAnim(74909528) | |
| 1970 | RaiseA = LoadAnim(83994319) | |
| 1971 | RiseA = LoadAnim(169638954) | |
| 1972 | HoldA:Play() | |
| 1973 | wait(2) | |
| 1974 | --Fly-- | |
| 1975 | local truflyposy = chara.Torso.Position.Y+10 | |
| 1976 | local flyposy = truflyposy | |
| 1977 | local bodfly = Instance.new("BodyPosition", chara.Torso)
| |
| 1978 | bodfly.Name = "Fly" | |
| 1979 | bodfly.maxForce = Vector3.new(0,10000,0) | |
| 1980 | bodfly.Position = Vector3.new(0,flyposy,0) | |
| 1981 | -------------------------------------------------- | |
| 1982 | ||
| 1983 | ||
| 1984 | if 0 < #Effects then | |
| 1985 | for e = 1, #Effects do | |
| 1986 | if Effects[e] ~= nil then | |
| 1987 | local Thing = Effects[e] | |
| 1988 | if Thing ~= nil then | |
| 1989 | local Part = Thing[1] | |
| 1990 | local Mode = Thing[2] | |
| 1991 | local Delay = Thing[3] | |
| 1992 | local IncX = Thing[4] | |
| 1993 | local IncY = Thing[5] | |
| 1994 | local IncZ = Thing[6] | |
| 1995 | if Thing[2] == "Shoot" then | |
| 1996 | local Look = Thing[1] | |
| 1997 | local move = 30 | |
| 1998 | if Thing[8] == 3 then | |
| 1999 | move = 10 | |
| 2000 | end | |
| 2001 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 2002 | if Thing[10] ~= nil then | |
| 2003 | da = pos | |
| 2004 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 2005 | cfa = CFrame.new(Thing[4], pos) | |
| 2006 | tehCF = cfa:lerp(cf2, 0.2) | |
| 2007 | Thing[1] = tehCF.lookVector | |
| 2008 | end | |
| 2009 | local mag = (Thing[4] - pos).magnitude | |
| 2010 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
| 2011 | if Thing[8] == 2 then | |
| 2012 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
| 2013 | end | |
| 2014 | Thing[4] = Thing[4] + Look * move | |
| 2015 | Thing[3] = Thing[3] - 1 | |
| 2016 | if 2 < Thing[5] then | |
| 2017 | Thing[5] = Thing[5] - 0.3 | |
| 2018 | Thing[6] = Thing[6] - 0.3 | |
| 2019 | end | |
| 2020 | if hit ~= nil then | |
| 2021 | Thing[3] = 0 | |
| 2022 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 2023 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 2024 | else | |
| 2025 | if Thing[8] == 2 then | |
| 2026 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 2027 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
| |
| 2028 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 2029 | ref.Anchored = true | |
| 2030 | ref.CFrame = CFrame.new(pos) | |
| 2031 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 2032 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 2033 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
| 2034 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
| |
| 2035 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 2036 | end | |
| 2037 | end | |
| 2038 | end | |
| 2039 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 2040 | ref.Anchored = true | |
| 2041 | ref.CFrame = CFrame.new(pos) | |
| 2042 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 2043 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 2044 | end | |
| 2045 | if Thing[3] <= 0 then | |
| 2046 | table.remove(Effects, e) | |
| 2047 | end | |
| 2048 | end | |
| 2049 | do | |
| 2050 | do | |
| 2051 | if Thing[2] == "FireWave" then | |
| 2052 | if Thing[3] <= Thing[4] then | |
| 2053 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 2054 | Thing[3] = Thing[3] + 1 | |
| 2055 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 2056 | else | |
| 2057 | Part.Parent = nil | |
| 2058 | table.remove(Effects, e) | |
| 2059 | end | |
| 2060 | end | |
| 2061 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 2062 | if Thing[1].Transparency <= 1 then | |
| 2063 | if Thing[2] == "Block1" then | |
| 2064 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2065 | Mesh = Thing[7] | |
| 2066 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2067 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2068 | else | |
| 2069 | if Thing[2] == "Block2" then | |
| 2070 | Thing[1].CFrame = Thing[1].CFrame | |
| 2071 | Mesh = Thing[7] | |
| 2072 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2073 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2074 | else | |
| 2075 | if Thing[2] == "Fire" then | |
| 2076 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 2077 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2078 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2079 | else | |
| 2080 | if Thing[2] == "Cylinder" then | |
| 2081 | Mesh = Thing[7] | |
| 2082 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2083 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2084 | else | |
| 2085 | if Thing[2] == "Blood" then | |
| 2086 | Mesh = Thing[7] | |
| 2087 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 2088 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2089 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2090 | else | |
| 2091 | if Thing[2] == "Elec" then | |
| 2092 | Mesh = Thing[10] | |
| 2093 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 2094 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2095 | else | |
| 2096 | if Thing[2] == "Disappear" then | |
| 2097 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2098 | end | |
| 2099 | end | |
| 2100 | end | |
| 2101 | end | |
| 2102 | end | |
| 2103 | end | |
| 2104 | end | |
| 2105 | else | |
| 2106 | Part.Parent = nil | |
| 2107 | table.remove(Effects, e) | |
| 2108 | end | |
| 2109 | end | |
| 2110 | end | |
| 2111 | end | |
| 2112 | end | |
| 2113 | end | |
| 2114 | end | |
| 2115 | end | |
| 2116 | end |