Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 20 Nov 2015 06:09 PM |
game.Workspace.Forever:Play() wait(0.1) game.Workspace.Forever.TimePosition = 60
I get the feeling I'm doing something wrong with the 60. (P.S, yes I'm an idiot) |
|
|
| Report Abuse |
|
|
coolmatt3
|
  |
| Joined: 12 Jul 2010 |
| Total Posts: 778 |
|
|
| 20 Nov 2015 06:15 PM |
Script works fine.
Just put the script inside the Audio thingy
song = script.Parent
song:Play() wait() song.TimePosition = 60 |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 20 Nov 2015 06:23 PM |
| It's still not working for some reason. It just plays the song from the start, nothing in output. |
|
|
| Report Abuse |
|
|
coolmatt3
|
  |
| Joined: 12 Jul 2010 |
| Total Posts: 778 |
|
| |
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
| |
|
|
| 21 Nov 2015 10:39 AM |
What is the song's actual length?
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
| |
|
|
| 21 Nov 2015 10:57 AM |
Question, do you just want it to start playing at 60?
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 21 Nov 2015 10:59 AM |
| It's part of a preview script, it plays the song halfway through for ten seconds and then stops |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2015 11:02 AM |
If you just want it to play for 60 seconds from halfway through, try this:
Hierarchy Sound>Script
script.Parent.TimePosition = "60" script.Parent:Play wait(10) script.Parent:Pause()
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2015 11:03 AM |
I mean that will play for 10 seconds from halfway through whenever the game loads up.
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2015 11:04 AM |
Oh my gosh I am off my game today sorry, make the script.Parent:Play into script.Parent:Play()
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 21 Nov 2015 11:07 AM |
| Haha, the only problem is that I want to keep the sound in the workspace since its a button activating the script in the first place. Is that possible? |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2015 11:11 AM |
Sure thing, glad to help
Hierarchy: Part>Sound,ClickDetector,Script
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Sound:Pause() script.Parent.Sound.TimePosition = "60" script.Parent.Sound:Play() wait(10) script.Parent.Sound:Pause() end)
It never ceases to amaze me. Kids make sure we know who they are with wild allegations then act like we talk about them. Random egos. |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 21 Nov 2015 11:13 AM |
| Alright, thanks. I'll try this when I get home ^^ |
|
|
| Report Abuse |
|
|
Xyka
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 174 |
|
|
| 21 Nov 2015 11:14 AM |
| Alright thanks, I'll try this when I get home ^^ |
|
|
| Report Abuse |
|
|