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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Scripting Helpers is dead

Previous Thread :: Next Thread 
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 05:37 PM
How to make a script where if you click on a Part, it plays music?
This is my script. lol fail

function onClicked()
Workspace.Sound.SoundId = 167541984
end

Indian of ATR
Report Abuse
ShoemakerHS is not online. ShoemakerHS
Joined: 07 Oct 2014
Total Posts: 190
11 Oct 2014 05:37 PM
fail
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 05:40 PM
no one asked for your life story

Indian of ATR
Report Abuse
XILostINSpaceIX is not online. XILostINSpaceIX
Joined: 11 Jun 2012
Total Posts: 35766
11 Oct 2014 05:41 PM
Go back there and try harder
Report Abuse
Ludipup is not online. Ludipup
Joined: 28 Dec 2013
Total Posts: 4347
11 Oct 2014 05:41 PM
my life story:

i was born

the end

Watch out, I'm Bonnie!
Report Abuse
jojods1125 is not online. jojods1125
Joined: 27 Sep 2011
Total Posts: 11253
11 Oct 2014 05:41 PM
I'm not at a computer so I can't help much, but did you put a ClickDetector object in the part? It's what will allow you to click it.
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
11 Oct 2014 05:42 PM
this is why i dont go on scripting helpers anymore.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
11 Oct 2014 05:42 PM
rofl i laugh when people say stuff like "Scripting helpers is dead"

It's not dead.
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 05:42 PM
@XILOST, I'm not scripter but I'll try. :l

Indian of ATR
Report Abuse
nacker is not online. nacker
Joined: 06 Oct 2009
Total Posts: 6034
11 Oct 2014 05:43 PM
put a clickdetector in the part and use this
function onClicked()
Workspace.Sound:Play()
end
script.Parent.ClickDetector:connect(onClicked)
Report Abuse
Krimulous is not online. Krimulous
Joined: 17 Mar 2011
Total Posts: 7993
11 Oct 2014 05:44 PM
ur first script wasnt bad but uh ur a little confused
also the function doesnt have to be named onClicked just for it to work
so here
ill give u instructions
put a ClickDetector inside the part you want clicked

then put a script inside the part (NOT CLICKDETECTOR)
then paste this

local part = game.Workspace.Part
local sound = game.Workspace.Sound

part.ClickDetector.MouseClick:connect(function()
sound:Play()
end)

settle down easy jim
Report Abuse
ShoemakerHS is not online. ShoemakerHS
Joined: 07 Oct 2014
Total Posts: 190
11 Oct 2014 05:44 PM
First off

The Sound ID wont just accept ID's

You need the asset link with it with quotations around it.


You also need to use this command

Play()
Report Abuse
drtrollr is not online. drtrollr
Joined: 11 May 2013
Total Posts: 10888
11 Oct 2014 05:44 PM
Workspace.Find.care.exe
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 05:46 PM
Do I put the asset link inside the parentheses or outside of the parentheses?

Indian of ATR
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Oct 2014 05:50 PM
function onClicked()
Workspace.Sound.SoundId = 167541984
end

first you need a way to start the sound'
and onclicked is not a function because it doesnt tell when you get clicked'
so much wrong with this

add a clickdetector and there is already a preset function for onclicked

share ur thoughts below!!11 and dotn forget to offer on 26k rap!!
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 05:53 PM
local part = game.Workspace.Part
local sound = game.Workspace.Sound

function onClicked()
Workspace.Sound.SoundId = 167541984
end

lol not working

Indian of ATR
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Oct 2014 05:58 PM
local part = game.Workspace.Part
local sound = game.Workspace.Sound

function onClicked()
Workspace.Sound.SoundId = 167541984
sound:Play()
end

game.Workspace.Part.onclick:connect(OnClicked)

share ur thoughts below!!11 and dotn forget to offer on 26k rap!!
Report Abuse
DanBossStar321 is not online. DanBossStar321
Joined: 26 Dec 2012
Total Posts: 27652
11 Oct 2014 06:03 PM
What script do I paste it in? Local or normal script?
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
11 Oct 2014 06:11 PM
normal

take a part and put a clickdetector in it and then put the script in clickdetectior

share ur thoughts below!!11 and dotn forget to offer on 26k rap!!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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