Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to have a GUI go behind a player ?

I am creating a Dragon Ball Z Game and I am trying to place a frame behind the player using Zindex but it doesn't seem to work. Could I assign a ZIndex to a local player ? The purpose of this is to create the transformation look like in raging blast 2 for anyone who is familiar with that game.

I have a GUI following with a text button and a script

-- Created by TheSkyCloud -- When Kaioken is clicked you transform similarly to Dragon Ball Raging Blast 2. button = script.Parent -- kaioken button -- Local player is retreived player = game.Players.LocalPlayer

-- Onclicked they transform into Kaioken function onClick()

local screenGui = Instance.new("ScreenGui") screenGui.Parent = script.Parent

-- Create Frame local frame = Instance.new("Frame") frame.Parent = screenGui -- Center Frame frame.Position = UDim2.new(0, 0, 0, 0) frame.Size = UDim2.new(1, 0, 1, 0) frame.Transparency = 0.1 frame.ZIndex = 1

end

button.MouseButton1Click:connect(onClick)

1 comment

0

Use a surface gui or a billboard gui.

1 answer

✓ Accepted answer

billboardgui

1 comment

0

I checked on the wiki, and it sounds perfect so far to me. Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.