Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does nothing happen after the remote is fired?

Asked by
hopup 15
6 years ago

Localscript(Placed in StarterPlayerScripts)

1local rs = game:GetService("ReplicatedStorage")
2local ranking = rs:WaitForChild("Ranking")
3local plr = game.Players.LocalPlayer
4plr.CharacterAdded:Connect(function(char)
5ranking:FireServer()
6print("Fired")
7 
8end)

Script (Placed in ServerScriptService

01local rs = game:GetService("ReplicatedStorage")
02local ranking = rs:WaitForChild("Ranking")
03wait(1)
04ranking.OnServerEvent:connect(function(player)
05 
06if not player then
07warn("an error occured fetching the player")
08end
09wait(1)
10local groupService = game:GetService('GroupService')
11local groups = groupService:GetGroupsAsync(player.UserId)
12    local ui = script.Rank:Clone()
13    ui.Parent = player.Character
14    ui.Adornee = player.Character.Head
15 
View all 29 lines...

ModuleScript(Child of the Script)

01local ranks = {"President",
02"Assistant Manager",
03"Vice President",
04"Corporate Officer",
05"General Manager",
06"Supervisor",
07"Intern",
08"Head Team Member",
09"Professional Team Member",
10"Senior Team Member",
11"Team Member",
12"Junior Team Member",
13"Trainee",
14"Business Partner",
15"Former Executive",
16"Gold Customer",
17"Premium Customer",
18"Customer"}
19return ranks

The gui doesn't show up above the players head, there are no errors in the output and the remote has fired correctly.

0
could you change the or's to elseif and then paste code in between? Example if ranks[1] == ranks[2] then --code elseif greatneil80 2647 — 6y
0
It turned out to be the studio's problem, thank you anyways. hopup 15 — 6y

Answer this question