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: Alrighty...

Previous Thread :: Next Thread 
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:17 AM
local loc = game.Workspace.TcCore.Elevators.Elevator1.Triggers.DisplayG1.SurfaceGui.PlayerList
local pO = #game.Teams.Gate1:GetPlayers()
local tx = 0
local lx = 0

while wait(1) do

print("wait works")

pO = #game.Teams.Gate1:GetPlayers()

if pO >= 9 then else

for _,v in ipairs(game.Teams.Gate1:GetPlayers()) do

if loc:FindFirstChild(v.Name) then

print("skip1")

else

if pO == 2 or pO == 4 or pO == 6 or pO == 8 then
tx = 0.5
else
tx = 0
end

if pO == 3 or pO == 4 then
lx = 0.2
else if pO == 5 or pO == 6 then
lx = 0.4
else if pO == 7 or pO == 8 then
lx = 0.6
end end end

local Frm = Instance.new('Frame', loc)
Frm.Name = v.Name
Frm.Size = UD##############5###.####)
Frm.Position = UDim2.new(0 + tx, 0, 0.2 + lx, 0)
Frm.BackgroundTransparency = 0.8
Frm.BackgroundColor3 = Color3.new(255, 204, 0)
Frm.BorderColor3 = Color3.new(0,0,0)
Frm.BorderSizePixel = 5
# #r################ 1

spawn(function()
for i = 1, 0.8, -0.01 do
wait(0.01)
Fr################ i
end
end)

local IL = Instance.new('ImageLabel', Frm)
IL.Image = 'h################################################################. v.Name
IL.Size = UDim2.new(0.25, 0,##,##)## #L########### UDim2.new(0, 0,##,##)## #L######################### 1
IL######################

local TL = Instance.new('TextLabel', Frm)
TL.BackgroundTransparency = 1
TL.TextTransparency = 1
# #L####### v.Name
TL.Position = UDim2.new(0.25, 0, 0, 0)
TL.Size = UDim2.new(0.75, 0, 1, 0)
TL.Font = 'SciFi'
TL.FontSize = 'Size14'
TL.TextScaled = true
TL.TextWrapped = true
TL.TextXAlignment = 'Left'
TL.TextColor3 = Color3.new(255, 226, 0)

spawn(function()
for i = 1, 0, -0.02 do
wait(0.01)
TL.TextTransparency = i
IL.ImageTransparency = i
end
end)

end
end
end
end
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:19 AM
Basically i need a way to replace while wait() to a :connect function that triggers each time a player joins/leaves the team "Gate1"...

The timing that the player joins/leaves isn't instantly on join, it can happen anytime, please help...
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:19 AM
use print() to narrow down where something is going wrong.


121,356 slices of pizza and counting!
Report Abuse
ArmaVictorem is not online. ArmaVictorem
Joined: 18 Mar 2015
Total Posts: 1332
30 Mar 2017 08:20 AM
Use pastebin to not get filtered and say what's wrong, not all of us have the time to look through the entire script scrutinizing it for errors, in the meantime I'll be eating dinner.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:22 AM
The guy who said print(), It never had any errors, read again. Also the #'s are only ######## and some weird numbers. The point is to get a :connect function that triggers each time a player joins/leaves the team "Gate1" no matter when it is.
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:23 AM
I'd much rather not read all of that pointless bs but just use

/index.php?title=API:Class/Instance/Changed

to determine when the team or teamcolor property of each player changes?


121,362 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:24 AM
Can you connect it to a players teamcolor hmm...

Also heres pastebin for the other guy

Zv2VMnWR
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:26 AM
I can't personally, but I believe ROBLOX can.


121,368 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:30 AM
Now it got harder, I need to find the teamcolor and the player who changed to the teamcolor... Something tells me this is impossible...
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:31 AM
jesus christ


121,585 slices of pizza and counting!
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:32 AM
game.Players.PlayerAdded:Connect(function(plr)
plr.Changed:Connect(function(property)
if property == "TeamColor" then
--do stuff
end
end)
end)



121,585 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:40 AM
It wont work, PlayerAdded is basically waiting for a player to join, plr.Changed wont trigger inside that function...
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:41 AM
.


122,171 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:41 AM
Aka PlayerAdded will only trigger when a player joins, not when he's in the game.
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:42 AM
This is why we need mail order school shooters


122,171 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:42 AM
Oh wait... Teamcolor not team... 1 moment please
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:50 AM
It prints "TeamColor" when it triggers... Not the color of the team -.-

Which also means we are lost D:
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:52 AM
WHICH IS WHY YOU GO plr.TeamColor TO GET IT THE EVENT JUST TELLS YOU IT'S CHANGED A, B, C, D, E, ## ## H, I, J, K, L, M, N, O P, Q, R, S, T, U, V, W, X, Y, Z NOW YOU KNOW YOUR A, B, Cs ---- it I'm all out of effort to make an ironic punchline about your lack of common sense. 120,310 slices of pizza and counting!
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 08:53 AM
game.Players.PlayerAdded:Connect(function(plr)
plr.Changed:Connect(function(property)
if property == "TeamColor" then
local PLAYERHEREOK = plr
local PLAYERTEAMCOLOURHEREOK = plr.TeamColor
local PLAYERTEAMHEREOK = plr.Team
end
end)
end)


120,310 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:57 AM
Sorry to tell you this but, You're completly wrong.

I try myself forward to find the solution and here it is ;)

game.Players.PlayerAdded:Connect(function(plr)
plr.Changed:Connect(function(property)

if plr.TeamColor == BrickColor.new("CGA brown") then

--Code here

end
end)
end)
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 08:59 AM
property will only output "TeamColor", nothing else. I mean like it wont type "Medium stone grey" or something like that, just "TeamColor". If you type plr.TeamColor then you get the exact TeamColor from the player, I am not sure why this happens doe.
Report Abuse
ArmaVictorem is not online. ArmaVictorem
Joined: 18 Mar 2015
Total Posts: 1332
30 Mar 2017 08:59 AM
I almost got ninja'd by the OP himself...and I just finished eating too lol.
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
30 Mar 2017 09:26 AM
jesus
christ
almighty


121,018 slices of pizza and counting!
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
30 Mar 2017 01:01 PM
What does ninja'd mean?
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