By the way if you want the text to be bigger, set TextScaled to true in the TextLabel.
Do any of you know how to do like a 10X time zone code?
So everything is fine now
Thank you and thank you flkfv!
Do any of you know how to do like a 10X time zone code?
Can you show the zone so I can get a better understanding of it?
Not 100% sure if this will work, or if this is accurate, but we’ll see how it goes:
-
Create a part, anchor it, set CanCollide to false, set the transparency to 1.
-
Position and scale the part to where the zone is, make it slightly higher so that when the player jumps they are still in the ‘zone’.
-
Add a script into the part:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local character = hit.Parent
local multiplier = Instance.new("IntValue",character)
multiplier.Name = "Multiplier"
multiplier.Value = 10
end
end)
script.Parent.TouchEnded:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local character = hit.Parent
character.Multiplier.Value = 1
end
end)
- In TimeScript, change:
To:
local multiplier = character:WaitForChild("Multiplier")
while not hasDied and not CheckSpawnRegion() do
timeAlive.Value += multiplier.Value
If it doesn’t work or you have any issues, I’m afraid I can’t respond to them now as I have to go right now, when I return I will.
Also, if this worked mark it as a solution.
local character = script.Parent
local player = game.Players:GetPlayerFromCharacter(character)
player.leaderstats.Stat:GetPropertyChangedSignal("Value"):Connect(function()
overheadgui.Label.TextLabel = player.leaderstats.Stat.Value
end)
This is pretty simple to set up. Put it in StarterCharacterScripts and add a variable for the overheadgui.
this function only works when local player joins