0% found this document useful (0 votes)
87 views6 pages

Free Slasher Script for Roblox

This script allows the user to control an animated character model and includes functions for attaching accessories, reanimating meshes, and connecting inputs to control movement and attacks. Key points: - Defines functions for attaching accessories to body parts and reanimating meshes - Sets up initial configurations for major body joints like shoulders, hips and neck - Includes a coroutine that continuously updates the animation based on movement inputs - Connects keyboard keys and mouse buttons to control movement, jumping and attacking

Uploaded by

Giorno Giovanna
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)
87 views6 pages

Free Slasher Script for Roblox

This script allows the user to control an animated character model and includes functions for attaching accessories, reanimating meshes, and connecting inputs to control movement and attacks. Key points: - Defines functions for attaching accessories to body parts and reanimating meshes - Sets up initial configurations for major body joints like shoulders, hips and neck - Includes a coroutine that continuously updates the animation based on movement inputs - Connects keyboard keys and mouse buttons to control movement, jumping and attacking

Uploaded by

Giorno Giovanna
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

--uses: [Link]

com/catalog/7548993875/Slasher
--i actually made a free script yippee
clickfling = false

function rmesh(a)
if not (workspace[[Link]][a].Handle:FindFirstChild('Mesh')
or workspace[[Link]]
[a].Handle:FindFirstChild('SpecialMesh')) then return end
old=[Link]
[Link]=workspace[[Link]]
for i,v in next,
workspace[[Link]]:FindFirstChild(a).Handle:GetDescendants()
do
if v:IsA('Mesh') or v:IsA('SpecialMesh') then
v:Remove()
end
end
for i = 1 , 2 do
[Link]=old
end
end

a=[Link] b=[Link] c={}d=[Link]


e=false for D,E in
next,game:GetService("Players").[Link]:GetDescendants()do if
E:IsA("BasePart")then
d(c,game:GetService("RunService").Heartbeat:connect(function()pcall(function()[Link]
ocity=[Link](-
30,0,0)sethiddenproperty([Link],"MaximumSimulationRadius",[Link]
ge)sethiddenproperty([Link],"SimulationRadius",999999999)[Link]
[Link]=workspace end)end))end end function
f(D,E,F)[Link]:SetCore("SendNotification",{Title=D;Text=E;Duration=F or
5;})end local
x=game:GetService("RunService")g=[Link]('Folder',b)[Link]='CWExtra'[Link]
le=true local y=b:Clone()[Link]='NexoPD'for D,E in next,y:GetDescendants()do if
E:IsA('BasePart')or E:IsA('Decal')then [Link]=1 end end h=5.65
[Link]=nil [Link]=b [Link]=false [Link]=0
[Link]=0 [Link]=true f('BruhSword','Reanimating\nwait
'..h..' seconds please')wait(h)[Link]=false
f('BruhSword','Reanimated!')[Link]=0 [Link]=true [Link]=g
[Link]=[Link]*[Link](0,5,0)function
i(D,E,F,G)[Link]("Attachment",D)[Link]("AlignPosition",D)[Link]("
AlignOrientation",D)[Link]("Attachment",E)[Link]=[Link]
[Link]=[Link]
[Link].Attachment0=D[[Link]][Link].Attachment0=D[[Link]][Link]
nPosition.Attachment1=E[[Link]][Link].Attachment1=E[[Link]]E[[Link]].Po
sition=F or [Link]()D[[Link]].Orientation=G or
[Link]()[Link]=999999999
[Link]=[Link] [Link]=false
[Link]=[Link]
[Link]=[Link] [Link]=false
[Link]=999999999 [Link]=true end function
j(D,E,F)[Link]("Attachment",D)[Link]("AlignPosition",D)[Link]("At
tachment",E)[Link]=[Link] [Link]=[Link]
[Link].Attachment0=D[[Link]][Link].Attachment1=E[[Link]]E[[Link]]
.Position=F or [Link]()[Link]=999999999
[Link]=[Link] [Link]=false
[Link]=[Link] [Link]=true end for D,E in
next,b:GetDescendants()do if E:IsA('BasePart')then
d(c,[Link]:Connect(function()[Link]=false end))end end for D,E in
next,b:GetDescendants()do if E:IsA('BasePart')then
d(c,[Link]:Connect(function()[Link]=false end))end end for D,E in
next,y:GetDescendants()do if E:IsA('BasePart')then
d(c,[Link]:Connect(function()[Link]=false end))end end for D,E in
next,y:GetDescendants()do if E:IsA('BasePart')then
d(c,[Link]:Connect(function()[Link]=false end))end end for D,E in
next,b:GetDescendants()do if E:IsA('Accessory')then i([Link],y[[Link]].Handle)end
end
i(b['Head'],y['Head'])i(b['Torso'],y['Torso'])j(b['HumanoidRootPart'],y['Torso'],Ve
[Link](0,0,0))i(b['Right Arm'],y['Right Arm'])i(b['Left Arm'],y['Left
Arm'])i(b['Right Leg'],y['Right Leg'])i(b['Left Leg'],y['Left
Leg'])k=a:GetMouse()local z=[Link]("Part",g)[Link]=false
[Link]=1 d(c,[Link]:Connect(function()local
D=[Link] local
E=y["HumanoidRootPart"][Link]=[Link]
[Link]=[Link]([Link],[Link](D.X*10000,D.Y,D.Z*10000))end))l=false
m=false n=false o=false p=false function
q(D)r=[Link]('BodyAngularVelocity',D)[Link]=[Link](9e9,9e9,9e
9)[Link]=[Link](9e9,9e9,9e9)end
q([Link])k=a:GetMouse()s=[Link]('BodyPosition',[Link]
)s.P=9e9 s.D=9e9 [Link]=[Link](99999,99999,99999)local A
d(c,[Link]:Connect(function()if A==true then [Link]=[Link].p
[Link]=[Link].p else [Link]=[Link]
[Link]=[Link] end end))local
B=[Link]("SelectionBox")[Link]=[Link] [Link]=0.1
B.Color3=[Link](153,0,255)[Link]=[Link] [Link]="RAINBOW"t=B
if clickfling then d(c,k.Button1Down:Connect(function()A=true
end))d(c,k.Button1Up:Connect(function()A=false end))end
d(c,[Link]:Connect(function(D)if D==' 'then p=true end if D=='w'then l=true end
if D=='s'then m=true end if D=='a'then n=true end if D=='d'then o=true end
end))d(c,[Link]:Connect(function(D)if D==' 'then p=false end if D=='w'then l=false
end if D=='s'then m=false end if D=='a'then n=false end if D=='d'then o=false end
end))local function C(D,E,F)[Link]=[Link]*[Link](-D,E,-
F)[Link]=[Link] end d(c,[Link]:Connect(function()if
l==true then C(0,0,1e4)end if m==true then C(0,0,-1e4)end if n==true then
C(1e4,0,0)end if o==true then C(-1e4,0,0)end if p==true then [Link]=true
end if l~=true and n~=true and m~=true and o~=true then
[Link]=[Link] end
end))[Link]=[Link]
u=[Link]('BindableEvent')d(c,[Link]:Connect(function()y:Destroy()e=true
v=false for D,E in next,b:GetDescendants()do if E:IsA('BasePart')then
[Link]=true end end w=[Link]:Clone()[Link]:Destroy()[Link]=b
[Link]:Chat('-re')for D,E in pairs(c)do E:Disconnect()end
game:GetService("StarterGui"):SetCore("ResetButtonCallback",true)u:Remove()end))gam
e:GetService("StarterGui"):SetCore("ResetButtonCallback",u)
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]

speed = 1
sine = 1
srv = game:GetService('RunService')

reanim = [Link]

function hat(h,p,c1,c0,m)
reanim[h].[Link].Part1=reanim[p]
reanim[h].[Link].C1=c1 or [Link]()
reanim[h].[Link].C0=reanim[h].[Link].C0:Lerp(c0 or
[Link](),1)
if m == true then
rmesh(h)
end
end

m=[Link]:GetMouse()
RJ = [Link]
RS = [Link]['Right Shoulder']
LS = [Link]['Left Shoulder']
RH = [Link]['Right Hip']
LH = [Link]['Left Hip']
Root = [Link]
NECK = [Link]
NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RJ.C1 = CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))

Mode='1'

attacklol=[Link]:GetMouse().Button1Down:Connect(function()
Mode='Attack1'
wait(0.05) -- time of attack u can edit this
Mode='Attack2'
wait(0.05)
Mode='Attack3'
wait(0.2)
Mode ='1' -- change this mode to whatever u want the mode to be after attacking
end)

hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)

[Link](function()
while true do -- anim changer
if HumanDied then break end
sine = sine + speed
local rlegray = [Link](reanim["Right Leg"].Position + [Link](0, 0.5, 0),
[Link](0, -2, 0))
local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
local llegray = [Link](reanim["Left Leg"].Position + [Link](0, 0.5, 0),
[Link](0, -2, 0))
local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
local rightvector = ([Link] * [Link]).X + ([Link] *
[Link]).Z
local lookvector = ([Link] * [Link]).X + ([Link] *
[Link]).Z
if lookvector > [Link] then
lookvector = [Link]
end
if lookvector < -[Link] then
lookvector = -[Link]
end
if rightvector > [Link] then
rightvector = [Link]
end
if rightvector < -[Link] then
rightvector = -[Link]
end
local lookvel = lookvector / [Link]
local rightvel = rightvector / [Link]
if Mode == '1' then
[Link] = 35
if [Link].y > 1 then -- jump
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
NECK.C0=NECK.C0:Lerp([Link](0+0*[Link](sine/5),1+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](10+0*[Link](sine/
5)),[Link](0+5*[Link](sine/5)),[Link](0+0*[Link](sine/5))),0.5)
RJ.C0=RJ.C0:Lerp([Link](0+0*[Link](sine/5),-1+0.1*[Link](sine/
5),0+0*[Link](sine/10))*[Link]([Link](-15+2*[Link](sine/
5)),[Link](0+0*[Link](sine/5)),[Link](0+5*[Link](sine/10))),0.5)
RS.C0=RS.C0:Lerp([Link](1+0*[Link](sine/10),0.25+0*[Link](sine/5),-
0.5+0*[Link](sine/10))*[Link]([Link](75+-5*[Link](sine/
5)),[Link](15+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),0.5)
LS.C0=LS.C0:Lerp([Link](-0.5+0*[Link](sine/10),0+-0.05*[Link](sine/5),-
0.75+0*[Link](sine/10))*[Link]([Link](88.4+-5*[Link](sine/
5)),[Link](22.6+0*[Link](sine/10)),[Link](38.3+0*[Link](sine/10))),0.5)
RH.C0=RH.C0:Lerp([Link](0.5+0*[Link](sine/10),-1+-0.3*[Link](sine/10),0+-
0.5*[Link](sine/10))*[Link]([Link](15+60*[Link](sine/10)),[Link](0+-
5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
LH.C0=LH.C0:Lerp([Link](-0.5+0*[Link](sine/10),-1+0.3*[Link](sine/
10),0+0.5*[Link](sine/10))*[Link]([Link](15+-60*[Link](sine/
10)),[Link](0+5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
elseif [Link].y < -1 then -- fall
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
NECK.C0=NECK.C0:Lerp([Link](0+0*[Link](sine/5),1+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](10+0*[Link](sine/
5)),[Link](0+5*[Link](sine/5)),[Link](0+0*[Link](sine/5))),0.5)
RJ.C0=RJ.C0:Lerp([Link](0+0*[Link](sine/5),-1+0.1*[Link](sine/
5),0+0*[Link](sine/10))*[Link]([Link](-15+2*[Link](sine/
5)),[Link](0+0*[Link](sine/5)),[Link](0+5*[Link](sine/10))),0.5)
RS.C0=RS.C0:Lerp([Link](1+0*[Link](sine/10),0.25+0*[Link](sine/5),-
0.5+0*[Link](sine/10))*[Link]([Link](75+-5*[Link](sine/
5)),[Link](15+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),0.5)
LS.C0=LS.C0:Lerp([Link](-0.5+0*[Link](sine/10),0+-0.05*[Link](sine/5),-
0.75+0*[Link](sine/10))*[Link]([Link](88.4+-5*[Link](sine/
5)),[Link](22.6+0*[Link](sine/10)),[Link](38.3+0*[Link](sine/10))),0.5)
RH.C0=RH.C0:Lerp([Link](0.5+0*[Link](sine/10),-1+-0.3*[Link](sine/10),0+-
0.5*[Link](sine/10))*[Link]([Link](15+60*[Link](sine/10)),[Link](0+-
5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
LH.C0=LH.C0:Lerp([Link](-0.5+0*[Link](sine/10),-1+0.3*[Link](sine/
10),0+0.5*[Link](sine/10))*[Link]([Link](15+-60*[Link](sine/
10)),[Link](0+5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
elseif [Link] < 2
NECK.C0=NECK.C0:Lerp([Link](0+0*[Link](sine/10),1+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](-10+0*[Link](sine/
10)),[Link](0+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),0.5)
RJ.C0=RJ.C0:Lerp([Link](0+0*[Link](sine/10),-1+0.05*[Link](sine/
50),0+0*[Link](sine/10))*[Link]([Link](10+0*[Link](sine/
50)),[Link](0+-1*[Link](sine/50)),[Link](0+-1*[Link](sine/50))),0.5)
RS.C0=RS.C0:Lerp([Link](1.5+0.1*[Link](sine/50),0+0.05*[Link](sine/
50),0.25+0*[Link](sine/10))*[Link]([Link](-121.4+0*[Link](sine/
50)),[Link](90+-4*[Link](sine/50)),[Link](-30+0*[Link](sine/50))),0.5)
LS.C0=LS.C0:Lerp([Link](-1.5+0*[Link](sine/10),0.5+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](-10+0*[Link](sine/
10)),[Link](0+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),0.5)
RH.C0=RH.C0:Lerp([Link](0.5+0*[Link](sine/10),-1+-0.05*[Link](sine/
50),0+0*[Link](sine/10))*[Link]([Link](-10+0*[Link](sine/
50)),[Link](-15+1*[Link](sine/10)),[Link](0+1*[Link](sine/50))),0.5)
LH.C0=LH.C0:Lerp([Link](-0.5+0*[Link](sine/10),-1+-0.05*[Link](sine/
50),0+0*[Link](sine/10))*[Link]([Link](-10+0*[Link](sine/
50)),[Link](15+1*[Link](sine/10)),[Link](0+1*[Link](sine/50))),0.5)> 20
then -- run
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
NECK.C0=NECK.C0:Lerp([Link](0+0*[Link](sine/5),1+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](10+0*[Link](sine/
5)),[Link](0+5*[Link](sine/5)),[Link](0+0*[Link](sine/5))),0.5)
RJ.C0=RJ.C0:Lerp([Link](0+0*[Link](sine/5),-1+0.1*[Link](sine/
5),0+0*[Link](sine/10))*[Link]([Link](-15+2*[Link](sine/
5)),[Link](0+0*[Link](sine/5)),[Link](0+5*[Link](sine/10))),0.5)
RS.C0=RS.C0:Lerp([Link](1+0*[Link](sine/10),0.25+0*[Link](sine/5),-
0.5+0*[Link](sine/10))*[Link]([Link](75+-5*[Link](sine/
5)),[Link](15+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),0.5)
LS.C0=LS.C0:Lerp([Link](-0.5+0*[Link](sine/10),0+-0.05*[Link](sine/5),-
0.75+0*[Link](sine/10))*[Link]([Link](88.4+-5*[Link](sine/
5)),[Link](22.6+0*[Link](sine/10)),[Link](38.3+0*[Link](sine/10))),0.5)
RH.C0=RH.C0:Lerp([Link](0.5+0*[Link](sine/10),-1+-0.3*[Link](sine/10),0+-
0.5*[Link](sine/10))*[Link]([Link](15+60*[Link](sine/10)),[Link](0+-
5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
LH.C0=LH.C0:Lerp([Link](-0.5+0*[Link](sine/10),-1+0.3*[Link](sine/
10),0+0.5*[Link](sine/10))*[Link]([Link](15+-60*[Link](sine/
10)),[Link](0+5*[Link](sine/10)),[Link](0+-5*[Link](sine/10))),0.5)
elseif [Link] &lt; 20 then -- walk
end
----
elseif Mode == 'Attack1' then --attack clerp
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
RS.C0=RS.C0:Lerp([Link](1+0*[Link](sine/10),-0.5+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](120+0*[Link](sine/
10)),[Link](-35+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),.2)
LS.C0=LS.C0:Lerp([Link](0+0*[Link](sine/10),0.25+0*[Link](sine/10),-
0.5+0*[Link](sine/10))*[Link]([Link](90+0*[Link](sine/10)),[Link](-
15+0*[Link](sine/10)),[Link](45+0*[Link](sine/10))),.2)
elseif Mode == 'Attack2' then --attack clerp
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
RS.C0=RS.C0:Lerp([Link](1+0*[Link](sine/10),-0.5+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](120+0*[Link](sine/
10)),[Link](-90+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),.2)
LS.C0=LS.C0:Lerp([Link](0+0*[Link](sine/10),0.25+0*[Link](sine/10),-
0.5+0*[Link](sine/10))*[Link]([Link](90+0*[Link](sine/10)),[Link](-
2.06+0*[Link](sine/10)),[Link](45+0*[Link](sine/10))),.2)
elseif Mode == 'Attack3' then --attack clerp
hat('Back_AccAccessory','Right Arm',[Link](0,0,0),[Link](0.5+0*math["cos"]
(sine/10),2+0*math["cos"](sine/10),-0.5+0*math["cos"](sine/
10))*[Link]([Link](-100+0*math["cos"](sine/10)),[Link](45+0*math["cos"]
(sine/10)),[Link](90+0*math["cos"](sine/10))),false)
RJ.C0=RJ.C0:Lerp([Link](0+0*[Link](sine/10),-1+0*[Link](sine/
10),0+0*[Link](sine/10))*[Link]([Link](-10+0*[Link](sine/
10)),[Link](20+0*[Link](sine/10)),[Link](0+0*[Link](sine/10))),.2)
RS.C0=RS.C0:Lerp([Link](0+0*[Link](sine/10),0+0*[Link](sine/10),-
0.5+0*[Link](sine/10))*[Link]([Link](188.99+0*[Link](sine/
10)),[Link](-193.1+0*[Link](sine/10)),[Link](97.29+0*[Link](sine/10))),.2)
LS.C0=LS.C0:Lerp([Link](-1+0*[Link](sine/10),0+0*[Link](sine/
10),0.5+0*[Link](sine/10))*[Link]([Link](89.64+0*[Link](sine/
10)),[Link](13.23+0*[Link](sine/10)),[Link](-32.62+0*[Link](sine/10))),.2)
end
[Link]:Wait()
end
end)()

You might also like