#soccer game

58 messages · Page 1 of 1 (latest)

bitter hollow
#

Want the technics to do it ?

sinful kelp
#

you cant ask to create entire scripts

bitter hollow
#

You can use hitboxes and cframe

bitter hollow
sinful kelp
#

There's a reason this channel is called scripting help

bitter hollow
#

#💵︱hiring

#

If you search for people to do your system

twilit jungle
red meteorBOT
#

studio** You are now Level 1! **studio

twilit jungle
sinful kelp
#

where'd you get it

#

if its from toolbox i cant help sorry

twilit jungle
#

This is the gui script:

local playerCountries = {
"Argentina",
"Brazil",
"Germany",
"France",
"Italy",
"Spain",

}

local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local positionsFrame = Instance.new("Frame")
positionsFrame.Size = UDim2.new(0.2, 0, 0.2, 0)
positionsFrame.Position = UDim2.new(0.4, 0, 0.4, 0)
positionsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
positionsFrame.Parent = playerGui

local dropdownList = Instance.new("UIListLayout", positionsFrame)

local function handleCountrySelection(country)
print("Player selected "..country.." as their country.")

positionsFrame.Visible = false 

end

for _, country in ipairs(playerCountries) do
local countryButton = Instance.new("TextButton")
countryButton.Size = UDim2.new(1, 0, 0.2, 0)
countryButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
countryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
countryButton.TextSize = 20
countryButton.Text = country
countryButton.Parent = positionsFrame

countryButton.MouseButton1Click:Connect(function()
    handleCountrySelection(country) 
end)

end

twilit jungle
sinful kelp
twilit jungle
sinful kelp
#

write your code like in the gif

twilit jungle
#

local playerCountries = {
    "Argentina",
    "Brazil",
    "Germany",
    "France",
    "Italy",
    "Spain",
    
}

local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local positionsFrame = Instance.new("Frame")
positionsFrame.Size = UDim2.new(0.2, 0, 0.2, 0)  
positionsFrame.Position = UDim2.new(0.4, 0, 0.4, 0) 
positionsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)  
positionsFrame.Parent = playerGui

local dropdownList = Instance.new("UIListLayout", positionsFrame)


local function handleCountrySelection(country)
    print("Player selected "..country.." as their country.")
    
    positionsFrame.Visible = false 
end

for _, country in ipairs(playerCountries) do 
    local countryButton = Instance.new("TextButton")
    countryButton.Size = UDim2.new(1, 0, 0.2, 0)
    countryButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
    countryButton.TextColor3 = Color3.fromRGB(255, 255, 255)
    countryButton.TextSize = 20   
    countryButton.Text = country  
    countryButton.Parent = positionsFrame 
    
    countryButton.MouseButton1Click:Connect(function()
        handleCountrySelection(country) 
    end)
end
#

Like this?

sinful kelp
#

yee

#

what do you want help with

twilit jungle
#

How does i work with it

#

Cause i dont really understand

sinful kelp
#

where'd you get it

twilit jungle
#

Someone helped me, its my first time trying gui

#

But can you explain me?

sinful kelp
#

it just creates a drop down list consisting of countries from which the player can choose

#

if the player clicks on any country that frame becomes invisible

#

at least thats what i understood from the script

twilit jungle
#

I runned the game and it didnt show can you help me with that?

sinful kelp
#

yeah because you never enabled it

twilit jungle
#

How i does?

sinful kelp
#

you need to write code to enable that frame (make it visible) through something

twilit jungle
#

I have other code wait

sinful kelp
#

you could use UserInputService to use a key to trigger the frame

twilit jungle
#

Could you help me with that im new to this system

sinful kelp
#

bro its simple UIS input began function

#

have you not learnt scripting

twilit jungle
#

Im dumb asf

sinful kelp
#

so you have not learnt anything

#

i suggest you do that first

twilit jungle
#

If you could help me more its will be thankful , but thank you mate

twilit jungle
sinful kelp
#

then dont make scripts?

twilit jungle
#

Thank you anyway!

sinful kelp
#

Anytime

twilit jungle
#

Wait

red meteorBOT
#

studio** You are now Level 2! **studio

twilit jungle
#

Could you teach me? @sinful kelp the basics ofc

sinful kelp
#

well it takes practice ofc i cant teach you everything in a day

#

but sure

twilit jungle
#

Not in a day

sinful kelp
#

DM me

twilit jungle
#

Ok

#

I did

echo sorrel
#

Learning to script is pain for me