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)
billboardgui