-
What do you want to achieve? I want my RemoteEvent to Fire when the script goes through.
-
What is the issue? The issue is the script isn’t firing but there are no errors in the output. Here’s my LocalScript which “says” what the event is supposed to do.
game.ReplicatedStorage.Events.HelpEvent.OnServerEvent:Connect(function(Player)
local userId = Player.UserId
local HelpGui = script.HelpFrame:Clone()
HelpGui.Name = Player.Name
HelpGui.Parent = Player.PlayerGui.Waiting
HelpGui.Visible = false
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size100x100
local content, isReady = game.Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
-- Profile Script
HelpGui.HelpFrame.PlayerIcon.Image = content
-- Player Name Script
HelpGui.HelpFrame.PlayerName.Text = Player.Name
end)
And here’s my Script that fires the event.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if string.find(message, "!help") then
local HelpEvent = game.ReplicatedStorage.Events.HelpEvent
HelpEvent:FireServer()
end
end)
if player:GetRankInGroup(12556758) >= 8 then
local PeopleWhoNeedHelp = player:WaitForChild("PlayerGui").Waiting:GetChildren()
PeopleWhoNeedHelp.Parent = player.PlayerGui.HelpGui.Scroll
end
end)
- What solutions have you tried so far? I haven’t seen any solutions for this although, I have a feeling it has something do with the way I called the Player in the Script. If anyone knows the issue please let me know.