0% found this document useful (0 votes)
19 views2 pages

Dex Explorer - Lua

This script creates a GUI in a game that allows players to update and display the weights of various fruits with visual effects. It utilizes tweens to create a rainbow color effect on the labels of fruits that meet certain criteria. The script also manages the display of these weights dynamically based on the fruit's properties in the game environment.

Uploaded by

xgigaba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Dex Explorer - Lua

This script creates a GUI in a game that allows players to update and display the weights of various fruits with visual effects. It utilizes tweens to create a rainbow color effect on the labels of fruits that meet certain criteria. The script also manages the display of these weights dynamically based on the fruit's properties in the game environment.

Uploaded by

xgigaba
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[[

WARNING: Heads up! This script has not been verified. Use at your own risk!
]]
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local fruitNames = {"apple","cactus","candy blossom","coconut","dragon
fruit","easter egg","grape","mango","peach","pineapple","blue berry"}
local activeTweens = {}

local function createRainbowTween(label)


local colors =
{[Link](1,0,0),[Link](1,0.5,0),[Link](1,1,0),[Link](0,1,0),Color3.n
ew(0,0,1),[Link](0.5,0,1),[Link](1,0,1)}
local tweenInfo = [Link](1,[Link])
if activeTweens[label] then activeTweens[label]:Cancel(); activeTweens[label]=nil
end
spawn(function()
while true do
for _,c in ipairs(colors) do
local tw = TweenService:Create(label,tweenInfo,{TextColor3=c})
activeTweens[label]=tw; tw:Play(); [Link]:Wait()
end
end
end)
end

local function updateFruits()


for _,fruit in pairs(workspace:GetDescendants()) do
if [Link](fruitNames,[Link]:lower()) then
local w=fruit:FindFirstChild("Weight")
local v=fruit:FindFirstChild("Variant")
if w and w:IsA("NumberValue") then
local val=[Link]([Link])
local var=(v and v:IsA("StringValue") and [Link]) or "Normal"
local show=([Link]:lower()=="blue berry") or var=="Gold" or
var=="Rainbow" or [Link]>20
local col=(var=="Gold" and [Link](1,1,0)) or [Link](0,0,1)
if show then
local bb=fruit:FindFirstChild("WeightDisplay")
local md=50+(val*2)
if not bb then
bb=[Link]("BillboardGui"); [Link]="WeightDisplay";
[Link]=fruit
[Link]=fruit; [Link]=[Link](0,100,0,50); [Link]=md;
[Link]=[Link](0,2,0); [Link]=true
local fr=[Link]("Frame"); [Link]=bb;
[Link]=[Link](1,0,1,0); [Link]=1
local sl=[Link]("TextLabel"); [Link]="ShadowLabel";
[Link]=fr; [Link]=[Link](0,2,0,2)
[Link]=[Link](1,-2,0.7,-2); [Link]=1;
sl.TextColor3=[Link](0.5,0.5,0.5)
[Link]=true; [Link]=tostring(val)
local ml=[Link]("TextLabel"); [Link]="MainLabel"; [Link]=fr;
[Link]=[Link](0,0,0,0)
[Link]=[Link](1,0,0.7,0); [Link]=1;
ml.TextColor3=col; [Link]=true; [Link]=tostring(val)
local vl=[Link]("TextLabel"); [Link]="VariantLabel";
[Link]=fr; [Link]=[Link](0,0,0.7,0)
[Link]=[Link](1,0,0.3,0); [Link]=1;
vl.TextColor3=col
[Link]=true; [Link]=var~="Normal" and var or ""
[Link]:Connect(function() if activeTweens[ml] then
activeTweens[ml]:Cancel() end if activeTweens[vl] then activeTweens[vl]:Cancel()
end end)
if var=="Rainbow" then createRainbowTween(ml); createRainbowTween(vl)
end
else
[Link]=md
end
else
local bb=fruit:FindFirstChild("WeightDisplay")
if bb then bb:Destroy() end
end
end
end
end
end

local gui=[Link]("ScreenGui",[Link])
local btn=[Link]("TextButton",gui)
[Link]=[Link](0,50,0,50); [Link]=[Link](0,10,0,10);
btn.BackgroundColor3=[Link](0,0,1); [Link]=""
btn.MouseButton1Click:Connect(updateFruits)
updateFruits()

You might also like