roblox

NumberValue is not changing in Roblox Workspace

醉酒当歌 提交于 2021-01-29 19:01:27
问题 I made this script for a bomb that explodes if a value isn't ten, but the value does not change in workspace and even if I change it manually to 10 the bomb still explodes anyways. The bomb has a button to add one to the value and a button to enter, which is supposed to cause it to either explode or not explode but it always explodes. this is the script for the enter button: local Beans = workspace.BigBoomRoom.bomb.button3.Beans.Value function AwMan() end function Creeper() local explosion =

Roblox - attempt to index nil with 'leaderstats'

你。 提交于 2021-01-29 18:22:01
问题 Can someone tell me how can I fix this error that shows up when I run my script? Thanks line 4: Workspace.Slide1.PointsPart.Script:4: attempt to index nil with 'leaderstats' script.Parent.Touched:Connect(function(hit) local player = hit.Parent:FindFirstChild("Humanoid") local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if plr.leaderstats.Points.Value >= 0 then wait() script.Disabled = true script.Parent.Transparency = 1 script.Parent.CanCollide = false plr.leaderstats.Points.Value =

How to fix NPCs not spawning

元气小坏坏 提交于 2021-01-29 15:27:23
问题 I coded out some functions in a ModuleScript to be executed by another script. Here is the code local module = {} wavepause = game.ReplicatedStorage.Values.WavePauseLength.Value trollanoid = game.ReplicatedStorage.Trollanoid spawnpoints = workspace.Test1.Spawns:GetChildren() function trollanoidsummon() local chosenspawn = math.random(#spawnpoints) local clone = trollanoid:Clone().Parent == workspace.Zombies clone.HumanoidRootPart.CFrame = chosenspawn.CFrame end module.Wave1 = function()

GetPlayers not working on server side script

◇◆丶佛笑我妖孽 提交于 2021-01-29 09:01:14
问题 I am learning lua making games in Roblox. I have this sample of code that I got from their developer website. Players = game:GetService("Players") for i, player in pairs(Players:GetPlayers()) do print(player.Name) end This code works when I paste it in a local script but it doesn't when I paste it in a server side script. I don't get an error, but nothing gets printed. I am wondering why this is, and also what code do I need to use to get all players from a server side script. Thanks Edit ---

Im trying to figure out how I can decompile this obfuscated Lua script

孤街浪徒 提交于 2020-12-08 05:16:09
问题 So I've been trying to figure out how to decompile dlls, java, and Lua files but once I ran into this one I got stumped. Does anyone have any ideas on how I can decompile this? Since the script was way too big I put it in a pastebin link. https://pastebin.com/UsdWEHnm IlIIl1liIllIi1II1Ii.lIl1llIllIii1111lIIIii = lIli1IlI11lIlI1il11i1() lIli1IlI11lIlI1il11i1() lIli1IlI11lIlI1il11i1() local ll1ili1i1Ii1II111li = lIlIlll1Ill1illiliIiI() for i1IiIili111iI1lil1l = lIliI1iii11lilII1IIil,

Im trying to figure out how I can decompile this obfuscated Lua script

为君一笑 提交于 2020-12-08 05:14:50
问题 So I've been trying to figure out how to decompile dlls, java, and Lua files but once I ran into this one I got stumped. Does anyone have any ideas on how I can decompile this? Since the script was way too big I put it in a pastebin link. https://pastebin.com/UsdWEHnm IlIIl1liIllIi1II1Ii.lIl1llIllIii1111lIIIii = lIli1IlI11lIlI1il11i1() lIli1IlI11lIlI1il11i1() lIli1IlI11lIlI1il11i1() local ll1ili1i1Ii1II111li = lIlIlll1Ill1illiliIiI() for i1IiIili111iI1lil1l = lIliI1iii11lilII1IIil,

How do I report a bug in Roblox Studio?

旧时模样 提交于 2020-07-22 06:25:13
问题 What is the best method for reporting a bug in Roblox Studio? I see there's a Roblox forum for this, Platform Feedback / Studio Bugs. That's useful for checking if the bug has already been reported but not all developers have rights to post to this forum. There's the general Contact Us form mentioned on the Reporting Bugs to Roblox page but that doesn't have a category for studio so doesn't feel like the best place? It's not clear if it offers any tracking or ability to monitor the bug report

How to dissect and parse a string in lua?

試著忘記壹切 提交于 2020-06-23 09:55:09
问题 I am trying to make command arguments in Roblox. For example, /kill playername . The problem is I don't know how to parse the playername from the string /kill playername . This code is in something like this: game:GetService("Players").PlayerAdded:Connect(function(Player) Player.Chatted:Connect(function(Message) if string.sub(1, #Message) == "/kill " then --this means the string starts with /kill and is expecting an argument. --How can I parse this argument from the string end end) end) Edit:

Python Roblox issue with buying limited items

北慕城南 提交于 2020-06-17 13:13:32
问题 So in roblox, I am trying to send a request to thier api to buy an item. Here is the code: def buyItem(self,itemid, cookie, price=None): info = self.getItemInfo(itemid) url="https://economy.roblox.com/v1/purchases/products/{}".format(info["ProductId"]) print(url) cookies = { '.ROBLOSECURITY': cookie } headers = { 'X-CSRF-TOKEN': self.setXsrfToken(cookie) } data={ 'expectedCurrency': 1, 'expectedPrice': info["PriceInRobux"] if price == None else price, 'expectedSellerId': info["Creator"]["Id"]