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

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

Asked by 8 years ago

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)

0
Use a surface gui or a billboard gui. Perci1 4988 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

billboardgui

0
I checked on the wiki, and it sounds perfect so far to me. Thanks TechProdigy 20 — 8y
Ad

Answer this question