What is your longest/Most complicated script you ever wrote?
A datastore script, which sadly didn’t end up working correctly but it was worth a try.
OOF. But Yeah we all start with Difficult things and learn.
I don’t really have a longest script as of yet as I don’t script as much, I am more specialized with building, but most of my scripts tend to be small scripts for the basics and so the game can just function, all other scripts are made from other creators such as wind_o or r_r.
The one for the cookie tech anniversary was pretty complex, however I’m working on a secret project with @cam, it’s very complicated…
I’ve heard a lot of mentions about your secret collaboration project, do impress us!
I hope it does, it’s something I’ve never seen done before.
Same - something I’ve always wanted to do but I was never able to complete, now we’re getting closer and closer.
As we do so, the scripts are getting pretty long… I’m really hoping we don’t get a random error.
for my cafes update center…
It actually worked lol.
Here is the script.
local aaa = script.Parent
local message = script.Parent.Parent.Message
local timea = message.Top.Time
local player = game.Players.LocalPlayer
aaa.Text = "1:00"
wait(1)
aaa.Text = "0:59"
wait(1)
aaa.Text = "0:58"
wait(1)
aaa.Text = "0:57"
wait(1)
aaa.Text = "0:56"
wait(1)
aaa.Text = "0:55"
wait(1)
aaa.Text = "0:54"
wait(1)
aaa.Text = "0:53"
wait(1)
aaa.Text = "0:52"
wait(1)
aaa.Text = "0:51"
wait(1)
aaa.Text = "0:50"
wait(1)
aaa.Text = "0:49"
wait(1)
aaa.Text = "0:48"
wait(1)
aaa.Text = "0:47"
wait(1)
aaa.Text = "0:46"
wait(1)
aaa.Text = "0:45"
wait(1)
aaa.Text = "0:44"
wait(1)
aaa.Text = "0:43"
wait(1)
aaa.Text = "0:42"
wait(1)
aaa.Text = "0:41"
wait(1)
aaa.Text = "0:40"
wait(1)
aaa.Text = "0:39"
wait(1)
aaa.Text = "0:38"
wait(1)
aaa.Text = "0:37"
wait(1)
aaa.Text = "0:36"
wait(1)
aaa.Text = "0:35"
wait(1)
aaa.Text = "0:34"
wait(1)
aaa.Text = "0:33"
wait(1)
aaa.Text = "0:32"
wait(1)
aaa.Text = "0:31"
wait(1)
aaa.Text = "0:30"
wait(1)
aaa.Text = "0:29"
wait(1)
aaa.Text = "0:28"
wait(1)
aaa.Text = "0:27"
wait(1)
aaa.Text = "0:26"
wait(1)
aaa.Text = "0:25"
wait(1)
aaa.Text = "0:24"
wait(1)
aaa.Text = "0:23"
wait(1)
aaa.Text = "0:22"
wait(1)
aaa.Text = "0:21"
wait(1)
aaa.Text = "0:20"
wait(1)
aaa.Text = "0:19"
wait(1)
aaa.Text = "0:18"
wait(1)
aaa.Text = "0:17"
wait(1)
aaa.Text = "0:16"
wait(1)
aaa.Text = "0:15"
wait(1)
aaa.Text = "0:14"
wait(1)
aaa.Text = "0:13"
wait(1)
aaa.Text = "0:12"
wait(1)
aaa.Text = "0:11"
wait(1)
aaa.Text = "0:10"
wait(1)
aaa.Text = "0:09"
wait(1)
aaa.Text = "0:08"
wait(1)
aaa.Text = "0:07"
wait(1)
aaa.Text = "0:06"
wait(1)
aaa.Text = "0:05"
wait(1)
aaa.Text = "0:04"
wait(1)
aaa.Text = "0:03"
wait(1)
aaa.Text = "0:02"
wait(1)
aaa.Text = "0:01"
wait(5)
message.Visible = true
wait(1)
timea.Text = "9s"
wait(1)
timea.Text = "8s"
wait(1)
timea.Text = "7s"
wait(1)
timea.Text = "6s"
wait(1)
timea.Text = "5s"
wait(1)
timea.Text = "4s"
wait(1)
timea.Text = "3s"
wait(1)
timea.Text = "2s"
wait(1)
timea.Text = "1s"
wait(1)
-- makes it invisible lol
message.Visible = false
-- im here to save the day
local tpservice = game:GetService("TeleportService")
local gameid = 8943223018
tpservice:Teleport(gameid, player)
ignore the comments i wrote ok??
also, i am good at scripting and wrote like 1 million lines of code lol
That’s really inefficient & unnecessary… but my first codes looked like that too.
Yeah, I really need to tidy it up.
Yeh, no, that is horrific.
local aaa = script.Parent
local message = script.Parent.Parent.Message
local timea = message.Top.Time
local player = game.Players.LocalPlayer
local Countdown = 30
while wait(1) do:
Countdown = Countdown -1
aaa.Text = Countdown
if Countdown == 0 then
break
This code isn’t perfect & it’s not the most efficient but it’s better then before.
Why thank you cookie! I am really happy about that