NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 12:55 PM |
wtf.
f = script.Parent f.Touched:connect(function(hit) if hit and hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then game.Players:GetPlayerFromCharacter(hit.Parent.CameraMode="LockFirstPerson" end end)
I recommend you re-read the Wiki, because this is nowhere near Lua... |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 12:57 PM |
| Tell LogicFail that his Logic Fails and tell him to go read the Wiki. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 12:59 PM |
typo.
f = script.Parent f.Touched:connect(function(hit) if hit and hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then game.Players:GetPlayerFromCharacter(hit.Parent).CameraMode="LockFirstPerson" --I missed a ) in this line end end)
And at least mine is actual Lua
|
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 01:05 PM |
Thats an issue I see all the time e.e Its rly rly weird tbh
Try adding this after setting the camera
hit.Parent.Humanoid.Died:connect(function() game.Players:GetPlayerFromCharacter(hit.Parent).CameraMode="Classic" end) --idk if this would work. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 01:12 PM |
| Ya... Idk its just weird :/ |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 08 Apr 2014 01:45 PM |
| Lol fool, you took a script from someone named "LogicFail"? |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 01:46 PM |
| If wazap can't help you, nobody can.... |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 01:50 PM |
| I also have the same problem in one of my games tbh. And it cant be a LocalScript issue because mine IS in a LocalScript... |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 08 Apr 2014 02:19 PM |
Let's start again. What are you trying to do? |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 02:42 PM |
script.Parent.Touched:connect(function(hit)-- When its touched. if game.Players:findFirstChld(hit.Parent.Name) then-- if its touched by a player. player = game.Players:findFirstChild(hit.Parent.Name) player.CameraMode = "Classic" wait() player.CameraMode = "LockFirstPerson" end end) |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 02:44 PM |
| You need to reset it back to Classic then set it back to LockFirstPerson for anyone that didnt know. |
|
|
| Report Abuse |
|
|