SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | - | local Player,game,owner = owner,game |
| 2 | + | |
| 3 | - | local RealPlayer = Player |
| 3 | + | |
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | - | local rp = RealPlayer |
| 5 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 6 | - | script.Parent = rp.Character |
| 6 | + | |
| 7 | - | |
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | - | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
|
| 14 | + | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | - | if t and t._fakeEvent then |
| 31 | + | |
| 32 | - | for _,f in pairs(t.Functions) do |
| 32 | + | |
| 33 | - | f(...) |
| 33 | + | if t and t._fakeEvent and t.Function then |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | - | if plr~=rp then return end |
| 41 | + | if plr~=Player then return end |
| 42 | - | m.Target = io.Target |
| 42 | + | if io.isMouse then |
| 43 | - | m.Hit = io.Hit |
| 43 | + | m.Target = io.Target |
| 44 | - | if not io.isMouse then |
| 44 | + | m.Hit = io.Hit |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
|
| 69 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | - | ----Sandboxed game object that allows the usage of client-side methods and services |
| 84 | + | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
| 85 | - | --Real game object |
| 85 | + | |
| 86 | - | local _rg = game |
| 86 | + | |
| 87 | -- Synapse Decompiler | |
| 88 | - | --Metatable for fake service |
| 88 | + | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ |
| 89 | - | local fsmt = {
|
| 89 | + | |
| 90 | - | __index = function(self,k) |
| 90 | + | |
| 91 | - | local s = rawget(self,"_RealService") |
| 91 | + | Player = owner |
| 92 | - | if s then return s[k] end |
| 92 | + | PlayerGui = Player.PlayerGui |
| 93 | - | end, |
| 93 | + | Cam = workspace.CurrentCamera |
| 94 | - | __newindex = function(self,k,v) |
| 94 | + | Backpack = Player.Backpack |
| 95 | - | local s = rawget(self,"_RealService") |
| 95 | + | Character = Player.Character |
| 96 | - | if s then s[k]=v end |
| 96 | + | Humanoid = Character.Humanoid |
| 97 | - | end, |
| 97 | + | RootPart = Character.HumanoidRootPart |
| 98 | - | __call = function(self,...) |
| 98 | + | Torso = Character.Torso |
| 99 | - | local s = rawget(self,"_RealService") |
| 99 | + | Head = Character.Head |
| 100 | - | if s then return s(...) end |
| 100 | + | RightArm = Character["Right Arm"] |
| 101 | LeftArm = Character["Left Arm"] | |
| 102 | RightLeg = Character["Right Leg"] | |
| 103 | - | local function FakeService(t,RealService) |
| 103 | + | LeftLeg = Character["Left Leg"] |
| 104 | - | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService |
| 104 | + | RootJoint = RootPart.RootJoint |
| 105 | - | return setmetatable(t,fsmt) |
| 105 | + | Neck = Torso.Neck |
| 106 | RightShoulder = Torso["Right Shoulder"] | |
| 107 | LeftShoulder = Torso["Left Shoulder"] | |
| 108 | - | --Fake game object |
| 108 | + | RightHip = Torso["Right Hip"] |
| 109 | - | local g = {
|
| 109 | + | LeftHip = Torso["Left Hip"] |
| 110 | - | GetService = function(self,s) |
| 110 | + | local sick = Instance.new("Sound", Character)
|
| 111 | - | return self[s] |
| 111 | + | |
| 112 | - | end, |
| 112 | + | |
| 113 | - | Players = FakeService({
|
| 113 | + | VT = Vector3.new |
| 114 | - | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
|
| 114 | + | RAD = math.rad |
| 115 | - | },"Players"), |
| 115 | + | C3 = Color3.new |
| 116 | - | UserInputService = FakeService(UIS,"UserInputService"), |
| 116 | + | UD2 = UDim2.new |
| 117 | - | ContextActionService = FakeService(CAS,"ContextActionService"), |
| 117 | + | BRICKC = BrickColor.new |
| 118 | ANGLES = CFrame.Angles | |
| 119 | - | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) |
| 119 | + | EULER = CFrame.fromEulerAnglesXYZ |
| 120 | - | g.service = g.GetService |
| 120 | + | COS = math.cos |
| 121 | - | |
| 121 | + | ACOS = math.acos |
| 122 | - | g.RunService = FakeService({
|
| 122 | + | SIN = math.sin |
| 123 | - | RenderStepped = _rg:GetService("RunService").Heartbeat,
|
| 123 | + | ASIN = math.asin |
| 124 | - | BindToRenderStep = function(self,name,_,fun) |
| 124 | + | ABS = math.abs |
| 125 | MRANDOM = math.random | |
| 126 | - | end, |
| 126 | + | FLOOR = math.floor |
| 127 | - | UnbindFromRenderStep = function(self,name) |
| 127 | + | Animation_Speed = 3 |
| 128 | - | self._btrs[name]:Disconnect() |
| 128 | + | Frame_Speed = 0.016666666666666666 |
| 129 | - | end, |
| 129 | + | local Speed = 22 |
| 130 | - | },"RunService") |
| 130 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 131 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 132 | - | setmetatable(g,{
|
| 132 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
| 133 | - | __index=function(self,s) |
| 133 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
| 134 | - | return _rg:GetService(s) or typeof(_rg[s])=="function" |
| 134 | + | local DAMAGEMULTIPLIER = 1 |
| 135 | - | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
| 135 | + | local ANIM = "Idle" |
| 136 | - | end, |
| 136 | + | local ATTACK = false |
| 137 | - | __newindex = fsmt.__newindex, |
| 137 | + | local HOLE = false |
| 138 | - | __call = fsmt.__call |
| 138 | + | local HOLD = false |
| 139 | - | }) |
| 139 | + | local COMBO = 1 |
| 140 | - | --Changing owner to fake player object to support owner:GetMouse() |
| 140 | + | local Rooted = false |
| 141 | - | game,owner = g,g.Players.LocalPlayer |
| 141 | + | local SINE = 0 |
| 142 | local KEYHOLD = false | |
| 143 | local CHANGE = 2 / Animation_Speed | |
| 144 | - | ----------------------- |
| 144 | + | local WALKINGANIM = false |
| 145 | - | --[[ Name : Inked Monster ]]-- |
| 145 | + | local VALUE1 = false |
| 146 | - | ------------------------------------------------------- |
| 146 | + | local VALUE2 = false |
| 147 | - | --A script By makhail07 |
| 147 | + | |
| 148 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 149 | - | --Discord Creterisk#2958 |
| 149 | + | |
| 150 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 151 | - | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION |
| 151 | + | WEAPONGUI.Name = "Absylum GUI" |
| 152 | - | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT |
| 152 | + | local Effects = IT("Folder", Character)
|
| 153 | - | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT |
| 153 | + | Effects.Name = "Effects" |
| 154 | - | --YOU FUCKING SKIDS, |
| 154 | + | local ANIMATOR = Humanoid.Animator |
| 155 | - | --For Those who log/decompile this, If you sell or trade this, |
| 155 | + | local ANIMATE = Character.Animate |
| 156 | - | --and I find out who you are, i will take massive action. |
| 156 | + | for _, v in next, Humanoid:GetPlayingAnimationTracks() do |
| 157 | v:Stop() | |
| 158 | - | ------------------------------------------------------- |
| 158 | + | |
| 159 | ANIMATE:Destroy() | |
| 160 | - | local FavIDs = {
|
| 160 | + | local UNANCHOR = true |
| 161 | - | 340106355, --Nefl Crystals |
| 161 | + | local HITFLOOR, HITPOS |
| 162 | - | 927529620, --Dimension |
| 162 | + | local SIZE = 15 |
| 163 | - | 876981900, --Fantasy |
| 163 | + | |
| 164 | - | 398987889, --Ordinary Days |
| 164 | + | |
| 165 | - | 1117396305, --Oh wait, it's you. |
| 165 | + | ArtificialHB.Name = "ArtificialHB" |
| 166 | - | 885996042, --Action Winter Journey |
| 166 | + | script:WaitForChild("ArtificialHB")
|
| 167 | - | 919231299, --Sprawling Idiot Effigy |
| 167 | + | frame = Frame_Speed |
| 168 | - | 743466274, --Good Day Sunshine |
| 168 | + | |
| 169 | - | 727411183, --Knife Fight |
| 169 | + | |
| 170 | - | 1402748531, --The Earth Is Counting On You! |
| 170 | + | |
| 171 | - | 595230126 --Robot Language |
| 171 | + | |
| 172 | script.ArtificialHB:Fire() | |
| 173 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 174 | tf = tf + s | |
| 175 | if tf >= frame then | |
| 176 | - | --The reality of my life isn't real but a Universe -makhail07 |
| 176 | + | |
| 177 | script.ArtificialHB:Fire() | |
| 178 | - | local plr = owner |
| 178 | + | |
| 179 | - | print('Local User is '..plr.Name)
|
| 179 | + | |
| 180 | - | print('Inked Monster Loaded')
|
| 180 | + | |
| 181 | - | print('Wat')
|
| 181 | + | script.ArtificialHB:Fire() |
| 182 | - | local char = plr.Character |
| 182 | + | |
| 183 | - | local hum = char.Humanoid |
| 183 | + | |
| 184 | - | local hed = char.Head |
| 184 | + | |
| 185 | - | local root = char.HumanoidRootPart |
| 185 | + | |
| 186 | - | local rootj = root.RootJoint |
| 186 | + | |
| 187 | - | local tors = char.Torso |
| 187 | + | |
| 188 | - | local ra = char["Right Arm"] |
| 188 | + | |
| 189 | - | local la = char["Left Arm"] |
| 189 | + | |
| 190 | - | local rl = char["Right Leg"] |
| 190 | + | |
| 191 | - | local ll = char["Left Leg"] |
| 191 | + | |
| 192 | - | local neck = tors["Neck"] |
| 192 | + | |
| 193 | - | local mouse = plr:GetMouse() |
| 193 | + | |
| 194 | - | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
| 194 | + | |
| 195 | - | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) |
| 195 | + | function PositiveAngle(NUMBER) |
| 196 | - | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) |
| 196 | + | if NUMBER >= 0 then |
| 197 | - | local maincolor = BrickColor.new("Institutional white")
|
| 197 | + | NUMBER = 0 |
| 198 | - | ------------------------------------------------------- |
| 198 | + | |
| 199 | - | --Start Whitelist and Invincibility-- |
| 199 | + | return NUMBER |
| 200 | - | ------------------------------------------------------- |
| 200 | + | |
| 201 | - | ff = Instance.new("ForceField",char)
|
| 201 | + | function NegativeAngle(NUMBER) |
| 202 | - | ff.Visible = false |
| 202 | + | if NUMBER <= 0 then |
| 203 | - | hum.Name = "Base" |
| 203 | + | NUMBER = 0 |
| 204 | - | hum.MaxHealth = 1.0E298 |
| 204 | + | |
| 205 | - | hum.Health = 1.0E298 |
| 205 | + | return NUMBER |
| 206 | - | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
|
| 206 | + | |
| 207 | - | if hum.Health > 0.1 and hum.Health < 1.0E298 then |
| 207 | + | function Swait(NUMBER) |
| 208 | - | hum.MaxHealth = 1.0E298 |
| 208 | + | if NUMBER == 0 or NUMBER == nil then |
| 209 | - | hum.Health = 1.0E298 |
| 209 | + | ArtificialHB.Event:wait() |
| 210 | - | end |
| 210 | + | |
| 211 | for i = 1, NUMBER do | |
| 212 | - | ------------------------------------------------------- |
| 212 | + | ArtificialHB.Event:wait() |
| 213 | - | --End Whitelist and Invincibility-- |
| 213 | + | |
| 214 | - | ------------------------------------------------------- |
| 214 | + | |
| 215 | end | |
| 216 | - | ------------------------------------------------------- |
| 216 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
| 217 | - | --Start Good Stuff-- |
| 217 | + | local NEWMESH = IT(MESH) |
| 218 | - | ------------------------------------------------------- |
| 218 | + | if MESH == "SpecialMesh" then |
| 219 | - | cam = game.Workspace.CurrentCamera |
| 219 | + | NEWMESH.MeshType = MESHTYPE |
| 220 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 221 | - | angles = CFrame.Angles |
| 221 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID |
| 222 | - | attack = false |
| 222 | + | |
| 223 | - | Euler = CFrame.fromEulerAnglesXYZ |
| 223 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 224 | - | Rad = math.rad |
| 224 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID |
| 225 | end | |
| 226 | - | BrickC = BrickColor.new |
| 226 | + | |
| 227 | - | Cos = math.cos |
| 227 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 228 | - | Acos = math.acos |
| 228 | + | NEWMESH.Scale = SCALE |
| 229 | - | Sin = math.sin |
| 229 | + | NEWMESH.Parent = PARENT |
| 230 | - | Asin = math.asin |
| 230 | + | return NEWMESH |
| 231 | - | Abs = math.abs |
| 231 | + | |
| 232 | - | Mrandom = math.random |
| 232 | + | |
| 233 | - | Floor = math.floor |
| 233 | + | |
| 234 | - | ------------------------------------------------------- |
| 234 | + | |
| 235 | - | --End Good Stuff-- |
| 235 | + | |
| 236 | - | ------------------------------------------------------- |
| 236 | + | |
| 237 | - | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 237 | + | |
| 238 | - | RSH, LSH = nil, nil |
| 238 | + | |
| 239 | - | RW = Instance.new("Weld")
|
| 239 | + | |
| 240 | - | LW = Instance.new("Weld")
|
| 240 | + | |
| 241 | - | RH = tors["Right Hip"] |
| 241 | + | |
| 242 | - | LH = tors["Left Hip"] |
| 242 | + | |
| 243 | - | RSH = tors["Right Shoulder"] |
| 243 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
| 244 | - | LSH = tors["Left Shoulder"] |
| 244 | + | |
| 245 | - | RSH.Parent = nil |
| 245 | + | |
| 246 | - | LSH.Parent = nil |
| 246 | + | NEWPART.Position = Torso.Position |
| 247 | - | RW.Name = "RW" |
| 247 | + | |
| 248 | - | RW.Part0 = tors |
| 248 | + | |
| 249 | - | RW.C0 = CF(1.5, 0.5, 0) |
| 249 | + | |
| 250 | - | RW.C1 = CF(0, 0.5, 0) |
| 250 | + | |
| 251 | - | RW.Part1 = ra |
| 251 | + | |
| 252 | - | RW.Parent = tors |
| 252 | + | local weldBetween = function(a, b) |
| 253 | - | LW.Name = "LW" |
| 253 | + | local weldd = Instance.new("ManualWeld")
|
| 254 | - | LW.Part0 = tors |
| 254 | + | weldd.Part0 = a |
| 255 | - | LW.C0 = CF(-1.5, 0.5, 0) |
| 255 | + | weldd.Part1 = b |
| 256 | - | LW.C1 = CF(0, 0.5, 0) |
| 256 | + | weldd.C0 = CFrame.new() |
| 257 | - | LW.Part1 = la |
| 257 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 258 | - | LW.Parent = tors |
| 258 | + | weldd.Parent = a |
| 259 | - | Effects = {}
|
| 259 | + | return weldd |
| 260 | - | ------------------------------------------------------- |
| 260 | + | |
| 261 | - | --Start HeartBeat-- |
| 261 | + | |
| 262 | - | ------------------------------------------------------- |
| 262 | + | |
| 263 | local trace = m00 + m11 + m22 | |
| 264 | - | ArtificialHB.Name = "Heartbeat" |
| 264 | + | |
| 265 | - | script:WaitForChild("Heartbeat")
|
| 265 | + | |
| 266 | local recip = 0.5 / s | |
| 267 | - | frame = 1 / 60 |
| 267 | + | |
| 268 | else | |
| 269 | local i = 0 | |
| 270 | if m00 < m11 then | |
| 271 | i = 1 | |
| 272 | end | |
| 273 | if m22 > (i == 0 and m00 or m11) then | |
| 274 | - | script.Heartbeat:Fire() |
| 274 | + | |
| 275 | end | |
| 276 | if i == 0 then | |
| 277 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 278 | local recip = 0.5 / s | |
| 279 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 280 | elseif i == 1 then | |
| 281 | - | script.Heartbeat:Fire() |
| 281 | + | |
| 282 | local recip = 0.5 / s | |
| 283 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 284 | elseif i == 2 then | |
| 285 | - | script.Heartbeat:Fire() |
| 285 | + | |
| 286 | local recip = 0.5 / s | |
| 287 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 288 | end | |
| 289 | end | |
| 290 | end | |
| 291 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 292 | local xs, ys, zs = x + x, y + y, z + z | |
| 293 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 294 | local xx = x * xs | |
| 295 | local xy = x * ys | |
| 296 | - | ------------------------------------------------------- |
| 296 | + | |
| 297 | - | --End HeartBeat-- |
| 297 | + | |
| 298 | - | ------------------------------------------------------- |
| 298 | + | |
| 299 | local zz = z * zs | |
| 300 | - | ------------------------------------------------------- |
| 300 | + | |
| 301 | - | --Start Important Functions-- |
| 301 | + | |
| 302 | - | ------------------------------------------------------- |
| 302 | + | |
| 303 | - | function swait(num) |
| 303 | + | |
| 304 | - | if num == 0 or num == nil then |
| 304 | + | |
| 305 | - | game:service("RunService").Stepped:wait(0)
|
| 305 | + | |
| 306 | if 1 - cosTheta > 1.0E-4 then | |
| 307 | - | for i = 0, num do |
| 307 | + | local theta = ACOS(cosTheta) |
| 308 | - | game:service("RunService").Stepped:wait(0)
|
| 308 | + | local invSinTheta = 1 / SIN(theta) |
| 309 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 310 | finishInterp = SIN(t * theta) * invSinTheta | |
| 311 | else | |
| 312 | - | function thread(f) |
| 312 | + | |
| 313 | - | coroutine.resume(coroutine.create(f)) |
| 313 | + | |
| 314 | end | |
| 315 | - | function clerp(a, b, t) |
| 315 | + | |
| 316 | local theta = ACOS(-cosTheta) | |
| 317 | local invSinTheta = 1 / SIN(theta) | |
| 318 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 319 | finishInterp = SIN(t * theta) * invSinTheta | |
| 320 | else | |
| 321 | startInterp = t - 1 | |
| 322 | finishInterp = t | |
| 323 | end | |
| 324 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 325 | end | |
| 326 | function Clerp(a, b, t) | |
| 327 | local qa = {
| |
| 328 | QuaternionFromCFrame(a) | |
| 329 | } | |
| 330 | local qb = {
| |
| 331 | QuaternionFromCFrame(b) | |
| 332 | } | |
| 333 | local ax, ay, az = a.x, a.y, a.z | |
| 334 | local bx, by, bz = b.x, b.y, b.z | |
| 335 | local _t = 1 - t | |
| 336 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 337 | end | |
| 338 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 339 | local frame = IT("Frame")
| |
| 340 | frame.BackgroundTransparency = TRANSPARENCY | |
| 341 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 342 | frame.Position = POSITION | |
| 343 | frame.Size = SIZE | |
| 344 | frame.BackgroundColor3 = COLOR | |
| 345 | frame.BorderColor3 = BORDERCOLOR | |
| 346 | frame.Name = NAME | |
| 347 | frame.Parent = PARENT | |
| 348 | return frame | |
| 349 | end | |
| 350 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 351 | local label = IT("TextLabel")
| |
| 352 | label.BackgroundTransparency = 1 | |
| 353 | label.Size = UD2(1, 0, 1, 0) | |
| 354 | label.Position = UD2(0, 0, 0, 0) | |
| 355 | label.TextColor3 = TEXTCOLOR | |
| 356 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 357 | label.TextTransparency = TRANSPARENCY | |
| 358 | label.FontSize = TEXTFONTSIZE | |
| 359 | label.Font = TEXTFONT | |
| 360 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 361 | label.TextScaled = false | |
| 362 | label.Text = TEXT | |
| 363 | label.Name = NAME | |
| 364 | label.Parent = PARENT | |
| 365 | return label | |
| 366 | end | |
| 367 | function NoOutlines(PART) | |
| 368 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 369 | end | |
| 370 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 371 | local NEWWELD = IT(TYPE) | |
| 372 | NEWWELD.Part0 = PART0 | |
| 373 | - | local theta = math.acos(cosTheta) |
| 373 | + | |
| 374 | - | local invSinTheta = 1 / Sin(theta) |
| 374 | + | |
| 375 | - | startInterp = Sin((1 - t) * theta) * invSinTheta |
| 375 | + | |
| 376 | - | finishInterp = Sin(t * theta) * invSinTheta |
| 376 | + | |
| 377 | return NEWWELD | |
| 378 | end | |
| 379 | local S = IT("Sound")
| |
| 380 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 381 | local NEWSOUND | |
| 382 | - | local theta = math.acos(-cosTheta) |
| 382 | + | |
| 383 | - | local invSinTheta = 1 / Sin(theta) |
| 383 | + | NEWSOUND = S:Clone() |
| 384 | - | startInterp = Sin((t - 1) * theta) * invSinTheta |
| 384 | + | NEWSOUND.Parent = PARENT |
| 385 | - | finishInterp = Sin(t * theta) * invSinTheta |
| 385 | + | NEWSOUND.Volume = VOLUME |
| 386 | NEWSOUND.Pitch = PITCH | |
| 387 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
| 388 | NEWSOUND:play() | |
| 389 | if DOESLOOP == true then | |
| 390 | NEWSOUND.Looped = true | |
| 391 | else | |
| 392 | - | function rayCast(Position, Direction, Range, Ignore) |
| 392 | + | repeat |
| 393 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
|
| 393 | + | wait(1) |
| 394 | until NEWSOUND.Playing == false | |
| 395 | - | local RbxUtility = LoadLibrary("RbxUtility")
|
| 395 | + | NEWSOUND:remove() |
| 396 | - | local Create = RbxUtility.Create |
| 396 | + | |
| 397 | end)) | |
| 398 | - | ------------------------------------------------------- |
| 398 | + | return NEWSOUND |
| 399 | - | --Start Damage Function-- |
| 399 | + | |
| 400 | - | ------------------------------------------------------- |
| 400 | + | function CFrameFromTopBack(at, top, back) |
| 401 | - | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) |
| 401 | + | local right = top:Cross(back) |
| 402 | - | if hit.Parent == nil then |
| 402 | + | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
| 403 | - | return |
| 403 | + | |
| 404 | function WACKYEFFECT(Table) | |
| 405 | - | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
|
| 405 | + | local TYPE = Table.EffectType or "Sphere" |
| 406 | - | for _, v in pairs(hit.Parent:children()) do |
| 406 | + | local SIZE = Table.Size or VT(1, 1, 1) |
| 407 | - | if v:IsA("Humanoid") then
|
| 407 | + | local ENDSIZE = Table.Size2 or VT(0, 0, 0) |
| 408 | - | h = v |
| 408 | + | local TRANSPARENCY = Table.Transparency or 0 |
| 409 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
| 410 | local CFRAME = Table.CFrame or Torso.CFrame | |
| 411 | - | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
|
| 411 | + | local MOVEDIRECTION = Table.MoveToPos or nil |
| 412 | - | |
| 412 | + | local ROTATION1 = Table.RotationX or 0 |
| 413 | - | hit.Parent:FindFirstChild("Head"):BreakJoints()
|
| 413 | + | local ROTATION2 = Table.RotationY or 0 |
| 414 | - | end |
| 414 | + | local ROTATION3 = Table.RotationZ or 0 |
| 415 | local MATERIAL = Table.Material or "Neon" | |
| 416 | - | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
|
| 416 | + | local COLOR = Table.Color or C3(1, 1, 1) |
| 417 | - | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
|
| 417 | + | local TIME = Table.Time or 45 |
| 418 | - | if hit.Parent.DebounceHit.Value == true then |
| 418 | + | local SOUNDID = Table.SoundID or nil |
| 419 | - | return |
| 419 | + | local SOUNDPITCH = Table.SoundPitch or nil |
| 420 | local SOUNDVOLUME = Table.SoundVolume or nil | |
| 421 | coroutine.resume(coroutine.create(function() | |
| 422 | - | if insta == true then |
| 422 | + | local PLAYSSOUND = false |
| 423 | - | hit.Parent:FindFirstChild("Head"):BreakJoints()
|
| 423 | + | local SOUND |
| 424 | - | end |
| 424 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
|
| 425 | - | local c = Create("ObjectValue"){
|
| 425 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
| 426 | - | Name = "creator", |
| 426 | + | PLAYSSOUND = true |
| 427 | - | Value = game:service("Players").LocalPlayer,
|
| 427 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
| 428 | - | Parent = h, |
| 428 | + | |
| 429 | - | } |
| 429 | + | EFFECT.Color = COLOR |
| 430 | - | game:GetService("Debris"):AddItem(c, .5)
|
| 430 | + | local MSH |
| 431 | - | if HitSound ~= nil and HitPitch ~= nil then |
| 431 | + | if TYPE == "Sphere" then |
| 432 | - | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) |
| 432 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
|
| 433 | elseif TYPE == "Block" then | |
| 434 | - | local Damage = math.random(minim, maxim) |
| 434 | + | MSH = IT("BlockMesh", EFFECT)
|
| 435 | - | local blocked = false |
| 435 | + | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) |
| 436 | - | local block = hit.Parent:findFirstChild("Block")
|
| 436 | + | elseif TYPE == "Wave" then |
| 437 | - | if block ~= nil then |
| 437 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
|
| 438 | - | if block.className == "IntValue" then |
| 438 | + | elseif TYPE == "Ring" then |
| 439 | - | if block.Value > 0 then |
| 439 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
|
| 440 | - | blocked = true |
| 440 | + | elseif TYPE == "Slash" then |
| 441 | - | block.Value = block.Value - 1 |
| 441 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
|
| 442 | - | print(block.Value) |
| 442 | + | elseif TYPE == "Round Slash" then |
| 443 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
| |
| 444 | elseif TYPE == "Swirl" then | |
| 445 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
| |
| 446 | - | if blocked == false then |
| 446 | + | elseif TYPE == "Skull" then |
| 447 | - | h.Health = h.Health - Damage |
| 447 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
|
| 448 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) |
| 448 | + | elseif TYPE == "Crystal" then |
| 449 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
| |
| 450 | - | h.Health = h.Health - (Damage / 2) |
| 450 | + | |
| 451 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) |
| 451 | + | if MSH ~= nil then |
| 452 | local MOVESPEED | |
| 453 | - | if Type == "Knockdown" then |
| 453 | + | if MOVEDIRECTION ~= nil then |
| 454 | - | local hum = hit.Parent.Humanoid |
| 454 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME |
| 455 | - | hum.PlatformStand = true |
| 455 | + | |
| 456 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
| 456 | + | local GROWTH = SIZE - ENDSIZE |
| 457 | - | swait(1) |
| 457 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
| 458 | - | HHumanoid.PlatformStand = false |
| 458 | + | if TYPE == "Block" then |
| 459 | - | end), hum) |
| 459 | + | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
| 460 | - | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit |
| 460 | + | else |
| 461 | - | local bodvol = Create("BodyVelocity"){
|
| 461 | + | EFFECT.CFrame = CFRAME |
| 462 | - | velocity = angle * knockback, |
| 462 | + | |
| 463 | - | P = 5000, |
| 463 | + | for LOOP = 1, TIME + 1 do |
| 464 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
| 464 | + | Swait() |
| 465 | - | Parent = hit, |
| 465 | + | MSH.Scale = MSH.Scale - GROWTH / TIME |
| 466 | - | } |
| 466 | + | if TYPE == "Wave" then |
| 467 | - | local rl = Create("BodyAngularVelocity"){
|
| 467 | + | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) |
| 468 | - | P = 3000, |
| 468 | + | |
| 469 | - | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, |
| 469 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME |
| 470 | - | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), |
| 470 | + | if TYPE == "Block" then |
| 471 | - | Parent = hit, |
| 471 | + | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
| 472 | - | } |
| 472 | + | else |
| 473 | - | game:GetService("Debris"):AddItem(bodvol, .5)
|
| 473 | + | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) |
| 474 | - | game:GetService("Debris"):AddItem(rl, .5)
|
| 474 | + | |
| 475 | - | elseif Type == "Normal" then |
| 475 | + | if MOVEDIRECTION ~= nil then |
| 476 | - | local vp = Create("BodyVelocity"){
|
| 476 | + | local ORI = EFFECT.Orientation |
| 477 | - | P = 500, |
| 477 | + | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) |
| 478 | - | maxForce = Vector3.new(math.huge, 0, math.huge), |
| 478 | + | EFFECT.Orientation = ORI |
| 479 | - | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, |
| 479 | + | |
| 480 | - | } |
| 480 | + | |
| 481 | - | if knockback > 0 then |
| 481 | + | if PLAYSSOUND == false then |
| 482 | - | vp.Parent = hit.Parent.Torso |
| 482 | + | EFFECT:remove() |
| 483 | else | |
| 484 | - | game:GetService("Debris"):AddItem(vp, .5)
|
| 484 | + | repeat |
| 485 | - | elseif Type == "Up" then |
| 485 | + | Swait() |
| 486 | - | local bodyVelocity = Create("BodyVelocity"){
|
| 486 | + | until SOUND.Playing == false |
| 487 | - | velocity = Vector3.new(0, 20, 0), |
| 487 | + | EFFECT:remove() |
| 488 | - | P = 5000, |
| 488 | + | |
| 489 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
| 489 | + | elseif PLAYSSOUND == false then |
| 490 | - | Parent = hit, |
| 490 | + | EFFECT:remove() |
| 491 | - | } |
| 491 | + | |
| 492 | - | game:GetService("Debris"):AddItem(bodyVelocity, .5)
|
| 492 | + | repeat |
| 493 | - | elseif Type == "DarkUp" then |
| 493 | + | Swait() |
| 494 | until SOUND.Playing == false | |
| 495 | - | for i = 0, 1, 0.1 do |
| 495 | + | EFFECT:remove() |
| 496 | - | swait() |
| 496 | + | |
| 497 | - | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
|
| 497 | + | |
| 498 | end | |
| 499 | function MakeForm(PART, TYPE) | |
| 500 | - | local bodyVelocity = Create("BodyVelocity"){
|
| 500 | + | |
| 501 | - | velocity = Vector3.new(0, 20, 0), |
| 501 | + | local MSH = IT("CylinderMesh", PART)
|
| 502 | - | P = 5000, |
| 502 | + | |
| 503 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
| 503 | + | local MSH = IT("SpecialMesh", PART)
|
| 504 | - | Parent = hit, |
| 504 | + | |
| 505 | - | } |
| 505 | + | |
| 506 | - | game:GetService("Debris"):AddItem(bodyVelocity, 1)
|
| 506 | + | local MSH = IT("SpecialMesh", PART)
|
| 507 | - | elseif Type == "Snare" then |
| 507 | + | |
| 508 | - | local bp = Create("BodyPosition"){
|
| 508 | + | |
| 509 | - | P = 2000, |
| 509 | + | |
| 510 | - | D = 100, |
| 510 | + | Debris = game:GetService("Debris")
|
| 511 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
| 511 | + | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
| 512 | - | position = hit.Parent.Torso.Position, |
| 512 | + | local DIRECTION = CF(StartPos, EndPos).lookVector |
| 513 | - | Parent = hit.Parent.Torso, |
| 513 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
| 514 | - | } |
| 514 | + | |
| 515 | - | game:GetService("Debris"):AddItem(bp, 1)
|
| 515 | + | function turnto(position) |
| 516 | - | elseif Type == "Freeze" then |
| 516 | + | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) |
| 517 | - | local BodPos = Create("BodyPosition"){
|
| 517 | + | |
| 518 | - | P = 50000, |
| 518 | + | local SKILLTEXTCOLOR = C3(0, 0, 0) |
| 519 | - | D = 1000, |
| 519 | + | local SKILLFONT = "SciFi" |
| 520 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
| 520 | + | local SKILLTEXTSIZE = 7 |
| 521 | - | position = hit.Parent.Torso.Position, |
| 521 | + | local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(15, 0, 15), true) |
| 522 | - | Parent = hit.Parent.Torso, |
| 522 | + | FLOOR.Color = C3(0, 0, 0) |
| 523 | - | } |
| 523 | + | MakeForm(FLOOR, "Cyl") |
| 524 | - | local BodGy = Create("BodyGyro") {
|
| 524 | + | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false) |
| 525 | - | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , |
| 525 | + | MakeForm(EYE, "Ball") |
| 526 | - | P = 20e+003, |
| 526 | + | CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
|
| 527 | - | Parent = hit.Parent.Torso, |
| 527 | + | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false) |
| 528 | - | cframe = hit.Parent.Torso.CFrame, |
| 528 | + | MakeForm(EYE, "Ball") |
| 529 | - | } |
| 529 | + | CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
|
| 530 | - | hit.Parent.Torso.Anchored = true |
| 530 | + | function Soul(POS) |
| 531 | - | coroutine.resume(coroutine.create(function(Part) |
| 531 | + | |
| 532 | - | swait(1.5) |
| 532 | + | local SOULMODEL = IT("Model", Effects)
|
| 533 | - | Part.Anchored = false |
| 533 | + | SOULMODEL.Name = "Soul" |
| 534 | - | end), hit.Parent.Torso) |
| 534 | + | local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "Really red", "Part", VT(0.5, 0.5, 0.5)) |
| 535 | - | game:GetService("Debris"):AddItem(BodPos, 3)
|
| 535 | + | SOUL.Color = C3(0, 0, 0) |
| 536 | - | game:GetService("Debris"):AddItem(BodGy, 3)
|
| 536 | + | SOUL.CFrame = CF(POS) |
| 537 | local A1 = IT("Attachment", SOUL)
| |
| 538 | - | local debounce = Create("BoolValue"){
|
| 538 | + | A1.Position = Vector3.new(0, 0.25, 0) |
| 539 | - | Name = "DebounceHit", |
| 539 | + | local A2 = IT("Attachment", SOUL)
|
| 540 | - | Parent = hit.Parent, |
| 540 | + | A2.Position = Vector3.new(0, -0.25, 0) |
| 541 | - | Value = true, |
| 541 | + | local Trail = IT("Trail", SOUL)
|
| 542 | - | } |
| 542 | + | Trail.LightEmission = 0 |
| 543 | - | game:GetService("Debris"):AddItem(debounce, Delay)
|
| 543 | + | Trail.FaceCamera = true |
| 544 | - | c = Create("ObjectValue"){
|
| 544 | + | Trail.Texture = "rbxassetid://945758042" |
| 545 | - | Name = "creator", |
| 545 | + | Trail.Attachment0 = A1 |
| 546 | - | Value = Player, |
| 546 | + | Trail.Attachment1 = A2 |
| 547 | - | Parent = h, |
| 547 | + | Trail.Lifetime = 0.5 |
| 548 | - | } |
| 548 | + | Trail.MinLength = 0 |
| 549 | - | game:GetService("Debris"):AddItem(c, .5)
|
| 549 | + | Trail.Transparency = NumberSequence.new(0) |
| 550 | Trail.Color = ColorSequence.new(SOUL.Color) | |
| 551 | MakeForm(SOUL, "Ball") | |
| 552 | - | ------------------------------------------------------- |
| 552 | + | local DISTANCE |
| 553 | - | --End Damage Function-- |
| 553 | + | local HUM = IT("Humanoid", SOULMODEL)
|
| 554 | - | ------------------------------------------------------- |
| 554 | + | repeat |
| 555 | Swait() | |
| 556 | - | ------------------------------------------------------- |
| 556 | + | SOUL.CFrame = Clerp(SOUL.CFrame, Torso.CFrame, 0.03) |
| 557 | - | --Start Damage Function Customization-- |
| 557 | + | DISTANCE = (SOUL.Position - Torso.Position).Magnitude |
| 558 | - | ------------------------------------------------------- |
| 558 | + | until DISTANCE < 0.4 |
| 559 | - | function ShowDamage(Pos, Text, Time, Color) |
| 559 | + | SOUL.Transparency = 1 |
| 560 | - | local Rate = (1 / 30) |
| 560 | + | A1.Parent = Torso |
| 561 | - | local Pos = (Pos or Vector3.new(0, 0, 0)) |
| 561 | + | A2.Parent = Torso |
| 562 | - | local Text = (Text or "") |
| 562 | + | Trail.Parent = Torso |
| 563 | - | local Time = (Time or 2) |
| 563 | + | SOULMODEL:remove() |
| 564 | - | local Color = (Color or Color3.new(9, 9, 9)) |
| 564 | + | for i = 1, 100 do |
| 565 | - | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
| 565 | + | Swait() |
| 566 | - | EffectPart.Anchored = true |
| 566 | + | Trail.Transparency = NumberSequence.new(i / 100) |
| 567 | - | local BillboardGui = Create("BillboardGui"){
|
| 567 | + | |
| 568 | - | Size = UDim2.new(3, 0, 3, 0), |
| 568 | + | A1:remove() |
| 569 | - | Adornee = EffectPart, |
| 569 | + | A2:remove() |
| 570 | - | Parent = EffectPart, |
| 570 | + | Trail:remove() |
| 571 | end)) | |
| 572 | - | local TextLabel = Create("TextLabel"){
|
| 572 | + | |
| 573 | - | BackgroundTransparency = 1, |
| 573 | + | Humanoid.Died:connect(function() |
| 574 | - | Size = UDim2.new(1, 0, 1, 0), |
| 574 | + | ATTACK = true |
| 575 | - | Text = Text, |
| 575 | + | |
| 576 | - | Font = "Bodoni", |
| 576 | + | function Blob(POSITION, RANGE) |
| 577 | - | TextColor3 = Color, |
| 577 | + | for index, CHILD in pairs(workspace:GetChildren()) do |
| 578 | - | TextScaled = true, |
| 578 | + | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD:FindFirstChild("AbsylumDrag") == nil then
|
| 579 | - | TextStrokeColor3 = Color3.fromRGB(9,9,9), |
| 579 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
|
| 580 | - | Parent = BillboardGui, |
| 580 | + | if HUM then |
| 581 | do | |
| 582 | - | game.Debris:AddItem(EffectPart, (Time)) |
| 582 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
|
| 583 | - | EffectPart.Parent = game:GetService("Workspace")
|
| 583 | + | if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then |
| 584 | - | delay(0, function() |
| 584 | + | do |
| 585 | - | local Frames = (Time / Rate) |
| 585 | + | local HITFLOOR, HITPOS = Raycast(TORSO.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, TORSO.Size.Y * 3, CHILD) |
| 586 | - | for Frame = 1, Frames do |
| 586 | + | if HITFLOOR and HITFLOOR.Anchored == true then |
| 587 | - | wait(Rate) |
| 587 | + | TORSO.Anchored = true |
| 588 | - | local Percent = (Frame / Frames) |
| 588 | + | CHILD.PrimaryPart = TORSO |
| 589 | - | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
| 589 | + | coroutine.resume(coroutine.create(function() |
| 590 | - | TextLabel.TextTransparency = Percent |
| 590 | + | local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "AbsylumFloor", VT(0, 0, 0), true) |
| 591 | FLOOR.Color = C3(0, 0, 0) | |
| 592 | - | if EffectPart and EffectPart.Parent then |
| 592 | + | MakeForm(FLOOR, "Cyl") |
| 593 | - | EffectPart:Destroy() |
| 593 | + | FLOOR.CFrame = CF(HITPOS) |
| 594 | local E = IT("Folder", CHILD)
| |
| 595 | E.Name = "AbsylumDrag" | |
| 596 | for i = 1, 35 do | |
| 597 | - | ------------------------------------------------------- |
| 597 | + | Swait() |
| 598 | - | --End Damage Function Customization-- |
| 598 | + | FLOOR.Size = FLOOR.Size + VT(0.2 * TORSO.Size.Z, 0, 0.2 * TORSO.Size.Z) |
| 599 | - | ------------------------------------------------------- |
| 599 | + | |
| 600 | local SOUND = CreateSound(838038142, FLOOR, 0, MRANDOM(8, 12) / 10, false) | |
| 601 | - | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) |
| 601 | + | repeat |
| 602 | - | for _, c in pairs(workspace:children()) do |
| 602 | + | Swait() |
| 603 | - | local hum = c:findFirstChild("Humanoid")
|
| 603 | + | SOUND.Parent = FLOOR |
| 604 | - | if hum ~= nil then |
| 604 | + | SOUND.Volume = SOUND.Volume + 0.08888888888888889 |
| 605 | - | local head = c:findFirstChild("Head")
|
| 605 | + | CHILD:SetPrimaryPartCFrame(TORSO.CFrame * CF(0, -0.05, 0)) |
| 606 | - | if head ~= nil then |
| 606 | + | until TORSO.Position.Y < FLOOR.Position.Y - 2.3 * TORSO.Size.Z |
| 607 | - | local targ = head.Position - Part.Position |
| 607 | + | for _, c in pairs(CHILD:GetChildren()) do |
| 608 | - | local mag = targ.magnitude |
| 608 | + | if c.ClassName == "Accessory" or c.ClassName == "Tool" or c.ClassName == "Hat" then |
| 609 | - | if magni >= mag and c.Name ~= plr.Name then |
| 609 | + | local H = c:FindFirstChild("Handle")
|
| 610 | - | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) |
| 610 | + | if H then |
| 611 | - | end |
| 611 | + | H.CanCollide = true |
| 612 | - | end |
| 612 | + | H.Parent = workspace |
| 613 | - | end |
| 613 | + | H.CFrame = TORSO.CFrame * CF(0, TORSO.Size.Y * 1.2, 0) |
| 614 | - | end |
| 614 | + | Debris:AddItem(H, 5) |
| 615 | end | |
| 616 | end | |
| 617 | end | |
| 618 | - | CFuncs = {
|
| 618 | + | CHILD:Remove() |
| 619 | - | Part = {
|
| 619 | + | local VOLUME = SOUND.Volume |
| 620 | - | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
| 620 | + | for i = 1, 35 do |
| 621 | - | local Part = Create("Part")({
|
| 621 | + | Swait() |
| 622 | - | Parent = Parent, |
| 622 | + | SOUND.Volume = SOUND.Volume - VOLUME / 35 |
| 623 | - | Reflectance = Reflectance, |
| 623 | + | FLOOR.Size = FLOOR.Size - VT(0.2 * TORSO.Size.Z, 0, 0.2 * TORSO.Size.Z) |
| 624 | - | Transparency = Transparency, |
| 624 | + | |
| 625 | - | CanCollide = false, |
| 625 | + | Soul(FLOOR.Position) |
| 626 | - | Locked = true, |
| 626 | + | SOUND:Stop() |
| 627 | - | BrickColor = BrickColor.new(tostring(BColor)), |
| 627 | + | FLOOR:remove() |
| 628 | - | Name = Name, |
| 628 | + | end)) |
| 629 | - | Size = Size, |
| 629 | + | |
| 630 | - | Material = Material |
| 630 | + | |
| 631 | end | |
| 632 | - | RemoveOutlines(Part) |
| 632 | + | |
| 633 | - | return Part |
| 633 | + | |
| 634 | end | |
| 635 | - | }, |
| 635 | + | |
| 636 | - | Mesh = {
|
| 636 | + | |
| 637 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
| 637 | + | function Wave() |
| 638 | - | local Msh = Create(Mesh)({
|
| 638 | + | ATTACK = true |
| 639 | - | Parent = Part, |
| 639 | + | Rooted = false |
| 640 | - | Offset = OffSet, |
| 640 | + | for i = 0, 0.2, 0.1 / Animation_Speed do |
| 641 | - | Scale = Scale |
| 641 | + | Swait() |
| 642 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 643 | - | if Mesh == "SpecialMesh" then |
| 643 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 644 | - | Msh.MeshType = MeshType |
| 644 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(160), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 645 | - | Msh.MeshId = MeshId |
| 645 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 646 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 647 | - | return Msh |
| 647 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 648 | end | |
| 649 | - | }, |
| 649 | + | HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) |
| 650 | - | Mesh = {
|
| 650 | + | if HITFLOOR and HITFLOOR.Anchored == true then |
| 651 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
| 651 | + | do |
| 652 | - | local Msh = Create(Mesh)({
|
| 652 | + | local NEWFLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(0, 0, 0), true) |
| 653 | - | Parent = Part, |
| 653 | + | NEWFLOOR.Color = C3(0, 0, 0) |
| 654 | - | Offset = OffSet, |
| 654 | + | MakeForm(NEWFLOOR, "Cyl") |
| 655 | - | Scale = Scale |
| 655 | + | NEWFLOOR.CFrame = CF(HITPOS) |
| 656 | CreateSound(1110489303, NEWFLOOR, 4, 1, false) | |
| 657 | - | if Mesh == "SpecialMesh" then |
| 657 | + | |
| 658 | - | Msh.MeshType = MeshType |
| 658 | + | for i = 1, 25 do |
| 659 | - | Msh.MeshId = MeshId |
| 659 | + | Swait() |
| 660 | Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2) | |
| 661 | - | return Msh |
| 661 | + | NEWFLOOR.Size = NEWFLOOR.Size + VT(0.6, 0, 0.6) |
| 662 | end | |
| 663 | - | }, |
| 663 | + | for i = 1, 450 do |
| 664 | - | Weld = {
|
| 664 | + | Swait() |
| 665 | - | Create = function(Parent, Part0, Part1, C0, C1) |
| 665 | + | Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2) |
| 666 | - | local Weld = Create("Weld")({
|
| 666 | + | NEWFLOOR.Size = VT(15, 0, 15) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12)) |
| 667 | - | Parent = Parent, |
| 667 | + | |
| 668 | - | Part0 = Part0, |
| 668 | + | local SIZE = NEWFLOOR.Size.X |
| 669 | - | Part1 = Part1, |
| 669 | + | for i = 1, 70 do |
| 670 | - | C0 = C0, |
| 670 | + | Swait() |
| 671 | - | C1 = C1 |
| 671 | + | Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2) |
| 672 | NEWFLOOR.Size = NEWFLOOR.Size - VT(SIZE / 70, 0, SIZE / 70) | |
| 673 | - | return Weld |
| 673 | + | |
| 674 | NEWFLOOR:remove() | |
| 675 | - | }, |
| 675 | + | |
| 676 | - | Sound = {
|
| 676 | + | |
| 677 | - | Create = function(id, par, vol, pit) |
| 677 | + | |
| 678 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
| 679 | - | local S = Create("Sound")({
|
| 679 | + | Swait() |
| 680 | - | Volume = vol, |
| 680 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 681 | - | Pitch = pit or 1, |
| 681 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 682 | - | SoundId = id, |
| 682 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(45), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 683 | - | Parent = par or workspace |
| 683 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 684 | - | }) |
| 684 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 685 | - | wait() |
| 685 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 686 | - | S:play() |
| 686 | + | |
| 687 | - | game:GetService("Debris"):AddItem(S, 6)
|
| 687 | + | ATTACK = false |
| 688 | Rooted = false | |
| 689 | end | |
| 690 | - | }, |
| 690 | + | function Teleport() |
| 691 | - | ParticleEmitter = {
|
| 691 | + | local POS = Mouse.Hit.p + VT(0, 4, 0) |
| 692 | - | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
| 692 | + | HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) |
| 693 | - | local fp = Create("ParticleEmitter")({
|
| 693 | + | if HITFLOOR and HITFLOOR.Anchored == true then |
| 694 | - | Parent = Parent, |
| 694 | + | ATTACK = true |
| 695 | - | Color = ColorSequence.new(Color1, Color2), |
| 695 | + | Rooted = true |
| 696 | - | LightEmission = LightEmission, |
| 696 | + | do |
| 697 | - | Size = Size, |
| 697 | + | local CLERPTO = CF(POS, VT(RootPart.Position.X, POS.Y, RootPart.Position.Z)) |
| 698 | - | Texture = Texture, |
| 698 | + | UNANCHOR = false |
| 699 | - | Transparency = Transparency, |
| 699 | + | for i = 0, 0.3, 0.1 / Animation_Speed do |
| 700 | - | ZOffset = ZOffset, |
| 700 | + | Swait() |
| 701 | - | Acceleration = Accel, |
| 701 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 702 | - | Drag = Drag, |
| 702 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 703 | - | LockedToPart = LockedToPart, |
| 703 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 704 | - | VelocityInheritance = VelocityInheritance, |
| 704 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(25 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 705 | - | EmissionDirection = EmissionDirection, |
| 705 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 706 | - | Enabled = Enabled, |
| 706 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 707 | - | Lifetime = LifeTime, |
| 707 | + | |
| 708 | - | Rate = Rate, |
| 708 | + | for i = 1, 70 do |
| 709 | - | Rotation = Rotation, |
| 709 | + | Swait() |
| 710 | - | RotSpeed = RotSpeed, |
| 710 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(180), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), i / 70 / 2 / Animation_Speed) |
| 711 | - | Speed = Speed, |
| 711 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 712 | - | VelocitySpread = VelocitySpread |
| 712 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, i / 70 / 2 / Animation_Speed) |
| 713 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, i / 70 / 2 / Animation_Speed) | |
| 714 | - | return fp |
| 714 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), i / 70 / 2 / Animation_Speed) |
| 715 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), i / 70 / 2 / Animation_Speed) | |
| 716 | end | |
| 717 | - | } |
| 717 | + | for i = 0, 0.6, 0.1 / Animation_Speed do |
| 718 | - | function RemoveOutlines(part) |
| 718 | + | Swait() |
| 719 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
| 719 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -7) * ANGLES(RAD(180), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.5 / Animation_Speed) |
| 720 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 721 | - | function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
| 721 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 722 | - | local Part = Create("Part")({
|
| 722 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 723 | - | formFactor = FormFactor, |
| 723 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 724 | - | Parent = Parent, |
| 724 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 725 | - | Reflectance = Reflectance, |
| 725 | + | |
| 726 | - | Transparency = Transparency, |
| 726 | + | CreateSound(1110489303, FLOOR, 7, 0.7, false) |
| 727 | - | CanCollide = false, |
| 727 | + | local NEWFLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(15, 0, 15), true) |
| 728 | - | Locked = true, |
| 728 | + | NEWFLOOR.Color = C3(0, 0, 0) |
| 729 | - | BrickColor = BrickColor.new(tostring(BColor)), |
| 729 | + | MakeForm(NEWFLOOR, "Cyl") |
| 730 | - | Name = Name, |
| 730 | + | NEWFLOOR.CFrame = FLOOR.CFrame |
| 731 | - | Size = Size, |
| 731 | + | |
| 732 | - | Material = Material |
| 732 | + | for i = 1, 450 do |
| 733 | - | }) |
| 733 | + | Swait() |
| 734 | - | RemoveOutlines(Part) |
| 734 | + | Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2) |
| 735 | - | return Part |
| 735 | + | NEWFLOOR.Size = VT(15, 0, 15) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12)) |
| 736 | end | |
| 737 | local SIZE = NEWFLOOR.Size.X | |
| 738 | for i = 1, 70 do | |
| 739 | Swait() | |
| 740 | Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2) | |
| 741 | NEWFLOOR.Size = NEWFLOOR.Size - VT(SIZE / 70, 0, SIZE / 70) | |
| 742 | end | |
| 743 | NEWFLOOR:remove() | |
| 744 | end)) | |
| 745 | for _, c in pairs(Character:GetChildren()) do | |
| 746 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 747 | c.Transparency = 1 | |
| 748 | - | NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR)) |
| 748 | + | |
| 749 | end | |
| 750 | for i = 1, 170 do | |
| 751 | - | NEWPART.Position = tors.Position |
| 751 | + | Swait() |
| 752 | RootPart.CFrame = Clerp(RootPart.CFrame, CLERPTO, 0.05) | |
| 753 | end | |
| 754 | for _, c in pairs(Character:GetChildren()) do | |
| 755 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 756 | c.Transparency = 0 | |
| 757 | - | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
| 757 | + | |
| 758 | - | local Msh = Create(Mesh)({
|
| 758 | + | |
| 759 | - | Parent = Part, |
| 759 | + | CreateSound(649634100, Head, 4, 0.8, false) |
| 760 | - | Offset = OffSet, |
| 760 | + | for i = 0, 0.3, 0.1 / Animation_Speed do |
| 761 | - | Scale = Scale |
| 761 | + | Swait() |
| 762 | - | }) |
| 762 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 763 | - | if Mesh == "SpecialMesh" then |
| 763 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 764 | - | Msh.MeshType = MeshType |
| 764 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) |
| 765 | - | Msh.MeshId = MeshId |
| 765 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.3 / Animation_Speed) |
| 766 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-33 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 767 | - | return Msh |
| 767 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-33 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed) |
| 768 | end | |
| 769 | - | function CreateWeld(Parent, Part0, Part1, C0, C1) |
| 769 | + | for i = 0, 0.6, 0.1 / Animation_Speed do |
| 770 | - | local Weld = Create("Weld")({
|
| 770 | + | Swait() |
| 771 | - | Parent = Parent, |
| 771 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 772 | - | Part0 = Part0, |
| 772 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 773 | - | Part1 = Part1, |
| 773 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) |
| 774 | - | C0 = C0, |
| 774 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.3 / Animation_Speed) |
| 775 | - | C1 = C1 |
| 775 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed) |
| 776 | - | }) |
| 776 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed) |
| 777 | - | return Weld |
| 777 | + | |
| 778 | UNANCHOR = true | |
| 779 | ATTACK = false | |
| 780 | Rooted = false | |
| 781 | - | ------------------------------------------------------- |
| 781 | + | |
| 782 | - | --Start Effect Function-- |
| 782 | + | |
| 783 | - | ------------------------------------------------------- |
| 783 | + | |
| 784 | - | EffectModel = Instance.new("Model", char)
|
| 784 | + | function Open() |
| 785 | - | Effects = {
|
| 785 | + | ATTACK = true |
| 786 | - | Block = {
|
| 786 | + | Rooted = true |
| 787 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
| 787 | + | HOLE = true |
| 788 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 788 | + | CreateSound(649634100, Head, 4, 0.8, false) |
| 789 | - | prt.Anchored = true |
| 789 | + | for i = 0, 1, 0.1 / Animation_Speed do |
| 790 | - | prt.CFrame = cframe |
| 790 | + | Swait() |
| 791 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 791 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(35 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 792 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 792 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 793 | - | if Type == 1 or Type == nil then |
| 793 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 794 | - | table.insert(Effects, {
|
| 794 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 795 | - | prt, |
| 795 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 796 | - | "Block1", |
| 796 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 797 | - | delay, |
| 797 | + | |
| 798 | - | x3, |
| 798 | + | |
| 799 | - | y3, |
| 799 | + | for i = 1, 280 do |
| 800 | - | z3, |
| 800 | + | Swait() |
| 801 | - | msh |
| 801 | + | SIZE = SIZE + 0.5 |
| 802 | - | }) |
| 802 | + | WACKYEFFECT({
|
| 803 | - | elseif Type == 2 then |
| 803 | + | Time = 15, |
| 804 | - | table.insert(Effects, {
|
| 804 | + | EffectType = "Wave", |
| 805 | - | prt, |
| 805 | + | Size = FLOOR.Size / 2, |
| 806 | - | "Block2", |
| 806 | + | Size2 = FLOOR.Size * 1.02, |
| 807 | - | delay, |
| 807 | + | Transparency = 0.8, |
| 808 | - | x3, |
| 808 | + | Transparency2 = 1, |
| 809 | - | y3, |
| 809 | + | CFrame = CF(FLOOR.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), |
| 810 | - | z3, |
| 810 | + | MoveToPos = nil, |
| 811 | - | msh |
| 811 | + | RotationX = 0, |
| 812 | - | }) |
| 812 | + | RotationY = 2, |
| 813 | - | else |
| 813 | + | RotationZ = 0, |
| 814 | - | table.insert(Effects, {
|
| 814 | + | Material = "Neon", |
| 815 | - | prt, |
| 815 | + | Color = C3(0, 0, 0), |
| 816 | - | "Block3", |
| 816 | + | SoundID = nil, |
| 817 | - | delay, |
| 817 | + | SoundPitch = nil, |
| 818 | - | x3, |
| 818 | + | SoundVolume = nil |
| 819 | - | y3, |
| 819 | + | |
| 820 | - | z3, |
| 820 | + | |
| 821 | - | msh |
| 821 | + | wait(10) |
| 822 | - | }) |
| 822 | + | for i = 1, 560 do |
| 823 | - | end |
| 823 | + | Swait() |
| 824 | - | end |
| 824 | + | SIZE = SIZE - 0.25 |
| 825 | - | }, |
| 825 | + | |
| 826 | - | Sphere = {
|
| 826 | + | HOLE = false |
| 827 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 827 | + | |
| 828 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 828 | + | for i = 0, 0.2, 0.1 / Animation_Speed do |
| 829 | - | prt.Anchored = true |
| 829 | + | Swait() |
| 830 | - | prt.CFrame = cframe |
| 830 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(35 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed) |
| 831 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 831 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 832 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 832 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 833 | - | table.insert(Effects, {
|
| 833 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 834 | - | prt, |
| 834 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 835 | - | "Cylinder", |
| 835 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 836 | - | delay, |
| 836 | + | |
| 837 | - | x3, |
| 837 | + | ATTACK = false |
| 838 | - | y3, |
| 838 | + | Rooted = false |
| 839 | - | z3, |
| 839 | + | |
| 840 | - | msh |
| 840 | + | function Laugh() |
| 841 | - | }) |
| 841 | + | ATTACK = true |
| 842 | - | end |
| 842 | + | Rooted = false |
| 843 | - | }, |
| 843 | + | CreateSound(649634100, Head, 4, 0.8, false) |
| 844 | - | Cylinder = {
|
| 844 | + | for i = 0, 1, 0.1 / Animation_Speed do |
| 845 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 845 | + | Swait() |
| 846 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 846 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 847 | - | prt.Anchored = true |
| 847 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 848 | - | prt.CFrame = cframe |
| 848 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(180), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(-35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 849 | - | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 849 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 850 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 850 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 851 | - | table.insert(Effects, {
|
| 851 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 852 | - | prt, |
| 852 | + | |
| 853 | - | "Cylinder", |
| 853 | + | ATTACK = false |
| 854 | - | delay, |
| 854 | + | Rooted = false |
| 855 | - | x3, |
| 855 | + | |
| 856 | - | y3, |
| 856 | + | function MouseDown(Mouse) |
| 857 | - | z3, |
| 857 | + | if ATTACK == false then |
| 858 | - | msh |
| 858 | + | |
| 859 | - | }) |
| 859 | + | |
| 860 | - | end |
| 860 | + | function MouseUp(Mouse) |
| 861 | - | }, |
| 861 | + | HOLD = false |
| 862 | - | Wave = {
|
| 862 | + | |
| 863 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 863 | + | function KeyDown(Key) |
| 864 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 864 | + | KEYHOLD = true |
| 865 | - | prt.Anchored = true |
| 865 | + | if Key == "z" and ATTACK == false then |
| 866 | - | prt.CFrame = cframe |
| 866 | + | Wave() |
| 867 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
|
| 867 | + | |
| 868 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 868 | + | if Key == "b" and ATTACK == false and HOLE == false then |
| 869 | - | table.insert(Effects, {
|
| 869 | + | Teleport() |
| 870 | - | prt, |
| 870 | + | |
| 871 | - | "Cylinder", |
| 871 | + | if Key == "c" and ATTACK == false and HOLE == false then |
| 872 | - | delay, |
| 872 | + | Open() |
| 873 | - | x3 / 60, |
| 873 | + | |
| 874 | - | y3 / 60, |
| 874 | + | if Key == "t" and ATTACK == false then |
| 875 | - | z3 / 60, |
| 875 | + | Laugh() |
| 876 | - | msh |
| 876 | + | |
| 877 | - | }) |
| 877 | + | |
| 878 | - | end |
| 878 | + | function KeyUp(Key) |
| 879 | - | }, |
| 879 | + | KEYHOLD = false |
| 880 | - | Ring = {
|
| 880 | + | |
| 881 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 881 | + | Mouse.Button1Down:connect(function(NEWKEY) |
| 882 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 882 | + | MouseDown(NEWKEY) |
| 883 | - | prt.Anchored = true |
| 883 | + | |
| 884 | - | prt.CFrame = cframe |
| 884 | + | Mouse.Button1Up:connect(function(NEWKEY) |
| 885 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 885 | + | MouseUp(NEWKEY) |
| 886 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 886 | + | |
| 887 | - | table.insert(Effects, {
|
| 887 | + | Mouse.KeyDown:connect(function(NEWKEY) |
| 888 | - | prt, |
| 888 | + | KeyDown(NEWKEY) |
| 889 | - | "Cylinder", |
| 889 | + | |
| 890 | - | delay, |
| 890 | + | Mouse.KeyUp:connect(function(NEWKEY) |
| 891 | - | x3, |
| 891 | + | KeyUp(NEWKEY) |
| 892 | - | y3, |
| 892 | + | |
| 893 | - | z3, |
| 893 | + | function unanchor() |
| 894 | - | msh |
| 894 | + | for _, c in pairs(Character:GetChildren()) do |
| 895 | - | }) |
| 895 | + | if c:IsA("BasePart") and c ~= RootPart then
|
| 896 | - | end |
| 896 | + | c.Anchored = false |
| 897 | - | }, |
| 897 | + | |
| 898 | - | Break = {
|
| 898 | + | |
| 899 | - | Create = function(brickcolor, cframe, x1, y1, z1) |
| 899 | + | if UNANCHOR == true then |
| 900 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) |
| 900 | + | RootPart.Anchored = false |
| 901 | - | prt.Anchored = true |
| 901 | + | |
| 902 | - | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
| 902 | + | RootPart.Anchored = true |
| 903 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 903 | + | |
| 904 | - | local num = math.random(10, 50) / 1000 |
| 904 | + | |
| 905 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 905 | + | Humanoid.Changed:connect(function(Jump) |
| 906 | - | table.insert(Effects, {
|
| 906 | + | if Jump == "Jump" and Disable_Jump == true then |
| 907 | - | prt, |
| 907 | + | Humanoid.Jump = false |
| 908 | - | "Shatter", |
| 908 | + | |
| 909 | - | num, |
| 909 | + | |
| 910 | - | prt.CFrame, |
| 910 | + | |
| 911 | - | math.random() - math.random(), |
| 911 | + | Swait() |
| 912 | - | 0, |
| 912 | + | Humanoid.HipHeight = 1 |
| 913 | - | math.random(50, 100) / 100 |
| 913 | + | script.Parent = WEAPONGUI |
| 914 | - | }) |
| 914 | + | SINE = SINE + CHANGE * 1.2 |
| 915 | - | end |
| 915 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
| 916 | - | }, |
| 916 | + | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
| 917 | - | Spiral = {
|
| 917 | + | HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) |
| 918 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 918 | + | if HITFLOOR then |
| 919 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 919 | + | HITFLOOR2, HITPOS2 = Raycast(FLOOR.Position + VT(0, 0.2, 0), CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2, Character) |
| 920 | - | prt.Anchored = true |
| 920 | + | if HITFLOOR2 then |
| 921 | - | prt.CFrame = cframe |
| 921 | + | FLOOR.Transparency = 0 |
| 922 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 922 | + | |
| 923 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 923 | + | FLOOR.Transparency = 1 |
| 924 | - | table.insert(Effects, {
|
| 924 | + | |
| 925 | - | prt, |
| 925 | + | FLOOR.CFrame = Clerp(FLOOR.CFrame, CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.1) |
| 926 | - | "Cylinder", |
| 926 | + | Blob(FLOOR.Position, FLOOR.Size.X / 2) |
| 927 | - | delay, |
| 927 | + | |
| 928 | - | x3, |
| 928 | + | if ATTACK == false then |
| 929 | - | y3, |
| 929 | + | if TORSOVELOCITY < 1 then |
| 930 | - | z3, |
| 930 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 931 | - | msh |
| 931 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 932 | - | }) |
| 932 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(35), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 933 | - | end |
| 933 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(35), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 934 | - | }, |
| 934 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 935 | - | Push = {
|
| 935 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 936 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
| 936 | + | elseif TORSOVELOCITY > 1 then |
| 937 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
| 937 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 938 | - | prt.Anchored = true |
| 938 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 939 | - | prt.CFrame = cframe |
| 939 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 940 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
|
| 940 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 941 | - | game:GetService("Debris"):AddItem(prt, 10)
|
| 941 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 942 | - | table.insert(Effects, {
|
| 942 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 943 | - | prt, |
| 943 | + | |
| 944 | - | "Cylinder", |
| 944 | + | |
| 945 | - | delay, |
| 945 | + | unanchor() |
| 946 | - | x3, |
| 946 | + | Humanoid.Name = "Absylum" |
| 947 | - | y3, |
| 947 | + | Humanoid.MaxHealth = 700000000 |
| 948 | - | z3, |
| 948 | + | Humanoid.Health = 700000000 |
| 949 | - | msh |
| 949 | + | if Rooted == false then |
| 950 | - | }) |
| 950 | + | Disable_Jump = false |
| 951 | - | end |
| 951 | + | Humanoid.WalkSpeed = Speed |
| 952 | - | } |
| 952 | + | elseif Rooted == true then |
| 953 | - | } |
| 953 | + | Disable_Jump = true |
| 954 | - | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) |
| 954 | + | Humanoid.WalkSpeed = 0 |
| 955 | - | local fp = IT("Part")
|
| 955 | + | |
| 956 | - | fp.formFactor = formfactor |
| 956 | + | FLOOR.Size = VT(SIZE, 0, SIZE) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12)) |
| 957 | - | fp.Parent = parent |
| 957 | + | sick.SoundId = "rbxassetid://601069330" |
| 958 | - | fp.Reflectance = reflectance |
| 958 | + | sick.Looped = true |
| 959 | - | fp.Transparency = transparency |
| 959 | + | sick.Pitch = 1 |
| 960 | - | fp.CanCollide = false |
| 960 | + | sick.Volume = 1 |
| 961 | - | fp.Locked = true |
| 961 | + | sick.Playing = true |
| 962 | - | fp.BrickColor = brickcolor |
| 962 | + | sick.Parent = Character |
| 963 | - | fp.Name = name |
| 963 | + | for _, c in pairs(Character:GetChildren()) do |
| 964 | - | fp.Size = size |
| 964 | + | if c.ClassName == "Part" and c.Name ~= "Eye" then |
| 965 | - | fp.Position = tors.Position |
| 965 | + | |
| 966 | - | RemoveOutlines(fp) |
| 966 | + | if c:FindFirstChildOfClass("ParticleEmitter") then
|
| 967 | - | fp.Material = "SmoothPlastic" |
| 967 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove()
|
| 968 | - | fp:BreakJoints() |
| 968 | + | |
| 969 | - | return fp |
| 969 | + | c.Color = C3(0, 0, 0) |
| 970 | - | end |
| 970 | + | if c == Head then |
| 971 | - | |
| 971 | + | if c:FindFirstChildOfClass("SpecialMesh") then
|
| 972 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
| 972 | + | c:ClearAllChildren() |
| 973 | - | local mesh = IT(Mesh) |
| 973 | + | local MSH = IT("BlockMesh", c)
|
| 974 | - | mesh.Parent = part |
| 974 | + | MSH.Scale = VT(0.5, 1, 1) |
| 975 | - | if Mesh == "SpecialMesh" then |
| 975 | + | |
| 976 | - | mesh.MeshType = meshtype |
| 976 | + | |
| 977 | - | if meshid ~= "nil" then |
| 977 | + | |
| 978 | - | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid |
| 978 | + | |
| 979 | end | |
| 980 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 981 | - | mesh.Offset = offset |
| 981 | + | |
| 982 | - | mesh.Scale = scale |
| 982 | + | |
| 983 | - | return mesh |
| 983 | + | |
| 984 | end | |
| 985 | end | |
| 986 | - | function Magic(bonuspeed, type, pos, scale, value, color, MType) |
| 986 | + | end |