#gggrggg

91 messages · Page 1 of 1 (latest)

pseudo lagoon
#
local storage = game:GetService("ServerStorage")

script.Parent.Touched:Connect(function(Toucher)
    if Toucher.Parent.Parent.Parent == workspace.Provinces then
        local province = Toucher.Parent.GetChildren()

        province.brickcolor = storage.countries:FindFirstChild(script.Parent.Parent.Owner.Name).color.value
        Toucher.Parent.Owner.value = script.Parent.Parent.Owner.Value
    end
end)
#

im just reformatting to read

odd venture
#

thanks

pseudo lagoon
#

Did you know that

#

a folder is not a physical object

#

and you can't "touch" a folder

odd venture
#

the script parent parent

#

wait

pseudo lagoon
#

From what i see

#

Oh

#

1 thing to note

#

if you use

#

.parent.parent.parent.parent

#

its hard to keep track fo things

#

and also don't store stuff in server storage

#

store it in replicated storage

#

let me make a concept for you

odd venture
pseudo lagoon
#

im gonna script it out all again

#

with the same foldesr adn stuff

odd venture
#

there are multiple parts inside the foler

pseudo lagoon
#

i only need 1 part to test it

odd venture
#

ok

pseudo lagoon
#

where is your script

#

located

odd venture
#

inside humanoid root part

vernal condorBOT
#

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

odd venture
#

i only have 1 script made

pseudo lagoon
#

thats not skibidi

#

first thing im gonna do is this

odd venture
pseudo lagoon
#

Thats not good

#

Thats not optimal*

odd venture
#

ok

pseudo lagoon
#

so in the folder

#

u make 2 scripts

#

the one that has the tocuching

#

disable it

#

and in the enabled one do this

odd venture
#

not in the part

pseudo lagoon
#

I know

#

And i dont want it to be in the dummy

#

because its more efficient this way

odd venture
#

ohh

#

its much better

pseudo lagoon
#

what it does

#

u have 1 script

#

but it duplicates it

#

multiple times

#

so that its in eveyr aprt

#

every part

odd venture
#

no wait

#

in one province there is multiple parts

#

and if the dummy touches one of these parts then all the parts get colored

pseudo lagoon
#

just adjust it accordingly

vernal condorBOT
#

studio** You are now Level 9! **studio

pseudo lagoon
#

your job is to make it work the way that you specifically want it to be

#

my job is to give you the right concept/generalised script

#

also

#

u dont even need to put the brickcolor value in storage

#

just define it

#

in the script

odd venture
#

u dont get what game im making

#

im making a war game

#

where you play as a country and conquer others

pseudo lagoon
#

it doesnt matter what its about

#

you still have to make it sepficailly

#

also ehre the video

odd venture
#

no but the dummy grabs the color of their owner and changes to that color the province

pseudo lagoon
odd venture
#

if there are 2 dummies with different owners they cant just give the same color

pseudo lagoon
#

its like im being comissioned here buddy

#

im making it entirely for you at this point

odd venture
#

ok sorry

#

ill do it in my own

#

gggrggg

pseudo lagoon
#
local rp = game:GetService("ReplicatedStorage")

local part = script.Parent

part.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
        part.BrickColor = player.TeamColor
    end
end)```
#

@odd venture

odd venture
#

nope nope

pseudo lagoon
pseudo lagoon
#

u wanted it

#

to be the team colour

pale mist
pseudo lagoon