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

How can I make an object, when touched, move 15 studs down for a period of 90s?

Asked by 6 years ago

How can I make an object, when touched by a humanoid, be move 15 studs down (vertically) for a period of 90 seconds then reset to where it began?

The brick intended to be the parent of the script is actually a sword-giver in my game. But rather than the giver being capable of delivering infinite swords, want to regulate the rarity of the particular sword attached to it.

If you can think of a simpler way of accomplishing the same thing, please let me hear it! I appreciate all the help I get!


Also, please feel free to visit this game that I have put so much effort in over the years! I love to receive good criticism and new ideas! https://www.roblox.com/games/100869388/Sword-Fighting-Celestial-Concept

0
can you post the code of the swordgiver, yes there are much easier ways of doing it Vulkarin 581 — 6y
0
Position, Touched events, and wait(). All in which can be easily found on the Roblox Forums. ee0w 458 — 6y
0
@Vulkarin I made the giver a free-model for you: https://www.roblox.com/library/1315180241/Sword-Giver Hiremetobuildforyou 6 — 6y
0
``` local brick=script.Parent while wait(1) do script.Parent.BrickColor = BrickColor.Random() for I=1,10 do brick.Position=brick.Position+Vector3.new(0.7,0,0) wait() end wait(1) script.Parent.BrickColor = BrickColor.Random() for I=1,10 do brick.Position=brick.Position+Vector3.new(-0.7,0,0) wait() end end``` Vlad_DraculaTV -2 — 6y

Answer this question