AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 03:10 PM |
FOR SOME REASON THIS LINE REFUSES TO WORK IN SERVER MODE. Works in client mode.
player.Character.Torso.CFrame = Garage.PlayerPad.CFrame
However, MoveTo:() works just fine but it's inconsistent because it will usually spawn the player I want to move ontop of the building I want to move them inside of.
What is even MORE ODD, is that this line works in SERVER MODE & CLIENT.
player.Character.Torso.CFrame = Garage.VehicleSelect.Vehicle.Vehicle_1.Car.Body.VehicleSeat.CFrame
No errors in the output.
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 03:12 PM |
Before you say it's directories, it's not. It's also not within an if statement or anything that would make it possibly not function that line.
HERE'S THE PASTEBIN. http://pastebin.com/322JBRtv |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 03:12 PM |
Do this instead:
player.Character:SetPrimaryPartCFrame(Garage.PlayerPad.CFrame * CFrame.new(0,5,0)) |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 03:15 PM |
| Same thing, character did not move to that position. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 03:16 PM |
| huh... I swear that worked before. I'll have to play around with it, I know I used to CFrame the character. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 03:18 PM |
IT SHOULD WORK! I don't understand why not, have a look at my paste bin.
I have another line of player.Character.Torso.CFrame that works for putting the character into a vehicle seat, but for some reason not for the garage playerpad directory, even though it is correct and will work for other things.
There is no findfirstchild for it either, and no output errors. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 03:39 PM |
| This should not be complicated, any other work around? |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
| |
|
adam1717
|
  |
| Joined: 07 May 2011 |
| Total Posts: 960 |
|
|
| 27 Jan 2016 08:01 PM |
1. Where are you doing it? Server or Client.
2. Stop using caps lock, it making you look like a 12 year old rager.
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 08:05 PM |
1. YOU DIDN'T READ THE FIRST LINE OF THIS POST.
2. I'M ANGRY, NOT 12, BUT RAGING. I have a right to use caps. :p
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 08:07 PM |
Sorry.
1. It's in a server script.
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
| |
|
sayhisam1
|
  |
| Joined: 25 Nov 2009 |
| Total Posts: 2092 |
|
|
| 27 Jan 2016 08:27 PM |
Where is the script located? If it is located anywhere within the Player folder, then it must be a localscript to run the code with FilteringEnabled. If it is located on the server, though, then it will run. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 08:46 PM |
It is located in a brick within work space within a model.
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
| |
|
|
| 27 Jan 2016 09:57 PM |
torso.CFrame = CFrame.new(Garage.PlayerPad.Position + Vector3.new(0, 3, 0))
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 27 Jan 2016 10:13 PM |
Didn't work. I don't get it, MoveTo() doesn't work either now it seems...
And it's just that second function, even though it runs it's almost like it skips that line entirely no matter what I put there.
Only difference between the two functions was the character was anchored in the one that doesn't work, and I tried removing that and that wasn't the problem either...???
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 10:53 PM |
| Use moveto() then lower it player.Character.Torso.CFrame = player.Character.Torso.CFrame* Cframe.new(0,-8,0) |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 10:54 PM |
| Changing the CFrame should work fine, but are you changing it from a local script or from a regular script? |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 28 Jan 2016 04:00 PM |
Like I already said, it's in a server script.
And moveto() will not work either but the rest of the function works just fine. |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 28 Jan 2016 04:06 PM |
| Is it spitting out any errors? Does Garage.PlayerPad exist on the server since it is in a server script? |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 28 Jan 2016 04:11 PM |
Again like I said, no errors in output, directories are correct.
If I remove .CFrame from the line that doesn't work it will error which mean the line is run, but does nothing.
I think this is a legit bug, the same CFrame line works to put the character into a vehicle seat, but not a brick???
This only happens with filtering enabled on, which still makes 0 sense because it's done in a server script. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 28 Jan 2016 04:13 PM |
If I click play in client mode, both CFrame lines work just fine. If I start up server mode, only the player pad line does not function, and again no errors!!!
Right, yes playerpad is a brick on the server, not installed by the client or anything. |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 28 Jan 2016 04:13 PM |
It's not a bug. My game is running pretty well and it applies both FE and torso CFraming.
If the line of code is running, try printing out the CFrames of the torso before and after it to check if it is different or something.
If all else fails, try moving the HumanoidRootPart instead. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 28 Jan 2016 04:31 PM |
Upon more testing, still having the same issue.
I printed before and after the "problem" line. At first I didn't see the prints, but then realized it was printing on the server. So it prints, and runs past the line.
I also noticed once when the server was slower than normal that the player quickly jumped to the playerpad position and went right back!
Double checked for errors, 0. I thought my for, i v statements might have prevented the line from running, even after removing them the line runs and does nothing.
I SWEAR THIS IS A BUG!
|
|
|
| Report Abuse |
|
|