Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

I have questions I need answering "?"

Asked by 7 years ago

I have many questions actually all arranged in an order

Please don't only tell me the answer or type a script as a solution to my problem.

I'd like you to also send me a link so I can study these features and get a better understanding of each of them.

If possible, please help me understand each of these questions, send me a link for each question in which I can study from, and teach me how these things work as they do with an script as an example.

Is there a way of making a video on a UDim2 /Vector2 surface

How would on change the appearance of ScreenGui from tool?

When a tool is added to the players Backpack, they can equip it.

When the tool is added to the players character, did automatically equip it

Once the tool is equipped, it shows rows of numbers at the bottom of that player

Such as "Sword" and 1.

How would I change the appearance of what shows in the screenGui when you equip the tool?

Please click on this link to receive a better understanding of what I'm getting at

Link: https://gyazo.com/0c569378a49788bcd96aafc44b913c2a

Link: https://gyazo.com/2b2ac8975c8e9b0a078a07f0c8448a3c

How would I get the value of the thing the Player touches Iwould I get the thing the player touches

-- if I was to type this

PlayersModel = workspace.Player1

Hand = PlayersModel.Hand

Hand:touch:connect(function() -- How would I get the thing that touched the player? -- Theory -- Hand.Touched ? end Send me links I can study from: Link: Link: Link: Link: Link: Link:

Explain to me how I would do this: Show an example in a script:

1 answer

Log in to vote
3
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
7 years ago

Videos: As of now, no. The best you can do is flip between many different decals / image labels. For tiny animations, you can use ImageRectOffset and ImageRectSize to turn a single decal into a sequence of images, to avoid uploading hundreds of images manually.

GUIs Just change one of the properties. Tools have LocalScripts that can do whatever. Reach into the game.Players.LocalPlayer.PlayerGui.SomeScreenGui and change things.

Tools When a tool is added to the backpack, it appears in the tray of tools on screen and can be equipped by pressing the corresponding key or clicking on the button. A tool that is added directly to the player's character is equipped.

Backpack The tool has an Icon property, which is just a link to some decal, if that's all you want to change. If you want to fundamentally change the way the backpack looks, you have to disable it using SetCoreGuiEnabled and re-create it yourself. You could refer to the CoreScripts repository to find out how the built-in one is implemented.

Events

Events are an important part of programming in ROBLOX.

Events usually pass some parameters which give more detail about how the event happened. Refer to the Wiki page for examples and specifications of what those parameters are.

For example, the hand.Touched event passes a otherPart (the part that the hand touched).

When you :connect a function to an event, that function will get passed those parameters:

-- (define `hand` as needed)

function whenHandTouches(someOtherPart)
    -- e.g., turn everything you touch blue
    someOtherPart.BrickColor = BrickColor.blue()
end

hand.Touched:connect(whenHandTouches)
Ad

Answer this question