0% found this document useful (0 votes)
28 views20 pages

Roblox Animation Script Template

The document is a Lua script designed for Roblox, focusing on player customization and character creation. It includes functions for creating meshes and parts, managing player stats, and handling animations and effects. Additionally, it features a heartbeat system for frame management and various utility functions for gameplay mechanics.

Uploaded by

ghaisandika4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views20 pages

Roblox Animation Script Template

The document is a Lua script designed for Roblox, focusing on player customization and character creation. It includes functions for creating meshes and parts, managing player stats, and handling animations and effects. Additionally, it features a heartbeat system for frame management and various utility functions for gameplay mechanics.

Uploaded by

ghaisandika4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--//====================================================\\--

--|| CREATED BY THE TRUE ILLUMINATY, SHACKLUSTER


--\\====================================================//--

wait(0.2)

Player = game:GetService("Players").LocalPlayer
PlayerGui = [Link]
Cam = [Link]
Backpack = [Link]
Character = [Link]
Humanoid = [Link]
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"]
KEYHOLD = false
IT = [Link]
CF = [Link]
VT = [Link]
RAD = [Link]
C3 = [Link]
UD2 = [Link]
BRICKC = [Link]
ANGLES = [Link]
EULER = [Link]
COS = [Link]
ACOS = [Link]
SIN = [Link]
ASIN = [Link]
ABS = [Link]
MRANDOM = [Link]
FLOOR = [Link]
local Torsos = {}

function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)


local NEWMESH = IT(MESH)
if MESH == "SpecialMesh" then
[Link] = MESHTYPE
if MESHID ~= "nil" and MESHID ~= "" then
[Link] = "[Link]
end
if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
[Link] = "[Link]
end
end
[Link] = OFFSET or VT(0, 0, 0)
[Link] = SCALE
[Link] = PARENT
return NEWMESH
end

function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY,


BRICKCOLOR, NAME, SIZE)
local NEWPART = IT("Part")
[Link] = FORMFACTOR
[Link] = REFLECTANCE
[Link] = TRANSPARENCY
[Link] = false
[Link] = true
[Link] = BRICKC(tostring(BRICKCOLOR))
[Link] = NAME
[Link] = SIZE
[Link] = [Link]
[Link] = MATERIAL
NEWPART:BreakJoints()
[Link] = PARENT
return NEWPART
end

--//=================================\\
--|| CUSTOMIZATION
--\\=================================//

Class_Name = "Template"
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.

Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.


Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary
bar.
Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.

Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana


bar.
Custom_Color_9 = BRICKC("Institutional white"); --Background for the
secondary mana bar.
Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun
bar.
Custom_Color_11 = BRICKC("Institutional white"); --Background for the health
bar.
Custom_Color_12 = BRICKC("Institutional white"); --Background for the
abilities.
}

Player_Size = 1 --Size of the player.


Animation_Speed = 3
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)

local Speed = 16
local Effects2 = {}

--//=================================\\
--|| END OF CUSTOMIZATION
--\\=================================//

local function weldBetween(a, b)


local weldd = [Link]("ManualWeld")
weldd.Part0 = a
weldd.Part1 = b
weldd.C0 = [Link]()
weldd.C1 = [Link]:inverse() * [Link]
[Link] = a
return weldd
end

function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
local acs = [Link]("Part")
[Link] = false
[Link] = false
[Link] = [Link](0,0,0)
[Link] = [Link]
[Link] = Character
[Link] = color
local meshs = [Link]("SpecialMesh")
[Link] = mesh
[Link] = texture
[Link] = acs
[Link] = scale
[Link] = 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))
[Link] = false
[Link] = false
[Link] = [Link]
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))
[Link] = false
[Link] = false
[Link] = [Link]
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))
[Link] = false
[Link] = false
[Link] = [Link]
local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
weldBetween(PART,acs)
end
end

--//=================================\\
--|| USEFUL VALUES
--\\=================================//

local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))


local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
local CO1 = 0
local CO2 = 0
local CO3 = 0
local CO4 = 0
local CHANGEDEFENSE = 0
local CHANGEDAMAGE = 0
local CHANGEMOVEMENT = 0
local ANIM = "Idle"
local ATTACK = false
local EQUIPPED = false
local HOLD = false
local COMBO = 1
local LASTPOINT = nil
local BLCF = nil
local SCFR = nil
local STAGGERHITANIM = false
local STAGGERANIM = false
local STUNANIM = false
local CRITCHANCENUMBER = 0
local IDLENUMBER = 0
local DONUMBER = 0
local HANDIDLE = false
local SINE = 0
local CHANGE = 2 / Animation_Speed
local WALKINGANIM = false
local WALK = 0
local DISABLEJUMPING = false
local HASBEENBLOCKED = false
local STUNDELAYNUMBER = 0
local MANADELAYNUMBER = 0
local SECONDARYMANADELAYNUMBER = 0
local ROBLOXIDLEANIMATION = IT("Animation")
[Link] = "Roblox Idle Animation"
[Link] = "[Link]
--[Link] = Humanoid
local WEAPONGUI = IT("ScreenGui", nil)
[Link] = "Weapon GUI"
local WEAPONTOOL = IT("HopperBin", nil)
[Link] = Weapon_Name
local Weapon = IT("Model")
[Link] = Weapon_Name
local Effects = IT("Folder", Weapon)
[Link] = "Effects"
local ANIMATOR = [Link]
local ANIMATE = [Link]
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235",
"199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221",
"263032252", "263033191"}
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409",
"199149452"}
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109",
"199149119"}
local HITBLOCKSOUNDS = {"199148933", "199148947"}
local UNANCHOR = true

--//=================================\\
--\\=================================//

--//=================================\\
--|| STATS
--\\=================================//

if Character:FindFirstChild("Stats") ~= nil then


Character:FindFirstChild("Stats").Parent = nil
end

local Stats = IT("Folder", nil)


[Link] = "Stats"
local ChangeStat = IT("Folder", Stats)
[Link] = "ChangeStat"
local Defense = IT("NumberValue", Stats)
[Link] = "Defense"
[Link] = 1
local Movement = IT("NumberValue", Stats)
[Link] = "Movement"
[Link] = 1
local Damage = IT("NumberValue", Stats)
[Link] = "Damage"
[Link] = 1
local Mana = IT("NumberValue", Stats)
[Link] = "Mana"
[Link] = 0
local SecondaryMana = IT("NumberValue", Stats)
[Link] = "SecondaryMana"
[Link] = 0
local CanCrit = IT("BoolValue", Stats)
[Link] = "CanCrit"
[Link] = false
local CritChance = IT("NumberValue", Stats)
[Link] = "CritChance"
[Link] = 20
local CanPenetrateArmor = IT("BoolValue", Stats)
[Link] = "CanPenetrateArmor"
[Link] = false
local AntiTeamKill = IT("BoolValue", Stats)
[Link] = "AntiTeamKill"
[Link] = false
local Rooted = IT("BoolValue", Stats)
[Link] = "Rooted"
[Link] = false
local Block = IT("BoolValue", Stats)
[Link] = "Block"
[Link] = false
local RecentEnemy = IT("ObjectValue", Stats)
[Link] = "RecentEnemy"
[Link] = nil
local StaggerHit = IT("BoolValue", Stats)
[Link] = "StaggerHit"
[Link] = false
local Stagger = IT("BoolValue", Stats)
[Link] = "Stagger"
[Link] = false
local Stun = IT("BoolValue", Stats)
[Link] = "Stun"
[Link] = false
local StunValue = IT("NumberValue", Stats)
[Link] = "StunValue"
[Link] = 0

--//=================================\\
--\\=================================//

--//=================================\\
--|| DEBUFFS / BUFFS
--\\=================================//

local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)


[Link] = "ChangeDefense"
[Link] = 0

local MOVEMENTCHANGE1 = IT("NumberValue", nil)


[Link] = "ChangeMovement"
[Link] = 0

--//=================================\\
--\\=================================//

--//=================================\\
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
--\\=================================//

ArtificialHB = [Link]("BindableEvent", script)


[Link] = "ArtificialHB"

script:WaitForChild("ArtificialHB")

frame = Frame_Speed
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
[Link]:Fire()

game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
[Link]:Fire()
lastframe = tick()
else
for i = 1, [Link](tf / frame) do
[Link]:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * [Link](tf / frame)
end
end
end)

--//=================================\\
--\\=================================//

--//=================================\\
--|| SOME FUNCTIONS
--\\=================================//

function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)


return workspace:FindPartOnRay([Link](POSITION, [Link] * RANGE),
IGNOREDECENDANTS)
end

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
[Link]:wait()
else
for i = 1, NUMBER do
[Link]: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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 [Link](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

function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR,


BORDERCOLOR, NAME)
local frame = IT("Frame")
[Link] = TRANSPARENCY
[Link] = BORDERSIZEPIXEL
[Link] = POSITION
[Link] = SIZE
frame.BackgroundColor3 = COLOR
frame.BorderColor3 = BORDERCOLOR
[Link] = NAME
[Link] = PARENT
return frame
end

function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY,


BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
local label = IT("TextLabel")
[Link] = 1
[Link] = UD2(1, 0, 1, 0)
[Link] = UD2(0, 0, 0, 0)
label.TextColor3 = C3(255, 255, 255)
[Link] = STROKETRANSPARENCY
[Link] = TRANSPARENCY
[Link] = TEXTFONTSIZE
[Link] = TEXTFONT
[Link] = BORDERSIZEPIXEL
[Link] = true
[Link] = TEXT
[Link] = NAME
[Link] = PARENT
return label
end

function NoOutlines(PART)
[Link], [Link], [Link], [Link],
[Link], [Link] = 10, 10, 10, 10, 10, 10
end

function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)


local NEWWELD = IT(TYPE)
NEWWELD.Part0 = PART0
NEWWELD.Part1 = PART1
NEWWELD.C0 = C0
NEWWELD.C1 = C1
[Link] = PARENT
return NEWWELD
end

function CreateSound(ID, PARENT, VOLUME, PITCH)


[Link]([Link](function()
local NEWSOUND = IT("Sound", PARENT)
[Link] = VOLUME
[Link] = PITCH
[Link] = "[Link]
Swait()
NEWSOUND:play()
game:GetService("Debris"):AddItem(NEWSOUND, 10)
end))
end

--//=================================\\
--\\=================================//

--//=================================\\
--|| RESIZE PLAYER
--\\=================================//

if Player_Size ~= 1 then
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = [Link] * Player_Size
[Link] = RootPart
[Link] = Torso
[Link] = Torso
[Link] = Torso
[Link] = Torso
[Link] = Torso

RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) *


ANGLES(RAD(0), RAD(0), RAD(0))
RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size)
* ANGLES(RAD(0), RAD(0), RAD(0))
Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 *
Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) *
ANGLES(RAD(-90), RAD(0), RAD(180))
RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
* ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
* ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
if Disable_Moving_Arms == false then
RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 *
Player_Size, -0.5)
LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 *
Player_Size, -0.5)
else
RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 *
Player_Size)
LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 *
Player_Size)
end
RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) *
ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) *
ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) *
ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) *
ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
--------------------
end

--//=================================\\
--\\=================================//

--//=================================\\
--|| WEAPON CREATION
--\\=================================//

if Player_Size ~= 1 then
for _, v in pairs (Weapon:GetChildren()) do
if [Link] == "Motor" or [Link] == "Weld" or [Link] ==
"Snap" then
local p1 = v.Part1
v.Part1 = nil
local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11,
cf12 = v.C1:components()
v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 *
Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
v.Part1 = p1
elseif [Link] == "Part" then
for _, b in pairs (v:GetChildren()) do
if [Link] == "SpecialMesh" or [Link] ==
"BlockMesh" then
[Link] = VT([Link].x * Player_Size, [Link].y *
Player_Size, [Link].z * Player_Size)
end
end
end
end
end

for _, c in pairs(Weapon:GetChildren()) do
if [Link] == "Part" then
[Link] = [Link](0, 0, 0, 0, 0)
end
end

[Link] = Character

print(Class_Name.." loaded.")

--//=================================\\
--\\=================================//

--//=================================\\
--|| ATTACK FUNCTIONS AND STUFF
--\\=================================//

local raysound = [Link]("Sound",Character)


[Link] = "rbxassetid://346067083"
[Link] = 2
[Link] = true
[Link] = 10

function pew()
ATTACK = true
local sphere = [Link]("Part",Effects)
[Link] = [Link](0,0,0)
[Link] = "Neon"
[Link] = "Ball"
[Link] = "AntimatterRay"
[Link] = true
[Link] = [Link](0,0,0)
[Link] = [Link] + [Link]*27
[Link] = false
local db=false
local hit = [Link]:connect(function(hit)
if db==true then return end
if [Link] ~= Character and [Link] ~= Character and
[Link] ~= Effects and [Link] == false and hit:FindFirstChild("Vanishing")
== nil then
if [Link]:FindFirstChild("Humanoid") then

[Link]:findFirstChildOfClass("Humanoid"):TakeDamage([Link]:findFirstChildOf
Class("Humanoid").MaxHealth/2)
db=true
if [Link]:FindFirstChild("Vanishing") == nil then
local vanish = [Link]("BoolValue",[Link])
[Link] = "Vanishing"
local sound = [Link]("Sound",hit)
[Link] = "rbxassetid://179497874"
[Link] = 10
sound:Play()
end
else
local vanish = [Link]("BoolValue",hit)
[Link] = "Vanishing"
[Link] = [Link](0,0,0)
[Link](Effects2,{hit,"Disappear",0.07,0,1,1,1})
if hit:FindFirstChildOfClass("SpecialMesh") then
local mesh = hit:FindFirstChildOfClass("SpecialMesh")
[Link] = ""
end
end
end
end)
repeat
Swait()
[Link]=[Link]([Link].p,[Link].p) *
[Link](0, 0, 0)
[Link] = [Link] + [Link](1,1,1)
[Link] = [Link](0,([Link].Y/200),0)
[Link] = [Link] +
[Link]*([Link].Y/1.75)
until KEYHOLD == false or [Link].Y > 200
CreateSound("11944350", Effects, 10, 1)
local bv = [Link]("BodyVelocity")
[Link] = [Link](1e9, 1e9, 1e9)
[Link] = [Link]*350
[Link] = sphere
[Link] = "DASH"
[Link] = false
ATTACK = false
game:GetService("Debris"):AddItem(sphere, 15)
end

function HoldRay()
ATTACK = true
UNANCHOR = false
CreateSound("428800263", Torso, 15, 3.5)
local sphere = [Link]("Part",Effects)
[Link] = [Link](0,0,0)
[Link] = "Neon"
[Link] = "Ball"
[Link] = "AntimatterRay"
[Link] = true
[Link] = [Link](59/255, 80/255, 45/255)
[Link] = [Link] + [Link]*15
[Link] = false
for i=0, 1, 0.1 / Animation_Speed do
Swait()
[Link]=[Link]([Link].p,[Link].p) *
[Link](0, 0, 0)
[Link] = [Link] + [Link](0.6,0.6,0.6)
[Link] = [Link] + [Link]*15
end
local sound = [Link]("Sound",Effects)
[Link] = "rbxassetid://165487479"
[Link] = 10
sound:Play()
repeat
[Link] = [Link] + [Link]*15
Swait()
[Link]=[Link]([Link].p,[Link].p) *
[Link](0, 0, 0)
until [Link] == false
sound:remove()
raysound:Play()
local timer = 1
local Lazor = [Link]("Part",Effects)
[Link] = [Link](12,12,1000)
[Link] = "AntimatterRay"
[Link] = "Neon"
[Link] = true
[Link] = false
[Link] = [Link] + [Link]*515
[Link] = [Link](0,0,0)
[Link] = [Link] * [Link](0,0,[Link](-
180,180))
local hit = [Link]:connect(function(hit)
if [Link] ~= Character and [Link] ~= Character and
[Link] ~= Effects and [Link] == false and hit:FindFirstChild("Vanishing")
== nil then
if [Link]:FindFirstChildOfClass("Humanoid") then

[Link]:findFirstChildOfClass("Humanoid"):TakeDamage(0.1)
if [Link]:FindFirstChild("Vanishing") == nil then
local vanish = [Link]("BoolValue",[Link])
[Link] = "Vanishing"
local sound = [Link]("Sound",hit)
[Link] = "rbxassetid://179497874"
[Link] = 10
sound:Play()
end
else
local vanish = [Link]("BoolValue",hit)
[Link] = "Vanishing"
[Link] = [Link](0,0,0)
[Link](Effects2,{hit,"Disappear",0.07,0,1,1,1})
if hit:FindFirstChildOfClass("SpecialMesh") then
local mesh = hit:FindFirstChildOfClass("SpecialMesh")
[Link] = ""
end
end
end
end)
local hit2 = [Link]:connect(function(hit)
if [Link] ~= Character and [Link] ~= Character and
[Link] ~= Effects and [Link] == false and hit:FindFirstChild("Vanishing")
== nil then
if [Link]:FindFirstChild("Humanoid") then
[Link]:BreakJoints()
if [Link]:FindFirstChild("Vanishing") == nil then
local vanish = [Link]("BoolValue",[Link])
[Link] = "Vanishing"
local sound = [Link]("Sound",hit)
[Link] = "rbxassetid://179497874"
[Link] = 10
sound:Play()
end
else
local vanish = [Link]("BoolValue",hit)
[Link] = "Vanishing"
[Link] = [Link](0,0,0)
[Link](Effects2,{hit,"Disappear",0.07,0,1,1,1})
if hit:FindFirstChildOfClass("SpecialMesh") then
local mesh = hit:FindFirstChildOfClass("SpecialMesh")
[Link] = ""
end
end
end
end)
repeat
if HOLD == true then
[Link]=[Link]([Link].p,[Link].p) *
[Link](0, 0, 0)
[Link] = [Link] + [Link]*515
[Link] = [Link] + [Link]*15
[Link] = [Link] *
[Link](0,0,[Link](-180,180))
if timer ==1 then
[Link] = [Link](59/255, 80/255, 45/255)
[Link] = [Link](59/255, 80/255, 45/255)
timer = 2
elseif timer ==2 then
[Link] = [Link](39/255, 70/255, 45/255)
[Link] = [Link](39/255, 70/255, 45/255)
timer = 1
end
end
Swait()
until HOLD == false
for i=0, 1, 0.1 / Animation_Speed/2 do
Swait()
[Link] = [Link] *
[Link](0,0,[Link](-180,180))
[Link]=[Link]([Link].p,[Link].p) *
[Link](0, 0, 0)
[Link] = [Link] + [Link]*515
[Link] = [Link] + [Link]*15
[Link] = true
[Link] = true
[Link] = [Link] - [Link](0.2,0.2,0.2)
[Link] = [Link] - [Link](0.5,0.5,0)
[Link] = [Link] + 0.03
[Link] = [Link] + 0.03
[Link] = [Link] - 0.1
if timer ==1 then
[Link] = [Link](59/255, 80/255, 45/255)
[Link] = [Link](59/255, 80/255, 45/255)
timer = 2
elseif timer ==2 then
[Link] = [Link](39/255, 70/255, 45/255)
[Link] = [Link](39/255, 70/255, 45/255)
timer = 1
end
end
[Link]=[Link]([Link].p,[Link]([Link].p.X,[Link]
ition.Y,[Link].p.Z)) * [Link](0, 0, 0)
hit2:disconnect()
hit:disconnect()
raysound:Stop()
[Link] = 5
sphere:remove()
Lazor:remove()
BLCF = nil
SCFR = nil
ATTACK = false
UNANCHOR = true
end

local sick = [Link]("Sound",Character)


[Link] = "rbxassetid://145616154"
[Link] = true
[Link] = 1
[Link] = 10
sick:Play()

local Spook = false

function spooky()
Spook = true
local cframe = nil
local pos = nil
sick:Stop()
local sound = [Link]("Sound",Effects)
[Link] = "rbxassetid://211540835"
[Link] = 10
sound:Play()
q = workspace:GetChildren()
for i = 1, #q do
g = q[i]:GetChildren()
for t = 1, #g do
if g[t].Name == "Torso" or g[t].Name == "UpperTorso" and
q[i] ~= Character then
[Link](Effects2,{g[t],"TorsoSpin",0,0,0,0})
end
end
end
repeat
Swait()
until [Link] == false
sound:remove()
sick:Play()
Spook = false
end

--//=================================\\
--|| ASSIGN THINGS TO KEYS
--\\=================================//

[Link]:connect(function(Jump)
if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
[Link] = false
end
end)
function MouseDown(Mouse)
if HOLD == false and ATTACK == false then
HOLD = true
HoldRay()
elseif HOLD == true then
HOLD = false
end
end

function MouseUp(Mouse)
end

function RayCast(Position, Direction, MaxDistance, IgnoreList)


return
game:GetService("Workspace"):FindPartOnRayWithIgnoreList([Link](Position,
[Link] * (MaxDistance or 999.999)), IgnoreList)
end

function KeyDown(Key)
KEYHOLD = true
if Key == "w" and HOLD == false and ATTACK == false then
repeat
local RayHit, RayPos = RayCast([Link],
[Link]*150, 1.8, {workspace})
[Link] = [Link](RayPos,[Link].p) * [Link](0,
0, 0)
Swait()
until KEYHOLD == false
end
if Key == "s" and HOLD == false and ATTACK == false then
repeat
local RayHit, RayPos = RayCast([Link],
[Link]*-150, 1.8, {workspace})
[Link] = [Link](RayPos,[Link].p) * [Link](0,
0, 0)
Swait()
until KEYHOLD == false
end
if Key == "z" and ATTACK == false then
pew()
end
if Key == "f" and Spook == false then
spooky()
end
end

function KeyUp(Key)
KEYHOLD = false
end

Mouse.Button1Down:connect(function(NEWKEY)
MouseDown(NEWKEY)
end)
Mouse.Button1Up:connect(function(NEWKEY)
MouseUp(NEWKEY)
end)
[Link]:connect(function(NEWKEY)
KeyDown(NEWKEY)
end)
[Link]: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" and g[i].Name ~= "HumanoidRootPart"
then
g[i].Anchored = false
end
end
end
[Link] = true
end

--//=================================\\
--|| WRAP THE WHOLE SCRIPT UP
--\\=================================//

[Link]:connect(function(Jump)
if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
[Link] = false
end
end)

[Link]:connect(function()
ATTACK = true
sick:Stop()
CreateSound("198973822", workspace, 10, 1)
for i = 1, 15 do
local bag = [Link]("Part",workspace)
[Link] = VT(1.8, 1.6, 1.2)
[Link] = [Link]
local mesh = [Link]("SpecialMesh",bag)
[Link] = "FileMesh"
[Link] = "[Link]
[Link] = "rbxassetid://37305301"
end
q = Character:GetChildren()
for i = 1, #q do
if q[i].ClassName == "Model" or q[i].ClassName == "Part" then
q[i]:remove()
end
end
end)

RightArm:remove()
LeftArm:remove()
LeftLeg:remove()
RightLeg:remove()
[Link] = 1
[Link] = 1
Head:ClearAllChildren()
local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black",
"Handle", VT(0.25*Player_Size,0.25*Player_Size,1.5*Player_Size))
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart,
CF(0 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(0), RAD(-90),
RAD(0)), CF(0, 0, 0))
local mesh = [Link]("SpecialMesh",HandlePart)
[Link] = "rbxassetid://438530093"
[Link] = "rbxassetid://438530120"
[Link] = [Link](0.7,1,1)

[Link] = nil
local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
IDLEANIMATION:Play()

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=[Link]
Mesh=Thing[1].Mesh
[Link]=[Link]+VT(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Cylinder" then
Mesh=Thing[1].Mesh
[Link]=[Link]+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)
[Link]=[Link]+VT(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Elec" then
Mesh=Thing[1].Mesh
[Link]=[Link]+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]
elseif Thing[2]=="TorsoSpin" and Spook == true then
Thing[1].CFrame = [Link](Thing[1].Position,[Link]([Link](-
180,180),[Link](-180,180),[Link](-180,180)))
end
else
[Link]=nil
[Link](Effects2,e)
end
end
end
end
end
[Link]=[Link]([Link].p,[Link].p) * [Link](0, 0, 0)
q = Character:GetChildren()
for u = 1, #q do
if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
q[u]:remove()
end
end
unanchor()
[Link] = "inf"
[Link] = "inf"
if Rooted == false then
Disable_Jump = false
[Link] = Speed
elseif Rooted == true then
Disable_Jump = true
[Link] = 0
end
end

--//=================================\\
--\\=================================//

--//====================================================\\--
--|| END OF SCRIPT
--\\====================================================//--

You might also like