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 |
|
| |
|
|
| 08 Apr 2014 11:39 AM |
Neon, nobody will help you if you demand for help. Just wait patiently and someone will answer.
When life gives you lemons... BURN HIS HOUSE DOWN! >:D |
|
|
| Report Abuse |
|
|
chris046
|
  |
| Joined: 20 Jul 2008 |
| Total Posts: 31 |
|
|
| 08 Apr 2014 11:53 AM |
Lua is quiet different then Java. You don't put when it activates in the function name. Example
Function bob() Print("Hello World") end
game.Workspace.brick.onTouched:connect(bob)
This may not be to accurate, writing this from school. Hope this helps! |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Apr 2014 12:01 PM |
also .Touched not .OnTouched
OnTouched is a function name,not an event |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 08 Apr 2014 12:18 PM |
f=script.Parent plr=game.Players.PlayerAdded char=plr.Character hum=char.Humanoid part.Touched:connect(hum)--Inside here you need a parameter. However, the parameter for any :connect method would have to be a function. Also, an Event is kind of like a Property with a ton of flexibility. It is a property that activates when something happens, and you can determine what happens by a function. The :connect you can think of as a glue to "connect" The event/property and function together.
--Idk what to put for when you lock firstperson here. I thought I did but.. end end) |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 01:11 PM |
script.Parent.Touched:connect(function(h) if h.Parent:FindFirstChild("Humanoid") then plr = game.Players:GetPlayetFromCharacter(h.Parent) plr.CameraMode = "LockFirstPerson" end end) |
|
|
| Report Abuse |
|
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 08 Apr 2014 01:14 PM |
Guy above Using the new way NEED TO KEEP THE OLD WAY OF ROBLOX SCRIPTING BACK However, you guys called for bob, how may i help you? ;) |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 01:23 PM |
| What do you mean "new" way? |
|
|
| Report Abuse |
|
|