Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [roblox-studio]

Roblox Studio is an all-in-one IDE that lets you create experiences that run on Roblox in Lua. It's free to use and has scripting, building, playtesting, and publishing tools as well as support for plugins. Use this tag for questions about the Roblox Studio IDE itself.

roblox-studio
0 votes
1 answer
95 views

Roblox LocalScript Triggering Code Multiple Times

I have written a LocalScript (MessageController) for a story-type Roblox game called Police Raid. This script controls the flow of the story by changing the UI messages and triggering events. -- This ...
O5 Command Stands With Ukraine's user avatar
0 votes
1 answer
48 views

How do I make it so when a player is in a range of a ProximityPrompt the part with the ProxPrompt gets a highlight? And how do I remove it afterwards?

I want to make it so when the proximityprompt is in range of the player, the part with the proxprompt gets a highlight. I put a script in the part, the script was this: local proximityPrompt = script....
Mikal Hattr's user avatar
0 votes
1 answer
1k views

Roblox: Failed to load animation - sanitized ID: rbxassetid://187

I got this error: Failed to load animation - sanitized ID: rbxassetid://1713688057 Here is my roblox script: local animation = script.Animation local humanoid = script.Parent:WaitForChild(&...
RickAstley's user avatar
0 votes
1 answer
259 views

How can I detect if the raycast hits the player in roblox studio?

local PathfindingService = game:GetService("PathfindingService") local Humanoid = script.Parent.Humanoid local Root = script.Parent.HumanoidRootPart local goal = script.Parent.Goal -- ...
JCoder2002's user avatar
0 votes
0 answers
22 views

Why i can found “Cancel” & How make Cancel then click Icon show GUI only one click?

So i want make Click Icon Show another UI with UI Cancel but if i click Cancel instead Icon, i need to click Icon Double time. enter image description here local ACHIEVEMENTS = script.Parent.Parent....
Catasangel's user avatar
0 votes
0 answers
29 views

Having an issue with server-sided overhead healthbar gui in Roblox

So when I run the game, the code does nothing. I want it to be above every player's head and I want all the players to have the ability to see one another's health Here is the code: game.Players....
Ministry Ray21's user avatar
0 votes
1 answer
189 views

Roblox default animate script not working on NPC

So I'm trying to use the default Roblox "Animate" client side script on an NPC and when I try it, none of the animations load at all When I try to run the game with the code, nothing happens ...
Ministry Ray21's user avatar
0 votes
1 answer
59 views

Making a multiple stage selector in Roblox Studio

I'm making a stage selector that you can go forward and back a stage in my Roblox Game, but it didn't work, here's the code: local trasferHandler = {} local TOTAL_STAGES_IN_GAME = 10 for _, stage in ...
G4LC's user avatar
  • 1
1 vote
1 answer
61 views

How to remove function from "for" in Roblox Studio?

I have a code and I want the function to be on top, not in the loop itself. How do I do that? local blocks = workspace.test:GetChildren() for indx, obj in pairs(blocks) do obj.Touched:connect(...
user588818's user avatar
0 votes
1 answer
38 views

attempt to compare Instance <= number Roblox Studio

Trying to make a basic buy system with a sword, I have 2 IntValues, one for the price of the object and another for the currency of the player. Idk what happens but the code doesn't work. Code of the ...
Gamer2VR's user avatar
-1 votes
1 answer
73 views

Making A Roblox Time Trial Obby and can't seem to make a timer in my format

I'm making a roblox time trials obby, but I can't make a timer in the format of 0:00s, any help ? i tried multiple times, but nothing worked I used a very basic script but the format looks quite ugly. ...
G4LC's user avatar
  • 1
0 votes
0 answers
217 views

Roblox Server-Script to teleport all players to a random seat not working

Here's the code game.Players.PlayerAdded:Connect(function(player) local char = player.Character or player.CharacterAdded:Wait() local spawns = workspace:WaitForChild("TruckTweenPart1")....
Ministry Ray21's user avatar
0 votes
0 answers
34 views

how can i get rid of the bug when if you press shift quickly after stamina runs out you keep running?

i've got an annoying bug i cant in my script for roblox, if you quickly press shift after stamina reached 0 you'll keep running while stamina recharges if you notice any other bugs please tell me its ...
error73's user avatar
0 votes
1 answer
35 views

Player is not visible after switching from 1st person to 3rd person

So the game after the intro it switches the camera to 1st person by enabling the 1st person script: Part of the intro script that turns on the 1st person: v.MouseButton1Click:Connect(function() ...
Kyle Louie Maderaje's user avatar
0 votes
2 answers
52 views

Having an issue with a teleporting function on Roblox

The code is: local function Teleport(TeleportPos) for i, Players in pairs(game.Players:GetPlayers)) do Players.Character:FindFirstChild(“HumanoidRootPart”).CFrame = TeleportPosition end end ...
Ministry Ray21's user avatar

15 30 50 per page
1
3 4
5
6 7
9