i want it to print the thing u typed NOT “a”
for e.g
i typed 50
it prints 50
but if i type a it prints nil
local haki = {}
local frame = script.Parent.Parent
local textbutton = frame:WaitForChild("TextButton")
local box = frame:WaitForChild("TextBox")
textbutton.MouseButton1Click:Connect(function()
if box.Text ~= "a" then
print("nil")
else
haki = box.Text
print(haki)
end
end)
local haki
local frame = script.Parent.Parent
local textbutton = frame:WaitForChild("TextButton")
local box = frame:WaitForChild("TextBox")
textbutton.MouseButton1Click:Connect(function()
if string.len(box.Text) == 0 then
print("nil")
else
haki = box.Text
print(haki)
end
end)
if you watched one piece then
im trying to make haki resistant
if you dont watch one piece then
im trying to make a power thing
so if your power is 50 or more then you can withstand the power that the other player used