AxFxJoin Date: 2009-08-14 Post Count: 518 |
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.
|
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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 |
|
|
Do this instead:
player.Character:SetPrimaryPartCFrame(Garage.PlayerPad.CFrame * CFrame.new(0,5,0)) |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
Same thing, character did not move to that position. |
|
|
huh... I swear that worked before. I'll have to play around with it, I know I used to CFrame the character. |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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. |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
This should not be complicated, any other work around? |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
Anyone?
|
|
adam1717Join Date: 2011-05-07 Post Count: 961 |
1. Where are you doing it? Server or Client.
2. Stop using caps lock, it making you look like a 12 year old rager.
|
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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
|
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
Sorry.
1. It's in a server script.
|
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
Anyone?
|
|
sayhisam1Join Date: 2009-11-25 Post Count: 2092 |
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. |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
It is located in a brick within work space within a model.
|
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
Bump.
|
|
|
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") |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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...???
|
|
|
Use moveto() then lower it player.Character.Torso.CFrame = player.Character.Torso.CFrame* Cframe.new(0,-8,0) |
|
|
Changing the CFrame should work fine, but are you changing it from a local script or from a regular script? |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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. |
|
LocardJoin Date: 2014-04-13 Post Count: 3516 |
Is it spitting out any errors? Does Garage.PlayerPad exist on the server since it is in a server script? |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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. |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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. |
|
LocardJoin Date: 2014-04-13 Post Count: 3516 |
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. |
|
AxFxJoin Date: 2009-08-14 Post Count: 518 |
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!
|
|