|
| 30 Apr 2012 08:16 PM |
I don't know. I have a script inside of a model inside of the camera (LocalObjects) and it doesn't work. It works in solo, as all localscripts do T_T, but not in online mode. I've tried converting it to a localscript, but it won't work at all. It looks for a value, and then copies the appropriate dialog (Still a LocalObject) into the part (Local). It doesn't error or copy the dialog.
while wait() do wait()
if script.Parent.Visit.Value == 0 and not script.Parent:FindFirstChild("Dialog0") then script.Parent.Dialogs.Dialog0:clone().Parent = script.Parent
elseif script.Parent.Visit.Value == 1 and not script.Parent:FindFirstChild("Dialog1") then script.Parent.Dialog0:remove() script.Parent.Dialogs.Dialog1:clone().Parent = script.Parent
elseif script.Parent.Visit.Value == 2 and not script.Parent:FindFirstChild("Dialog2") then script.Parent.Dialog1:remove() script.Parent.Dialogs.Dialog2:clone().Parent = script.Parent
elseif script.Parent.Visit.Value == 3 and not script.Parent:FindFirstChild("Dialog3") then script.Parent.Dialog2:remove() script.Parent.Dialogs.Dialog3:clone().Parent = script.Parent
end end |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 30 Apr 2012 08:18 PM |
| Scripts shouldn't run online in a local camera - not matter what type they are. Control it from the Backpack instead. |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 08:21 PM |
| Since I don't feel like doing this for so many quests, do you have any simpler ideas to make quests like this? |
|
|
| Report Abuse |
|
|
av83r
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 2580 |
|
|
| 30 Apr 2012 08:25 PM |
| the camera in build/edit does not exist in the same way as online mode. Have it launch from a starter gui and place it in the players camera, that should solve the problem |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 08:28 PM |
@Avr
I don't understand what you're saying. |
|
|
| Report Abuse |
|
|