Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- JointService = game:GetService("JointsService")
- RootJoint.Parent = JointService
- Neck.Parent = JointService
- RightShoulder.Parent = JointService
- LeftShoulder.Parent = JointService
- RightHip.Parent = JointService
- LeftHip.Parent = JointService
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- HUGE = VT(math.huge,math.huge,math.huge)
- local Animation_Speed = 3
- local SINE = 0
- local CHANGE = 1 / Animation_Speed
- local Attack = false
- local Equipped = false
- local Rooted = false
- local SecondForm = false
- local Effects = IT("Folder",Character)
- Effects.Name = "Effects"
- local MESH = Head:WaitForChild("Mesh")
- local FACE = Head:WaitForChild("face")
- local Sick = IT("Sound",Character)
- Sick.SoundId = "rbxassetid://1703475948"
- Sick.Volume = math.huge
- Sick.Looped = true
- Sick.TimePosition = 2
- Sick.PlaybackSpeed = 0.8
- Sick:Play()
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1/60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --\\=================================//
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- return true
- end
- function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- elseif TYPE == "Cloud" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- function MakeForm(PART,TYPE)
- if TYPE == "Cyl" then
- local MSH = IT("CylinderMesh",PART)
- elseif TYPE == "Ball" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Sphere"
- elseif TYPE == "Wedge" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Wedge"
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- 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
- end
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- --// CUSTOMIZATION --\\
- Humanoid.DisplayDistanceType = "None"
- local txt = Instance.new("BillboardGui", Character)
- txt.Adornee = Character.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local String = "Void Master"
- local String2 = "Fate Predictor"
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Antique"
- text.TextStrokeColor3 = Color3.new(1,0,1)
- coroutine.wrap(function()
- for i = 1,string.len(String2) do
- text.Text = string.sub(String2,1,i)
- wait(0.1)
- end
- for i = string.len(text.Text),0,-1 do
- text.Text = string.sub(String2,1,i)
- wait(0.1)
- end
- for i = 1,string.len(String) do
- text.Text = string.sub(String,1,i)
- wait(0.1)
- end
- end)()
- Character.Animate.Parent = nil
- for i,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- local Mask = IT("Part")
- Mask.Name = "Mask"
- Mask.Color = BrickColor.new("Really black").Color
- Mask.CanCollide = false
- Mask.CFrame = Head.CFrame * CF(0,0,-0.6)
- local MaskMesh = IT("SpecialMesh")
- MaskMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
- MaskMesh.Name = "MaskMesh"
- local MaskWeld = weldBetween(Head,Mask)
- MaskWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Mask"
- local Eyo = IT("Part")
- Eyo.CanCollide = false
- Eyo.Color = Color3.fromRGB(61, 21, 133)
- Eyo.Size = VT(0.3, 0.3, 0.3)
- Eyo.CFrame = Mask.CFrame * CF(-0.2,0.2,0.1)
- Eyo.Material = "Neon"
- MakeForm(Eyo,"Ball")
- Eyo.Name = "Eyo"
- local Eyo2 = IT("Part")
- Eyo2.CanCollide = false
- Eyo2.Color = Color3.fromRGB(61, 21, 133)
- Eyo2.Size = VT(0.3, 0.3, 0.3)
- Eyo2.CFrame = Mask.CFrame * CF(0.2,0.2,0.1)
- Eyo2.Material = "Neon"
- MakeForm(Eyo2,"Ball")
- Eyo2.Name = "Eyo2"
- local Hood = IT("Part")
- Hood.CanCollide = false
- Hood.Name = "Hood"
- Hood.Material = "Fabric"
- Hood.CFrame = Head.CFrame * CF(0,0.2,0)
- Hood.BrickColor = BRICKC("Really black")
- local Scarf = IT("Part")
- Scarf.CanCollide = false
- Scarf.CFrame = Head.CFrame * CF(0,-1,0)
- Scarf.BrickColor = BRICKC("Really black")
- Scarf.Name = "Scarf"
- local Scepter = IT("Part")
- Scepter.BrickColor = BRICKC("Dark indigo")
- Scepter.Name = "Scepter"
- Scepter.CFrame = RightArm.CFrame * CF(0,-1,0) * ANGLES(RAD(-90),RAD(0),RAD(0))
- local ScepterMesh = IT("SpecialMesh")
- ScepterMesh.MeshId = "http://www.roblox.com/asset?id=86374096"
- local ScepterWeld = weldBetween(RightArm,Scepter)
- ScepterWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Scepter"
- local ScarfMesh = IT("SpecialMesh")
- ScarfMesh.MeshId = "http://www.roblox.com/asset/?id=99856331"
- ScarfMesh.Name = "ScarfMesh"
- local HoodMesh = IT("SpecialMesh")
- HoodMesh.MeshId = "http://www.roblox.com/asset/?id=76062497"
- HoodMesh.Name = "HoodMesh"
- local HoodWeld = weldBetween(Head,Hood)
- HoodWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-LandTo-Weld-The-Hood"
- local EyoWeld = weldBetween(Head,Eyo)
- EyoWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Eye"
- local Eyo2Weld = weldBetween(Head,Eyo2)
- Eyo2Weld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Second-Eye"
- local ScarfWeld = weldBetween(Head,Scarf)
- ScarfWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Scarf"
- local Shirt = IT("Shirt")
- local Pants = IT("Pants")
- Shirt.Name = "Cloth"
- Pants.Name = "Cloth"
- Shirt.ShirtTemplate = "rbxassetid://1192334683"
- Pants.PantsTemplate = "rbxassetid://1503163457"
- Mask.Parent = Character
- MaskMesh.Parent = Mask
- Eyo.Parent = Character
- Shirt.Parent = Character
- Pants.Parent = Character
- Hood.Parent = Character
- HoodMesh.Parent = Hood
- Scarf.Parent = Character
- ScarfMesh.Parent = Scarf
- Eyo2.Parent = Character
- Scepter.Parent = Character
- ScepterMesh.Parent = Scepter
- local Weld = Instance.new("Weld")
- local a = workspace.nutta1258.Head
- local b = workspace.nutta1258.Part
- Weld.Part0 = a
- Weld.Part1 = b
- Weld.C0 = CFrame.new()
- Weld.C1 = b.CFrame:inverse() * a.CFrame
- Weld.Parent = workspace.Dummy.Head
- print(Weld.C1)
- print(Weld.C0)
- --// END OF CUSTOMIZATION --\\
- --// FUNCTIONS --\\
- --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- function Transform()
- Attack = true
- Rooted = true
- for i = 0,1,0.02 do
- Swait()
- Eyo.Mesh.Scale = VT(0.7,0.7,0.7)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), i)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.49999994, 0.745599985, 0.162099972, 0.684326112, 0.446992218, 0.576103866, -0.403130829, -0.426427096, 0.809719324, 0.607604563, -0.786357403, -0.1116188911), i)
- end
- Eyo2.Parent = nil
- for i = 0,1,0.02 do
- Swait()
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), i)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.23269999, 0.742500007, -0.165699959, 0, 0.866025448, 0.49999997, -0.422618449, 0.453153819, -0.784885526, -0.906307697, -0.211309209, 0.365998328), i)
- MaskWeld.C0 = MaskWeld.C0:lerp(CF(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), i)
- MaskWeld.C1 = MaskWeld.C1:lerp(CF(-2.54846001, -0.720100403, 0.408808231, 0.756472647, -0.498946786, -0.422849059, 0.565166354, 0.173320174, 0.806565166, -0.329144806, -0.849124372, 0.413099855), i)
- end
- for i = 1,15 do
- Mask.Parent = nil
- wait()
- WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = Mask.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- wait(2)
- local blastwave = Instance.new("Part",Torso)
- blastwave.CFrame = Torso.CFrame
- blastwave.Anchored = true
- blastwave.Material = "Neon"
- blastwave.CanCollide = false
- blastwave.Shape = "Ball"
- blastwave.Size = Vector3.new(3,3,3)
- for i = 1, 20 do
- blastwave.Size = blastwave.Size + Vector3.new(2,2,2)
- blastwave.Transparency = blastwave.Transparency + 0.05
- Swait()
- end
- Sick.SoundId = "rbxassetid://417312039"
- Sick:Play()
- local SG = IT("ScreenGui",PlayerGui)
- framee = Instance.new("Frame")
- framee.Parent = SG
- framee.Position = UDim2.new(0, 8, 0, -500)
- framee.Size = UDim2.new(100000000,10000000,10000000,10000000)
- framee.BackgroundColor3 = BrickColor.new("White").Color
- framee.BackgroundTransparency = 0
- coroutine.wrap(function()
- wait(.2)
- for i = 1, 40 do
- Humanoid.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
- framee.BackgroundTransparency = framee.BackgroundTransparency + 0.025
- Swait()
- end
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- framee:Destroy()
- SG:Destroy()
- end)()
- ScepterWeld.Parent = nil
- SecondForm = true
- Attack = false
- Rooted = false
- end
- function Blink()
- for i = 0,1,0.1 do
- wait()
- Eyo.Mesh.Scale = Eyo.Mesh.Scale:lerp(VT(1,0,1),i)
- end
- for i = 0,1,0.1 do
- wait()
- Eyo.Mesh.Scale = Eyo.Mesh.Scale:lerp(VT(0.7,0.7,0.7),i)
- end
- end
- --// BINDING FUNCTIONS TO KEY --\\
- game:GetService("UserInputService").InputBegan:Connect(function(Input,GameProccesed)
- local Key = Input.KeyCode
- if not GameProccesed and not Attack then
- if Key == Enum.KeyCode.F then
- Transform()
- end
- end
- end)
- --// WRAPPING THE WHOLE SCRIPT UP --\\
- OrgnC0 = Neck.C0
- local ToDelet = {}
- local ANIM
- FACE = Head:WaitForChild('face')
- local BlinkLoop = 0
- while Swait() do
- if SecondForm == true then
- Humanoid.HipHeight = 2
- TrsoLV = Torso.CFrame.lookVector
- local _, Point = workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), workspace, false, true)
- local Dist = (Head.CFrame.p - Point).Magnitude
- local Diff = Head.CFrame.Y - Point.Y
- local _, Point2 = workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, Mouse.Hit.lookVector), workspace, false, true)
- local Dist2 = (LeftArm.CFrame.p - Point).Magnitude
- local Diff2 = LeftArm.CFrame.Y - Point.Y
- Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff / Dist) * 1), 0, (((Head.CFrame.p - Point).Unit):Cross(Torso.CFrame.LookVector)).Y * 1), .1)
- end
- SINE = SINE + CHANGE
- RootJoint.Parent,Neck.Parent,RightShoulder.Parent,LeftShoulder.Parent,RightHip.Parent,LeftHip.Parent = JointService,JointService,JointService,JointService,JointService,JointService
- Humanoid.PlatformStand = false
- for i,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- RootPart.Parent = Character
- if not Character:FindFirstChildOfClass("Humanoid") then
- Humanoid = IT("Humanoid",Character)
- end
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).Magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- if TORSOVELOCITY > 1 and HITFLOOR ~= nil then
- ANIM = "Walking"
- elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
- ANIM = "Idle"
- end
- if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
- ANIM = "Jump"
- elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
- ANIM = "Fall"
- end
- if ANIM ~= "Fall" then
- Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- Neck.C1 = Neck.C1:lerp(CF(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- end
- if Attack == false and SecondForm == true then
- BlinkLoop = BlinkLoop + 2
- if BlinkLoop >= 500 then
- BlinkLoop = 0
- Blink()
- end
- Scepter.Anchored = true
- Scepter.CFrame = Clerp(Scepter.CFrame,Torso.CFrame * CF(0.2,1.5 + 0.15 * SIN(SINE / 12),4) * ANGLES(RAD(0), RAD(15), RAD(10)),0.04)
- RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.591520309, 0.532794952, 0.0057849884, 0.939692557, -1.03502256e-08, 0.342020005, -0.33682397, 0.17364797, 0.925416529, -0.0593911, -0.984807789, 0.163175732), 0.4 / Animation_Speed)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.499998093, -4.76837158e-07, 0.906307817, 0, -0.422618181, 0.416197658, 0.173648149, 0.892538965, 0.0733868629, -0.98480773, 0.157378674), 0.4 / Animation_Speed)
- RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.512356758, 0.202178955, 0, 0, 1, 0.258819044, 0.965925813, 0, -0.965925813, 0.258819044, 0), 0.4 / Animation_Speed)
- LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C1 = LeftHip.C1:lerp(CF(-0.490476608, 1.1087842, 0, 0, 0.087155737, -0.99619472, 0, 0.99619472, 0.087155737, 1, 0, 0), 0.4 / Animation_Speed)
- end
- if Attack == false and SecondForm == false then
- if ANIM == "Idle" then
- RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0 + 0.05 * COS(SINE / 24), 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.5, 0.49999997, 0, 0, 0, 0.99999994, -1, -4.37113883e-08, 0, 4.37113883e-08, -1, 0), 0.4 / Animation_Speed)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.5, 0, 0, -0.0871557593, -0.99619472, 0, 0.99619472, -0.0871557593, 1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C0 = RightHip.C0:lerp(CF(1, -1 - 0.05 * COS(SINE / 24), 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C1 = RightHip.C1:lerp(CF(0.5, 1, 0, -0.173648179, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, -0.173648179), 0.4 / Animation_Speed)
- LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1 - 0.05 * COS(SINE / 24), 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1, 0, -0.17364797, 0, -0.984807789, 0, 1, 0, 0.984807789, 0, -0.17364797), 0.4 / Animation_Speed)
- elseif ANIM == "Walking" then
- RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0 + 0.1 * COS(SINE / 3), 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(-0.0389181972, 0.663122237, -0.22069484, -0.129409432, 0.482962936, -0.866025448, -0.388469696, 0.778864324, 0.492403865, 0.912329137, 0.400146306, 0.0868240893), 0.4 / Animation_Speed)
- RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C1 = RightHip.C1:lerp(CF(0.5, 1 + 0.1 * COS(SINE / 5), 0 + 0.1 * COS(SINE / 7), 0, 0, 1, 0, 1, -0, -1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
- LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1 + 0.1 * COS(SINE / 5), 0 + 0.1 * COS(SINE / 7), 0, 0, -1, 0, 1, 0, 1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
- elseif ANIM == "Jump" then
- Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- Neck.C1 = Neck.C1:lerp(CF(0, -0.5, 0, -1, 0, 0, 0, 0.5, 0.866025388, 0, 0.866025388, -0.5), 0.4 / Animation_Speed)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.499996185, 0.5, 0, 0, 0.342020124, 0.939692557, 0, 0.939692557, -0.342020124, -1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.500001907, 0, 0, -0.342020124, -0.939692557, 0, 0.939692557, -0.342020124, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.596400023, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0), 0.4 / Animation_Speed)
- elseif ANIM == "Fall" then
- Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- Neck.C1 = Neck.C1:lerp(CF(0, -0.500000477, 0, -1, 0, 0, 0, -0.17364797, 0.98480773, 0, 0.98480773, 0.17364797), 0.4 / Animation_Speed)
- RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
- RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, -0.17364797, 0.984807789, 0, 0.984807789, 0.17364797), 0.4 / Animation_Speed)
- RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.500003815, 0.499992371, -9.53674316e-07, 0.265584558, 0.699533045, 0.663413882, -0.294604897, 0.714097738, -0.635037303, -0.917972028, -0.0267889053, 0.395739257) * ANGLES(RAD(0),RAD(0) + 0.2 * SIN(SINE / 12),RAD(0)), 0.4 / Animation_Speed)
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.499996185, 0.499998093, 3.81469727e-06, 0.14640367, -0.678518295, -0.719846249, 0.183521718, 0.733684659, -0.65423739, 0.972052276, -0.0363246948, 0.231937021) * ANGLES(RAD(0),RAD(0) + 0.2 * SIN(-SINE / 12),RAD(0)), 0.4 / Animation_Speed)
- RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
- RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.282579422, 0.572610855, 0, 0, 1, 0.342020035, 0.939692438, 0, -0.939692438, 0.342020035, 0), 0.4 / Animation_Speed)
- LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
- LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1.00000048, 1.90734863e-06, 0, 0, -1, -0.17364879, 0.984807611, 0, 0.984807611, 0.17364879, 0), 0.4 / Animation_Speed)
- end
- end
- Head.BrickColor = BRICKC("Really black")
- RightArm.BrickColor = BRICKC("Really black")
- LeftArm.BrickColor = BRICKC("Really black")
- RightLeg.BrickColor = BRICKC("Really black")
- LeftLeg.BrickColor = BRICKC("Really black")
- Torso.BrickColor = BRICKC("Really black")
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Accessory") then
- table.insert(ToDelet,v)
- end
- if v:IsA("Shirt") and v.Name ~= "Cloth" then
- table.insert(ToDelet,v)
- end
- if v:IsA("Pants") and v.Name ~= "Cloth" then
- table.insert(ToDelet,v)
- end
- if v:IsA("ShirtGraphic") then
- table.insert(ToDelet,v)
- end
- if v:IsA("BodyColors") then
- table.insert(ToDelet,v)
- end
- if v.Name == "face" then
- table.insert(ToDelet,v)
- end
- end
- if Head:FindFirstChildOfClass("SpecialMesh") then
- Head:FindFirstChildOfClass("SpecialMesh").MeshType = Enum.MeshType.Head
- else
- MESH:Clone().Parent = Head
- end
- for i = 1,#ToDelet do
- if ToDelet[i] then
- ToDelet[i].Parent = nil
- end
- end
- if Rooted == true then
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- else
- Humanoid.WalkSpeed = 10
- Humanoid.JumpPower = 50
- end
- end
Add Comment
Please, Sign In to add comment