#how can i change a parts name twice in a single run?

14 messages · Page 1 of 1 (latest)

frozen whale
#
if script.Parent.TextLabel.Text == "Lunch" then
    workspace.ArrestLocations.ArrestArea.Name = "yomama"
else
    workspace.ArrestLocations.ArrestArea.Name = "ArrestArea"
    end```

i've tried all sorts of different ways to rewrite this, i have tried setting a value to the text i want, and setting the name to that value, but im still unlucky in finding a way to do this... its probably super simple, but i'm an idiot so 💀
upbeat rain
frozen whale
#

example)

frozen whale
#

i updated it to something else but nothing seems to work

upbeat rain
#
part.Name = "Hello"
task.wait(5)
part.Name = "Bye"
```?
frozen whale
#

ill try it but i dont know if that will work

#

i hate my life

#

ok

#

im a dumb ass

#

i really was coming up with these 5 paragraph essays of scripts

#

and bro just did it with 3 lines

#

wheres my damn gun