experience_permissions event not triggering in Luau (both SLua and LSL/Luau)
inĀ progress
WolfGang Senizen
Bug
When running
ll.RequestExperiencePermissions
on a user in Luau both SLua
and LSL/Luau
The
experience_permissions
event never fires when the user acceptsThe
experience_permissions_denied
event seems to work just fine.Works fine on Mono and LSO
If the user does accept, Experience functions seem to work fine, but the only way to know is to test them with
ll.AgentInExperience
Reproduction Steps
- Go to the experience parcel in SLua Tidelands
- Join the land group to grant you access to contributing to the Test experience
- Rez a cube and put the following script in it, in lua mode
touch_start = function()
local user = ll.DetectedKey(0)
ll.Say(0,`Requesting experience perms from {ll.GetUsername(user)}`)
ll.RequestExperiencePermissions(user,"")
end
experience_permissions = function(user)
ll.Say(0,`{ll.GetUsername(user)} granted experience permissions`)
end
experience_permissions_denied = function(user, reason)
ll.Say(0,`{ll.GetUsername(user)} denied experience permissions`)
end
- Set it to the Test Experience Please Ignoreexperience
- Save the script
- Make sure you are not in the experience already
- Click the cube
- Say no to the experience prompt, you should see a denied message in chat
- Click the cube again
- Say yes to the experience, you should see that no new message has been said in chat
Log In
Signal Linden
inĀ progress
Thanks! One of our event name arrays was out of order for Luau, the fix will be pushed next week.