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
 

If + DataStore + IntValue not working ?

Previous Thread :: Next Thread 
leinad1313 is not online. leinad1313
Joined: 14 Aug 2013
Total Posts: 44
27 Apr 2015 11:00 AM
So thats my Script i want to use its not working , i load and created the IntValues with another Script that is working.


Playerc = script.Parent.Parent
Player = Playerc.Character


debounce = true


if Playerc.leaderstat:FindFirstChild("leaderstat") and Playerc:FindFirstChild("Race") and Playerc.leaderstat.Race == 3 then

if (Player:findFirstChild("Humanoid") ~= nil and debounce == true) then
debounce = false
p = game.Lighting.Shark:Clone()
p.Parent = Player
p.Position = Player:findFirstChild("Torso").Position
p.Locked = true
p.Name = "Shark"
p.Size = Vector3.new(2,2,2)
local weld = Instance.new("Weld",p);

weld.Part0 = Player:findFirstChild("Torso");

weld.Part1 = p;

weld.C0 = CFrame.new(0,0.4,0.2)*CFrame.Angles(math.rad(140),0,0);


debounce = true
end

end
Report Abuse
alvin1104 is not online. alvin1104
Joined: 22 Feb 2011
Total Posts: 681
27 Apr 2015 11:07 AM
I think you spelled leaderstats wrong at the start. For values to show on a leaderboard they must be inside a value called leaderstats.
Report Abuse
leinad1313 is not online. leinad1313
Joined: 14 Aug 2013
Total Posts: 44
27 Apr 2015 11:32 AM
No i created a new called leaderstat, i said all is working i also can change the Values in a Script but if i try it like:

if Player.leaderstat.Race == 3 then

its not working.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
27 Apr 2015 11:36 AM
.Value


I script -~ chimmihc
Report Abuse
leinad1313 is not online. leinad1313
Joined: 14 Aug 2013
Total Posts: 44
27 Apr 2015 11:41 AM
Sry total forgat it here but i put it allrdy in my SCript not working mhh :/
Report Abuse
leinad1313 is not online. leinad1313
Joined: 14 Aug 2013
Total Posts: 44
27 Apr 2015 11:42 AM
Totaly forgot that sry (hate my Keyboard) but i put it in before and nothing works. I tryed so much
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