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: How would I fix this?

Previous Thread :: Next Thread 
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
13 Jul 2017 10:54 AM
I am trying to get the Player's PlayerGUI when you hit something (E.G: a part) but it is not working.

script.Parent.Touched:connect(function(hit,player)
hit.Parent.Torso.CFrame = CFrame.new(352.47, 292.835, -441.534)
local GUI = script.TP_Effect:Clone()
GUI.Parent = player.PlayerGui --ERROR HERE!!--
wait(2)
end)


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
CrystalFlameYT is not online. CrystalFlameYT
Joined: 17 Jul 2014
Total Posts: 222
13 Jul 2017 11:00 AM
Pastebim I made: YdE9GpxR



~𝓒𝓻𝔂𝓼𝓽𝓪𝓵
Report Abuse
CrystalFlameYT is not online. CrystalFlameYT
Joined: 17 Jul 2014
Total Posts: 222
13 Jul 2017 11:00 AM
Pastebin*



~𝓒𝓻𝔂𝓼𝓽𝓪𝓵
Report Abuse
IlyasTawawe is not online. IlyasTawawe
Joined: 24 Jun 2016
Total Posts: 22
13 Jul 2017 11:37 AM
first problem you have its:
the Touched Event don't give a second parameter just 1 Parameter its The Instance that hit the Event Binded Instance.

Actually all this script are broken:

stay tunned in this channel, you will get the solution soon!
Report Abuse
IlyasTawawe is not online. IlyasTawawe
Joined: 24 Jun 2016
Total Posts: 22
13 Jul 2017 11:37 AM
https://www.youtube.com/channel/UCZ7il9AWfJ78UwUuD3daKvg
Report Abuse
Skenderbeu98 is not online. Skenderbeu98
Joined: 11 Aug 2013
Total Posts: 467
13 Jul 2017 11:41 AM
Um...you don't get the player as an automatic parameter from the touched event as far as I know:

script.Parent.Touched:connect(function(hit)
local player = game.Players:FindFirstChild(hit.Parent.Name)
local gui = (intput GUI location here):Clone()
gui.Parent = player.PlayerGui
end)
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