BBDe MRa W
BBDe MRa W
wait(0.2)
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"]
local sick = Instance.new("Sound",Character)
sick.SoundId = "rbxassetid://142748120"
sick.Looped = true
sick.Pitch = 1
sick.Volume = 5
sick:Play()
Humanoid.DisplayDistanceType = "None"
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
local EyeSizes={
NumberSequenceKeypoint.new(0,1,0),
NumberSequenceKeypoint.new(1,0.2,0)
}
local EyeTrans={
NumberSequenceKeypoint.new(0,0.8,0),
NumberSequenceKeypoint.new(1,1,0)
}
local PE=Instance.new("ParticleEmitter")
PE.LightEmission=0
PE.Size=NumberSequence.new(EyeSizes)
PE.Transparency=NumberSequence.new(EyeTrans)
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
PE.Rotation=NumberRange.new(0,360)
PE.Rate=15
PE.Acceleration = Vector3.new(0,75,0)
PE.Drag = 5
PE.Enabled = false
PE.Speed = NumberRange.new(0,0,0)
PE.Texture="http://www.roblox.com/asset/?id=1179557490"
PE.ZOffset = 0
PE.Name = "Inferno"
function particles(art)
local particle = PE:Clone()
particle.Parent = art
particle.Enabled = true
end
--//=================================\\
--|| CUSTOMIZATION
--\\=================================//
Class_Name = "SMILE"
Weapon_Name = "Add-ons"
Custom_Colors = {
Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
local Speed = 16
local Effects2 = {}
--//=================================\\
--|| END OF CUSTOMIZATION
--\\=================================//
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
local acs = Instance.new("Part")
acs.CanCollide = false
acs.Anchored = false
acs.Size = Vector3.new(0,0,0)
acs.CFrame = attachmentpart.CFrame
acs.Parent = Character
acs.BrickColor = color
local meshs = Instance.new("SpecialMesh")
meshs.MeshId = mesh
meshs.TextureId = texture
meshs.Parent = acs
meshs.Scale = scale
meshs.Offset = offset
weldBetween(attachmentpart,acs)
end
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
if TYPE == "Gem" then
local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part",
VT(0,0,0))
acs.Anchored = false
acs.CanCollide = false
acs.CFrame = PART.CFrame
local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE,
OFFSET)
weldBetween(PART,acs)
elseif TYPE == "Skull" then
local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part",
VT(0,0,0))
acs.Anchored = false
acs.CanCollide = false
acs.CFrame = PART.CFrame
local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE,
OFFSET)
weldBetween(PART,acs)
elseif TYPE == "Eye" then
local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
acs.Anchored = false
acs.CanCollide = false
acs.CFrame = PART.CFrame
local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
weldBetween(PART,acs)
end
end
--//=================================\\
--|| USEFUL VALUES
--\\=================================//
--//=================================\\
--\\=================================//
--//=================================\\
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
--\\=================================//
script:WaitForChild("ArtificialHB")
frame = Frame_Speed
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)
--//=================================\\
--\\=================================//
--//=================================\\
--|| SOME FUNCTIONS
--\\=================================//
function PositiveAngle(NUMBER)
if NUMBER >= 0 then
NUMBER = 0
end
return NUMBER
end
function NegativeAngle(NUMBER)
if NUMBER <= 0 then
NUMBER = 0
end
return NUMBER
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
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 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
function CreateSound(ID, PARENT, VOLUME, PITCH)
coroutine.resume(coroutine.create(function()
local NEWSOUND = IT("Sound", PARENT)
NEWSOUND.Volume = VOLUME
NEWSOUND.Pitch = PITCH
NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
Swait()
NEWSOUND:play()
game:GetService("Debris"):AddItem(NEWSOUND, 10)
end))
end
function
CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset,doeskill)
local sinkhole = IT("Part",workspace)
if doeskill == true then
local hit = sinkhole.Touched:Connect(function(hit)
if hit.Parent ~= Character and
hit.Parent:FindFirstChild("Humanoid") then
kill(hit.Parent,true)
hit.Parent:remove()
end
end)
end
sinkhole.Size = VT(size,0,size)
sinkhole.CFrame = cframe * CF(0,offset,0)
sinkhole.Material = "Neon"
sinkhole.Color = C3(1,0,0)
sinkhole.Anchored = true
sinkhole.CanCollide = false
sinkhole.Transparency = 1
local decal = decal:Clone()
decal.Parent = sinkhole
decal.Face = "Top"
decal.Texture = "http://www.roblox.com/asset/?id=818983932"
coroutine.resume(coroutine.create(function(PART)
for i = 1, waitt do
Swait()
if doesrotate == true then
sinkhole.CFrame = sinkhole.CFrame *
CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
end
if i > waitt-11 then
decal.Transparency = decal.Transparency + 0.1
end
end
sinkhole:remove()
end))
return sinkhole
end
Weapon.Parent = Character
Humanoid.Died:connect(function()
workspace:ClearAllChildren()
end)
--//=================================\\
--\\=================================//
--//=================================\\
--|| DAMAGING
--\\=================================//
function kill(target,extratrue)
if OTHERWORLD == false or extratrue == true then
f = target:GetChildren()
for i = 1, #f do
if f[i].ClassName == "Part" or f[i].ClassName == "MeshPart" then
local effect = f[i]:Clone()
effect.Color = C3(1,1,1)
effect.Material = "Neon"
effect.Parent = workspace
effect.Anchored = true
effect.CanCollide = false
local hit = effect.Touched:Connect(function(hit)
if hit.Parent ~= Character and
hit.Parent:FindFirstChild("Humanoid") then
kill(hit.Parent)
hit.Parent:remove()
end
end)
m = effect:GetChildren()
for j = 1, #m do
if m[j].ClassName ~= "SpecialMesh" and m[j].ClassName ~=
"BlockMesh" then
m[j]:remove()
end
end
table.insert(Effects2,{effect,"Disappear",0.01,1,1,1,15})
end
end
target:remove()
end
end
--//=================================\\
--|| ATTACK FUNCTIONS AND STUFF
--\\=================================//
function Warp()
ATTACK = true
local originalcframe = RootPart.CFrame
RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+
(RootPart.Size.Y+1.5),Mouse.Hit.Z),originalcframe.p)
if OTHERWORLD == false then
local penta = CreatePentagram(15,false,0,100,CF(RootPart.Position),-
3.2)
CreateSound("971126018", penta, 2, 1)
end
ATTACK = false
end
function burnchildren(v)
local get = v:GetChildren()
for i = 1, #get do
local child = get[i]
if child.ClassName == "Part" or child.ClassName == "MeshPart" then
particles(child)
child.Color = C3(0,0,0)
elseif child.ClassName == "CharacterMesh" then
child.OverlayTextureId = "99174105"
elseif child.ClassName == "Hat" or child.ClassName == "Accessory" then
child.Handle.Color = C3(0,0,0)
child.Handle.Mesh.TextureId = ""
particles(child.Handle)
end
end
end
function dragnearest(position,range)
for i,v in ipairs(workspace:GetChildren()) do
if game.Players:FindFirstChild(v.Name) == nil then
local body = v:GetChildren()
for part = 1, #body do
if((body[part].ClassName == "Part" or body[part].ClassName
== "MeshPart") and v ~= Character) then
if(body[part].Position - position).Magnitude < range
then
v.Parent = Cam
burnchildren(v)
if v:FindFirstChild("Humanoid") then
v.Humanoid:remove()
end
end
end
end
if v.ClassName == "Part" then
if v.Anchored == false and (v.Position -
position).Magnitude < range then
v.Parent = Cam
particles(v)
v.Color = C3(0,0,0)
end
end
end
end
end
function Drag()
local penta = CreatePentagram(25,true,0.3,100,CF(Mouse.Hit.p),0)
CreateSound("971126018", penta, 2, 1, false)
dragnearest(penta.Position,15)
end
--//=================================\\
--|| ASSIGN THINGS TO KEYS
--\\=================================//
function MouseDown(Mouse)
HOLD = true
if OTHERWORLD then
repeat
Swait()
CreatePentagram(15,false,0,12,CF(RootPart.Position),-2.8,true)
until HOLD == false
end
end
function MouseUp(Mouse)
HOLD = false
end
function KeyDown(Key)
if Key == "e" then
Warp()
end
if Key == "h" then
camchild = Cam:GetChildren()
for child = 1, #camchild do
if camchild[child] ~= Character and camchild[child].Name ~=
"ColorCorrection" then
camchild[child].Parent = workspace
end
end
end
if Key == "q" then
Drag()
end
if Key == "r" and ATTACK == false then
if OTHERWORLD == false then
OTHERWORLD = true
light2 = IT("ColorCorrectionEffect",Cam)
light2.Brightness = -0.300
light2.Contrast = 1
light2.Saturation = -2
local penta =
CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
CreateSound("971126018", penta, 2, 1.5)
Character.Parent = Cam
elseif OTHERWORLD == true then
OTHERWORLD = false
local penta =
CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
CreateSound("971126018", penta, 2, 1.5)
light2:remove()
Character.Parent = workspace
end
end
if Key == "g" and OTHERWORLD == true and ATTACK == false then
ATTACK = true
local del = 35
for i =1, 35 do
Swait(del)
del = del - 1
local head = IT("Part",workspace)
head.Size = VT(0.2,0.2,0.2)
head.CFrame = Head.CFrame * CF(math.random(-
700,700),0,math.random(-700,700))
head.Transparency = 1
head.CanCollide = false
head.Anchored = true
CreateSound("305685800", head, 10, 2)
coroutine.resume(coroutine.create(function()
for i = 1, 100 do
Swait()
end
if head then
head:remove()
end
end))
end
Swait(100)
CreateSound("305685800", workspace, 10, 0.8)
Swait(250)
ATTACK = false
end
if Key == "t" and ATTACK == false then
if OTHERWORLD == false then
CreateSound("305685800", Head, 5, 2)
elseif OTHERWORLD == true then
local head = IT("Part",workspace)
head.Size = VT(0.2,0.2,0.2)
head.CFrame = Head.CFrame
head.Transparency = 1
head.CanCollide = false
head.Anchored = true
CreateSound("305685800", head, 5, 2)
coroutine.resume(coroutine.create(function()
for i = 1, 100 do
Swait()
if head then
head.CFrame = Head.CFrame
end
end
if head then
head:remove()
end
end))
end
end
end
function KeyUp(Key)
end
Mouse.Button1Down:connect(function(NEWKEY)
MouseDown(NEWKEY)
end)
Mouse.Button1Up:connect(function(NEWKEY)
MouseUp(NEWKEY)
end)
Mouse.KeyDown:connect(function(NEWKEY)
KeyDown(NEWKEY)
end)
Mouse.KeyUp:connect(function(NEWKEY)
KeyUp(NEWKEY)
end)
--//=================================\\
--\\=================================//
function unanchor()
if UNANCHOR == true then
g = Character:GetChildren()
for i = 1, #g do
if g[i].ClassName == "Part" then
g[i].Anchored = false
end
end
end
end
--//=================================\\
--|| WRAP THE WHOLE SCRIPT UP
--\\=================================//
while true do
Swait()
if #Effects2>0 then
for e=1,#Effects2 do
if Effects2[e]~=nil then
local Thing=Effects2[e]
if Thing~=nil then
local Part=Thing[1]
local Mode=Thing[2]
local Delay=Thing[3]
local IncX=Thing[4]
local IncY=Thing[5]
local IncZ=Thing[6]
local Part2=Thing[8]
if Thing[1].Transparency<=1 then
if Thing[2]=="Block1" then
Thing[1].CFrame=Thing[1].CFrame
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Cylinder" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Blood" then
Mesh=Thing[7]
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Elec" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Disappear" then
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
end
else
Part.Parent=nil
table.remove(Effects2,e)
end
end
end
end
end
unanchor()
Humanoid.MaxHealth = "inf"
Humanoid.Health = "inf"
q = Character:GetChildren()
for u = 1, #q do
if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
q[u]:remove()
elseif q[u].ClassName == "Shirt" then
q[u]:Destroy()
elseif q[u].ClassName == "Pants" then
q[u]:Destroy()
elseif q[u].ClassName == "CharacterMesh" then
q[u]:remove()
elseif q[u].ClassName == "ShirtGraphic" then
q[u]:remove()
elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
q[u].Color = Color3.new(200/255, 200/255, 200/255)
if OTHERWORLD == false then
q[u].Transparency = 0
Humanoid.WalkSpeed = 16
sick.Parent = Character
sick.Pitch = 0.8
elseif OTHERWORLD == true then
Humanoid.WalkSpeed = 75
sick.Parent = workspace
sick.Pitch = 0.3
end
end
end
if Head:FindFirstChild("Mesh") then
local mesh = Head.Mesh
if mesh.ClassName == "SpecialMesh" then
mesh:remove()
local m = IT("BlockMesh",Head)
end
end
if Head:FindFirstChild("face") then
if math.random(1,50) == 1 then
Head.face.Texture = "rbxassetid://291716137"
tecks2.Text = "CRY"
else
Head.face.Texture = "rbxassetid://2120932"
tecks2.Text = "SMILE"
end
end
if sick == nil then
local sick = Instance.new("Sound",Character)
sick.SoundId = "rbxassetid://142748120"
sick.Looped = true
sick.Pitch = 0.9
sick.Volume = 5
sick:Play()
end
if OTHERWORLD == false then
CreatePentagram(7,false,0,15,CF(RootPart.Position),-2.8,true)
end
end
--//=================================\\
--\\=================================//
--//====================================================\\--
--|| END OF SCRIPT
--\\====================================================//--