#my friend said i need to capitalize some stuff in my gun code

14 messages · Page 1 of 1 (latest)

neon sierra
#

local gun = script.Parent

local players = Game:GetService("Players"):WaitForChild("LocalPlayer") players.LocalPlayerplayerGui = player. WaitForChild("PlayerGui")

local roundSize = 15

local round = roundSize

local distance = 100 damage 30

local local

gui= nil

label

= nil

if not playerGui. FindFirstChild("AmmoDisplay")

then

gui Instance.New("ScreenGui", playerGui)

gui.name = "AmmoDisplay" gui.Enabled= False

label Instance.new("TextLabel", gui) label.name = "DisplayLabel"

label.text round.."/"..roundSize

label.BackgroundTransparency = 1 label.BorderSizePixel = 9

label.size = UDim2.new(.1. 0, 0.5, 0)

label.position= UDim2.new(.9, 0, 9.5, 0) label.TextScaled =

true

Label. Font = Enum. Font.Arcade

long duneBOT
#

studio** You are now Level 3! **studio

#

studio** You are now Level 4! **studio

neon sierra
#

waigt im still working on it

#

but that is the gist

#

i edited it some more btw

neon sierra
#

k

#

so first make a screen gui

#

and then add a label in it

#

local gui = Game:GetService("StarterGui"):WaitForChild("UrGuiNameHere")

#

local label = gui:WaitForChild("LabelNameHere")

#

i think this is it

#

idk

#

im kinda new to luau