|
| 21 Jun 2016 12:23 PM |
I made a script for a cutscene. The LocalScript that was put inside the player says that "Move" is not valid member of "Scriptable" (the name of my script). But it's actually in it... I don't know why it's working only in ROBLOX Studio and no in ROBLOX Player. If someone can help me, it would be appreciated. ^_^
Here's the script: local player = game.Players.LocalPlayer
script:WaitForChild("Move").Changed:connect(function() -----> the problem is here if script:WaitForChild("Move").Value == true then workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable print"tabarnak" repeat wait() workspace.CurrentCamera.CoordinateFrame = CFrame.new((script.CameraPosition.Value), player.Character.Head.Position) until script.Move.Value == false else workspace.CurrentCamera.CameraType = Enum.CameraType.Custom end end)
Thank you in advance! |
|
|
| Report Abuse |
|
|
| |
|
sentry3
|
  |
| Joined: 01 May 2010 |
| Total Posts: 538 |
|
|
| 21 Jun 2016 03:03 PM |
im sorry but i have to say your wasting your time to design one just use this plugin :) https://www.roblox.com/Cutscene-Editor-Plugin-FIXED-item?id=142296237 alot easier then messing with your brain to figure it out |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2016 03:13 PM |
| I already know this plugin since it came out. The problem with this plugin is that there's not the function nor the special effect I want for my cutscenes. It is too specific. I have no problem with the camera itself. It's just a Value that is not detected online. Thank you for trying though. :L |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2016 03:22 PM |
repeat wait() until script:FindForChild("Move") --add that one line above? |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2016 03:27 PM |
| I put a print after your line and nothing in the output. I don't know why it's doing that... Move is literally inside the script. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
torus
|
  |
| Joined: 01 Dec 2007 |
| Total Posts: 2542 |
|
|
| 21 Jun 2016 06:12 PM |
I've noticed that there's some weird bug where any values inside of a script (not in the actually code, but in workspace), end up getting deleted...
I would probably just move the value outside of the script somewhere and modify the code to work with that
|
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 02:20 AM |
| The Value is not deleted since when I tested the script, the Value was still in LocalScript. I think it is not recognized :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2016 04:33 PM |
if repeat wait() until script:FindForChild("Move") --add that one line above? doesn't work, then Move is nil. is the case right? make sure it's in script |
|
|
| Report Abuse |
|
|
Briicks
|
  |
| Joined: 03 Apr 2015 |
| Total Posts: 1796 |
|
|
| 24 Jun 2016 04:37 PM |
script.Parent:WaitForChild("Move")...??? Are you missing a Parent or is it suppose to be like that?
Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder |
|
|
| Report Abuse |
|
|