#Random events/effects(bunny hop, low gravity, slowed speed, e.t.c
1 messages · Page 1 of 1 (latest)
You could start by showing the script that's supposed to do the work
I deleted it, I crashed out
** You are now Level 1! **
Lmao alr
You could store all of the events as functions in a module script like so:
local Events = {}
Events.BunnyHop = function()
-- code for bunny hop
end
Events.LowGravity = function()
-- code for low gravity
end
-- more events
return Events
Then in another script you can use a loop to start the events like so:
local Events = require(PathToModuleScript)
while task.wait(60) do
local RandomEvent = Events[math.random(1, #Events)]
task.spawn(RandomEvent)
end
goood boy
But the thing is, I need the codes for them. Nothings worked 😭
like the events scripted?
Yeah