You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve?
- I want this remote event to be fired but not pause the rest of the code
- What is the issue?
- the code keeps pausing at line 18, as it does fire the remote event but it refuses to do anything further
--Variables
local rep = game:GetService("ReplicatedStorage")
local EventTime = rep.EventTime
local IntermissionTimeEvent = rep.IntermissionTimeEvent
local lighting = game:GetService("Lighting")
local EventStorage = lighting.RandomEvents:GetChildren()
local GUI = game:GetService("StarterGui").RoundTwist
local SpecialEventRoundGUIShower = rep.SpecialEventRoundGUIShower
local SpecialEventRoundGUIHider = rep.SpecialEventRoundGUIHider
--PickingRandomEvent
while true do
wait(IntermissionTimeEvent.Value)
local EventChosen = EventStorage[math.random(1, #EventStorage)]
print(EventChosen)
EventChosen.Parent = game.Workspace
GUI.Enabled = true
SpecialEventRoundGUIShower:FireClient() --Heres the error
wait(EventTime.Value)
SpecialEventRoundGUIHider:FireClient()
GUI.Enabled = false
EventChosen.Parent = game.Lighting.RandomEvents
end
Extra Images