So, 2nd post of the day working on a game and I’m trying to figure out how to change the text of my GUI to tell the player the story and what the objective is.
I looked up why my current attempt isn’t working and apparently I can’t use starter GUI and instead the GUI “folder” inside of the player but I don’t know how to do that. I hope to keep it into one script since the events are staged in it.
local spawner = game.Workspace.Game.NPCs.City_Battle.Wave_One.Spawner.CFrame
local chapter = script.Parent
local chapters = chapter.Parent
local sw1 = chapter.SpawnWave1
local sw2 = chapter.SpawnWave2
local sw3 = chapter.SpawnWave3
local sw4 = chapter.SpawnWave4
local endevent = chapter.End
local rs = game:GetService("ReplicatedStorage")
local Match_Status = script.Parent.Parent.Parent.Join_Match.Frame.Match_Status.Text -- Variables for the changing text areas
local Storyboard = script.Parent.Parent.Parent.Storyboard.Frame.Story.Text
local function spawnwave1()
local rope1 = game.Workspace.Game.NPCs.City_Battle.Ropes.Rope1
local rope = game.Workspace.Game.NPCs.City_Battle.Ropes.Rope
-- I attempted to make a local script in starter player scripts so I removed all of the text changer parts of the script
rope.Transparency = 0
wait(1)
rope1.Transparency = 0
wait(1)
chapters.CanJoin.Value = false
chapters.MatchInProgress.Value = true
wait(3)
for count = 1,20,1 do
local fast_hacker = rs.Hackers.Fast_Hacker
local fasthackerclone = fast_hacker["Drooling Zombie"]:Clone()
local humrootpart = fasthackerclone:WaitForChild("HumanoidRootPart")
local cframe = game.Workspace.Game.NPCs.City_Battle.Wave_One.Spawner.CFrame
humrootpart.CFrame = cframe
fasthackerclone.Parent = game.Workspace.Game.NPCs.City_Battle
humrootpart.Anchored = false
wait(90)
end
chapters.CanJoin.Value = true
chapters.MatchInProgress.Value = false
wait(15)
chapters.CanJoin.Value = false
chapters.MatchInProgress.Value = true
end
local function spawnwave2()
print("Spawnwave2")
end
local function spawnwave3()
print("Spawnwave3")
end
local function spawnwave4()
print("Spawnwave4")
end
local function endchapter()
print("End Of Chapter.")
end
sw1.OnServerEvent:Connect(spawnwave1)
sw2.OnServerEvent:Connect(spawnwave2)
sw3.OnServerEvent:Connect(spawnwave3)
sw3.OnServerEvent:Connect(spawnwave4)
sw3.OnServerEvent:Connect(endchapter)
I would appreciate if someone could figure it out.
Thanks,
– Luke