Here is what I have tried:
local timeToStart = 1591052400
local timeToStop = 1591052450
function liveEvent()
local Sword = game.ReplicatedStorage.Sword
sword.Parent = game.Players.LocalPlayer.Backpack
end
while wait(1) do
local timeNow = os.time()
if timeNow >= timeToStop then
break
end
if timeNow >= timeToStart then
print "Start the Live Event"
liveEvent()
break
else
print("Time till live event: "..(timeToStart-timeNow).." seconds")
end
end
The Live Event script works fine, but the problem is that it needs to be in a Server Script and i can not use LocalPlayer in a Server Script. How could I give the Sword to all of the players? Thanks!
