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
 

Someone Plz Plz Plzzzzzz Help me

Previous Thread :: Next Thread 
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:22 PM

What is wrong with this?



function onTouched(hit)
humanoid = hit.Parent:findFirstChild("Humanoid")
get = game.Players:GetPlayerFromCharacter()
if (humanoid ~= nil) then
get.PlayerGui.TurretText.Frame.Visible = true
workspace.Camera_turret.Disabled = false
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 09:24 PM
get = game.Players:GetPlayerFromCharacter()

TO:

get = game.Players:GetPlayerFromCharacter(hit.Parent)
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:25 PM
ill try it, thank you
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:29 PM
It works now but now i need the fix for this plz:

scriptC = script.LocalScript:clone()
wait(0.1)
scriptC.Parent = game.Players.LocalPlayer
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 09:31 PM
1. Is this in a LocalScript?
2. Is another "LocalScript" inside THIS LocalScript?
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:32 PM
1 = no
ill try again,thank you
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:36 PM
not working. :(
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 09:39 PM
3. Are you sure? Is it maybe the OTHER script isn't working and this one is?
4. Check that this script isn't disabled.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:46 PM
Yes i am sure, it is not working :(
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:50 PM
I will try to fix it.If you have any ideas then please tell me.And i was wondering if you can help me with my game.Both of us would make the game really good.Do you want to?You WILL get credit..lots.You will be in intro trophy room,etc.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 09:51 PM
Where is this LocalScript located at?
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:52 PM
workspace.And do you want the offer above?
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 09:58 PM
LocalScripts do not work in Workspaces.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 09:59 PM
I will try something else but plz think hard about the offer.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 10:01 PM
I don't need any credits, and sorry, I don't have the time to create places with other people.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:04 PM
do they work in lighting?
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 10:04 PM
LocalScripts HAS to be part of the player. So shove it in the StarterGui.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:06 PM
I dont need you a LOT. I just need you to give me ideas and scripting tips for my game sometimes.My plan was to freind request you and then we can message each other and every time we go on roblox we check for messages.It takes barely anytime.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 10:09 PM
Sorry, I don't accept friend requests from people I don't specifically know. I help- but I don't full-time myself directly to just a person.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:13 PM
it works but it just plays its self when its disabled and only does it the first time.
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:13 PM
Why?
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:14 PM
There is nothing bad i can do to your account .
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 10:14 PM
What is the script inside THAT LocalScript?
Report Abuse
dman2366 is not online. dman2366
Joined: 13 Jun 2011
Total Posts: 76
09 Mar 2013 10:17 PM
it is:

local target = workspace.Turret.TurretCam
local camera = workspace.CurrentCamera
camera.CameraType = "Fixed"
camera.CameraSubject = target
local angle = 0

for i = 1,10 do
camera.CoordinateFrame = CFrame.new(target.Position)

* CFrame.Angles(0, -angle, 0)

* CFrame.new(0, 0, 0.00000000000000000001)

angle = angle +math.rad(-0.0000000000000000000001)
end

do i have to disable this too?It is a child of the other script.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Mar 2013 10:19 PM
Explain to me:

"it works but it just plays its self when its disabled and only does it the first time."

More details please, I don't quite understand what your trying to say. Like, how does it "play" when it's disabled? (Btw, Scripts only works when they are NOT disabled)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 2Go to page: [1], 2 Next
 
 
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