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
 

Re: Quick Question

Previous Thread :: Next Thread 
123mm is not online. 123mm
Joined: 11 Sep 2008
Total Posts: 199
27 Apr 2013 10:27 AM
I recently came back to roblox after quitting for almost 2 years


I am working on a game, in which a player's camera follows something however, the camera glitches out and gets jumpy when following, do I have to make the humanoid move without a local script to fix this? I don't want to rewrite my entire script to fix this if it won't work.

Thanks in advance.
Report Abuse
123mm is not online. 123mm
Joined: 11 Sep 2008
Total Posts: 199
27 Apr 2013 10:35 AM
Sorry for the cryptic-ness I am making the humanoid (which the camera is following) move with a local script.

here is the Code, the bug is either in the way I am messing with the camera or When I move the Humanoid (No errors though)

local hop = script.Parent
function selected(mouse)
function clicked()

if not (game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name..'tp')) then
local l = Instance.new('Part')
l.Parent = game.Workspace
l.Name = game.Players.LocalPlayer.Name..'tp'
l.Anchored = true
l.CanCollide=false
l.Transparency=1
else

game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name..'tp').CFrame = mouse.Hit
end
script.Parent.cellcontrol.Value.Celloid:MoveTo(game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name..'tp').Position,game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name..'tp'))
end

function weldit(cell)
local weld = Instance.new("Weld")
weld.Parent = cell.Head
weld.Part0 = cell.Head
weld.Part1 = cell.Torso
weld.C0 = CFrame.new( Vector3.new( 0 , 0 , 0 ) )
weld.C1 = CFrame.new()
end


if game.Players.LocalPlayer.PlayerGui:FindFirstChild('HealthGUI') then
game.Players.LocalPlayer.PlayerGui.HealthGUI:remove()
end

if game.Players.LocalPlayer.Character:FindFirstChild('Humanoid') then
game.Players.LocalPlayer.Character.Humanoid:remove()
end

game.Players.LocalPlayer.PlayerGui.UI.stagename.Value='Cell'

if script.Parent.chosen.Value == false then
pcell=game.Lighting.basiccell:clone()
pcell:MakeJoints()
weldit(pcell)
pcell.Parent= game.Players.LocalPlayer.Home_Planet.Value
pcell:MoveTo(game.Players.LocalPlayer.Home_Planet.Value:FindFirstChild('wbase').Position+Vector3.new(0,5,0))
pcell.Name = game.Players.LocalPlayer.Name.."cell"
game.Workspace.CurrentCamera.CameraType = 3
game.Workspace.CurrentCamera.CameraSubject = pcell
game.Workspace.CurrentCamera.FieldOfView=20

script.Parent.cellcontrol.Value = pcell
end

mouse.Button1Down:connect(clicked)
end



hop.Selected:connect(selected)
Report Abuse
Bloxyhead is not online. Bloxyhead
Joined: 12 Oct 2009
Total Posts: 52
27 Apr 2013 10:37 AM
...dont really understand
can you please elaborate?
like what is your script doing, ?
maybe you can just set the camera to follow, and have it's parent be a part, but is that what you've done? i have no idea ._.
Report Abuse
Bloxyhead is not online. Bloxyhead
Joined: 12 Oct 2009
Total Posts: 52
27 Apr 2013 10:38 AM
oh haha sorry didnt see your second post
i give up, im not reading that, sry
maybe someone else will help :)
Report Abuse
123mm is not online. 123mm
Joined: 11 Sep 2008
Total Posts: 199
27 Apr 2013 10:41 AM
Thanks for trying, I know it's a bit complicated., Hope someone can help me /:
Report Abuse
123mm is not online. 123mm
Joined: 11 Sep 2008
Total Posts: 199
27 Apr 2013 10:44 AM
Do you guys need me to elaborate on something?
Am I the first person to try this?
Report Abuse
123mm is not online. 123mm
Joined: 11 Sep 2008
Total Posts: 199
27 Apr 2013 10:59 AM
Can you guys seriously not figure this out?

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