Can you help me do this: When I type ;gun a gun name "AdminPistol" will be added to my…
- User
Can you help me do this: When I type ;gun a gun name "AdminPistol" will be added to my backpack (only mine) and my username is quanglong2014. Asset of Pistol: rbxasset://12888018694
Assistant
Here's a Roblox Lua script that adds the "AdminPistol" to your backpack when you type
;gunin chat:-- ServerScriptService/AdminPistolCommand.lua local Chat = game:GetService("Chat") local Players = game:GetService("Players") local InsertService = game:GetService("InsertService") local ALLOWED_USER = "quanglong2014" local ASSET_ID = 12888018694 Chat.Chatted:Connect(function(message, speaker) -- Check if message starts with ;gun and user matches if message:lower():sub(1, 4) == ";gun" and speaker.Name == ALLOWED_USER then -- Load the asset local success, tool = pcall(function() return InsertService:LoadAsset(ASSET_ID):WaitForChildOfClass("Tool") end) if success and tool then -- Clone to backpack tool:Clone().Parent = speaker.Backpack else warn("Failed to load AdminPistol. Check asset ID/permissions.") end end end)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.