Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

So I wanted to make a Christmas Event.. Why it doesn't work?

The music is playing but the messages won't show in the chat. SystemAlert is in ReplicatedStorage.

game.ReplicatedStorage.SystemAlert:FireAllClients("[EVENT]: Christmas!",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(1)
script.ChristmasMusic:Play()
wait(10)
game.ReplicatedStorage.SystemAlert:FireAllClients("It's getting cold..",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(5)
script.SantaSF:Play()
game.ReplicatedStorage.SystemAlert:FireAllClients("Did you hear something?..",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(4)
game.Workspace.Teleportation.Disabled=false
game.ReplicatedStorage.SystemAlert:FireAllClients("It's Santa!",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(2)
game.ReplicatedStorage.SystemAlert:FireAllClients("And we got some presents from him!",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(10)
game.ReplicatedStorage.SystemAlert:FireAllClients("..",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
wait(30)
game.ReplicatedStorage.SystemAlert:FireAllClients("[EVENT] Complete.",
	Color3.new(0,1,0.8),Color3.new(0,0,0),Color3.new(0.2,0,0))
game.Workspace.Teleportation2.Disabled=false
script.ChristmasMusic:Stop()

The teleportation also doesn't work. Script for first teleportation:

local position = -113.5, 2496.5, 5367

function teleport()
	local players = game.Players:GetChildren()
	for i = 1, #players do
		players[i].Character:MoveTo(Vector3.new(position))
	end
end

while true do
	game.Players.PlayersAdded:Connect(function()
		teleport()
	end)
end



6 comments

0

Nothing is shown in console, too.

0

Please show the client script for which you do FireAllClients on.

0

^ I don't have that..

0

I want the chat messages to be server-sided if its possible..

0

I'm assuming you're using ChatMakeSystemMessage which only works client side.

0

Is there a way to make it server-sided? The messages should appear when the script is enabled. I tried to use it but when I enable the script it doesnt work, when its enabled in studio and then i go into game, it works.

1 answer

game.Players.PlayerAdded:Connect(function(player)
    local character = player.Character or player.CharacterAdded:Wait()
    local hrp = character:WaitForChild("HumanoidRootPart")
    hrp.CFrame = CFrame.new(-113.5, 2496.5, 5367)
end)

1 comment

0

not gonna downvote but please delete your answer, this is not how variables work.

This discussion is preserved as it was. New answers, comments, and votes are closed.