|
| 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 |
|
|
| |
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 20 Sep 2015 02:05 AM |
| Anyone else have some help? |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 20 Sep 2015 02:20 AM |
| Also name for the part clicked is Sound |
|
|
| Report Abuse |
|
|
|
| 20 Sep 2015 02:25 AM |
| Anyone else have something? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 Sep 2015 02:28 AM |
| No, just a small radius outside of it. |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 24 Sep 2015 07:00 PM |
| Someone please help me I cant script and i need scripting done for this game PLS :( |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 07:04 PM |
His script looks good. Put in the ID and tell us the error.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Sep 2015 01:21 PM |
It doesnt even click i cannot hear the sound on click |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Sep 2015 10:02 PM |
I know how to fix!
Put it in a localscript, and put that in playergui |
|
|
| Report Abuse |
|
|