Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Anybody help why wont this work?

Asked by
iLegitus 130
10 years ago
Player = game.Players.LocalPlayer
Menu = script.Parent
BackupDrive = math.huge
mouse = Player:GetMouse()

function onClicked()
    if BackupDrive > 0 then
    x = script.Parent.StoredMenu:clone()
    x.Parent = Player.PlayerGui
end
end



Menu.Activated:connect(onClicked)

Supposingly wont work...Its in a tool,With localScript and the StoredMenu is inside the tool. Help out please!

1 answer

Log in to vote
0
Answered by 10 years ago

Try using a high number instead of math.huge, I'm not sure why, but I've had a problem with this too.

Ad

Answer this question