You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want the Billboard GUIs are displayed again.
What is the issue? Include screenshots / videos if possible!
Hello fellow devs!
I am currently releasing Samurai Era
where you can save Luck in addition to the local currency.
Basically you can gain Luck through good behaviors while lose it through bad behaviors.
For that, I made a billboard GUI with Text Label to show Luck amount got or lost,
supposed to be shown a little above a player’s head.
And I made a module script named Player Effect to show this billboard GUI and
change Luck values in player’s Leaderstats.
Just until recently, it worked fine. But just several days ago it suddenly stopped working.
Now the billboards are never be displayed above players.
the module script is as follows:
local RS = script.Parent
local effects = RS.Effects
local givenLuckAmountDisplay = effects.GivenLuckAmountDisplay
local plusLuckSound = effects.Sounds.PlusLuck
local minusLuckSound = effects.Sounds.MinusLuck
--Display given luck amount on players
local PlayerEffect = {}
function PlayerEffect.GivenLuckAmountDisplay (player, value)
local clonedGivenLuckAmountDisplay = givenLuckAmountDisplay:Clone()
if value < 0 then
minusLuckSound:Play()
clonedGivenLuckAmountDisplay.TextLabel.TextColor3 = Color3.new(255,0,0)
clonedGivenLuckAmountDisplay.Parent = player:WaitForChild("Character"):WaitForChild("Humanoid").RootPart
clonedGivenLuckAmountDisplay.TextLabel.Text = "Bad Manner "..tostring(value)
else
plusLuckSound:Play()
clonedGivenLuckAmountDisplay.TextLabel.TextColor3 = Color3.new(0, 1, 0)
clonedGivenLuckAmountDisplay.Parent = player:WaitForChild("Character"):WaitForChild("Humanoid").RootPart
clonedGivenLuckAmountDisplay.TextLabel.Text = "+ "..tostring(value)
end
local luck = player.leaderstats.Luck
luck.Value = luck.Value + value
wait(2)
clonedGivenLuckAmountDisplay:Destroy()
end
return PlayerEffect
Ok two things it could be. It could be because you have a table named Player Effects and you are calling a module script named Player Effect. The second (and most likely) Make a variable and require the script like this local plrEffects = require.PlayerEffects.GivenLuckAmountDisplay
Thank you for your reply.
There is no error message for it,
but the texts on billboard GUIs is no longer shown
when I call the function on the module script from local scripts.
Now I remember what I did for the experience recently, which is the age filter.
I set the age filter according to the announcement by ROBLOX on Dev Forum.
Is this setting related to this problem?
Does anyone know of it?
I partly solved the problem by removing WaitForChild from the module script.
That is:
player:WaitForChild(“Character”):WaitForChild(“Head”) →
player.Character.Head
However, one problem still persists.
I wanna make Donate and Pray system for the shrine in the experience,
where if a player donate 5 R$, a series of pray animations are played and
at the end some Luck is given to the player.
So far, the animations are played properly, but at the end of animations,
the billboard GUI text is not shown.