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

Custom Hand to GUI?

Asked by 8 years ago

Hey Guys If You work For DD By DevMusic You Know What I am talking about. If Not ill explain. I have noticed that FM Handto GUIs Dowhat they are supposed to but doesn't ask the player getting the Item if they want it or not. I am attempting to make this here is what I have:

Button = script.Parent
Player = game.Players.LocalPlayer
AskPlayer = script.Parent.Parent.Parent.Parent.AskPlayer --Ask Player Is The Screen that Pops up before it is given

function CheckColor()
    if Button.Position.Y.Offset%40 then
        Button.BackgroundTransparency = 0.5
    else
        Button.BackgroundTransparency = 1
    end
end
CheckColor()

Button.MouseButton1Down:connect(function()
    CheckColor() repeat wait() until Player.Character
    for i,v in ipairs(Player.Character:GetChildren()) do if v:IsA("Tool") then Tool = v break end end
    if Tool == nil or game.Players:FindFirstChild(Button.Text) == nil then return end
    if game.Players[Button.Text].Character then
        Tool.Parent = game.Players[Button.Text].Character
    else

        Tool.Parent = game.Players[Button.Text].Backpack
    end
end)

The AskPlayer Screen Looks Like this: http://prntscr.com/84s7ln

Sp how do I finish this up?

Answer this question