roblox

attempt to index upvalue 'player' (a nil value)

别说谁变了你拦得住时间么 提交于 2019-12-25 18:27:58
问题 please help me! I am making a game but i keep running into the same problem i tried many things but nothing worked script.Parent.Humanoid.Died:Connect(function() print("yeet") player.leaderstats.PuzzlePieces.Value = player.leaderstats.PuzzlePieces.Value + 1 end) 回答1: The error : attempt to index upvalue 'player' (a nil value) means that you are trying to use a variable that has not been defined. In this case "player". So you just need to create the player variable by pointing it at the right

Roblox Studio - Key Toggle for GUI

喜夏-厌秋 提交于 2019-12-25 02:44:11
问题 Alright so I am currently making a project in Roblox Studio. And I have a Frame GUI, I want to make it where when a player has the gui when they're running the game, that they can press a certain key to toggle it (ON) and (OFF). So a Open/Close System. Instead of using a Mouse Click I want a key toggle. Any idea on how to do this? 回答1: http://wiki.roblox.com/index.php?title=Keyboard_input This link explains 2 ways, the better way is the top or here: local toggle = false -- false is Off; true

Loading iframe in google-chrome extension (Error: Protocols must match)

痞子三分冷 提交于 2019-12-22 01:36:29
问题 Code in manifest.json: { "name": "Test", "version": "1.0", "manifest_version": 2, "description": "Test", "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" }, "permissions": [ "notifications", "https://www.roblox.com" ], "background": { "scripts": ["background.js"] }, "content_security_policy": "script-src https://www.roblox.com 'self' ; object-src 'self'", "web_accessible_resources": [ "icon.png" ] } Code in background.js: var iframe = document.createElement(

Creating a secure Lua sandbox..?

强颜欢笑 提交于 2019-12-20 05:47:11
问题 Right now I am doing a lot of. local env = { print = print, } setfenv(func, env) and then using metamethods to lock propertys on Instances, but it is really inefficient and has lots of bypasses. I googled it and everything I find is the same as this: unworking. 回答1: In Lua 5.1, sandboxing is pretty simple. If you have a Lua script in a file somewhere, and you want to prevent it from accessing any functions or anything other than the parameters you provide, you do this: local script = --Load

Python PIL - Finding Nearest Color (Rounding Colors)

非 Y 不嫁゛ 提交于 2019-12-19 08:14:40
问题 There is a game called Roblox, in which the player makes the game, usually of lego-looking bricks. In Roblox, for the Brick colors, you can use typical RGB values, but that'd require an additional element that is not very efficient when it comes to file size. Instead of using RGB values, BrickColor is much more economic in file size. It uses an integer to be interpreted as a certain color. Here is what I mean: Here is a snippet of my code: import Image f = raw_input('Image:\n') im = Image

How do you open and close a gui in Roblox?

若如初见. 提交于 2019-12-13 20:27:27
问题 I am making a game in Roblox and I came across an error. I am trying to make gui button that opens the shop in the game. But it does not open. I'v tried to make the button not visible and the shop visible. Everything is workig fine but the guis do not become visible/invisible. It says the change to the gui's visibility in the proproties, but it does not show it in the game. I also tryed to change the gui's parent, it works for closing but not opening. gui = game.StarterGui.ShopSelection

Python - Sending __doPostBack (To join groups in Roblox)

心不动则不痛 提交于 2019-12-12 17:12:49
问题 Roblox is a game, and you can also make groups (Like Clans in other games). I am making a program that goes through these group pages, and checks to see if they have an owner. If there is not an owner, then join the group to become the owner. I am doing this to collect some data from non-owned groups. Lastly, I'd like it to leave the group once the data is collected. Here is the "Join Group" button: <div id="ctl00_cphRoblox_JoinGroup" class="btn-neutral btn-large" onclick="__doPostBack(

What programs export .mesh?

江枫思渺然 提交于 2019-12-12 01:22:06
问题 I need to export some USGS (U.S. Geological Survey) DEM (Digital Elevation Model) data into .mesh format. I need it to be in the Roblox's .mesh format though. The only program that I know that does this is Anim8tor's program. Basically it makes the .mesh look like this: version 1.00 36 [12.3732, 5.75607, 0.797889][0.30353, 0.52573, 0.79465][0.30902, 0.80902, 0][13.5279, 5.75607, 0.356833][0.30353, 0.52573, 0.79465][0.92705, 0.80902, 0][12.8664, 6.13804, 0.356833][0.30353, 0.52573, 0.79465][0

Roblox Studio - Error that i can't figure out how to fix

谁都会走 提交于 2019-12-11 18:28:20
问题 !https://gyazo.com/0cb603d9edce56998a8f4428c78f4c41 <- (Think the problem is in this) !https://gyazo.com/8dd8e310511801e631c496973938b68d It comes with an error: 09:52:52.637 - Players.asbjornbonde.Backpack.Shovel.core:5: attempt to index local 'stats' (a nil value) I have tried to find the issue but i really can't. Hope someone can help me with this. Tell me if u need information. 回答1: The error is in the "core" script and it's on line 5. The error message is telling us that stats is a nil

How can I implement a debounce in this code

偶尔善良 提交于 2019-12-11 15:08:26
问题 My first thought was to ask on Roblox devforum but since imo they got a really messed up admission system, I might as well ask it here. I've got a tool that shoots a block (wedge) to wherever the mouse is pointing when clicked. It also casts a ray and the block itself sets the health of any humanoid that makes contact with it to 0. But I have got no idea on how to actually implement a cooldown on the gun so you can't just literally spam blocks that kill anything that touches them arround. I