of     1   

teamkilled
#149762853Saturday, November 15, 2014 12:04 AM GMT

permissions = {["Player"] = true} script.Parent.step.Touched:connect(function(object) local player = game.Players:GetPlayerFromCharacter(object.Parent) if player then if permissions[player.Name] then req(1) end end end) For some reason, when I test it in solo and my name is "Player", it doesn't work at all. Help?
AgentFirefox
Top 100 Poster
#149763200Saturday, November 15, 2014 12:08 AM GMT

In solo, I believe the player's name is Player1, not Player. Your script should be working properly.
Nyxis
#149763270Saturday, November 15, 2014 12:09 AM GMT

@agent: they changed it I believe, sir.
Goulstem
#149765258Saturday, November 15, 2014 12:33 AM GMT

Well.. ' if permissions[player.Name] then ' is just saying 'if true then' since when you index a library it checks the value, not the key, and the value of that index is true. You might wanna say ' if permissions[player.Name] == true then ' Idk if i'm correct but no other explanation why this wouldn't be working, in studio your player's name is 'Player', they changed it.
teamkilled
#149836449Sunday, November 16, 2014 12:02 AM GMT

still not working
teamkilled
#149837608Sunday, November 16, 2014 12:19 AM GMT

b
teamkilled
#149838623Sunday, November 16, 2014 12:34 AM GMT

:(
teamkilled
#149840759Sunday, November 16, 2014 1:08 AM GMT

hi
SerGregor
#149841216Sunday, November 16, 2014 1:15 AM GMT

hi
Goulstem
#149849703Sunday, November 16, 2014 3:23 AM GMT

Make sure req is a predefined function permissions = {["Player"] = true,["Goulstem"] = true} script.Parent.step.Touched:connect(function(object) local player = game.Players:FindFirstChild(object.Parent.Name) if (player ~= nil) then local trusted = permissions[player.Name] if trusted == true then req(1) end end end)

    of     1