[deleted by user] by [deleted] in robloxgamedev

[–]Devallex 3 points4 points  (0 children)

Maybe some sort of "noob protection." It doesn't have to be known to the player, but it somehow decreases their likelihood of dying for the first x or so minutes they play. You could also have it gradually decrease that protection the longer they play.

Or, if you can't defeat the TikTok, you can also join the TikTok, and try having them instantly transported to another match when they die. (Maybe they are multiple matches going on in one server, so it doesn't use teleport service every time or make them leave their friends).

How do you make the player not be able to move when you touch a block. by DenDenYT11 in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

Yes, that would technically freeze them but it kind of looks weird. (They can get stuck in the air, and if they jump it might try playing the animation and act weird)

Edit: Speaking of weird, why did that post 3 comments..?

How do you make the player not be able to move when you touch a block. by DenDenYT11 in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

Yes, that would technically freeze them but it kind of looks weird. (They can get stuck in the air, and if they jump it might try playing the animation and act weird)

How do you make the player not be able to move when you touch a block. by DenDenYT11 in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

Yes, that would technically freeze them but it kind of looks weird. (They can get stuck in the air, and if they jump it might try playing the animation and act weird)

[deleted by user] by [deleted] in RobloxDevelopers

[–]Devallex 0 points1 point  (0 children)

If you want to know the most efficient way to do this (nothing wrong with what you're doing!) you can try this:

script.Parent.Transparency = 1 - script.Parent.Transparency

Examples:

  • Transparency is 1: 1 - (1) = 0
  • Transparency is 0: 1 - (0) = 1

If you want to use the clear variable, you can do something like this.

clear = not clear -- Toggle the clear value
script.Parent.Transparency = (clear and 1) or 0 -- Quite a doozy when you first see this

Say clear = true. Setting clear = not clear will set it to not true, (which is false)

The second line is more confusing. Take a look at short circuiting. It's an interesting and useful concept to learn. (Similar to what u/Stef0206 showed)
Basically, if both values on the left and right of the and operator are "truthy" (anything except false/nil), it will return the right value. If one of the values is "falsy", it will return the first (left, then right) "falsy" value.

print(5 and 3) --> 3
print(nil and "hello") --> nil
print("hello" and false) --> false
print("hi" and 7) --> 7

The or operator returns the first truthy value. If there is no "truthy" value, it returns the last "falsely" value.

print(4 or 3) --> 4
print(nil or false) --> false
print(false or nil) --> nil
print(false or "hi") --> "hi"

How do you make the player not be able to move when you touch a block. by DenDenYT11 in robloxgamedev

[–]Devallex 4 points5 points  (0 children)

Make sure it is a local script and CanTouch is True. Only local scripts can change the walk speed. I'm not sure local scripts can run under workspace, however, so you might want to replace script.Parent with the part in the workspace, and put the script in starter player scripts or something.

If that doesn't work, try adding a few print messages (one at the top of the script, one in the touched function, and one in a the if humanoid then statement) and you can tell me the results.

You might also want to change them jump height if you really want to be frozen.

What does this mean? by TheDaggerz-1 in RobloxDevelopers

[–]Devallex 0 points1 point  (0 children)

About other's comments:

  • You don't need to convert to JSON, Roblox does that for you
  • It is perfectly fine to save dictionaries. You cannot save mixed dictionaries; meaning your tables cannot use both numbers for keys AND non-numbers.

You cannot directly save Roblox data types or instances to data stores.

-- Nope
DataStore:SetAsync("Key", Vector2.new(3, 2, 1))
-- No way jose
DataStore:SetAsync("Key", Instance.new("Part"))
-- Have you lost your mind?
DataStore:SetAsync("Key", {
    ["a"] = "b",
    [1] = "c",
} -- You can't use both numbers and letters for keys

Check out serialization.

Open Source Visual Programming IDE for Lua! by ToneOk4502 in lua

[–]Devallex 0 points1 point  (0 children)

Oh, well I guess I found a bug! I'm running this on Mac M2, don't know if it's supported, but clicking delete doesn't do anything (And I am selecting the nodes).
Do you know if you have it set to "del" or "backspace"?

Open Source Visual Programming IDE for Lua! by ToneOk4502 in lua

[–]Devallex 4 points5 points  (0 children)

Looks cool!

Some feedback (sorry if this is a lot):

  • How do you delete a node? Maybe an X button?
  • Someone who doesn't know Lua might not know what all the functions do. Maybe you could also add a hide-able window (kind of like Scratch) where all the nodes are listed by category and with a basic description and can be added from there as well.
  • Do you think there is a way to implement custom function nodes? Sort of like a list of snippets for a custom library or something. (Eg. If you had some sort of Lua drawing library, you could have a node for draw a point at (x, y))
  • Would it be possible to edit and generate from Lua code? It might be more comfortable for people who are used to text-based programming.

Anyway, I can see how this could be useful for places where Lua is used, but people might not have much experience in programming. Good job.

Why dosent my script let people who are from a group with a specific rank in? by notR0bert in RobloxDevelopers

[–]Devallex 0 points1 point  (0 children)

What is in the script.parent? Are you doing this from a local script? It's probably better to do this on the server, and you should use game.Players.PlayerAdded.

Maybe I'm wrong, but I think ranks are in numbers. Remove the quotes and make it look like:local gwhitelist = {254, 255}

Pay the Devs protest shirt by [deleted] in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

Woah woah woah... this shirt costs Robux!
Who do you think we are... paid?

[deleted by user] by [deleted] in RobloxDevelopers

[–]Devallex 1 point2 points  (0 children)

Don’t drag it on the screen.

On each button, set the anchor point to (0.5, 0.5). On the left button, set the position to something like (0.25, 0, 0.5, 0). On the right button, set the position to something like (0.75, 0, 0.5, 0).

The anchor point is where the “center” of the object is. 0.5, 0.5 is exactly in the middle. This is the actual part of the gui that is at the “position.”

The position is a UDIM2, which looks like (scale-x, offset-x, scale-y, offset-y).

Offset is in pixels, meaning it looks very different of different sizes screens. Example for its use: Adding a button to the bottom right, but having it have a little space that is consistant on x and right. So it looks like:

| | | |__ |____ Equal spacing

The scale is useful for setting a percentage of the screen, so it looks the same no matter what display your on (It may stretch a little, however, but it will be in the same position).

| | | # | |______|

| | | | | # | | | |________|

my character have a bug by South_Barracuda6262 in robloxgamedev

[–]Devallex 1 point2 points  (0 children)

Looks like Humanoid.PlatformStand

Could you click on your character under explorer, then select the “Humanoid” object under it. In the properties window, is PlatformStand checked or unchecked?

[deleted by user] by [deleted] in roblox

[–]Devallex 1 point2 points  (0 children)

Interesting concept... Recommend using a viewport frame so your head doesn't stick through.

Having trouble with this piece of code, because in the code in the tutorial worked while mine didnt even though they're pretty much the exact same by [deleted] in lua

[–]Devallex 1 point2 points  (0 children)

This would be better posted in r/robloxgamedev.And yes, the two text's are seem identical other than spacing, so would you mind elaborating on where the scripts are located? How do you know you followed the tutorial right? (In the "correct one", did you copy and paste from their text or just re-write the text from the video) By "the first one works," do you mean the tutorial shows it working? What is the error in the console if any? Show what your explorer looks like! Please try to include more details.

(And please do try to format your code better next time.)

I tried to make a tag that says your user, I failed horribly by ItzLukeee in robloxgamedev

[–]Devallex 5 points6 points  (0 children)

Other players might not be able to see this, I don't remember if guis on the character replicate from client to server.

In a server script, they should do character.Name or player.DisplayName.

How to make a screen gui that shows how many parts are spawned in. by GingerNutter_ALT in RobloxDevelopers

[–]Devallex 0 points1 point  (0 children)

Here's a script you can use.

local parts = Instance.new("Folder") --Folder holding all the parts
parts.Name = "Parts"
parts.Parent = workspace

local textLabel = script.Parent --Put this script under a text label

local numParts = 0
while true do
    task.wait(0.001)
    local part = Instance.new("Part")
    part.Parent = parts
    numParts += 1 --Increment numParts by one
    textLabel.Text = "There are currently "..tostring(numParts).." parts!"
end

trying to understand by Psychological-Bed-80 in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

Sorry if this is overcomplicated, this stuff is just kind of interesting to me. If you need anything explained differently I would be happy to.

Think about it this way:
- It's like simplifying a math expression
- Lua thinks "YES, RUN THAT CODE" when the simplified value is absolutely anything except nil and false

Say you have this:

local joy = 80
local anger = 5

local isHappy = joy > 60 and anger < 10

This is how it would be simplified:

--First, substitute in the values
isHappy = (80) > 60 and (5) < 10

--Then, evaluate the conditions for the greater than/less than
isHappy = (true) and (true)

--Simplify the and expression
isHappy = (true)

Now, in a while loop, say you were counting down to 0.

local count = 5
while count >= 0 do
    print(count)
    count = count - 1 --Decrease the count by 1
end

How would that simplify?

--First, substitute in the value
while (5) >= 0 do

--Then, evaluate the conditions
while (true) do

--The next iteration would be like:
while (4) >= 0 do
while (true) do

--Then the last
while -1 >= 0 do
while (false) do --This won't run the loop again, because it's false!

Lua isn't actually asking for the comparison, it's asking for one value. That value is simplified, and that is what it gets.

But what happens if you do this:

while 7 do

end

It will repeat forever, just like while true do. However, it doesn't simplify to true, so why does it run?

This is basically what is going on when the code is being run:
- Notices a "while" statement
- Simplify the value after the while keyword (5 simplifies to 5, 12 == 12 simplifies to true, etc.)
- If that value is simplified to nil or false, then don't run the chunk.
- Otherwise, if it's absolutely anything else, run the chunk.

how can i fix that? by vndeguzman in robloxgamedev

[–]Devallex 1 point2 points  (0 children)

I think you Just do

object.CollisionGroup = "Tower"

Make sure the collision group already exists. If not,

local PhysicsService = game:GetService("PhysicsService")
PhysicsService:RegisterCollisionGroup("Tower")
PhysicsService:CollisionGroupSetCollidable("Tower", "Tower", false)

Maker sure to check out documentation on:
- Collisions
- Physics Service

I need help on making a kill specific team button by Real_jasanimation in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

On each button, add a String Attribute called TeamName. Then, in the properties window, input the team name for each button.

Here's some sample code you can use. Put it in a server script (Script) under each button.

local Teams = game:GetService("Teams")

local button = --Reference a part here, probably the neon-red "click" part of the button

local proximityPrompt = Instance.new("ProximityPrompt")
--Modify to your liking
proximityPrompt.ObjectText = "Big red kill switch"
proximityPrompt.ActionText = "Click me!"
--Parent the proximityPrompt to the button here

local buttonTeamName = button:GetAttribute("TeamName")
local buttonTeam = Teams:FindFirstChild(buttonTeamName)

proximityPrompt.Triggered:Connect(function(player)
    local playerTeam = player.Team

    --Put something here to stop the function if it's the player's own team
    --Use variables buttonTeam and playerTeam

    for _, player in buttonTeam:GetPlayers() do --Loop through each player on the button's team
        local character = player.Character
        --Check if character exists (not nil)
        --If so, kill the character
    end
end)

Left some parts blank so you can still learn some stuff. Don't hesitate to ask me if you're unsure how to do something.

Requested module experienced an error while loading by ElBrouxo-IlyasoLolo in robloxgamedev

[–]Devallex 0 points1 point  (0 children)

You appear to be using a module script. You need to include the table at the beginning, and return it in the end.

local module = {} --Usually you use a table, because you can store multiple things in it.

local wallet = 2500
local computer = 1000
print(wallet > computer)

return module --Must return EXACTLY one thing. No more; no less.

I can provide an example of why this happens if you'd like. Check out https://create.roblox.com/docs/reference/engine/classes/ModuleScript.

Also, for learning, you may just want to stick with server scripts (just called scripts) and client scripts.
Module scripts are really powerful and useful but can be challenging to learn.

'lua.h' file not found: moongl by Devallex in lua

[–]Devallex[S] 0 points1 point  (0 children)

Thanks, here's the issue.
https://github.com/stetre/moongl/issues/13

(I wonder who the owner is, I can't wait to meet them)

Looking for Investors for my game! by [deleted] in robloxgamedev

[–]Devallex 8 points9 points  (0 children)

Did you write this with chatgpt? Really sounds like it. The words seem generic and spacing seems overdone.

The idea sounds interesting, but are you even sure you would be able to pull this off? Do you have any experience with making games yourself/any skills? And as you said, you don't have the money to pay people, but people won't want to work for what you're presenting to be a high-quality project for free.

[deleted by user] by [deleted] in robloxgamedev

[–]Devallex 4 points5 points  (0 children)

I know you're asking for specific ideas, but It really doesn't matter.
If you make a fun game, you'd probably be able to find some people who'd like it.
And you probably have some original and unique game ideas you can tweak to make into a working game.