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 somebody PLEASE save me from this depression?

Previous Thread :: Next Thread 
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
13 Aug 2015 05:09 AM
A week ago I couldnt find out why aren't scripts chaning ShirtTemplate assets, then I used a LocalScript and it worked. But just now I found out that LocalScript only works for the LocalPlayer, in fact, the asset doesnt even actually change in the server! The texture does change but only for the LocalPlayer! Like when Player1 sees he himself as wearing a shirt with the asset http://roblox.com/asset/?id=3039068 then the other players still see him wearning a shirt with the template of http://roblox.com/asset/?id=144076357 (Which everyone spawns with!) and when I printed the asset it said the same template as others saw me with! When I used the exact same script with a normal script IT ABSOLUTELY DOES NOTHING!


while wait (0.2) do
local pla = game.Players:FindFirstChild(script.Parent.Name)
if pla ~= nil then
local sh = pla.Character:FindFirstChild("sark")
if sh ~= nil then
if pla.ShirtValue.Value == 0 then
sh.ShirtTemplate = " "
end
if pla.ShirtValue.Value == 1 then
sh.ShirtTemplate = "http://roblox.com/asset/?id=3039068"
end
if pla.ShirtValue.Value == 2 then
sh.ShirtTemplate = "http://roblox.com/asset/?id=144076357"
end
if pla.ShirtValue.Value == 3 then
sh.ShirtTemplate = "http://roblox.com/asset/?id=25158587"
end
end
end
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
13 Aug 2015 05:36 AM
try disabling fe?
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
13 Aug 2015 05:45 AM
Actually when a player respawns the script is cloned into the character, the script is disabled but the cloned one when the parent already is the player's character isnt.
Report Abuse
membra is not online. membra
Joined: 14 Oct 2008
Total Posts: 6313
13 Aug 2015 06:51 AM
Do it inside of a server script. Changes made by the client will not be replicated if FE is on.


[i like rhubarb]
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
13 Aug 2015 07:19 AM
Sorry, i'm a begginner in scripting but whats an FE and a server script and a client? I checked the wiki about some client side scripting and server side scripting but didnt understand anything. I'm guessing the client is the player and his computer screen and server is the global thing that everyone in the server is affected by right?
Report Abuse
Eauz is not online. Eauz
Joined: 23 Jul 2013
Total Posts: 2942
13 Aug 2015 07:21 AM
game.Workspace.FilteringEnabled = false.
Report Abuse
Eauz is not online. Eauz
Joined: 23 Jul 2013
Total Posts: 2942
13 Aug 2015 07:22 AM
Or just to Workspace, look for the property "FilteringEnabled" and untick it.
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
13 Aug 2015 07:29 AM
It's already false
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