generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to make a VIP Overhead GUI

Previous Thread :: Next Thread 
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 02:28 PM
This is what I have:

local id = 404834756


game.Players.PlayerAdded:connect(function(player)
if Game:GetService("GamePassService"):PlayerHasPass(player, id) then
local gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
local text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=378824053"
text.Size=UDim2.new(1.25,0,1.25,0)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
else
print("User is not VIP")
end
end)




--I want to make it so that if a user owns a gamepass, the id at the top, it makes the gui over their head. It was originally used for group id. I want to use it for the gamepass. Here is the code for the original version:

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer:IsInGroup(GROUP ID HERE) then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=DECAL ID HERE"
text.Size=UDim2.new(1.25,0,1.25,0)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)



Thanks!

THIS IS URGENT!
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 02:33 PM
Bump 1

Please help!
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 02:38 PM
Bump 2

This is urgent, I don't mean to be over-bumping, but no one is even looking at the thread.
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 02:43 PM
Ugh,

Bump 3.
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 02:48 PM
day 34523. still no response.

starting to lose hope.

bump 4
Report Abuse
xshot23 is not online. xshot23
Joined: 17 Oct 2014
Total Posts: 4873
27 Apr 2016 03:04 PM
this is all im giving u

wait()
local Adjustment = Vector2.new(15, 10)
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.Character:wait()



local function CreateNameTag(Head)
local Adornee = Head:Clone()
Adornee:ClearAllChildren()
Adornee.Transparency = 1

local BillboardGui = Instance.new("BillboardGui", Adornee)
BillboardGui.Size = UDim2.new(1, 0, 1, 0)
BillboardGui.StudsOffset = Vector3.new(0, 3, 0)

local Frame = Instance.new("Frame", BillboardGui)
Frame.Size = UDim2.new(1, 0, 1, 0)
Frame.BackgroundTransparency = 1

local image = Instance.new("ImageLabel",Frame)
image.Image = "rbxassetid://404898172"
image.Size = UDim2.new(Adjustment.X, 0, Adjustment.Y, 0) + UDim2.new(10,5)
image.Position = UDim2.new((1 - Adjustment.X)/2, 0, (1 - Adjustment.Y)/2)
image.BackgroundTransparency = 1
image.Rotation = .1


return Adornee, image
end

script.Parent.Activated:connect(function()
local mouse = plr:GetMouse()

local Head = char:WaitForChild("Head")
local Adornee, image = CreateNameTag(Head)

local p = Instance.new("Part",game.Workspace)
p.Position = mouse.Hit.p
p.Transparency = 1
p.CanCollide = false
--p.Anchored = true


Adornee.Parent = p
local Joint = Instance.new("Weld")
Joint.Part0 = p
Joint.Part1 = Adornee
Joint.Parent = game.JointsService

local sp = script.Parent.Handle.Ripple:Clone()
sp.Parent = image
sp.Disabled = false

end)


http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$79 Tx0 (づ ゚ ³ ゚)づ
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 03:07 PM
Thanks for your time and effort, but how does this help. It has nothing to do with gamepass service or the decal that I want to display... The problem that I had wasn't with the script itself it was with GamePass Service. I have also tried MarketplaceService and that doesn't seem to help either. Please, someone help me!
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 03:13 PM
Bump
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 03:22 PM
Bump
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
27 Apr 2016 03:26 PM
day 74325020 still no valid response


getting hungry

its cold out here


no, but for real. Someone please reply!
Report Abuse
PvPParasite is not online. PvPParasite
Joined: 23 Apr 2016
Total Posts: 18
09 Sep 2017 10:28 AM
I really just need something that if you have a gamepass, it displays a text above you head. Like "VIP"
Report Abuse
AlvinBLOXX is not online. AlvinBLOXX
Joined: 22 Feb 2011
Total Posts: 1557
09 Sep 2017 10:49 AM
Use AlvinBlox's Overhead GUI Tutorial on YouTube for free;
https://www.youtube.com/watch?v=-MsFqGCtn2k


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image