local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local part = workspace:WaitForChild("ProximityPart")
local gui = part:WaitForChild("OpenBillboard")
local label = gui:WaitForChild("TextLabel")
local maxDistance = 10
local fadeSpeed = 0.1
local updateRate = 0.05
local isVisible = false
local function fade(toTransparency)
while math.abs(label.TextTransparency - toTransparency) > 0.01 do
label.TextTransparency = label.TextTransparency + (toTransparency - label.TextTransparency) * fadeSpeed
wait(updateRate)
end
label.TextTransparency = toTransparency
end
label.TextTransparency = 1
label.Visible = false
while true do
local distance = (hrp.Position - part.Position).Magnitude
if distance <= maxDistance and not isVisible then
isVisible = true
label.Visible = true
fade(0)
elseif distance > maxDistance and isVisible then
isVisible = false
fade(1)
label.Visible = false
end
wait(updateRate)
end
#why is it not working
1 messages · Page 1 of 1 (latest)
local scripts in starterplayers cant operate in workspace
where di u copy paste the code from?
studio?
thex can XD it wokes now
???
** You are now Level 5! **
i got it