Bought a setup online, since I don't know how to code for roblox just yet. Getting no support from who I bought from.
The upgrades gui doesn't pop up, and it seems like there's no detection at all.
The shop gui works:
local shopP = game.Workspace:WaitForChild(`OpenShop`)
shopP.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
if debounce == false and humanoid and humanoid:IsA("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
if player and player == game.Players.LocalPlayer then
if shopV.Value == false then
shopV.Value = true
end
end
end
end)
Yet the upgrades Gui doesn't. None of the debugs get sent at all.
local upgP = game.Workspace:WaitForChild(`OpenUpgrades`)
upgP.Touched:Connect(function(hit)
print("1")
local character = hit.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
if debounce == false and humanoid and humanoid:IsA("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
print("2")
if player and player == game.Players.LocalPlayer then
local leaderstats = player:FindFirstChild("Lands")
print("3")
if leaderstats then
local boolValue = leaderstats:FindFirstChild("Desert")
print("4")
if boolValue and boolValue.Value == true then
print("5")
if UpgV.Value == false then
print("6")
UpgV.Value = true
end
else
print("7")
if canPrintMessage then
module.Pop.Local(
"You shouldn't be here!",
Color3.new(1, 0.160784, 0.160784),
5,
{"Drop", "Shrink"},
nil
)
canPrintMessage = false
wait(3)
canPrintMessage = true
end
end
else
print("Leaderstats not found.")
end
end
end
end)
I can find OpenUpgrades and OpenShop just fine in the Workspace, and touch is enabled, plus the outline of the location shows in the correct place.
** You are now Level 2! **
