Run it
Copy the script and paste it into your executor.
=
replicatedStorage = :()
player = :().LocalPlayer
cd =
weapon =
weapons = {}
dragging =
dragInput, mousePos, framePos
_,v replicatedStorage.Prefabs.Items:()
v:() v:()
.(weapons, v.Name)
screenGui = .()
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
mainFrame = .()
mainFrame.Size = .(, , , )
mainFrame.Position = .(, -, , -)
mainFrame.AnchorPoint = .(, )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.Parent = screenGui
expandButton = .()
expandButton.Size = .(, , , )
expandButton.Text =
expandButton.BackgroundColor3 = .(, , )
expandButton.TextColor3 = .(, , )
expandButton.Parent = mainFrame
weaponsFrame = .()
weaponsFrame.Size = .(, , , #weapons * )
weaponsFrame.Position = .(, , , )
weaponsFrame.BackgroundColor3 = .(, , )
weaponsFrame.Visible =
weaponsFrame.Parent = mainFrame
layout = .()
layout.Parent = weaponsFrame
layout.Padding = .(, )
_, weaponname (weapons)
nameButton = .()
nameButton.Size = .(, , , )
nameButton.Text = weaponname
nameButton.BackgroundColor3 = .(, , )
nameButton.TextColor3 = .(, , )
nameButton.Parent = weaponsFrame
nameButton.MouseButton1Click:(()
weapon = weaponname
(weapon)
)
expandButton.MouseButton1Click:(()
weaponsFrame.Visible = weaponsFrame.Visible
expandButton.Text = weaponsFrame.Visible
)
expandButton.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
mousePos = input.Position
framePos = mainFrame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
expandButton.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement
dragInput = input
)
:().InputChanged:((input)
input == dragInput dragging
delta = input.Position - mousePos
mainFrame.Position = .(
framePos.X.Scale, framePos.X.Offset + delta.X,
framePos.Y.Scale, framePos.Y.Offset + delta.Y
)
)
:().RenderStepped:((delta)
character = player.Character
cd >
_,v .Entity:()
(character.HumanoidRootPart.CFrame.Position - v.Head.CFrame.Position).Magnitude < v:() v.Zombie.Health > character:(weapon)
replicatedStorage.Library.RemotesManager.PrimaryFire:(, character[weapon], {[] = character.HumanoidRootPart.CFrame.Position, [] = .(-, -, ), [] = {[] = , [] = }, [] = .(, , ), [] = , [] = {[] = {[] = .(, , -), [] = v.Head, [] = , [] = v.Head.CFrame.Position}, [] = {[] = .(, , -), [] = v.Head, [] = , [] = v.Head.CFrame.Position}}, [] = character[weapon].Handle.BulletOrigin, [] = {[] = {[] = v.Zombie, [] = v.Head, [] = }, [] = {[] = v.Zombie, [] = v.Head, [] = }}, [] = {[] = v.Head.CFrame.Position}})
cd =
cd += delta
)
saw people commenting that they want it to work with other weapons and someone also said they want a ui so i added a ui that lets you change the weapon

Rise of the Dead