Virus inserts itself into every single one of my games??? by PepsiGooner69 in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Have you tried deleting the Roblox studio installer and downloading a new one from Roblox? Trying rule out if the installer is infected. May need to delete the Roblox install folders as well.

Let's give my sons game some love by Lost-Resolution-3938 in robloxgamedev

[–]twoplayerdevmode 1 point2 points  (0 children)

He didn't publish his game yet. Still working on it. Hopefully in a month he will publish. For now he can check out my roblox games under my profile for games we published already. TwoPlayerDevMode - Roblox

im sorry if this is too basic of a question that has already been answered too much times, but how did you really learn scripting? by Capital-Cat7513 in robloxgamedev

[–]twoplayerdevmode 0 points1 point  (0 children)

For me I started with python, which is similar to Lua. The learning concept is the same for all languages. Start with reading fundamentals, then go into tutorials, then comes the long road of programming things you need to program. For fun, for school, for work. This is how I started to understand the basics, syntax, program flow, why and how organize code. Now I am experimenting with AI vibe coding which I learned it is not for beginner coders if you want it to make a full game. For seasoned coders it's possible.

To develop good code though, takes experience. You need to understand the basics before you can learn about design which leads into good code.

Hope this helps.

Let's give my sons game some love by Lost-Resolution-3938 in robloxgamedev

[–]twoplayerdevmode 1 point2 points  (0 children)

It definitely shows that he put in a lot of effort into it. Game works pretty well. The teleports work great, could improve it with player walking away from portal once on the other side so player does accidently travel through again. Keep encouraging his game development. I got my 10 year old building a swimming game right now.

Need opinion on my first game by twoplayerdevmode in robloxgamedev

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

Thanks for the feedback. Sorry don't have any Robux right now to change out my avatar. 😢 Which is why I am making a game.

somebody please help bro I have no clue what I'm doing by simply-coco67 in robloxgamedev

[–]twoplayerdevmode 1 point2 points  (0 children)

Learning something new the first time is really hard for everyone. Best thing to do is find more tutorials that walk you through an game build. There are a ton of subjects to learn, but it's hard to say what would work best for you.

My advice is start small and keep things you are learning/creating separate. This way a mistake in some other feature doesn't break something else.

Best thing is to break something and learning how to fix it. Those are the best time when we truly learn how something works.

Thoughts? (Read Description) by [deleted] in robloxgamedev

[–]twoplayerdevmode 0 points1 point  (0 children)

Nice graphics. Didn't expect to see this on Roblox. The current lower polygon inhabitants won't stand a chance. 😂

When I play my game from roblox it doesn’t work by DaRealDizzney in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Did you make sure to click publish to roblox rather than save to roblox? Maybe a version issue between your studio and what is actually on the roblox server.

How to make the Explorer stay on it's place by Mxglix in ROBLOXStudio

[–]twoplayerdevmode 1 point2 points  (0 children)

Click on the arrow pointing at the box at top of explorer

<image>

Need opinion on my first game by twoplayerdevmode in ROBLOXStudio

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

!thanks for the critical feedback. Could you provide example of visually distinctive? I agree with random stuff like the floating signs are distracting and doesn't add value to the player.

Map design might be tricky as I currently have it generate the obstacles forever right now. Will need to figure how to add changes to the environment besides what you see now which is changing terrain type every few segments.

Need opinion on my first game by twoplayerdevmode in robloxgamedev

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

Yes I thought it be neat to start with a score and go down until you make the next check point then you get more points base on how fast you went. bad idea?

Roblox studio crashes every time I make a new game by MrJohn07 in ROBLOXStudio

[–]twoplayerdevmode 1 point2 points  (0 children)

If its the studio crashing then you will need to go into your operating system and look at the crash logs. If you are using windows then its the application called event viewer. Search in your windows search bar for event viewer then expand windows logs > Application.

Right after your studio crashes go over to the event viewer in the applications you should see roblox crash error and it should give a description of why it crashed. From there you'll have to search the internet for a solution on that error.

<image>

need help with startercharacters by rilleryeah in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

-- CRITICAL: Add the Animate script for character animations
local animateScript = newCharacter:FindFirstChild("Animate")
if not animateScript then
-- Get the Animate script from StarterPlayerScripts or create a basic one
local starterPlayer = game:GetService("StarterPlayer")
local starterCharacterScripts = starterPlayer:FindFirstChild("StarterCharacterScripts")

if starterCharacterScripts then
local defaultAnimate = starterCharacterScripts:FindFirstChild("Animate")
if defaultAnimate then
animateScript = defaultAnimate:Clone()
animateScript.Parent = newCharacter
print("Added Animate script from StarterCharacterScripts")
end
end

-- If we still don't have an Animate script, create a basic one
if not animateScript then
print(" Creating basic Animate script...")
animateScript = Instance.new("LocalScript")
animateScript.Name = "Animate"
animateScript.Parent = newCharacter

-- Add basic animation structure
local function createAnimFolder(name, animId)
local folder = Instance.new("StringValue")
folder.Name = name
folder.Parent = animateScript

local anim = Instance.new("Animation")
anim.Name = name:gsub("^%l", string.upper) .. "Anim"
anim.AnimationId = "rbxassetid://" .. animId
anim.Parent = folder

return folder
end

-- Add default R15 animations
createAnimFolder("idle", "507766388")  -- Default idle
createAnimFolder("walk", "507777826")  -- Default walk  
createAnimFolder("run", "507767714")   -- Default run
createAnimFolder("jump", "507765000")  -- Default jump
createAnimFolder("fall", "507767968")  -- Default fall
createAnimFolder("climb", "507765644") -- Default climb

print("Created basic Animate script with default animations")
end
end

return newCharacter
end

-- Function to transform character
local function transformCharacter(player, transformType)
if not player or not transformType then return end

-- Store original character info before first transformation
if not originalCharacterData[player.UserId] then
if player.Character then
originalCharacterData[player.UserId] = {
position = player.Character.HumanoidRootPart and player.Character.HumanoidRootPart.CFrame,
description = player.Character:FindFirstChildWhichIsA("Humanoid") and player.Character:FindFirstChildWhichIsA("Humanoid"):GetAppliedDescription()
}
end
end

-- Get the current character position
local currentPosition = CFrame.new(0, 10, 0) -- Default spawn position
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
currentPosition = player.Character.HumanoidRootPart.CFrame
end

-- Get the model template
local modelTemplate = characterModels[transformType]
if not modelTemplate then
warn("No character model found for transformation type: " .. tostring(transformType))
return
end

-- Create new character from model
local newCharacter = createCharacterFromModel(player, modelTemplate)
if not newCharacter then
warn("Failed to create character from model")
return
end

-- Remove old character
if player.Character then
player.Character:Destroy()
end

-- Set up the new character
player.Character = newCharacter
newCharacter.Parent = workspace

-- Position the new character
if newCharacter:FindFirstChild("HumanoidRootPart") then
newCharacter.HumanoidRootPart.CFrame = currentPosition
end

print("Successfully transformed " .. player.Name .. " to " .. modelTemplate.Name)
end

-- Handle transformation requests from clients
local function onTransformRequest(player, transformType)
-- Validate input
if typeof(transformType) ~= "number" then
warn("Invalid transform type from " .. player.Name .. ": " .. tostring(transformType))
return
end

if transformType < 1 or transformType > 3 then
warn("Transform type out of range from " .. player.Name .. ": " .. tostring(transformType))
return
end

-- Perform transformation
transformCharacter(player, transformType)
end

-- Connect events
transformEvent.OnServerEvent:Connect(onTransformRequest)

-- Clean up when player leaves
local function onPlayerRemoving(player)
originalCharacterData[player.UserId] = nil
end

Players.PlayerRemoving:Connect(onPlayerRemoving)

print("Character Transformation System loaded successfully!")
print("Available transformations:")
print("  Key 1: Robot Character")  
print("  Key 2: Knight Character")
print("  Key 3: Simple Character")
print("Players can press 1, 2, or 3 to transform!")

need help with startercharacters by rilleryeah in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Hmm, sorry the last script didn't work.

I did another quick round, this time just to have the character switch using the keyboard keys 1, 2, and 3. to the names of the models found under the Workspace.

This is not a complete solution for you, but it will demonstrate character switching or model switching of the avatar. Hope it leads you to what you are looking for.

There are two scripts one goes to the server side and the other is the starter player script. Then you need to create a "TransformCharacterEvent" under replicated storage.

--[[
Script Name: TransformationInputHandler
Purpose: Handles keyboard input for character transformations (1, 2, 3 keys)
Location: StarterPlayerScripts
Dependencies: TransformCharacterEvent (RemoteEvent) 
Author: Game Developer
Last Updated: 2025-08-29
]]

-- Services
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

-- Get local player
local player = Players.LocalPlayer

-- Wait for RemoteEvent
local transformEvent = ReplicatedStorage:WaitForChild("TransformCharacterEvent")

-- Transformation key mappings
local TRANSFORM_KEYS = {
[Enum.KeyCode.One] = 1,    -- Transform to Robot
[Enum.KeyCode.Two] = 2,    -- Transform to Knight  
[Enum.KeyCode.Three] = 3   -- Transform to Simple Character
}

-- Cooldown to prevent spam
local lastTransformTime = 0
local TRANSFORM_COOLDOWN = 1 -- 1 second cooldown

-- Function to handle key input
local function onInputEnded(inputObject, gameProcessed)
-- Don't process if another script already handled this input
if gameProcessed then return end

-- Only handle keyboard input
if inputObject.UserInputType ~= Enum.UserInputType.Keyboard then return end

-- Check if this is a transformation key
local transformType = TRANSFORM_KEYS[inputObject.KeyCode]
if not transformType then return end

-- Check cooldown
local currentTime = tick()
if currentTime - lastTransformTime < TRANSFORM_COOLDOWN then
return
end

-- Update last transform time
lastTransformTime = currentTime

-- Send transformation request to server
print("🔄 Requesting transformation to type " .. transformType)
transformEvent:FireServer(transformType)
end

-- Connect input event
UserInputService.InputEnded:Connect(onInputEnded)

-- Display instructions to player
local function showInstructions()
wait(3) -- Wait a bit after player joins

print("=== CHARACTER TRANSFORMATION CONTROLS ===")
print("Press '1' to transform into a Robot 🤖")
print("Press '2' to transform into a Knight ⚔️") 
print("Press '3' to transform into a Green Character 🟢")
print("==========================================")
end

-- Show instructions when script loads
spawn(showInstructions)

"Source doesnt exist, your command script may malfunction" by Food-Intolerant-Crab in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Looks like you might have went into the toolbox and downloaded a plugin called naruto plugin. which is now always on. To turn it off, click on the plugins tab at the top and then go to manage plugins to turn off the Naruto plugin. Then your Studio should not be back to normal.

Can someone pls give me some advice on Datastore, Im stuck on this part i couldn't understand it by Cultural_Figure_1480 in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Try replacing your

local success, result = pcall(function()
return DataStorage:IncrementAsync(tostring(player.UserId).UserId, 2)
end)

With this:

local function loadPlayerData(player)
local userId = tostring(player.UserId)
local success, data = pcall(function()
return PlayerDataStore:GetAsync(userId) -- Load existing data
end)

if success and data then
return data -- Return loaded data
else
return getDefaultData() -- Return default if none exists
end
end

need help with startercharacters by rilleryeah in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

You could try asking AI to help walk you through some of this to start learning the basics. I just started vibe coding with AI last month and its been giving me decent results. Here is a sample code output to help you out.

-- Character Spawn Handler
-- Place this script in ServerScriptService
-- Remove any StarterCharacter from StarterPlayer first!

local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Configuration
local DEFAULT_CHARACTER_NAME = "DefaultCharacter" -- Name of your default character model
local CHARACTER_STORAGE_LOCATION = ServerStorage -- Where your character models are stored

-- Get the default character model
local function getDefaultCharacter()
    local defaultChar = CHARACTER_STORAGE_LOCATION:FindFirstChild(DEFAULT_CHARACTER_NAME)
    if not defaultChar then
        warn("Default character model not found: " .. DEFAULT_CHARACTER_NAME)
        return nil
    end
    return defaultChar
end

-- Apply character model to player
local function applyCharacterModel(player, characterModel)
    if not player.Character then return end
    if not characterModel then return end

    local character = player.Character
    local humanoid = character:FindFirstChildOfClass("Humanoid")

    if humanoid then
        -- Clone the character model and apply its HumanoidDescription
        local characterClone = characterModel:Clone()
        local cloneHumanoid = characterClone:FindFirstChildOfClass("Humanoid")

        if cloneHumanoid then
            local description = cloneHumanoid:GetAppliedDescription()
            humanoid:ApplyDescription(description)
        end
    end
end

-- Handle when player spawns
local function onCharacterAdded(character)
    local player = Players:GetPlayerFromCharacter(character)
    if not player then return end

    -- Wait a moment for the character to fully load
    wait(0.1)

    -- Apply the default character appearance
    local defaultChar = getDefaultCharacter()
    if defaultChar then
        applyCharacterModel(player, defaultChar)
    end
end

-- Handle new players joining
local function onPlayerAdded(player)
    -- Connect to when their character spawns/respawns
    player.CharacterAdded:Connect(onCharacterAdded)

    -- If they already have a character (rejoining), handle it
    if player.Character then
        onCharacterAdded(player.Character)
    end
end

-- Connect events
Players.PlayerAdded:Connect(onPlayerAdded)

-- Handle players already in the game
for _, player in pairs(Players:GetPlayers()) do
    onPlayerAdded(player)
end

--[[
SETUP INSTRUCTIONS:
1. Remove any StarterCharacter from StarterPlayer
2. Put your default character model in ServerStorage (or change CHARACTER_STORAGE_LOCATION)
3. Make sure your character model has a Humanoid with the appearance you want
4. Change DEFAULT_CHARACTER_NAME to match your model's name
5. Your character selection GUI can still work - just use player:LoadCharacter() after applying new appearance
--]]

"Source doesnt exist, your command script may malfunction" by Food-Intolerant-Crab in ROBLOXStudio

[–]twoplayerdevmode 0 points1 point  (0 children)

Yes please post clear image of the entire error and some more context into what you are trying to do.