Feeling Weird? Why It Happens & How to Cope
Q&A for How to Script on Roblox
Coming soon
Search
-
QuestionCan I type capital letters in scripts?Community AnswerYes, but only if it is needed to make it right. Here is an example to show you: player.Name
-
QuestionHow do I make a script that will make a model talk and answer questions?Community AnswerMost people use the dialogue elements that can be entered by right-clicking the object in the explorer, clicking the "Insert Object" button, and finding dialogue. It doesn't require scripting.
-
QuestionHow do parents and child work in scripts?Destinid10_2Community AnswerThey are easy to understand and apply. You can use .Parent to reference to the Parent of a item. For example: local part = script.Parent. Another practical example: local workspace = Part.Parent. For referencing Childs is a little more complex, because .Child doesn't exist. So I recommend you that when you're going to reference a Child, use basic referencing code, for example, like this: local part = game.Workspace.Part.
-
QuestionCan you teach me more about Functions? I'm not good at making Functions.Ziqian GaoCommunity AnswerFunctions ensure you don't type the same code over and over again. Functions can have values in them. To make a function, put local function NameHere()--Commands here--end. For a function with values in them, do the same above but with names in the parentheses "()" separated by commas. Local is optional. Values can be used only inside the function. Values can be a string, a number, a color, etc.
-
QuestionHow do you make a button or a gui?Ziqian GaoCommunity AnswerPut ScreenGui in StarterGui and then make a TextButton or an ImageButton and put a local script under the Button you Made and Put this: from 5 dashes to 6 dashes (-) -----function onclick()--what you want it to do on left click--end function onrightclick()--what you want it to do on right-click-endscript.Parent.MouseButton1Click:Connect(onclick)script.Parent.MouseButton2Click:Connect(onrig tclick)------. This is only for GUI on the screen. For the text with two dashes at the start, replace it with what you want it to do.
-
QuestionHow can I get ScriptMate if I don't have enough Robux?Kaif SewraCommunity AnswerTry earning Robux by participating in the Roblox Affiliate Program, creating and selling game passes or items if you're a developer, or subscribing to Roblox Premium for a monthly Robux stipend.
-
QuestionHow do I create water in Roblox that players can swim in?Kaif SewraCommunity AnswerTo make swimmable water in Roblox: Open Roblox Studio and the Terrain Editor, select the Add tool, set the material to Water, and paint your water area. Ensure the water is deep enough for swimming (a few studs). Test the game to confirm swimming works.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit