|
| 16 Feb 2012 06:36 PM |
Script:
script.Parent.Touched:connect(function(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human then script.LocalScript:clone().Parent = character end end)
LocalScript:
local cam = Workspace.CurrentCamera cam.CoordinateFrame=CFrame.new(-0.9998, 47.8, 40) cam.Focus=CFrame.new(-26, 0.9999, 39.5) wait(1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end
I put the local script in the script and put the script in a spawn. When I touched it. It still put the camera focusing on the character.
No output cuz output didn't say a single thing. |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:37 PM |
"if human then "
something's wrong there
http://www.roblox.com/My/Groups.aspx?gid=80738 |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:38 PM |
@Tiger
No, nothing's wrong with that.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:40 PM |
script.Parent.Touched:connect(function(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human then script.LocalScript:clone().Parent = character -- never defined character here end end)
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:41 PM |
Character is the player who touched it.
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:42 PM |
In the script you provided, you never defined it.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:43 PM |
script.Parent.Touched:connect(function(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human then script.LocalScript:clone().Parent = hit.Parent end end)
|
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 06:47 PM |
Output says this:
Workspace.monkey1589.LocalScript:7: 'eof' expected near 'end' |
|
|
| Report Abuse |
|
|
| |
|
CrasyTrex
|
  |
| Joined: 13 Mar 2011 |
| Total Posts: 761 |
|
|
| 16 Feb 2012 07:14 PM |
| I belive that means you need to add a end to that line I might be wrong. |
|
|
| Report Abuse |
|
|
| |
|
CrasyTrex
|
  |
| Joined: 13 Mar 2011 |
| Total Posts: 761 |
|
|
| 16 Feb 2012 07:24 PM |
| It might mean there is no needed end. |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 07:40 PM |
no ed needed here: local cam = Workspace.CurrentCamera cam.CoordinateFrame=CFrame.new(-0.9998, 47.8, 40) cam.Focus=CFrame.new(-26, 0.9999, 39.5) wait(1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end
|
|
|
| Report Abuse |
|
|