Introvert or Extrovert Quiz
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.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit