generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » All Things ROBLOX
Home Search
 

Re: very simple script

Previous Thread :: Next Thread 
DoctorOnyx is not online. DoctorOnyx
Joined: 24 Feb 2013
Total Posts: 524
30 Mar 2013 08:43 PM
hey guys, i need some help with a script, i know how to script like the basics.

but i don't know functions and onTouched you know. well i'm making a game when you touch a treasure chest it will give you 1 treasure. i don't know how to do this really so if anyone could help me out that would be great.

i can't trust the internet anymore.
Report Abuse
DoctorOnyx is not online. DoctorOnyx
Joined: 24 Feb 2013
Total Posts: 524
30 Mar 2013 08:45 PM
bump

i can't trust the internet anymore.

Report Abuse
DoctorOnyx is not online. DoctorOnyx
Joined: 24 Feb 2013
Total Posts: 524
30 Mar 2013 09:01 PM
please?

i can't trust the internet anymore.
Report Abuse
evandro61536 is not online. evandro61536
Joined: 26 Dec 2010
Total Posts: 3142
30 Mar 2013 09:03 PM
local.Ontouch.connect.Humoid.Value = 0
Report Abuse
evandro61536 is not online. evandro61536
Joined: 26 Dec 2010
Total Posts: 3142
30 Mar 2013 09:04 PM
Wait nvm

local.Ontouch.connect.chancevalue.Points = 5
Report Abuse
dragon188 is not online. dragon188
Joined: 17 Dec 2008
Total Posts: 3276
30 Mar 2013 09:04 PM
Look in models for a point giving block. Take the script of of the block and put it inside the treasure chest. Insert a point leaderboard into the game and edit the script of the leaderboard to say "Treasure" instead of "points". Also go into the point giving block and look for a part that should say points or money or something and change it to treasure.
Report Abuse
DoctorOnyx is not online. DoctorOnyx
Joined: 24 Feb 2013
Total Posts: 524
30 Mar 2013 09:05 PM
:D
Report Abuse
evandro61536 is not online. evandro61536
Joined: 26 Dec 2010
Total Posts: 3142
30 Mar 2013 09:05 PM
its changevalue no chancevalue, sorry
Report Abuse
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
30 Mar 2013 09:14 PM
Try this script to help you understand functions and onClicked:

a = game.Workspace:finFirstChild("Part")

function onClicked()
wait(0.05)
a.Transparency = 0.1
wait(0.05)
a.Transparency = 0.2
wait(0.05)
a.Transparency = 0.3
wait(0.05)
a.Transparency = 0.4
wait(0.05)
a.Transparency = 0.5
wait(0.05)
a.Transparency = 0.6
wait(0.05)
a.Transparency = 0.7
wait(0.05)
a.Transparency = 0.8
wait(0.05)
a.Transparency = 0.9
wait(0.05)
a.Transparency = 1
wait(0.05)
a.CanCollide = false
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

---------------------------------------------------------------------------------------------------------------------------

Insert this script into an empty game with a brick that says "Part". Inside the brick, you will insert a ClickDetector via services. When you enter the game and test, it should work.

---------------------------------------------------------------------------------------------------------------------------

Look at several examples of this same script in this place I made: http://www.roblox.com/Model-Making-place?id=63053260
Report Abuse
DoctorOnyx is not online. DoctorOnyx
Joined: 24 Feb 2013
Total Posts: 524
30 Mar 2013 09:34 PM
didnt work for me
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image