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 » Scripters
Home Search
 

Re: Script help?

Previous Thread :: Next Thread 
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 01:47 AM
Can someone help me script a game Im making? if you want to know what kind of scripts, party me.
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 01:50 AM
Anyone?
Help?
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 01:54 AM
Please?
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 01:58 AM
Anyone at all?
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 Sep 2015 01:58 AM
Scripting is fun and easy to learn if you are doing it at the right place and your game doesn't use crazy loads of math.

What is it that you want to script specifically at the moment (not a whole game)
I will do one request if the task is descriptive and easy enough ( ͡° ͜ʖ ͡°)
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:01 AM
Well,I know its fun to learn, but scripting isnt so easy for me. I can learn what a function and varible is and all that, but i cant find the exact order i need them to for the script to function properly.

A script i need for a start is a certain noise when you click something.
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:05 AM
Anyone else have some help?
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:07 AM
Yes?
No?
Maybe?
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 Sep 2015 02:08 AM
Are you clicking a brick or a gui object (frame-button)?

And if you're simply playing a sound, you can do this

local S = Instance.new('Sound', workspace)
S.SoundId = 'rbxassetid:// ID here pls'
S.Volume = 1
S:Play()
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:10 AM
Your Clicking a brick, This is only 1/5 of the script but i dont wanna have you do every single bit of it because thats technically 75% of the game.
this script is about 5%.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 Sep 2015 02:15 AM
Next question(s)

Where do you want the sound to play?
(If you want it to originate in a brick, give me the brick location relative to the workspace)
(If you want it to only be heard by a select player, I can play a sound in the startergui)
(If you want it to play for a select player but originate from a brick (you need filtering enabled or a part inside the camera instance aka currentcamera)

And finally Do you want this to be only certain parts that you click? if so, give me the requirements for the part to be clickable (i.e. a name)
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:19 AM
I want the sound to originate in the brick, but players near it can hear it. location is 24.6, 3.6, 232.3

Yes a certain part because the brick youm click is inside a model.
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:20 AM
Also name for the part clicked is Sound
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:25 AM
Anyone else have something?
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 Sep 2015 02:26 AM
So let me get this straight, you want it so when you click a brick that's name is Sound, it plays a sound inside of the object?

That is it right :>?
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 02:28 AM
No, just a small radius outside of it.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 Sep 2015 02:34 AM
'A small radius around it' well that doesn't make much sense but whatever

local P = game.Players.LocalPlayer
local C = P.Character or P.CharacterAdded:wait()
local H = C:WaitForChild'Humanoid'
local M = P:GetMouse()
local D = false

H.Died:connect(function() D = true end)

M.Button1Down:connect(function() if not D and M.Target and M.Target.Name == 'Sound' and
P:DistanceFromCharacter(M.Target.Position) < 6 then local S = Instance.new('Sound',
M.Target)
S.SoundId, S.Volume, S.PlayOnRemove = 'rbxassetid://', 1, true S:Destroy() end
end)

All you need to do now is change the asset ID of the sound
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
20 Sep 2015 05:23 AM
doesnt work
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
24 Sep 2015 07:00 PM
Someone please help me I cant script and i need scripting done for this game PLS :(
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
24 Sep 2015 07:04 PM
His script looks good. Put in the ID and tell us the error.

-The [Guy]
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
24 Sep 2015 07:04 PM
You have to be within 6 studs when you click it for that script I think...

-The [Guy]
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
26 Sep 2015 01:21 PM
It doesnt even click
i cannot hear the sound on click
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
26 Sep 2015 09:20 PM
please someone help
Report Abuse
SCOTTSCOTTSCOTTMatt is not online. SCOTTSCOTTSCOTTMatt
Joined: 21 Aug 2014
Total Posts: 387
26 Sep 2015 09:58 PM
Anyone? Help?
Report Abuse
Chilipepper8 is not online. Chilipepper8
Joined: 22 Jul 2013
Total Posts: 121
26 Sep 2015 10:02 PM
I know how to fix!


Put it in a localscript, and put that in playergui
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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