May 30th, 2016
LocalScript: my Discord! Saber simulator roblox hack / script new click here to get the script. Murder mystery 2 roblox hack / script. Click here to get the script. Grow simulator roblox.
Lua Script Executor. Our exploits are the one of the best Roblox lua script executor ever made! Can execute almost all script. It can run scripts like 'Infinite Yield', 'c00lkidd gui', 'Ro-Xploit' & more.
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- --Script made by Fiterpilot. All rights reserved to Nova Studio
- --Variables
- local tycoon = script.Parent.Tycoon --Variable for Tycoon object (inside of tycoon)
- local ownerName = tycoon.OwnerName --Variable for OwnerName object
- local cash = tycoon.Cash --Variable for cash object
- local essentials = tycoon.Essentials -- Variable for Essentials object
- local purchases = tycoon.Purchases
- local claim = tycoon['Become Owner'].Head --Variable for claim part
- local collector = essentials.Collector -- Variable for collector part
- local giver = essentials.Giver --Varaible for giver part
- local display = essentials.Display --Variable for display
- local PCash --Variable for player's cash
- --Variable for Regen
- local Backup = Model:clone()--Clones Model
- claim.Touched:connect(function(hit)--Function for claiming
- if ownerName.Value 'then--If ownerName.Value is '
- player = game.Players:GetPlayerFromCharacter(hit.Parent)--Find the player that touched it
- print('player exists')
- PCash = player.leaderstats:FindFirstChild('Cash')--Find his cash
- print('PCash exists')
- local owns = player:FindFirstChild('Owns')--Find his owns
- print('Owns exists')
- if hit.Parent:FindFirstChild('Humanoid')then--Now, is he a human?
- if hit.Parent.Humanoid.Health >0then--Is he alive?!
- ownerName.Value = player.Name --Change ownerName to his name
- claim.Parent.Name = player.Name..'s kitchen'--Show ownership
- claim.CanCollide =false--Make sure we can walk through
- player.TeamColor = claim.BrickColor --Set his team to the color of the brick
- end
- end
- end
- end
- collector.Touched:connect(function(hit)--When the collector is touched
- if hit.Name 'Food'then--If it was touched by 'Food'
- local val = hit:FindFirstChild('Value')--Find how much it's worth
- cash.Value = cash.Value + val.Value --Add the value of the food to cash
- end
- end)
- --Give player money
- giver.Touched:connect(function(hit)--When the giver is touched
- if cash.Value >0then
- if hit.Parent.Name ownerName.Value then--If hit's name is = to ownerName
- PCash.Value = PCash.Value + cash.Value --Give the player the money
- buySound:Play()--Plays sound
- end
- end)
- --Updating display
- cash.Changed:connect(function()--When cash is changed
- display.SG.Frame.Money.Text =tostring(cash.Value)--Update display
- for i,v inpairs(buttons:GetChildren())do--Look through all the buttons and get their children
- if v:FindFirstChild('Head')then--Find the children's heads
- local object = purchases:FindFirstChild(v.Object.Value)--Hold the value for objects
- objects[object.Name]= object:Clone()--Clone it
- else
- print('Button: '..v.Name..' is missing its object and has been removed.')
- v.Head.Transparency =1
- if v:FindFirstChild('Dependency')then--Find the dependency
- v.Head.Transparency =1
- if purchasedO:WaitForChild(v.Dependency.Value)then--Wait for that object to be purchased
- v.Head.Transparency =0
- end))
- v.Head.Touched:connect(function(hit)--If the head of a button is touched
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)--Find the player
- if v.Head.CanCollide truethen--See if the button can collide
- print('Player exists')
- if ownerName.Value player.Name then--See if the player owns the tycoon
- if hit.Parent:FindFirstChild('Humanoid')then--See if the player has a humanoid
- if hit.Parent.Humanoid.Health >0then--See if the humanoid is alive
- if PCash ~=nilthen--See if PCash exists
- if PCash.Value >= v.Price.Value then--If PCash is greater than price
- PCash.Value = PCash.Value - v.Price.Value --Purchase the object
- objects[v.Object.Value].Parent = purchasedO --Move it into puchasedobjects
- v.Head.Transparency =1
- end
- end
- end
- end
- end
- game.Players.PlayerRemoving:connect(function(player)--Function for player removal
- if ownerName.Value ~='then--If ownerName isn't equal to nothing then
- if ownerName.Value player.Name then--If the leaving player has the same name as ownerName
- Model:remove()--Removes Model
- Model.Parent = script.Parent --Sets Models Parent To The Tycoon
- end
- end)
Mar 26th, 2020
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
Roblox Studio Script List
- mouse = player:GetMouse()
- ammo = maxAmmo
- firing=false
- reload =2
- script.Parent.Activated:Connect(function()
- firing =true
- repeatlocal bullet= Instance.new('Part', workspace)
- bullet.Shape ='Ball'
- bullet.BrickColor = BrickColor.new('Bright red')
- local Axis = CFrame.new(script.Parent.Handle.Position, mouse.Hit.p)
- local Theta =math.random()*math.pi*2
- local x =math.cos(Theta)*math.sin(Phi)
- local z =math.cos(Phi)
- local Coordinate = Axis * CFrame.fromEulerAnglesXYZ(x,y,z)
- local vel = Instance.new('BodyVelocity')
- game.Debris:AddItem(bullet,15)
- if hit.Parent ~= player.Character and hit.Parent:FindFirstChild('Humanoid')then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
- end
- wait(rate)
- end
- script.Parent.Deactivated:Connect(function()
- firing =false
- end)
- ifstring.lower(k)'r'and ammo < maxAmmo and firing falsethen
- wait(reload)
- canFire =true
- end)