--this is a script at serverscriptservice local app1 = script.Parent.appselectionbgbox.a1 local app2 = script.Parent.appselectionbgbox.a2 local appsbgbox = script.Parent.appselectionbgbox local showTGuiRemote = game:GetService("ReplicatedStorage").showTraineeGui local player = game:GetService("Players").LocalPlayer local traineegui = nil local cquestiongui = nil function getTraineeGui() appsbgbox:TweenPosition(UDim2.new(0.5, 0,-0.5, 0), "Out", "Back", 1.25) wait(1.25) appsbgbox:Destroy() showTGuiRemote:FireServer("ac73bX325") traineegui = script.Parent:WaitForChild("traineebgbox") if traineegui.currentQuestion == 1 then cquestiongui = game:GetService("ReplicatedStorage"):WaitForChild("showQuestion") cquestiongui:FireServer(1, "zbgyz7mia") end end app1.MouseButton1Click:Connect(getTraineeGui)
-- this is a modulescript, also at serverscriptservice local tai = {} tai.questions = { q1 = "Who currently owns Imperial Hotel's and resorts?", q2 = "Who currently co-own's Imperial Hotel's and resorts?", q3 = "What is the correct greeting?", q4 = "How do you get a job?", q5 = "If you see someone breaking a rule, what would you do?", q6 = "How active are You on a scale from 1-10?", q7 = "How good is your grammar on a scale from 1-10?", q8 = "If You see an exploiter, what would You do?", q9 = "Will you recommend our Discard? You can find it in the group description." } tai.aq1 = { a1 = "realasherplayz", a2 = "gamerangelic", a3 = "XxYoUnG_HaMbUrGeRxX", a4 = "ThecreateorofIH" } tai.aq2 = { a1 = "XxYoUnG_HaMbUrGeRxX", a2 = "Commissioner_Lego", a3 = "MRCOOOL", a4 = "gamerangelic", a5 = "ItsMrReals" } tai.aq3 = { a1 = "hi can i hlp u.", a2 = "hey welcome to imperial hotel tm how can i help you?", a3 = "Hi! Welcome to Imperial Hotel's and resorts. How may I help You?" } tai.aq4 = { a1 = "Spam an HR to promote you.", a2 = "Hack Roblox and rank yourself", a3 = "I will attend a training session and try to pass it. Trainings are posted on dizzy and group shout." } tai.aq5 = { a1 = "Call an HR+", a2 = "Yell at them", a3 = "Ignore them", a4 = "Tell them to stop" } tai.aq8 = { a1 = 'Spam "HR EXPLOITER BAN HIM PLS"', a2 = "Kick everyone", a3 = "Tell him to leave", a4 = "Go to the dizzy or group wall and tell an MR+", a5 = "Ask the exploiter if you can be friends." } tai.aq9 = { a1 = "Yes, I will recommend.", a2 = "Maybe later." } return tai
--this is another script (every script and module script on my game is in server script service) local tai = require(game:GetService("ServerScriptService"):WaitForChild("moduleTraineeAppInfo")) local remote = game:GetService("ReplicatedStorage"):WaitForChild("showQuestion") remote.OnServerEvent:Connect(function(player, question, code) if code == "zbgyz7mia" then if question == 1 then print(tai.questions["q1"]) end end end) --player.PlayerGui.appCenter.bg.traineebgbox.question.text
--and this is also a script local remote = game.ReplicatedStorage:WaitForChild("showTraineeGui") local gui = game:GetService("ServerStorage").traineebgbox local clonegui = nil local showQuestion = Instance.new("RemoteEvent", game:GetService("ServerStorage")) remote.OnServerEvent:Connect(function(player, code) if code == "ac73bX325" then clonegui = gui:Clone() clonegui.Parent = player.PlayerGui.appCenter.bg clonegui:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "In", "Back", 1.25) showQuestion.Parent = game:GetService("ReplicatedStorage") showQuestion.Name = "showQuestion" else player:Kick("Unauthorized remote firing.") end end)
Gui opens, no errors however it doesn't even print the question from module script, that means that something doesn't work and I have no clue why... I've spent 5 hours on these scripts, if someone is bored and would want to help, then i would greatfully appreciate it...
Ok I fixed, the remote didnt fire because i forgot to add .Value on a numbervalue