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

player parameter without player added function?

Asked by 5 years ago
Edited by royaltoe 5 years ago

Code:

01local x = game:GetService("TweenService")
02 
03local gv = Instance.new("BoolValue", game.ReplicatedStorage)
04gv.Value = false -- open
05 
06local validRanks = {"Developer", "Phoenix Guard", "Peacekeeper", "Council Members","Phoenix Council Members""Cardinal Witch/Warlock","Majestic Being" }
07 
08function playerIsValidRank(player)
09    local playerRank = player:GetRoleInGroup(5527515)
10 
11    for _, rank in pairs(validRanks)do
12        if playerRank  == rank then
13            return true
14        end
15    end
View all 63 lines...

Basically, if 1 person joins, it works, but if 2 people join, it breaks i need the player parameter without playeradded,playerleft

0
Uh, please check that I had a bit of confused that your description thing. Xapelize 2658 — 5y
0
Put the or statements in parenthesis. DeceptiveCaster 3761 — 5y
0
Thank you royaltoe, but since I want to LEARN this, please explain what message:lower() does, thank you! AcrylixDev 119 — 5y
0
Royaltoe, there was one problem with the formatting (which i fixed) but if another player joins and says ANYTHING that meets the ranks it will go down, how can I fix that? AcrylixDev 119 — 5y
View all comments (3 more)
0
your script up a bit. message:lower() converts whatever the player says to lowercase and string.find() sees if the text colloportus is in the string. it needs to be lower case since caps matter. royaltoe 5144 — 5y
0
ill edit your code to have the correct answer because i don't want to write a full answer to the post unless i fully know its solved. royaltoe 5144 — 5y
0
edited comment. please let me know if you need more help by messaging me on discord. i don't check here often. Here's my discord: Lucy#0003 royaltoe 5144 — 5y

Answer this question