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

I've learned the "Basics"; now what?

Asked by 9 years ago

Basically I've learned; Values Variables Print/Wait Nil Finding Objects Basic Functions Children Properties Math if statements

What can I do with knowing these? I also need ideas on what to make for a script, I want to make a "Working" iPhone 5S. I wont it to work as when you ahve the ihpone in your hand, click the screen, it comes up to a gui with a bunch of stuff.

Im NOT asking for a request, im just telling you what i want my script&model to do.

Im just requesting what I CAN DO with the knowledge i have acquired.

3 answers

Log in to vote
1
Answered by 9 years ago

There's many things you can do.

When the player equips the 'iPhone 5s', you could use the clone() method to transit the gui to the player's PlayerGui

player = game.Players.LocalPlayer
gui = script.Parent.[guiname]

function onEquipped()
gui:clone() = player.PlayerGui
end

script.Parent.Equipped:connect(onEquipped)

Make sure you have both a script containing the above (to clone the gui into the player's playergui) and the gui, inside a tool (the iphone 5s)

With the gui, you can make animations similar to the phone's os.

Like if a player were to open an app, you could use these as an opening animation.

TweenPosition(UDim2.new(#, #, #, #), "Out", "Quad", nil, true)

the first set of parenthesis should have values for the destinated gui position.

TweenSize(UDim2.new(#, #, #, #), "Out", "Quad", nil, true)

the first set of parenthesis should have values for the destinated gui size.

TweenSizeandPosition(UDim2.new(#, #, #, #), UDim2.new(#, #, #, #), "Out", "Quad", nil, true)

first set of parenthesis should have the values for the destinated gui size. second set of parenthesis should have the values for the destinated gui position.

(you can change the nil to a time duration of how long the gui should Tween. higher = slower lower = faster)

Try not to forget the MouseButton1Click() event. That's important for GUIs, if you were to have buttons.

script.Parent.Button:MouseButton1Click:connect(function()
-- script what happens here when you click the button
end)

Other than these, you could check the roblox wiki for more help on the making of your iPhone 5s. Otherwise, you could ask questions here.

Ad
Log in to vote
0
Answered by 9 years ago

Try make things you like to make, and get some knowledge to make other stuff you could'nt make before. Also, try make a 'real cool' game wich is spending alot of time to make.

Log in to vote
0
Answered by 9 years ago

If you want to learn that, Learn a lot about GUIs, Such as UDIm2.new, :TweenPositon, GUI properties, the Activated event for when the tool is activated. And you might need tables.

Answer this question