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
 

How come this isn't updating?

Previous Thread :: Next Thread 
ElementalSnake1 is not online. ElementalSnake1
Joined: 25 Oct 2015
Total Posts: 68
14 Nov 2015 01:51 PM
This doesn't fire when the text changes. Why?


CurrentGun.Changed:connect(function()
if not CurrentGun.Text:find(".") then
if LastCopy then
LastCopy:Destroy()
end
local Selected = CurrentGun.Text:gsub("Current Gun: ", "")
local Copy = GunsModel[Selected]:Clone()
Copy.Parent = Background
Copy.CFrame = Background.CFrame * CFrame.new(0, 2, 0) * Modules[Selected].Offset
Copy.Variables:Destroy()
LastCopy = Copy
local Weld = Instance.new("Weld", Copy)
Weld.Part0 = Background
Weld.Part1 = Copy
Weld.C1 = Copy.CFrame:inverse()
end
end)
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
14 Nov 2015 01:55 PM
You realize that finding "." will match ANY character at all?

If you want to match a period, do %. instead.
Report Abuse
ElementalSnake1 is not online. ElementalSnake1
Joined: 25 Oct 2015
Total Posts: 68
14 Nov 2015 01:58 PM
@Jarod

Thank you, that fixed it.
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