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 » Scripters
Home Search
 

Re: Could someone fix this

Previous Thread :: Next Thread 
dude10000009 is not online. dude10000009
Joined: 23 Nov 2010
Total Posts: 809
17 Aug 2015 09:32 AM
o im tryng to mke it so when i click on the button in my gui it spawns it aboe my character ive got it to spawn before but not above my head so i revamped and it dosent work at all now heres the script


PropChair = game.Lighting.Chair:Clone()
player = game.Players:FindFirstChild("Humanoid")

function onClicked()
while true do
PropChair = game.Lightning.Chair:Clone()
wait(2)
PropChair.Parent = game.Workspace
PropChair:MoveTo(player.Position + Vector3.new(0,2,0))
PropChair:MakeJoints()
end
end
script.Parent.MouseButton1Down:connect(onClicked)
Report Abuse
zaydandalfie is not online. zaydandalfie
Joined: 12 Jun 2014
Total Posts: 81
17 Aug 2015 09:46 AM
Thisisi not a place for help requests
Report Abuse
GlacierGames is not online. GlacierGames
Joined: 22 Oct 2011
Total Posts: 1549
17 Aug 2015 10:11 AM
@zay yes it is...
Report Abuse
GlacierGames is not online. GlacierGames
Joined: 22 Oct 2011
Total Posts: 1549
17 Aug 2015 10:13 AM
function onClicked()
player = game.Players.LocalPlayer
character = player.Character
torso = character.Tors
PropChair = game.Lightning.Chair:Clone()
wait(2)
PropChair.Parent = game.Workspace
PropChair:MoveTo(torso.Position + Vector3.new(0,2,0))
PropChair:MakeJoints()
end
script.Parent.MouseButton1Down:connect(onClicked)
Report Abuse
dude10000009 is not online. dude10000009
Joined: 23 Nov 2010
Total Posts: 809
17 Aug 2015 11:55 AM
Glacier thanks but this isnt working? ive tried adding local to the varibles and mving them out of function but still does not work??
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
17 Aug 2015 12:05 PM
player = game.Players.LocalPlayer

function onClicked()
local PropChair = game.Lighting.Chair:Clone()
PropChair.Parent = game.Workspace
while true do
wait()
PropChair:MoveTo(player.Position + Vector3.new(0,2,0))
PropChair:MakeJoints()
end
end

script.Parent.MouseButton1Down:connect(onClicked)

If this doesn't work what are the errors? What happens and what doesn't?
Also please do not use Lighting for storage. Use SeverStorage instead.
Report Abuse
dude10000009 is not online. dude10000009
Joined: 23 Nov 2010
Total Posts: 809
17 Aug 2015 01:07 PM
Works But spawn it like it did before just in the workspace in a specific location anyway ito fix this?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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