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: Halp, my script doesn't seem to work.

Previous Thread :: Next Thread 
iChaboyy is online. iChaboyy
Joined: 19 Dec 2012
Total Posts: 121
14 Sep 2016 02:10 AM
Alright, so I've made this script for a custom chat ive made for one of my games (Vip color id is not done yet) And uh, it doesn't seem to work and the chat text doesnt seem to pop up online, so I wondering if I could get some help on this, feel free to visit my game (The Sky Cafe) to prove it :p
Here is the script below. (Note this does involve a screen Gui and a frame)-- iChaboyy --

local vipPass =

function UpdateOldLabels(parent)
for i,v in pairs Parent:GetChildren ()) do
if v.Name:sub(1,4):lower() == "line" then
local Linenumber = v.Name:sub(5)
if Linenumber == "16" then
v:Destroy()
else
v: Name = "line" .. toatring (tonumber(LineNumber) + 1)
v: Position = v.Position - Udim2.New(0,0,15)
end
end
end
end

game.Players.PlayerAdded:connect(function(player)
for _,v in ipairs(game:GetService("Players"):GetChildren ()) do
wait ()
UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame)
if player then
newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame
newchatline.Text = "[Server] " ..Player.Name.. " has joined the server"
newchatline.Size = Udim2.New(1,0,0,20)
newchatline.Position = Udim2.New(0,0,1,-15)
newchatline.Font = "ArialBold"
newchatline.TextStrokeTransparency = 0
newchatline.BackgroundTransparency = 1
newchatline.BorderSizePixel = 0
newchatline.FontSize = "Size14"
newchatline.TextXAlignment = "Left"
newchatline.TextYAlignment = "Top"
newchatline.ClipsDescendants = true
newchatline.Name = "line1"
newchatline.TextColor3 = Color3.new(1, 1, 1)
end
end
elseif game:GetService("GamePassService"):PlayerHasPass(player, vipPass) then
UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame)
newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame
newchatline.Text = "[VIP] "..player.Name.. ": " ..msg
newchatline.Size = UDim2.new(1,0,0,20)
newchatline.Position = UDim2.new(0,0,1,-15)
newchatline.Font = "ArialBold"
newchatline.TextStrokeTransparency = 0
newchatline.BackgroundTransparency = 1
newchatline.BorderSizePixel = 0
newchatline.FontSize = "Size14"
newchatline.TextXAlignment = "Left"
newchatline.TextYAlignment = "Top"
newchatline.ClipsDescendants = true
newchatline.Name = "line1"
newchatline.TextColor3 = Color3.new(1,1,127/255)



UpdateOldLabels(game:GetService("StarterGui").ChatGui.Frame)
newscriptline:Clone().Parent = game:GetService("StaterGui").ChatGui.Frame
player.Chatted:connect(function(msg)
for _,v in ipairs (game:GetService("Players"):GetChildren()) do
UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame)
newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame
newchatline.Text = player.Name.. ": " ..msg
newchatline.Size = UDim2.new(1,0,0,20)
newchatline.Position = UDim2.new(0,0,1,-15)
newchatline.Font = "ArialBold"
newchatline.TextStrokeTransparency = 0
newchatline.BackgroundTransparency = 1
newchatline.BorderSizePixel = 0
newchatline.FontSize = "Size14"
newchatline.TextXAlignment = "Left"
newchatline.TextYAlignment = "Top"
newchatline.ClipsDescendants = true
newchatline.Name = "line1"
newchatline.TextColor3 = Color3.new(1, 1, 1)
end
UpdateOldLabels(game:GetService("StarterGui").ChatGui.Frame
newchatline:Clone().Parent = game:GetService("StarterGui").ChatGui.Frame
end)
end)

Kind Regards,
Chaboyy


Report Abuse
nacker is online. nacker
Joined: 06 Oct 2009
Total Posts: 6034
14 Sep 2016 03:02 AM
jesus
Report Abuse
iChaboyy is online. iChaboyy
Joined: 19 Dec 2012
Total Posts: 121
14 Sep 2016 03:06 AM
Is it all too much for you :p


-- Previously ben9417
Report Abuse
llaserx is not online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
14 Sep 2016 04:13 AM
I dont think u know wut ur doing
Report Abuse
iChaboyy is online. iChaboyy
Joined: 19 Dec 2012
Total Posts: 121
14 Sep 2016 04:24 AM
Nope I don't xd


-- Previously ben9417
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