|
| 06 Nov 2016 08:23 PM |
ROBLOX scripts has been getting pretty good. Very useful. I myself have used ROBLOX to test physics and stuff like that. I'm really impressed with the physics of ROBLOX. I hope to see more great stuff from ROBLOX.. Especially that has to do with scripting in lua. Really good stuff. I'm just amazed with the physics ROBLOX has introduces. I've incredible... Something I've been working on. --[[>Variables<]]-- local Stats = ga################################################################layerData = game.ServerStorage:WaitForChild('Player Stats')
--[[>Functions<]]-- game.Players.PlayerAdded:connect(function(Player) local Key = Player.UserId local Data = Instance.new('Folder') Data.Parent = PlayerData Data.Name = Player.Name.."-Data" --[[>Kills<]]-- local Level = Instance.new("NumberValue", Data) Level.Name = "Level" Level.Value = 0 --[[>Kills<]]-- local Kills = Instance.new("NumberValue", Data) Kills.Name = "Kills" Kills.Value = 0 --[[>Deaths<]]-- local Deaths = Instance.new("NumberValue", Data) Deaths.Name = "Deaths" Deaths.Value = 0 --[[>Prestiges<]]-- local Prestige = Instance.new("NumberValue", Data) Prestige.Name = "Prestige" Prestige.Value = 0 --[[>BanWarning1<]]-- local BanWarning1 = Instance.new("BoolValue", Data) BanWarning1.Name = "BanWarning1" BanWarning1.Value = false
--[[>BanWarning2<]]-- local BanWarning2 = Instance.new("BoolValue", Data) BanWarning2.Name = "BanWarning2" BanWarning2.Value = false
--[[>Banned<]]-- local Banned = Instance.new("BoolValue", Data) Banned.Name = "Banned" Banned.Value = false
--[[local PlayerStats = { Level.Value, Kills.Value, Is there an easier way to load a players stats isstead of all of that with this table? Deaths.Value, Prestige.Value }]]-- local HasData = Stats:GetAsync(Key) if HasData then print(Player.Name.." doesn't have any recorded data.") Level.Value = Stats:GetAsync(Key.."Level") Kills.Value = Stats:GetAsync(Key.."Kills") Deaths.Value = Stats:GetAsync(Key.."Kills") Prestige.Value = Stats:GetAsync(Key.."Prestige") else print(Player.Name.." doesn't have any recorded data.") end; Level.Changed:connect(function(LevelValue) Stats:SetAsync(Key.."Level",LevelValue) end); Kills.Changed:connect(function(KillsValue) Stats:SetAsync(Key.."Kills",KillsValue) end); Deaths.Changed:connect(function(DeathsValue) Stats:SetAsync(Key.."Deaths",DeathsValue) end); Prestige.Changed:connect(function(PrestigeValue) Stats:SetAsync(Key.."Prestige",PrestigeValue) end); end); game.Players.PlayerRemoving:connect(function(Player) local Key = Player.UserId Stats:SetAsync(Key,true) PlayerData[Player.Name]:Destroy() end); game.OnClose = function() wait(1) end; |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
| |
|
llaserx
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 53069 |
|
| |
|
| |
|
| |
|
|
| 06 Nov 2016 09:20 PM |
if HasData then print(Player.Name.." doesn't have any recorded data.") SpaceVertex = Stats:GetAsync(Key.."Law") Kills.Value = Stats:GetSpace(Key.."Kills") LeftParam.Value = Stats:GetAsync(Key.."Gravity") Prestige.Value = Stats:GetAsync(Key.."Prestige") else print(Player.Name.." doesn't have any recorded data of the physics just yet..") end; Glad you asked. This piece of code hear can be manipulated in multiple ways to test the limits of ROBLOX physics. It can be used to create something like the following.
Physics is one of the oldest academic disciplines, perhaps the oldest through its inclusion of astronomy.[9] Over the last two millennia, physics was a part of natural philosophy along with chemistry, biology, and certain branches of mathematics, but during the scientific revolution in the 17th century, the natural sciences emerged as unique research programs in their own right.[b] Physics intersects with many interdisciplinary areas of research, such as biophysics and quantum chemistry, and the boundaries of physics are not rigidly defined. New ideas in physics often explain the fundamental mechanisms of other sciences[6] while opening new avenues of research in areas such as mathematics and philosophy. |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2016 07:43 PM |
| ROBLOX has just been an incredible platform to work with! |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2016 07:58 PM |
| I can't tell if this is a joke. |
|
|
| Report Abuse |
|
|