generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 12:51 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 12:52 PM
[ Content Deleted ]
Report Abuse
wazap is not online. 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 is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 12:56 PM
[ Content Deleted ]
Report Abuse
wazap is not online. 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 is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 12:58 PM
[ Content Deleted ]
Report Abuse
wazap is not online. 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 is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 12:59 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:00 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:03 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:04 PM
[ Content Deleted ]
Report Abuse
wazap is not online. 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 is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:09 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:11 PM
[ Content Deleted ]
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
08 Apr 2014 01:12 PM
Ya... Idk its just weird :/
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:13 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:17 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:43 PM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
08 Apr 2014 01:45 PM
Lol fool, you took a script from someone named "LogicFail"?
Report Abuse
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
08 Apr 2014 01:46 PM
If wazap can't help you, nobody can....
Report Abuse
wazap is not online. 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 is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 01:58 PM
[ Content Deleted ]
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
08 Apr 2014 02:19 PM
Let's start again.
What are you trying to do?
Report Abuse
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
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
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image